paddleocr 3.1.0__tar.gz → 3.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- paddleocr-3.2.0/CNAME +1 -0
- {paddleocr-3.1.0/paddleocr.egg-info → paddleocr-3.2.0}/PKG-INFO +127 -38
- {paddleocr-3.1.0 → paddleocr-3.2.0}/README.md +117 -36
- {paddleocr-3.1.0 → paddleocr-3.2.0}/mcp_server/paddleocr_mcp/pipelines.py +10 -8
- {paddleocr-3.1.0 → paddleocr-3.2.0}/mcp_server/pyproject.toml +2 -2
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/__init__.py +5 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_cli.py +2 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_common_args.py +3 -13
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/__init__.py +2 -0
- paddleocr-3.2.0/paddleocr/_models/_doc_vlm.py +49 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/base.py +9 -3
- paddleocr-3.2.0/paddleocr/_models/chart_parsing.py +45 -0
- paddleocr-3.2.0/paddleocr/_models/doc_vlm.py +45 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_pipelines/base.py +7 -1
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_pipelines/ocr.py +22 -2
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_pipelines/pp_chatocrv4_doc.py +20 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_pipelines/pp_doctranslation.py +14 -9
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_pipelines/pp_structurev3.py +212 -19
- {paddleocr-3.1.0 → paddleocr-3.2.0/paddleocr.egg-info}/PKG-INFO +127 -38
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr.egg-info/SOURCES.txt +14 -8
- paddleocr-3.2.0/paddleocr.egg-info/requires.txt +15 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/label_ops.py +8 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/rec_img_aug.py +3 -3
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/unimernet_aug.py +10 -3
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/rec_postprocess.py +8 -0
- paddleocr-3.2.0/ppocr/utils/dict/ppocrv5_el_dict.txt +354 -0
- paddleocr-3.2.0/ppocr/utils/dict/ppocrv5_en_dict.txt +436 -0
- paddleocr-3.2.0/ppocr/utils/dict/ppocrv5_th_dict.txt +523 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/save_load.py +1 -1
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/kie/README.md +1 -1
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/kie/README_ch.md +1 -1
- {paddleocr-3.1.0 → paddleocr-3.2.0}/pyproject.toml +7 -1
- {paddleocr-3.1.0 → paddleocr-3.2.0/readme}/README_ar.md +138 -19
- {paddleocr-3.1.0 → paddleocr-3.2.0/readme}/README_cn.md +119 -28
- {paddleocr-3.1.0 → paddleocr-3.2.0/readme}/README_es.md +69 -15
- {paddleocr-3.1.0 → paddleocr-3.2.0/readme}/README_fr.md +68 -15
- {paddleocr-3.1.0 → paddleocr-3.2.0/readme}/README_ja.md +72 -16
- {paddleocr-3.1.0 → paddleocr-3.2.0/readme}/README_ko.md +65 -13
- {paddleocr-3.1.0 → paddleocr-3.2.0/readme}/README_ru.md +69 -16
- {paddleocr-3.1.0 → paddleocr-3.2.0/readme}/README_tcn.md +70 -16
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer/predict_rec.py +6 -0
- paddleocr-3.1.0/paddleocr/_models/doc_vlm.py +0 -63
- paddleocr-3.1.0/paddleocr.egg-info/requires.txt +0 -3
- {paddleocr-3.1.0 → paddleocr-3.2.0}/LICENSE +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/MANIFEST.in +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/awesome_projects.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/mcp_server/README.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/mcp_server/README_en.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/mcp_server/paddleocr_mcp/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/mcp_server/paddleocr_mcp/__main__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/mcp_server/paddleocr_mcp/py.typed +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/__main__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_abstract.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_constants.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_env.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/_image_classification.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/_object_detection.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/_text_detection.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/doc_img_orientation_classification.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/formula_recognition.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/layout_detection.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/seal_text_detection.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/table_cells_detection.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/table_classification.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/table_structure_recognition.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/text_detection.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/text_image_unwarping.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/text_recognition.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_models/textline_orientation_classification.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_pipelines/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_pipelines/doc_preprocessor.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_pipelines/doc_understanding.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_pipelines/formula_recognition.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_pipelines/seal_recognition.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_pipelines/table_recognition_v2.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_pipelines/utils.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_utils/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_utils/cli.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_utils/deprecation.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_utils/logging.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr/_version.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr.egg-info/dependency_links.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr.egg-info/entry_points.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/paddleocr.egg-info/top_level.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/collate_fn.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/ColorJitter.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/abinet_aug.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/copy_paste.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/ct_process.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/drrg_targets.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/east_process.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/fce_aug.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/fce_targets.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/frost_img/frost1.jpg +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/frost_img/frost2.png +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/frost_img/frost3.png +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/frost_img/frost4.jpg +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/frost_img/frost5.jpg +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/frost_img/frost6.jpg +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/iaa_augment.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/latex_ocr_aug.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/make_border_map.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/make_pse_gt.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/make_shrink_map.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/operators.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/pg_process.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/randaugment.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/random_crop_data.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/sast_process.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/ssl_img_aug.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/table_ops.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/text_image_aug/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/text_image_aug/augment.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/text_image_aug/warp_mls.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/vqa/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/vqa/augment.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/vqa/token/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/vqa/token/vqa_re_convert.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/vqa/token/vqa_token_chunk.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/vqa/token/vqa_token_pad.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/imaug/vqa/token/vqa_token_relation.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/latexocr_dataset.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/lmdb_dataset.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/multi_scale_sampler.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/pgnet_dataset.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/pubtab_dataset.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/data/simple_dataset.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/cls_postprocess.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/ct_postprocess.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/db_postprocess.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/drrg_postprocess.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/east_postprocess.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/fce_postprocess.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/locality_aware_nms.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/pg_postprocess.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/picodet_postprocess.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/pse_postprocess/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/pse_postprocess/pse/README.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/pse_postprocess/pse/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/pse_postprocess/pse/pse.pyx +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/pse_postprocess/pse/setup.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/pse_postprocess/pse_postprocess.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/sast_postprocess.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/table_postprocess.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/vqa_token_re_layoutlm_postprocess.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/postprocess/vqa_token_ser_layoutlm_postprocess.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/EN_symbol_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/README.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/ar_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/arabic_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/be_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/bengali_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/bg_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/bm_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/bm_dict_add.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/bn_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/chinese_cht_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/confuse.pkl +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/cyrillic_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/devanagari_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/en_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/fa_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/french_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/german_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/gujarati_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/hebrew_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/hi_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/it_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/japan_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/ka_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/kazakh_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/kie_dict/xfund_class_list.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/korean_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/latex_ocr_tokenizer.json +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/latex_symbol_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/latin_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/layout_dict/layout_cdla_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/layout_dict/layout_publaynet_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/layout_dict/layout_table_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/mr_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/ne_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/oc_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/parseq_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/ppocrv4_doc_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/ppocrv5_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/ppocrv5_eslav_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/ppocrv5_korean_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/ppocrv5_latin_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/pu_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/rs_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/rsc_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/ru_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/samaritan_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/spin_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/syriac_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/ta_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/table_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/table_master_structure_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/table_structure_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/table_structure_dict_ch.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/te_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/th_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/ug_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/uk_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/unimernet_tokenizer/tokenizer.json +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/unimernet_tokenizer/tokenizer_config.json +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/ur_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/vi_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict/xi_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/dict90.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/e2e_metric/Deteval.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/e2e_metric/polygon_fast.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/e2e_utils/extract_batchsize.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/e2e_utils/extract_textpoint_fast.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/e2e_utils/extract_textpoint_slow.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/e2e_utils/pgnet_pp_utils.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/e2e_utils/visual.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/en_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/export_model.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/formula_utils/math_txt2pkl.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/formula_utils/unimernet_data_convert.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/gen_label.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/ic15_dict.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/iou.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/loggers/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/loggers/base_logger.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/loggers/loggers.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/loggers/wandb_logger.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/logging.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/network.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/poly_nms.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/ppocr_keys_v1.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/profiler.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/stats.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/utility.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppocr/utils/visual.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/README.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/kie/how_to_do_kie.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/kie/how_to_do_kie_en.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/kie/predict_kie_token_ser.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/kie/predict_kie_token_ser_re.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/kie/requirements.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/kie/tools/eval_with_label_end2end.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/kie/tools/trans_funsd_label.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/kie/tools/trans_xfun_data.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/layout/README.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/layout/README_ch.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/layout/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/layout/predict_layout.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/pdf2word/README.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/pdf2word/icons/chinese.png +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/pdf2word/icons/english.png +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/pdf2word/icons/folder-open.png +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/pdf2word/icons/folder-plus.png +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/pdf2word/pdf2word.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/predict_system.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/recovery/README.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/recovery/README_ch.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/recovery/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/recovery/recovery_to_doc.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/recovery/recovery_to_markdown.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/recovery/requirements.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/recovery/table_process.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/README.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/README_ch.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/convert_label2html.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/eval_table.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/matcher.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/predict_structure.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/predict_table.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/table_master_match.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/table_metric/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/table_metric/parallel.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/table_metric/table_metric.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/tablepyxl/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/tablepyxl/style.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/table/tablepyxl/tablepyxl.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/ppstructure/utility.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/requirements.txt +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/setup.cfg +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/setup.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/__init__.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/end2end/convert_ppocr_label.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/end2end/draw_html.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/end2end/eval_end2end.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/end2end/readme.md +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/eval.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/export_center.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/export_model.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer/predict_cls.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer/predict_det.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer/predict_e2e.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer/predict_sr.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer/predict_system.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer/utility.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer_cls.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer_det.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer_e2e.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer_kie.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer_kie_token_ser.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer_kie_token_ser_re.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer_rec.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer_sr.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/infer_table.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/naive_sync_bn.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/program.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/test_hubserving.py +0 -0
- {paddleocr-3.1.0 → paddleocr-3.2.0}/tools/train.py +0 -0
paddleocr-3.2.0/CNAME
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
www.paddleocr.ai
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: paddleocr
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Awesome multilingual OCR and document parsing toolkits based on PaddlePaddle
|
|
5
5
|
Author-email: PaddlePaddle <Paddle-better@baidu.com>
|
|
6
6
|
Maintainer-email: PaddlePaddle <Paddle-better@baidu.com>
|
|
@@ -18,63 +18,141 @@ Classifier: Topic :: Utilities
|
|
|
18
18
|
Requires-Python: >=3.8
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
20
|
License-File: LICENSE
|
|
21
|
-
Requires-Dist: paddlex[
|
|
21
|
+
Requires-Dist: paddlex[ocr-core]<3.3.0,>=3.2.0
|
|
22
22
|
Requires-Dist: PyYAML>=6
|
|
23
23
|
Requires-Dist: typing-extensions>=4.12
|
|
24
|
+
Provides-Extra: doc-parser
|
|
25
|
+
Requires-Dist: paddlex[ocr]<3.3.0,>=3.2.0; extra == "doc-parser"
|
|
26
|
+
Provides-Extra: ie
|
|
27
|
+
Requires-Dist: paddlex[ie]<3.3.0,>=3.2.0; extra == "ie"
|
|
28
|
+
Provides-Extra: trans
|
|
29
|
+
Requires-Dist: paddlex[trans]<3.3.0,>=3.2.0; extra == "trans"
|
|
30
|
+
Provides-Extra: all
|
|
31
|
+
Requires-Dist: paddlex[ie,ocr,trans]<3.3.0,>=3.2.0; extra == "all"
|
|
24
32
|
|
|
25
33
|
<div align="center">
|
|
26
34
|
<p>
|
|
27
35
|
<img width="100%" src="./docs/images/Banner.png" alt="PaddleOCR Banner">
|
|
28
36
|
</p>
|
|
29
37
|
|
|
30
|
-
|
|
31
|
-
English | [简体中文](./README_cn.md) | [繁體中文](./README_tcn.md) | [日本語](./README_ja.md) | [한국어](./README_ko.md) | [Français](./README_fr.md) | [Русский](./README_ru.md) | [Español](./README_es.md) | [العربية](./README_ar.md)
|
|
32
|
-
|
|
33
|
-
<!-- icon -->
|
|
38
|
+
English | [简体中文](./readme/README_cn.md) | [繁體中文](./readme/README_tcn.md) | [日本語](./readme/README_ja.md) | [한국어](./readme/README_ko.md) | [Français](./readme/README_fr.md) | [Русский](./readme/README_ru.md) | [Español](./readme/README_es.md) | [العربية](./readme/README_ar.md)
|
|
34
39
|
|
|
35
40
|
[](https://github.com/PaddlePaddle/PaddleOCR)
|
|
36
|
-
[](https://arxiv.org/abs/2507.05595)
|
|
42
|
+
[](https://pepy.tech/project/paddleocr)
|
|
43
|
+
[](https://pepy.tech/project/paddleocr)
|
|
44
|
+
[](https://github.com/PaddlePaddle/PaddleOCR/network/dependents)
|
|
45
|
+
|
|
46
|
+

|
|
38
47
|

|
|
39
48
|

|
|
49
|
+
[](./LICENSE)
|
|
50
|
+
[](https://deepwiki.com/PaddlePaddle/PaddleOCR)
|
|
40
51
|
|
|
41
52
|
|
|
42
|
-
|
|
43
|
-
[](https://aistudio.baidu.com/community/app/518494/webUI)
|
|
44
|
-
[](https://aistudio.baidu.com/community/app/518493/webUI)
|
|
53
|
+
**PaddleOCR is an industry-leading, production-ready OCR and document AI engine, offering end-to-end solutions from text extraction to intelligent document understanding**
|
|
45
54
|
|
|
46
55
|
</div>
|
|
47
56
|
|
|
48
|
-
|
|
49
|
-
|
|
57
|
+
# PaddleOCR
|
|
58
|
+
[](https://www.paddlepaddle.org.cn/en)
|
|
59
|
+
[](#)
|
|
60
|
+
[](#)
|
|
61
|
+
[](#)
|
|
62
|
+
[](#)
|
|
50
63
|
|
|
51
|
-
|
|
64
|
+
> [!TIP]
|
|
65
|
+
> PaddleOCR now provides an MCP server that supports integration with Agent applications like Claude Desktop. For details, please refer to [PaddleOCR MCP Server](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/deployment/mcp_server.html).
|
|
66
|
+
>
|
|
67
|
+
> The PaddleOCR 3.0 Technical Report is now available. See details at: [PaddleOCR 3.0 Technical Report](https://arxiv.org/abs/2507.05595)
|
|
52
68
|
|
|
53
|
-
Three Major New Features in PaddleOCR 3.0:
|
|
54
|
-
- Universal-Scene Text Recognition Model [PP-OCRv5](./docs/version3.x/algorithm/PP-OCRv5/PP-OCRv5.en.md): A single model that handles five different text types plus complex handwriting. Overall recognition accuracy has increased by 13 percentage points over the previous generation. [Online Demo](https://aistudio.baidu.com/community/app/91660/webUI)
|
|
55
69
|
|
|
56
|
-
|
|
70
|
+
**PaddleOCR** converts documents and images into **structured, AI-friendly data** (like JSON and Markdown) with **industry-leading accuracy**—powering AI applications for everyone from indie developers and startups to large enterprises worldwide. With over **50,000 stars** and deep integration into leading projects like **MinerU, RAGFlow, and OmniParser**, PaddleOCR has become the **premier solution** for developers building intelligent document applications in the **AI era**.
|
|
57
71
|
|
|
58
|
-
|
|
72
|
+
### PaddleOCR 3.0 Core Features
|
|
73
|
+
|
|
74
|
+
[](https://aistudio.baidu.com/community/app/91660/webUI)
|
|
75
|
+
[](https://aistudio.baidu.com/community/app/518494/webUI)
|
|
76
|
+
[](https://aistudio.baidu.com/community/app/518493/webUI)
|
|
77
|
+
[](https://www.modelscope.cn/organization/PaddlePaddle)
|
|
78
|
+
[](https://huggingface.co/PaddlePaddle)
|
|
79
|
+
|
|
80
|
+
- **PP-OCRv5 — Universal Scene Text Recognition**
|
|
81
|
+
**Single model supports five text types** (Simplified Chinese, Traditional Chinese, English, Japanese, and Pinyin) with **13% accuracy improvement**. Solves multilingual mixed document recognition challenges.
|
|
82
|
+
|
|
83
|
+
- **PP-StructureV3 — Complex Document Parsing**
|
|
84
|
+
Intelligently converts complex PDFs and document images into **Markdown and JSON files that preserve original structure**. **Outperforms** numerous commercial solutions in public benchmarks. **Perfectly maintains document layout and hierarchical structure**.
|
|
85
|
+
|
|
86
|
+
- **PP-ChatOCRv4 — Intelligent Information Extraction**
|
|
87
|
+
Natively integrates ERNIE 4.5 to **precisely extract key information** from massive documents, with 15% accuracy improvement over previous generation. Makes documents "**understand**" your questions and provide accurate answers.
|
|
59
88
|
|
|
60
89
|
In addition to providing an outstanding model library, PaddleOCR 3.0 also offers user-friendly tools covering model training, inference, and service deployment, so developers can rapidly bring AI applications to production.
|
|
61
90
|
<div align="center">
|
|
62
91
|
<p>
|
|
63
|
-
<img width="100%" src="
|
|
92
|
+
<img width="100%" src="https://raw.githubusercontent.com/cuicheng01/PaddleX_doc_images/main/images/paddleocr/README/Arch.jpg" alt="PaddleOCR Architecture">
|
|
64
93
|
</p>
|
|
65
94
|
</div>
|
|
66
95
|
|
|
67
|
-
|
|
96
|
+
**Special Note**: PaddleOCR 3.x introduces several significant interface changes. **Old code written based on PaddleOCR 2.x is likely incompatible with PaddleOCR 3.x**. Please ensure that the documentation you are reading matches the version of PaddleOCR you are using. [This document](https://paddlepaddle.github.io/PaddleOCR/latest/en/update/upgrade_notes.html) explains the reasons for the upgrade and the major changes from PaddleOCR 2.x to 3.x.
|
|
68
97
|
|
|
69
98
|
## 📣 Recent updates
|
|
70
99
|
|
|
100
|
+
### 🔥🔥2025.08.21: Release of PaddleOCR 3.2.0, includes:
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
- **Significant Model Additions:**
|
|
104
|
+
- Introduced training, inference, and deployment for PP-OCRv5 recognition models in English, Thai, and Greek. **The PP-OCRv5 English model delivers an 11% improvement in English scenarios compared to the main PP-OCRv5 model, with the Thai and Greek recognition models achieving accuracies of 82.68% and 89.28%, respectively.**
|
|
105
|
+
|
|
106
|
+
- **Deployment Capability Upgrades:**
|
|
107
|
+
- **Full support for PaddlePaddle framework versions 3.1.0 and 3.1.1.**
|
|
108
|
+
- **Comprehensive upgrade of the PP-OCRv5 C++ local deployment solution, now supporting both Linux and Windows, with feature parity and identical accuracy to the Python implementation.**
|
|
109
|
+
- **High-performance inference now supports CUDA 12, and inference can be performed using either the Paddle Inference or ONNX Runtime backends.**
|
|
110
|
+
- **The high-stability service-oriented deployment solution is now fully open-sourced, allowing users to customize Docker images and SDKs as required.**
|
|
111
|
+
- The high-stability service-oriented deployment solution also supports invocation via manually constructed HTTP requests, enabling client-side code development in any programming language.
|
|
112
|
+
|
|
113
|
+
- **Benchmark Support:**
|
|
114
|
+
- **All production lines now support fine-grained benchmarking, enabling measurement of end-to-end inference time as well as per-layer and per-module latency data to assist with performance analysis.**
|
|
115
|
+
- **Documentation has been updated to include key metrics for commonly used configurations on mainstream hardware, such as inference latency and memory usage, providing deployment references for users.**
|
|
116
|
+
|
|
117
|
+
- **Bug Fixes:**
|
|
118
|
+
- Resolved the issue of failed log saving during model training.
|
|
119
|
+
- Upgraded the data augmentation component for formula models for compatibility with newer versions of the albumentations dependency, and fixed deadlock warnings when using the tokenizers package in multi-process scenarios.
|
|
120
|
+
- Fixed inconsistencies in switch behaviors (e.g., `use_chart_parsing`) in the PP-StructureV3 configuration files compared to other pipelines.
|
|
121
|
+
|
|
122
|
+
- **Other Enhancements:**
|
|
123
|
+
- **Separated core and optional dependencies. Only minimal core dependencies are required for basic text recognition; additional dependencies for document parsing and information extraction can be installed as needed.**
|
|
124
|
+
- **Enabled support for NVIDIA RTX 50 series graphics cards on Windows; users can refer to the [installation guide](docs/version3.x/installation.en.md) for the corresponding PaddlePaddle framework versions.**
|
|
125
|
+
- **PP-OCR series models now support returning single-character coordinates.**
|
|
126
|
+
- Added AIStudio, ModelScope, and other model download sources, allowing users to specify the source for model downloads.
|
|
127
|
+
- Added support for chart-to-table conversion via the PP-Chart2Table module.
|
|
128
|
+
- Optimized documentation descriptions to improve usability.
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
<details>
|
|
132
|
+
<summary><strong>2025.08.15: PaddleOCR 3.1.1 Released</strong></summary>
|
|
133
|
+
|
|
134
|
+
- **Bug Fixes:**
|
|
135
|
+
- Added the missing methods `save_vector`, `save_visual_info_list`, `load_vector`, and `load_visual_info_list` in the `PP-ChatOCRv4` class.
|
|
136
|
+
- Added the missing parameters `glossary` and `llm_request_interval` to the `translate` method in the `PPDocTranslation` class.
|
|
137
|
+
|
|
138
|
+
- **Documentation Improvements:**
|
|
139
|
+
- Added a demo to the MCP documentation.
|
|
140
|
+
- Added information about the PaddlePaddle and PaddleOCR version used for performance metrics testing in the documentation.
|
|
141
|
+
- Fixed errors and omissions in the production line document translation.
|
|
142
|
+
|
|
143
|
+
- **Others:**
|
|
144
|
+
- Changed the MCP server dependency to use the pure Python library `puremagic` instead of `python-magic` to reduce installation issues.
|
|
145
|
+
- Retested PP-OCRv5 performance metrics with PaddleOCR version 3.1.0 and updated the documentation.
|
|
71
146
|
|
|
72
|
-
|
|
147
|
+
</details>
|
|
148
|
+
|
|
149
|
+
<details>
|
|
150
|
+
<summary><strong>2025.06.29: PaddleOCR 3.1.0 Released</strong></summary>
|
|
73
151
|
|
|
74
152
|
- **Key Models and Pipelines:**
|
|
75
153
|
- **Added PP-OCRv5 Multilingual Text Recognition Model**, which supports the training and inference process for text recognition models in 37 languages, including French, Spanish, Portuguese, Russian, Korean, etc. **Average accuracy improved by over 30%.** [Details](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/algorithm/PP-OCRv5/PP-OCRv5_multi_languages.html)
|
|
76
154
|
- Upgraded the **PP-Chart2Table model** in PP-StructureV3, further enhancing the capability of converting charts to tables. On internal custom evaluation sets, the metric (RMS-F1) **increased by 9.36 percentage points (71.24% -> 80.60%).**
|
|
77
|
-
- Newly launched **document translation pipeline, PP-DocTranslation, based on PP-StructureV3 and ERNIE 4.5
|
|
155
|
+
- Newly launched **document translation pipeline, PP-DocTranslation, based on PP-StructureV3 and ERNIE 4.5**, which supports the translation of Markdown format documents, various complex-layout PDF documents, and document images, with the results saved as Markdown format documents. [Details](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/pipeline_usage/PP-DocTranslation.html)
|
|
78
156
|
|
|
79
157
|
|
|
80
158
|
- **New MCP server:** [Details](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/deployment/mcp_server.html)
|
|
@@ -84,12 +162,15 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
|
|
|
84
162
|
|
|
85
163
|
- **Documentation Optimization:** Improved the descriptions in some user guides for a smoother reading experience.
|
|
86
164
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
- Bug Fix: Resolved the issue where the `enable_mkldnn` parameter was not effective, restoring the default behavior of using MKL-DNN for CPU inference.
|
|
165
|
+
</details>
|
|
90
166
|
|
|
91
|
-
|
|
167
|
+
<details>
|
|
168
|
+
<summary><strong>2025.06.26: PaddleOCR 3.0.3 Released</strong></summary>
|
|
169
|
+
- Bug Fix: Resolved the issue where the `enable_mkldnn` parameter was not effective, restoring the default behavior of using MKL-DNN for CPU inference.
|
|
170
|
+
</details>
|
|
92
171
|
|
|
172
|
+
<details>
|
|
173
|
+
<summary><strong>2025.06.19: PaddleOCR 3.0.2 Released</strong></summary>
|
|
93
174
|
- **New Features:**
|
|
94
175
|
|
|
95
176
|
- The default download source has been changed from `BOS` to `HuggingFace`. Users can also change the environment variable `PADDLE_PDX_MODEL_SOURCE` to `BOS` to set the model download source back to Baidu Object Storage (BOS).
|
|
@@ -102,7 +183,6 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
|
|
|
102
183
|
- Added Android example for PP-OCRv5. [Details](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/deployment/on_device_deployment.html).
|
|
103
184
|
|
|
104
185
|
- **Bug Fixes:**
|
|
105
|
-
|
|
106
186
|
- Fixed an issue with some CLI parameters in PP-StructureV3 not taking effect.
|
|
107
187
|
- Resolved an issue where `export_paddlex_config_to_yaml` would not function correctly in certain cases.
|
|
108
188
|
- Corrected the discrepancy between the actual behavior of `save_path` and its documentation description.
|
|
@@ -113,27 +193,26 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
|
|
|
113
193
|
- Fixed an overflow issue in the calculation of `overlap_ratio` under extremely special circumstances in the PP-StructureV3 pipeline.
|
|
114
194
|
|
|
115
195
|
- **Documentation Improvements:**
|
|
116
|
-
|
|
117
196
|
- Updated the description of the `enable_mkldnn` parameter in the documentation to accurately reflect the program's actual behavior.
|
|
118
197
|
- Fixed errors in the documentation regarding the `lang` and `ocr_version` parameters.
|
|
119
|
-
- Added instructions for exporting
|
|
198
|
+
- Added instructions for exporting pipeline configuration files via CLI.
|
|
120
199
|
- Fixed missing columns in the performance data table for PP-OCRv5.
|
|
121
200
|
- Refined benchmark metrics for PP-StructureV3 across different configurations.
|
|
122
201
|
|
|
123
202
|
- **Others:**
|
|
124
203
|
|
|
125
204
|
- Relaxed version restrictions on dependencies like numpy and pandas, restoring support for Python 3.12.
|
|
205
|
+
</details>
|
|
126
206
|
|
|
127
207
|
<details>
|
|
128
208
|
<summary><strong>History Log</strong></summary>
|
|
129
209
|
|
|
130
|
-
|
|
210
|
+
2025.06.05: **PaddleOCR 3.0.1 Released**, includes:
|
|
131
211
|
|
|
132
212
|
- **Optimisation of certain models and model configurations:**
|
|
133
213
|
- Updated the default model configuration for PP-OCRv5, changing both detection and recognition from mobile to server models. To improve default performance in most scenarios, the parameter `limit_side_len` in the configuration has been changed from 736 to 64.
|
|
134
214
|
- Added a new text line orientation classification model `PP-LCNet_x1_0_textline_ori` with an accuracy of 99.42%. The default text line orientation classifier for OCR, PP-StructureV3, and PP-ChatOCRv4 pipelines has been updated to this model.
|
|
135
|
-
-
|
|
136
|
-
|
|
215
|
+
- Optimized the text line orientation classification model `PP-LCNet_x0_25_textline_ori`, improving accuracy by 3.3 percentage points to a current accuracy of 98.85%.
|
|
137
216
|
- **Optimizations and fixes for some issues in version 3.0.0, [details](https://paddlepaddle.github.io/PaddleOCR/latest/en/update/update.html)**
|
|
138
217
|
|
|
139
218
|
🔥🔥2025.05.20: Official Release of **PaddleOCR v3.0**, including:
|
|
@@ -148,7 +227,7 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
|
|
|
148
227
|
|
|
149
228
|
- **PP-ChatOCRv4**: Intelligent Document Understanding – Extract Key Information, not just text from Images/PDFs.
|
|
150
229
|
1. 🔥 **15-point accuracy gain** in key-information extraction on PDF/PNG/JPG files over the previous generation.
|
|
151
|
-
2. 💻 Native support for **ERNIE 4.5
|
|
230
|
+
2. 💻 Native support for **ERNIE 4.5**, with compatibility for large-model deployments via PaddleNLP, Ollama, vLLM, and more.
|
|
152
231
|
3. 🤝 Integrated [PP-DocBee2](https://github.com/PaddlePaddle/PaddleMIX/tree/develop/paddlemix/examples/ppdocbee2), enabling extraction and understanding of printed text, handwriting, seals, tables, charts, and other common elements in complex documents.
|
|
153
232
|
|
|
154
233
|
[History Log](https://paddlepaddle.github.io/PaddleOCR/latest/en/update/update.html)
|
|
@@ -310,6 +389,13 @@ print(chat_result)
|
|
|
310
389
|
- [Huawei Ascend](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/other_devices_support/paddlepaddle_install_NPU.html)
|
|
311
390
|
- [KUNLUNXIN](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/other_devices_support/paddlepaddle_install_XPU.html)
|
|
312
391
|
|
|
392
|
+
## More Features
|
|
393
|
+
|
|
394
|
+
- Convert models to ONNX format: [Obtaining ONNX Models](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/deployment/obtaining_onnx_models.html).
|
|
395
|
+
- Accelerate inference using engines like OpenVINO, ONNX Runtime, TensorRT, or perform inference using ONNX format models: [High-Performance Inference](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/deployment/high_performance_inference.html).
|
|
396
|
+
- Accelerate inference using multi-GPU and multi-process: [Parallel Inference for Pipelines](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/pipeline_usage/instructions/parallel_inference.html).
|
|
397
|
+
- Integrate PaddleOCR into applications written in C++, C#, Java, etc.: [Serving](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/deployment/serving.html).
|
|
398
|
+
|
|
313
399
|
## ⛰️ Advanced Tutorials
|
|
314
400
|
- [PP-OCRv5 Tutorial](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/pipeline_usage/OCR.html)
|
|
315
401
|
- [PP-StructureV3 Tutorial](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/pipeline_usage/PP-StructureV3.html)
|
|
@@ -368,10 +454,13 @@ This project is released under the [Apache 2.0 license](LICENSE).
|
|
|
368
454
|
## 🎓 Citation
|
|
369
455
|
|
|
370
456
|
```
|
|
371
|
-
@misc{
|
|
372
|
-
title={PaddleOCR
|
|
373
|
-
author={
|
|
374
|
-
|
|
375
|
-
|
|
457
|
+
@misc{cui2025paddleocr30technicalreport,
|
|
458
|
+
title={PaddleOCR 3.0 Technical Report},
|
|
459
|
+
author={Cheng Cui and Ting Sun and Manhui Lin and Tingquan Gao and Yubo Zhang and Jiaxuan Liu and Xueqing Wang and Zelun Zhang and Changda Zhou and Hongen Liu and Yue Zhang and Wenyu Lv and Kui Huang and Yichao Zhang and Jing Zhang and Jun Zhang and Yi Liu and Dianhai Yu and Yanjun Ma},
|
|
460
|
+
year={2025},
|
|
461
|
+
eprint={2507.05595},
|
|
462
|
+
archivePrefix={arXiv},
|
|
463
|
+
primaryClass={cs.CV},
|
|
464
|
+
url={https://arxiv.org/abs/2507.05595},
|
|
376
465
|
}
|
|
377
466
|
```
|
|
@@ -3,54 +3,124 @@
|
|
|
3
3
|
<img width="100%" src="./docs/images/Banner.png" alt="PaddleOCR Banner">
|
|
4
4
|
</p>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
English | [简体中文](./README_cn.md) | [繁體中文](./README_tcn.md) | [日本語](./README_ja.md) | [한국어](./README_ko.md) | [Français](./README_fr.md) | [Русский](./README_ru.md) | [Español](./README_es.md) | [العربية](./README_ar.md)
|
|
8
|
-
|
|
9
|
-
<!-- icon -->
|
|
6
|
+
English | [简体中文](./readme/README_cn.md) | [繁體中文](./readme/README_tcn.md) | [日本語](./readme/README_ja.md) | [한국어](./readme/README_ko.md) | [Français](./readme/README_fr.md) | [Русский](./readme/README_ru.md) | [Español](./readme/README_es.md) | [العربية](./readme/README_ar.md)
|
|
10
7
|
|
|
11
8
|
[](https://github.com/PaddlePaddle/PaddleOCR)
|
|
12
|
-
[](https://arxiv.org/abs/2507.05595)
|
|
10
|
+
[](https://pepy.tech/project/paddleocr)
|
|
11
|
+
[](https://pepy.tech/project/paddleocr)
|
|
12
|
+
[](https://github.com/PaddlePaddle/PaddleOCR/network/dependents)
|
|
13
|
+
|
|
14
|
+

|
|
14
15
|

|
|
15
16
|

|
|
17
|
+
[](./LICENSE)
|
|
18
|
+
[](https://deepwiki.com/PaddlePaddle/PaddleOCR)
|
|
16
19
|
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
[](https://aistudio.baidu.com/community/app/518494/webUI)
|
|
20
|
-
[](https://aistudio.baidu.com/community/app/518493/webUI)
|
|
21
|
+
**PaddleOCR is an industry-leading, production-ready OCR and document AI engine, offering end-to-end solutions from text extraction to intelligent document understanding**
|
|
21
22
|
|
|
22
23
|
</div>
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
# PaddleOCR
|
|
26
|
+
[](https://www.paddlepaddle.org.cn/en)
|
|
27
|
+
[](#)
|
|
28
|
+
[](#)
|
|
29
|
+
[](#)
|
|
30
|
+
[](#)
|
|
26
31
|
|
|
27
|
-
|
|
32
|
+
> [!TIP]
|
|
33
|
+
> PaddleOCR now provides an MCP server that supports integration with Agent applications like Claude Desktop. For details, please refer to [PaddleOCR MCP Server](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/deployment/mcp_server.html).
|
|
34
|
+
>
|
|
35
|
+
> The PaddleOCR 3.0 Technical Report is now available. See details at: [PaddleOCR 3.0 Technical Report](https://arxiv.org/abs/2507.05595)
|
|
28
36
|
|
|
29
|
-
Three Major New Features in PaddleOCR 3.0:
|
|
30
|
-
- Universal-Scene Text Recognition Model [PP-OCRv5](./docs/version3.x/algorithm/PP-OCRv5/PP-OCRv5.en.md): A single model that handles five different text types plus complex handwriting. Overall recognition accuracy has increased by 13 percentage points over the previous generation. [Online Demo](https://aistudio.baidu.com/community/app/91660/webUI)
|
|
31
37
|
|
|
32
|
-
|
|
38
|
+
**PaddleOCR** converts documents and images into **structured, AI-friendly data** (like JSON and Markdown) with **industry-leading accuracy**—powering AI applications for everyone from indie developers and startups to large enterprises worldwide. With over **50,000 stars** and deep integration into leading projects like **MinerU, RAGFlow, and OmniParser**, PaddleOCR has become the **premier solution** for developers building intelligent document applications in the **AI era**.
|
|
33
39
|
|
|
34
|
-
|
|
40
|
+
### PaddleOCR 3.0 Core Features
|
|
41
|
+
|
|
42
|
+
[](https://aistudio.baidu.com/community/app/91660/webUI)
|
|
43
|
+
[](https://aistudio.baidu.com/community/app/518494/webUI)
|
|
44
|
+
[](https://aistudio.baidu.com/community/app/518493/webUI)
|
|
45
|
+
[](https://www.modelscope.cn/organization/PaddlePaddle)
|
|
46
|
+
[](https://huggingface.co/PaddlePaddle)
|
|
47
|
+
|
|
48
|
+
- **PP-OCRv5 — Universal Scene Text Recognition**
|
|
49
|
+
**Single model supports five text types** (Simplified Chinese, Traditional Chinese, English, Japanese, and Pinyin) with **13% accuracy improvement**. Solves multilingual mixed document recognition challenges.
|
|
50
|
+
|
|
51
|
+
- **PP-StructureV3 — Complex Document Parsing**
|
|
52
|
+
Intelligently converts complex PDFs and document images into **Markdown and JSON files that preserve original structure**. **Outperforms** numerous commercial solutions in public benchmarks. **Perfectly maintains document layout and hierarchical structure**.
|
|
53
|
+
|
|
54
|
+
- **PP-ChatOCRv4 — Intelligent Information Extraction**
|
|
55
|
+
Natively integrates ERNIE 4.5 to **precisely extract key information** from massive documents, with 15% accuracy improvement over previous generation. Makes documents "**understand**" your questions and provide accurate answers.
|
|
35
56
|
|
|
36
57
|
In addition to providing an outstanding model library, PaddleOCR 3.0 also offers user-friendly tools covering model training, inference, and service deployment, so developers can rapidly bring AI applications to production.
|
|
37
58
|
<div align="center">
|
|
38
59
|
<p>
|
|
39
|
-
<img width="100%" src="
|
|
60
|
+
<img width="100%" src="https://raw.githubusercontent.com/cuicheng01/PaddleX_doc_images/main/images/paddleocr/README/Arch.jpg" alt="PaddleOCR Architecture">
|
|
40
61
|
</p>
|
|
41
62
|
</div>
|
|
42
63
|
|
|
43
|
-
|
|
64
|
+
**Special Note**: PaddleOCR 3.x introduces several significant interface changes. **Old code written based on PaddleOCR 2.x is likely incompatible with PaddleOCR 3.x**. Please ensure that the documentation you are reading matches the version of PaddleOCR you are using. [This document](https://paddlepaddle.github.io/PaddleOCR/latest/en/update/upgrade_notes.html) explains the reasons for the upgrade and the major changes from PaddleOCR 2.x to 3.x.
|
|
44
65
|
|
|
45
66
|
## 📣 Recent updates
|
|
46
67
|
|
|
68
|
+
### 🔥🔥2025.08.21: Release of PaddleOCR 3.2.0, includes:
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
- **Significant Model Additions:**
|
|
72
|
+
- Introduced training, inference, and deployment for PP-OCRv5 recognition models in English, Thai, and Greek. **The PP-OCRv5 English model delivers an 11% improvement in English scenarios compared to the main PP-OCRv5 model, with the Thai and Greek recognition models achieving accuracies of 82.68% and 89.28%, respectively.**
|
|
73
|
+
|
|
74
|
+
- **Deployment Capability Upgrades:**
|
|
75
|
+
- **Full support for PaddlePaddle framework versions 3.1.0 and 3.1.1.**
|
|
76
|
+
- **Comprehensive upgrade of the PP-OCRv5 C++ local deployment solution, now supporting both Linux and Windows, with feature parity and identical accuracy to the Python implementation.**
|
|
77
|
+
- **High-performance inference now supports CUDA 12, and inference can be performed using either the Paddle Inference or ONNX Runtime backends.**
|
|
78
|
+
- **The high-stability service-oriented deployment solution is now fully open-sourced, allowing users to customize Docker images and SDKs as required.**
|
|
79
|
+
- The high-stability service-oriented deployment solution also supports invocation via manually constructed HTTP requests, enabling client-side code development in any programming language.
|
|
80
|
+
|
|
81
|
+
- **Benchmark Support:**
|
|
82
|
+
- **All production lines now support fine-grained benchmarking, enabling measurement of end-to-end inference time as well as per-layer and per-module latency data to assist with performance analysis.**
|
|
83
|
+
- **Documentation has been updated to include key metrics for commonly used configurations on mainstream hardware, such as inference latency and memory usage, providing deployment references for users.**
|
|
84
|
+
|
|
85
|
+
- **Bug Fixes:**
|
|
86
|
+
- Resolved the issue of failed log saving during model training.
|
|
87
|
+
- Upgraded the data augmentation component for formula models for compatibility with newer versions of the albumentations dependency, and fixed deadlock warnings when using the tokenizers package in multi-process scenarios.
|
|
88
|
+
- Fixed inconsistencies in switch behaviors (e.g., `use_chart_parsing`) in the PP-StructureV3 configuration files compared to other pipelines.
|
|
89
|
+
|
|
90
|
+
- **Other Enhancements:**
|
|
91
|
+
- **Separated core and optional dependencies. Only minimal core dependencies are required for basic text recognition; additional dependencies for document parsing and information extraction can be installed as needed.**
|
|
92
|
+
- **Enabled support for NVIDIA RTX 50 series graphics cards on Windows; users can refer to the [installation guide](docs/version3.x/installation.en.md) for the corresponding PaddlePaddle framework versions.**
|
|
93
|
+
- **PP-OCR series models now support returning single-character coordinates.**
|
|
94
|
+
- Added AIStudio, ModelScope, and other model download sources, allowing users to specify the source for model downloads.
|
|
95
|
+
- Added support for chart-to-table conversion via the PP-Chart2Table module.
|
|
96
|
+
- Optimized documentation descriptions to improve usability.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
<details>
|
|
100
|
+
<summary><strong>2025.08.15: PaddleOCR 3.1.1 Released</strong></summary>
|
|
101
|
+
|
|
102
|
+
- **Bug Fixes:**
|
|
103
|
+
- Added the missing methods `save_vector`, `save_visual_info_list`, `load_vector`, and `load_visual_info_list` in the `PP-ChatOCRv4` class.
|
|
104
|
+
- Added the missing parameters `glossary` and `llm_request_interval` to the `translate` method in the `PPDocTranslation` class.
|
|
105
|
+
|
|
106
|
+
- **Documentation Improvements:**
|
|
107
|
+
- Added a demo to the MCP documentation.
|
|
108
|
+
- Added information about the PaddlePaddle and PaddleOCR version used for performance metrics testing in the documentation.
|
|
109
|
+
- Fixed errors and omissions in the production line document translation.
|
|
110
|
+
|
|
111
|
+
- **Others:**
|
|
112
|
+
- Changed the MCP server dependency to use the pure Python library `puremagic` instead of `python-magic` to reduce installation issues.
|
|
113
|
+
- Retested PP-OCRv5 performance metrics with PaddleOCR version 3.1.0 and updated the documentation.
|
|
47
114
|
|
|
48
|
-
|
|
115
|
+
</details>
|
|
116
|
+
|
|
117
|
+
<details>
|
|
118
|
+
<summary><strong>2025.06.29: PaddleOCR 3.1.0 Released</strong></summary>
|
|
49
119
|
|
|
50
120
|
- **Key Models and Pipelines:**
|
|
51
121
|
- **Added PP-OCRv5 Multilingual Text Recognition Model**, which supports the training and inference process for text recognition models in 37 languages, including French, Spanish, Portuguese, Russian, Korean, etc. **Average accuracy improved by over 30%.** [Details](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/algorithm/PP-OCRv5/PP-OCRv5_multi_languages.html)
|
|
52
122
|
- Upgraded the **PP-Chart2Table model** in PP-StructureV3, further enhancing the capability of converting charts to tables. On internal custom evaluation sets, the metric (RMS-F1) **increased by 9.36 percentage points (71.24% -> 80.60%).**
|
|
53
|
-
- Newly launched **document translation pipeline, PP-DocTranslation, based on PP-StructureV3 and ERNIE 4.5
|
|
123
|
+
- Newly launched **document translation pipeline, PP-DocTranslation, based on PP-StructureV3 and ERNIE 4.5**, which supports the translation of Markdown format documents, various complex-layout PDF documents, and document images, with the results saved as Markdown format documents. [Details](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/pipeline_usage/PP-DocTranslation.html)
|
|
54
124
|
|
|
55
125
|
|
|
56
126
|
- **New MCP server:** [Details](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/deployment/mcp_server.html)
|
|
@@ -60,12 +130,15 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
|
|
|
60
130
|
|
|
61
131
|
- **Documentation Optimization:** Improved the descriptions in some user guides for a smoother reading experience.
|
|
62
132
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
- Bug Fix: Resolved the issue where the `enable_mkldnn` parameter was not effective, restoring the default behavior of using MKL-DNN for CPU inference.
|
|
133
|
+
</details>
|
|
66
134
|
|
|
67
|
-
|
|
135
|
+
<details>
|
|
136
|
+
<summary><strong>2025.06.26: PaddleOCR 3.0.3 Released</strong></summary>
|
|
137
|
+
- Bug Fix: Resolved the issue where the `enable_mkldnn` parameter was not effective, restoring the default behavior of using MKL-DNN for CPU inference.
|
|
138
|
+
</details>
|
|
68
139
|
|
|
140
|
+
<details>
|
|
141
|
+
<summary><strong>2025.06.19: PaddleOCR 3.0.2 Released</strong></summary>
|
|
69
142
|
- **New Features:**
|
|
70
143
|
|
|
71
144
|
- The default download source has been changed from `BOS` to `HuggingFace`. Users can also change the environment variable `PADDLE_PDX_MODEL_SOURCE` to `BOS` to set the model download source back to Baidu Object Storage (BOS).
|
|
@@ -78,7 +151,6 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
|
|
|
78
151
|
- Added Android example for PP-OCRv5. [Details](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/deployment/on_device_deployment.html).
|
|
79
152
|
|
|
80
153
|
- **Bug Fixes:**
|
|
81
|
-
|
|
82
154
|
- Fixed an issue with some CLI parameters in PP-StructureV3 not taking effect.
|
|
83
155
|
- Resolved an issue where `export_paddlex_config_to_yaml` would not function correctly in certain cases.
|
|
84
156
|
- Corrected the discrepancy between the actual behavior of `save_path` and its documentation description.
|
|
@@ -89,27 +161,26 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
|
|
|
89
161
|
- Fixed an overflow issue in the calculation of `overlap_ratio` under extremely special circumstances in the PP-StructureV3 pipeline.
|
|
90
162
|
|
|
91
163
|
- **Documentation Improvements:**
|
|
92
|
-
|
|
93
164
|
- Updated the description of the `enable_mkldnn` parameter in the documentation to accurately reflect the program's actual behavior.
|
|
94
165
|
- Fixed errors in the documentation regarding the `lang` and `ocr_version` parameters.
|
|
95
|
-
- Added instructions for exporting
|
|
166
|
+
- Added instructions for exporting pipeline configuration files via CLI.
|
|
96
167
|
- Fixed missing columns in the performance data table for PP-OCRv5.
|
|
97
168
|
- Refined benchmark metrics for PP-StructureV3 across different configurations.
|
|
98
169
|
|
|
99
170
|
- **Others:**
|
|
100
171
|
|
|
101
172
|
- Relaxed version restrictions on dependencies like numpy and pandas, restoring support for Python 3.12.
|
|
173
|
+
</details>
|
|
102
174
|
|
|
103
175
|
<details>
|
|
104
176
|
<summary><strong>History Log</strong></summary>
|
|
105
177
|
|
|
106
|
-
|
|
178
|
+
2025.06.05: **PaddleOCR 3.0.1 Released**, includes:
|
|
107
179
|
|
|
108
180
|
- **Optimisation of certain models and model configurations:**
|
|
109
181
|
- Updated the default model configuration for PP-OCRv5, changing both detection and recognition from mobile to server models. To improve default performance in most scenarios, the parameter `limit_side_len` in the configuration has been changed from 736 to 64.
|
|
110
182
|
- Added a new text line orientation classification model `PP-LCNet_x1_0_textline_ori` with an accuracy of 99.42%. The default text line orientation classifier for OCR, PP-StructureV3, and PP-ChatOCRv4 pipelines has been updated to this model.
|
|
111
|
-
-
|
|
112
|
-
|
|
183
|
+
- Optimized the text line orientation classification model `PP-LCNet_x0_25_textline_ori`, improving accuracy by 3.3 percentage points to a current accuracy of 98.85%.
|
|
113
184
|
- **Optimizations and fixes for some issues in version 3.0.0, [details](https://paddlepaddle.github.io/PaddleOCR/latest/en/update/update.html)**
|
|
114
185
|
|
|
115
186
|
🔥🔥2025.05.20: Official Release of **PaddleOCR v3.0**, including:
|
|
@@ -124,7 +195,7 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
|
|
|
124
195
|
|
|
125
196
|
- **PP-ChatOCRv4**: Intelligent Document Understanding – Extract Key Information, not just text from Images/PDFs.
|
|
126
197
|
1. 🔥 **15-point accuracy gain** in key-information extraction on PDF/PNG/JPG files over the previous generation.
|
|
127
|
-
2. 💻 Native support for **ERNIE 4.5
|
|
198
|
+
2. 💻 Native support for **ERNIE 4.5**, with compatibility for large-model deployments via PaddleNLP, Ollama, vLLM, and more.
|
|
128
199
|
3. 🤝 Integrated [PP-DocBee2](https://github.com/PaddlePaddle/PaddleMIX/tree/develop/paddlemix/examples/ppdocbee2), enabling extraction and understanding of printed text, handwriting, seals, tables, charts, and other common elements in complex documents.
|
|
129
200
|
|
|
130
201
|
[History Log](https://paddlepaddle.github.io/PaddleOCR/latest/en/update/update.html)
|
|
@@ -286,6 +357,13 @@ print(chat_result)
|
|
|
286
357
|
- [Huawei Ascend](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/other_devices_support/paddlepaddle_install_NPU.html)
|
|
287
358
|
- [KUNLUNXIN](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/other_devices_support/paddlepaddle_install_XPU.html)
|
|
288
359
|
|
|
360
|
+
## More Features
|
|
361
|
+
|
|
362
|
+
- Convert models to ONNX format: [Obtaining ONNX Models](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/deployment/obtaining_onnx_models.html).
|
|
363
|
+
- Accelerate inference using engines like OpenVINO, ONNX Runtime, TensorRT, or perform inference using ONNX format models: [High-Performance Inference](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/deployment/high_performance_inference.html).
|
|
364
|
+
- Accelerate inference using multi-GPU and multi-process: [Parallel Inference for Pipelines](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/pipeline_usage/instructions/parallel_inference.html).
|
|
365
|
+
- Integrate PaddleOCR into applications written in C++, C#, Java, etc.: [Serving](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/deployment/serving.html).
|
|
366
|
+
|
|
289
367
|
## ⛰️ Advanced Tutorials
|
|
290
368
|
- [PP-OCRv5 Tutorial](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/pipeline_usage/OCR.html)
|
|
291
369
|
- [PP-StructureV3 Tutorial](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/pipeline_usage/PP-StructureV3.html)
|
|
@@ -344,10 +422,13 @@ This project is released under the [Apache 2.0 license](LICENSE).
|
|
|
344
422
|
## 🎓 Citation
|
|
345
423
|
|
|
346
424
|
```
|
|
347
|
-
@misc{
|
|
348
|
-
title={PaddleOCR
|
|
349
|
-
author={
|
|
350
|
-
|
|
351
|
-
|
|
425
|
+
@misc{cui2025paddleocr30technicalreport,
|
|
426
|
+
title={PaddleOCR 3.0 Technical Report},
|
|
427
|
+
author={Cheng Cui and Ting Sun and Manhui Lin and Tingquan Gao and Yubo Zhang and Jiaxuan Liu and Xueqing Wang and Zelun Zhang and Changda Zhou and Hongen Liu and Yue Zhang and Wenyu Lv and Kui Huang and Yichao Zhang and Jing Zhang and Jun Zhang and Yi Liu and Dianhai Yu and Yanjun Ma},
|
|
428
|
+
year={2025},
|
|
429
|
+
eprint={2507.05595},
|
|
430
|
+
archivePrefix={arXiv},
|
|
431
|
+
primaryClass={cs.CV},
|
|
432
|
+
url={https://arxiv.org/abs/2507.05595},
|
|
352
433
|
}
|
|
353
434
|
```
|
|
@@ -31,8 +31,8 @@ from typing import Any, Callable, Dict, List, NoReturn, Optional, Type, Union
|
|
|
31
31
|
from urllib.parse import urlparse
|
|
32
32
|
|
|
33
33
|
import httpx
|
|
34
|
-
import magic
|
|
35
34
|
import numpy as np
|
|
35
|
+
import puremagic
|
|
36
36
|
from fastmcp import Context, FastMCP
|
|
37
37
|
from mcp.types import ImageContent, TextContent
|
|
38
38
|
from PIL import Image as PILImage
|
|
@@ -70,7 +70,7 @@ def _is_url(s: str) -> bool:
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
def _infer_file_type_from_bytes(data: bytes) -> Optional[str]:
|
|
73
|
-
mime =
|
|
73
|
+
mime = puremagic.from_string(data, mime=True)
|
|
74
74
|
if mime.startswith("image/"):
|
|
75
75
|
return "image"
|
|
76
76
|
elif mime == "application/pdf":
|
|
@@ -411,7 +411,7 @@ class SimpleInferencePipelineHandler(PipelineHandler):
|
|
|
411
411
|
image_arr = np.array(image_pil.convert("RGB"))
|
|
412
412
|
return np.ascontiguousarray(image_arr[..., ::-1])
|
|
413
413
|
except Exception as e:
|
|
414
|
-
raise ValueError(f"Failed to decode Base64 image: {e}")
|
|
414
|
+
raise ValueError(f"Failed to decode Base64 image: {str(e)}") from e
|
|
415
415
|
elif _is_file_path(input_data) or _is_url(input_data):
|
|
416
416
|
return input_data
|
|
417
417
|
else:
|
|
@@ -439,11 +439,11 @@ class SimpleInferencePipelineHandler(PipelineHandler):
|
|
|
439
439
|
if file_type_str is None:
|
|
440
440
|
raise ValueError(
|
|
441
441
|
"Unsupported file type in Base64 data. "
|
|
442
|
-
"Only
|
|
442
|
+
"Only images (JPEG, PNG, etc.) and PDF documents are supported."
|
|
443
443
|
)
|
|
444
444
|
return input_data, file_type_str
|
|
445
445
|
except Exception as e:
|
|
446
|
-
raise ValueError(f"Failed to decode Base64 data: {e}")
|
|
446
|
+
raise ValueError(f"Failed to decode Base64 data: {str(e)}") from e
|
|
447
447
|
elif _is_file_path(input_data):
|
|
448
448
|
try:
|
|
449
449
|
with open(input_data, "rb") as f:
|
|
@@ -453,11 +453,11 @@ class SimpleInferencePipelineHandler(PipelineHandler):
|
|
|
453
453
|
if file_type_str is None:
|
|
454
454
|
raise ValueError(
|
|
455
455
|
f"Unsupported file type for '{input_data}'. "
|
|
456
|
-
"Only
|
|
456
|
+
"Only images (JPEG, PNG, etc.) and PDF documents are supported."
|
|
457
457
|
)
|
|
458
458
|
return input_data, file_type_str
|
|
459
459
|
except Exception as e:
|
|
460
|
-
raise ValueError(f"Failed to read file: {e}")
|
|
460
|
+
raise ValueError(f"Failed to read file: {str(e)}") from e
|
|
461
461
|
else:
|
|
462
462
|
raise ValueError("Invalid input data format")
|
|
463
463
|
|
|
@@ -776,7 +776,9 @@ class PPStructureV3Handler(SimpleInferencePipelineHandler):
|
|
|
776
776
|
img_bytes = response.content
|
|
777
777
|
return base64.b64encode(img_bytes).decode("ascii")
|
|
778
778
|
except Exception as e:
|
|
779
|
-
await ctx.error(
|
|
779
|
+
await ctx.error(
|
|
780
|
+
f"Failed to download image from URL {img_data}: {str(e)}"
|
|
781
|
+
)
|
|
780
782
|
return img_data
|
|
781
783
|
elif _is_base64(img_data):
|
|
782
784
|
return img_data
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "paddleocr_mcp"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.2.0"
|
|
8
8
|
requires-python = ">=3.10"
|
|
9
9
|
dependencies = [
|
|
10
10
|
"mcp>=1.5.0",
|
|
@@ -12,7 +12,7 @@ dependencies = [
|
|
|
12
12
|
"httpx>=0.24.0",
|
|
13
13
|
"numpy>=1.24.0",
|
|
14
14
|
"pillow>=9.0.0",
|
|
15
|
-
"
|
|
15
|
+
"puremagic>=1.30.0",
|
|
16
16
|
"typing-extensions>=4.0.0",
|
|
17
17
|
]
|
|
18
18
|
|