paddleocr 3.3.3__tar.gz → 3.4.1__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.3.3 → paddleocr-3.4.1}/PKG-INFO +21 -10
- {paddleocr-3.3.3 → paddleocr-3.4.1}/README.md +15 -4
- {paddleocr-3.3.3 → paddleocr-3.4.1}/mcp_server/paddleocr_mcp/__main__.py +9 -3
- {paddleocr-3.3.3 → paddleocr-3.4.1}/mcp_server/paddleocr_mcp/pipelines.py +11 -2
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_pipelines/paddleocr_vl.py +117 -3
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_pipelines/pp_structurev3.py +24 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr.egg-info/PKG-INFO +21 -10
- paddleocr-3.4.1/paddleocr.egg-info/requires.txt +16 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/rec_postprocess.py +7 -1
- {paddleocr-3.3.3 → paddleocr-3.4.1}/pyproject.toml +5 -5
- {paddleocr-3.3.3 → paddleocr-3.4.1}/readme/README_ar.md +2 -2
- {paddleocr-3.3.3 → paddleocr-3.4.1}/readme/README_cn.md +13 -1
- {paddleocr-3.3.3 → paddleocr-3.4.1}/readme/README_ru.md +2 -2
- paddleocr-3.3.3/paddleocr.egg-info/requires.txt +0 -16
- {paddleocr-3.3.3 → paddleocr-3.4.1}/.lycheeignore +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/CNAME +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/LICENSE +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/MANIFEST.in +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/awesome_projects.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/mcp_server/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/mcp_server/README_en.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/mcp_server/paddleocr_mcp/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/mcp_server/paddleocr_mcp/py.typed +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/mcp_server/pyproject.toml +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/__main__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_abstract.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_cli.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_common_args.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_constants.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_env.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/_doc_vlm.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/_image_classification.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/_object_detection.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/_text_detection.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/base.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/chart_parsing.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/doc_img_orientation_classification.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/doc_vlm.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/formula_recognition.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/layout_detection.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/seal_text_detection.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/table_cells_detection.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/table_classification.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/table_structure_recognition.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/text_detection.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/text_image_unwarping.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/text_recognition.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_models/textline_orientation_classification.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_pipelines/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_pipelines/base.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_pipelines/doc_preprocessor.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_pipelines/doc_understanding.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_pipelines/formula_recognition.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_pipelines/ocr.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_pipelines/pp_chatocrv4_doc.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_pipelines/pp_doctranslation.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_pipelines/seal_recognition.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_pipelines/table_recognition_v2.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_pipelines/utils.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_utils/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_utils/cli.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_utils/deprecation.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_utils/logging.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr/_version.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr.egg-info/SOURCES.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr.egg-info/dependency_links.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr.egg-info/entry_points.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/paddleocr.egg-info/top_level.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/collate_fn.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/ColorJitter.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/abinet_aug.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/copy_paste.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/ct_process.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/drrg_targets.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/east_process.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/fce_aug.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/fce_targets.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/frost_img/frost1.jpg +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/frost_img/frost2.png +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/frost_img/frost3.png +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/frost_img/frost4.jpg +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/frost_img/frost5.jpg +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/frost_img/frost6.jpg +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/iaa_augment.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/label_ops.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/latex_ocr_aug.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/make_border_map.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/make_pse_gt.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/make_shrink_map.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/operators.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/pg_process.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/randaugment.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/random_crop_data.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/rec_img_aug.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/sast_process.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/ssl_img_aug.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/table_ops.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/text_image_aug/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/text_image_aug/augment.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/text_image_aug/warp_mls.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/unimernet_aug.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/vqa/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/vqa/augment.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/vqa/token/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/vqa/token/vqa_re_convert.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/vqa/token/vqa_token_chunk.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/vqa/token/vqa_token_pad.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/imaug/vqa/token/vqa_token_relation.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/latexocr_dataset.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/lmdb_dataset.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/multi_scale_sampler.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/pgnet_dataset.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/pubtab_dataset.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/data/simple_dataset.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/cls_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/ct_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/db_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/drrg_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/east_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/fce_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/locality_aware_nms.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/pg_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/picodet_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/pse_postprocess/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/pse_postprocess/pse/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/pse_postprocess/pse/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/pse_postprocess/pse/pse.pyx +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/pse_postprocess/pse/setup.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/pse_postprocess/pse_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/sast_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/table_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/vqa_token_re_layoutlm_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/postprocess/vqa_token_ser_layoutlm_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/EN_symbol_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ar_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/arabic_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/be_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/bengali_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/bg_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/bm_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/bm_dict_add.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/bn_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/chinese_cht_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/confuse.pkl +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/cyrillic_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/devanagari_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/en_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/fa_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/french_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/german_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/gujarati_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/hebrew_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/hi_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/it_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/japan_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ka_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/kazakh_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/kie_dict/xfund_class_list.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/korean_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/latex_ocr_tokenizer.json +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/latex_symbol_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/latin_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/layout_dict/layout_cdla_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/layout_dict/layout_publaynet_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/layout_dict/layout_table_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/mr_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ne_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/oc_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/parseq_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ppocrv4_doc_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ppocrv5_arabic_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ppocrv5_cyrillic_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ppocrv5_devanagari_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ppocrv5_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ppocrv5_el_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ppocrv5_en_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ppocrv5_eslav_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ppocrv5_korean_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ppocrv5_latin_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ppocrv5_ta_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ppocrv5_te_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ppocrv5_th_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/pu_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/rs_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/rsc_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ru_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/samaritan_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/spin_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/syriac_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ta_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/table_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/table_master_structure_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/table_structure_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/table_structure_dict_ch.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/te_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/th_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ug_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/uk_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/unimernet_tokenizer/tokenizer.json +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/unimernet_tokenizer/tokenizer_config.json +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/ur_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/vi_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict/xi_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/dict90.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/e2e_metric/Deteval.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/e2e_metric/polygon_fast.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/e2e_utils/extract_batchsize.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/e2e_utils/extract_textpoint_fast.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/e2e_utils/extract_textpoint_slow.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/e2e_utils/pgnet_pp_utils.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/e2e_utils/visual.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/en_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/export_model.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/formula_utils/math_txt2pkl.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/formula_utils/unimernet_data_convert.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/gen_label.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/ic15_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/iou.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/loggers/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/loggers/base_logger.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/loggers/loggers.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/loggers/wandb_logger.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/logging.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/network.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/poly_nms.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/ppocr_keys_v1.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/profiler.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/save_load.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/stats.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/utility.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppocr/utils/visual.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/kie/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/kie/README_ch.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/kie/how_to_do_kie.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/kie/how_to_do_kie_en.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/kie/predict_kie_token_ser.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/kie/predict_kie_token_ser_re.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/kie/requirements.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/kie/tools/eval_with_label_end2end.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/kie/tools/trans_funsd_label.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/kie/tools/trans_xfun_data.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/layout/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/layout/README_ch.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/layout/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/layout/predict_layout.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/pdf2word/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/pdf2word/icons/chinese.png +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/pdf2word/icons/english.png +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/pdf2word/icons/folder-open.png +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/pdf2word/icons/folder-plus.png +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/pdf2word/pdf2word.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/predict_system.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/recovery/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/recovery/README_ch.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/recovery/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/recovery/recovery_to_doc.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/recovery/recovery_to_markdown.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/recovery/requirements.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/recovery/table_process.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/README_ch.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/convert_label2html.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/eval_table.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/matcher.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/predict_structure.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/predict_table.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/table_master_match.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/table_metric/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/table_metric/parallel.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/table_metric/table_metric.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/tablepyxl/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/tablepyxl/style.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/table/tablepyxl/tablepyxl.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/ppstructure/utility.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/readme/README_es.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/readme/README_fr.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/readme/README_ja.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/readme/README_ko.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/readme/README_tcn.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/requirements.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/setup.cfg +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/setup.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/end2end/convert_ppocr_label.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/end2end/draw_html.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/end2end/eval_end2end.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/end2end/readme.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/eval.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/export_center.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/export_model.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer/predict_cls.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer/predict_det.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer/predict_e2e.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer/predict_rec.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer/predict_sr.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer/predict_system.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer/utility.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer_cls.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer_det.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer_e2e.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer_kie.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer_kie_token_ser.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer_kie_token_ser_re.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer_rec.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer_sr.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/infer_table.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/naive_sync_bn.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/program.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/test_hubserving.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.1}/tools/train.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: paddleocr
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.4.1
|
|
4
4
|
Summary: Awesome multilingual OCR and document parsing toolkits based on PaddlePaddle
|
|
5
5
|
Author-email: PaddlePaddle <paddleocr@baidu.com>
|
|
6
6
|
Maintainer-email: PaddlePaddle <paddleocr@baidu.com>
|
|
@@ -18,18 +18,18 @@ 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[ocr-core]<3.
|
|
21
|
+
Requires-Dist: paddlex[ocr-core]<3.5.0,>=3.4.0
|
|
22
22
|
Requires-Dist: PyYAML>=6
|
|
23
23
|
Requires-Dist: requests
|
|
24
24
|
Requires-Dist: typing-extensions>=4.12
|
|
25
25
|
Provides-Extra: doc-parser
|
|
26
|
-
Requires-Dist: paddlex[genai-client,ocr]<3.
|
|
26
|
+
Requires-Dist: paddlex[genai-client,ocr]<3.5.0,>=3.4.0; extra == "doc-parser"
|
|
27
27
|
Provides-Extra: ie
|
|
28
|
-
Requires-Dist: paddlex[ie]<3.
|
|
28
|
+
Requires-Dist: paddlex[ie]<3.5.0,>=3.4.0; extra == "ie"
|
|
29
29
|
Provides-Extra: trans
|
|
30
|
-
Requires-Dist: paddlex[trans]<3.
|
|
30
|
+
Requires-Dist: paddlex[trans]<3.5.0,>=3.4.0; extra == "trans"
|
|
31
31
|
Provides-Extra: all
|
|
32
|
-
Requires-Dist: paddlex[genai-client,ie,ocr,trans]<3.
|
|
32
|
+
Requires-Dist: paddlex[genai-client,ie,ocr,trans]<3.5.0,>=3.4.0; extra == "all"
|
|
33
33
|
|
|
34
34
|
<div align="center">
|
|
35
35
|
<p>
|
|
@@ -91,7 +91,6 @@ English | [简体中文](./readme/README_cn.md) | [繁體中文](./readme/README
|
|
|
91
91
|
[](https://aistudio.baidu.com/community/app/518494/webUI)
|
|
92
92
|
[](https://aistudio.baidu.com/community/app/518493/webUI)
|
|
93
93
|
|
|
94
|
-
|
|
95
94
|
- **PaddleOCR-VL - Multilingual Document Parsing via a 0.9B VLM**
|
|
96
95
|
**The SOTA and resource-efficient model tailored for document parsing**, that supports 109 languages and excels in recognizing complex elements (e.g., text, tables, formulas, and charts), while maintaining minimal resource consumption.
|
|
97
96
|
|
|
@@ -115,11 +114,21 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
|
|
|
115
114
|
|
|
116
115
|
## 📣 Recent updates
|
|
117
116
|
|
|
118
|
-
### 🔥🔥
|
|
117
|
+
### 🔥🔥 2026.1.29: PaddleOCR 3.4.0 released, includes:
|
|
118
|
+
|
|
119
|
+
- Released PaddleOCR-VL-1.5:
|
|
120
|
+
- **PaddleOCR-VL-1.5** is a new iterative version of the PaddleOCR-VL series. Based on comprehensive optimization of the core capabilities of version 1.0, **the model achieves 94.5% accuracy on the authoritative document parsing benchmark OmniDocBench v1.5**, surpassing top global general-purpose large models and document parsing–specific models.
|
|
121
|
+
|
|
122
|
+
PaddleOCR-VL-1.5 innovatively supports irregular-shaped bounding box localization of document elements, enabling excellent performance in real-world application scenarios such as scanning, skew, warping, screen-photography, and complex illumination, achieving comprehensive SOTA performance. In addition, the model further integrates seal recognition and spotting tasks, with key metrics continuing to lead mainstream models.
|
|
123
|
+
|
|
124
|
+
You can use it online on the [PaddleOCR official website](https://www.paddleocr.com) or call the model API.
|
|
125
|
+
|
|
126
|
+
<details>
|
|
127
|
+
<summary><strong>2025.10.16: Release of PaddleOCR 3.3.0</strong></summary>
|
|
119
128
|
|
|
120
129
|
- Released PaddleOCR-VL:
|
|
121
130
|
- **Model Introduction**:
|
|
122
|
-
- **PaddleOCR-VL** is a SOTA and resource-efficient model tailored for document parsing. Its core component is PaddleOCR-VL-0.9B, a compact yet powerful vision-language model (VLM) that integrates a NaViT-style dynamic resolution visual encoder with the ERNIE-4.5-0.3B language model to enable accurate element recognition. **This innovative model efficiently supports 109 languages and excels in recognizing complex elements (e.g., text, tables, formulas, and charts), while maintaining minimal resource consumption**. Through comprehensive evaluations on widely used public benchmarks and in-house benchmarks, PaddleOCR-VL achieves SOTA performance in both page-level document parsing and element-level recognition. It significantly outperforms existing solutions, exhibits strong competitiveness against top-tier VLMs, and delivers fast inference speeds. These strengths make it highly suitable for practical deployment in real-world scenarios. The model has been released on [HuggingFace](https://huggingface.co/PaddlePaddle/PaddleOCR-VL). Everyone is welcome to download and use it! More introduction
|
|
131
|
+
- **PaddleOCR-VL** is a SOTA and resource-efficient model tailored for document parsing. Its core component is PaddleOCR-VL-0.9B, a compact yet powerful vision-language model (VLM) that integrates a NaViT-style dynamic resolution visual encoder with the ERNIE-4.5-0.3B language model to enable accurate element recognition. **This innovative model efficiently supports 109 languages and excels in recognizing complex elements (e.g., text, tables, formulas, and charts), while maintaining minimal resource consumption**. Through comprehensive evaluations on widely used public benchmarks and in-house benchmarks, PaddleOCR-VL achieves SOTA performance in both page-level document parsing and element-level recognition. It significantly outperforms existing solutions, exhibits strong competitiveness against top-tier VLMs, and delivers fast inference speeds. These strengths make it highly suitable for practical deployment in real-world scenarios. The model has been released on [HuggingFace](https://huggingface.co/PaddlePaddle/PaddleOCR-VL). Everyone is welcome to download and use it! More introduction information can be found in [PaddleOCR-VL](https://www.paddleocr.ai/latest/version3.x/algorithm/PaddleOCR-VL/PaddleOCR-VL.html).
|
|
123
132
|
|
|
124
133
|
- **Core Features**:
|
|
125
134
|
- **Compact yet Powerful VLM Architecture**: We present a novel vision-language model that is specifically designed for resource-efficient inference, achieving outstanding performance in element recognition. By integrating a NaViT-style dynamic high-resolution visual encoder with the lightweight ERNIE-4.5-0.3B language model, we significantly enhance the model’s recognition capabilities and decoding efficiency. This integration maintains high accuracy while reducing computational demands, making it well-suited for efficient and practical document processing applications.
|
|
@@ -129,6 +138,8 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
|
|
|
129
138
|
- Released PP-OCRv5 Multilingual Recognition Model:
|
|
130
139
|
- Improved the accuracy and coverage of Latin script recognition; added support for Cyrillic, Arabic, Devanagari, Telugu, Tamil, and other language systems, covering recognition of 109 languages. The model has only 2M parameters, and the accuracy of some models has increased by over 40% compared to the previous generation.
|
|
131
140
|
|
|
141
|
+
</details>
|
|
142
|
+
|
|
132
143
|
|
|
133
144
|
<details>
|
|
134
145
|
<summary><strong>2025.08.21: Release of PaddleOCR 3.2.0</strong></summary>
|
|
@@ -450,7 +461,7 @@ for res in output:
|
|
|
450
461
|
|
|
451
462
|
### 5. Chinese Heterogeneous AI Accelerators
|
|
452
463
|
- [Huawei Ascend](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/other_devices_support/paddlepaddle_install_NPU.html)
|
|
453
|
-
- [
|
|
464
|
+
- [Kunlunxin](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/other_devices_support/paddlepaddle_install_XPU.html)
|
|
454
465
|
|
|
455
466
|
## 🧩 More Features
|
|
456
467
|
|
|
@@ -58,7 +58,6 @@ English | [简体中文](./readme/README_cn.md) | [繁體中文](./readme/README
|
|
|
58
58
|
[](https://aistudio.baidu.com/community/app/518494/webUI)
|
|
59
59
|
[](https://aistudio.baidu.com/community/app/518493/webUI)
|
|
60
60
|
|
|
61
|
-
|
|
62
61
|
- **PaddleOCR-VL - Multilingual Document Parsing via a 0.9B VLM**
|
|
63
62
|
**The SOTA and resource-efficient model tailored for document parsing**, that supports 109 languages and excels in recognizing complex elements (e.g., text, tables, formulas, and charts), while maintaining minimal resource consumption.
|
|
64
63
|
|
|
@@ -82,11 +81,21 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
|
|
|
82
81
|
|
|
83
82
|
## 📣 Recent updates
|
|
84
83
|
|
|
85
|
-
### 🔥🔥
|
|
84
|
+
### 🔥🔥 2026.1.29: PaddleOCR 3.4.0 released, includes:
|
|
85
|
+
|
|
86
|
+
- Released PaddleOCR-VL-1.5:
|
|
87
|
+
- **PaddleOCR-VL-1.5** is a new iterative version of the PaddleOCR-VL series. Based on comprehensive optimization of the core capabilities of version 1.0, **the model achieves 94.5% accuracy on the authoritative document parsing benchmark OmniDocBench v1.5**, surpassing top global general-purpose large models and document parsing–specific models.
|
|
88
|
+
|
|
89
|
+
PaddleOCR-VL-1.5 innovatively supports irregular-shaped bounding box localization of document elements, enabling excellent performance in real-world application scenarios such as scanning, skew, warping, screen-photography, and complex illumination, achieving comprehensive SOTA performance. In addition, the model further integrates seal recognition and spotting tasks, with key metrics continuing to lead mainstream models.
|
|
90
|
+
|
|
91
|
+
You can use it online on the [PaddleOCR official website](https://www.paddleocr.com) or call the model API.
|
|
92
|
+
|
|
93
|
+
<details>
|
|
94
|
+
<summary><strong>2025.10.16: Release of PaddleOCR 3.3.0</strong></summary>
|
|
86
95
|
|
|
87
96
|
- Released PaddleOCR-VL:
|
|
88
97
|
- **Model Introduction**:
|
|
89
|
-
- **PaddleOCR-VL** is a SOTA and resource-efficient model tailored for document parsing. Its core component is PaddleOCR-VL-0.9B, a compact yet powerful vision-language model (VLM) that integrates a NaViT-style dynamic resolution visual encoder with the ERNIE-4.5-0.3B language model to enable accurate element recognition. **This innovative model efficiently supports 109 languages and excels in recognizing complex elements (e.g., text, tables, formulas, and charts), while maintaining minimal resource consumption**. Through comprehensive evaluations on widely used public benchmarks and in-house benchmarks, PaddleOCR-VL achieves SOTA performance in both page-level document parsing and element-level recognition. It significantly outperforms existing solutions, exhibits strong competitiveness against top-tier VLMs, and delivers fast inference speeds. These strengths make it highly suitable for practical deployment in real-world scenarios. The model has been released on [HuggingFace](https://huggingface.co/PaddlePaddle/PaddleOCR-VL). Everyone is welcome to download and use it! More introduction
|
|
98
|
+
- **PaddleOCR-VL** is a SOTA and resource-efficient model tailored for document parsing. Its core component is PaddleOCR-VL-0.9B, a compact yet powerful vision-language model (VLM) that integrates a NaViT-style dynamic resolution visual encoder with the ERNIE-4.5-0.3B language model to enable accurate element recognition. **This innovative model efficiently supports 109 languages and excels in recognizing complex elements (e.g., text, tables, formulas, and charts), while maintaining minimal resource consumption**. Through comprehensive evaluations on widely used public benchmarks and in-house benchmarks, PaddleOCR-VL achieves SOTA performance in both page-level document parsing and element-level recognition. It significantly outperforms existing solutions, exhibits strong competitiveness against top-tier VLMs, and delivers fast inference speeds. These strengths make it highly suitable for practical deployment in real-world scenarios. The model has been released on [HuggingFace](https://huggingface.co/PaddlePaddle/PaddleOCR-VL). Everyone is welcome to download and use it! More introduction information can be found in [PaddleOCR-VL](https://www.paddleocr.ai/latest/version3.x/algorithm/PaddleOCR-VL/PaddleOCR-VL.html).
|
|
90
99
|
|
|
91
100
|
- **Core Features**:
|
|
92
101
|
- **Compact yet Powerful VLM Architecture**: We present a novel vision-language model that is specifically designed for resource-efficient inference, achieving outstanding performance in element recognition. By integrating a NaViT-style dynamic high-resolution visual encoder with the lightweight ERNIE-4.5-0.3B language model, we significantly enhance the model’s recognition capabilities and decoding efficiency. This integration maintains high accuracy while reducing computational demands, making it well-suited for efficient and practical document processing applications.
|
|
@@ -96,6 +105,8 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
|
|
|
96
105
|
- Released PP-OCRv5 Multilingual Recognition Model:
|
|
97
106
|
- Improved the accuracy and coverage of Latin script recognition; added support for Cyrillic, Arabic, Devanagari, Telugu, Tamil, and other language systems, covering recognition of 109 languages. The model has only 2M parameters, and the accuracy of some models has increased by over 40% compared to the previous generation.
|
|
98
107
|
|
|
108
|
+
</details>
|
|
109
|
+
|
|
99
110
|
|
|
100
111
|
<details>
|
|
101
112
|
<summary><strong>2025.08.21: Release of PaddleOCR 3.2.0</strong></summary>
|
|
@@ -417,7 +428,7 @@ for res in output:
|
|
|
417
428
|
|
|
418
429
|
### 5. Chinese Heterogeneous AI Accelerators
|
|
419
430
|
- [Huawei Ascend](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/other_devices_support/paddlepaddle_install_NPU.html)
|
|
420
|
-
- [
|
|
431
|
+
- [Kunlunxin](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/other_devices_support/paddlepaddle_install_XPU.html)
|
|
421
432
|
|
|
422
433
|
## 🧩 More Features
|
|
423
434
|
|
|
@@ -38,9 +38,9 @@ def _parse_args() -> argparse.Namespace:
|
|
|
38
38
|
)
|
|
39
39
|
parser.add_argument(
|
|
40
40
|
"--ppocr_source",
|
|
41
|
-
choices=["local", "aistudio", "self_hosted"],
|
|
41
|
+
choices=["local", "aistudio", "qianfan", "self_hosted"],
|
|
42
42
|
default=os.getenv("PADDLEOCR_MCP_PPOCR_SOURCE", "local"),
|
|
43
|
-
help="Source of PaddleOCR functionality: local (local library), aistudio (AI Studio service), self_hosted (self-hosted server).",
|
|
43
|
+
help="Source of PaddleOCR functionality: local (local library), aistudio (AI Studio service), qianfan (Qianfan service), self_hosted (self-hosted server).",
|
|
44
44
|
)
|
|
45
45
|
parser.add_argument(
|
|
46
46
|
"--http",
|
|
@@ -85,6 +85,11 @@ def _parse_args() -> argparse.Namespace:
|
|
|
85
85
|
default=os.getenv("PADDLEOCR_MCP_AISTUDIO_ACCESS_TOKEN"),
|
|
86
86
|
help="AI Studio access token (required for AI Studio).",
|
|
87
87
|
)
|
|
88
|
+
parser.add_argument(
|
|
89
|
+
"--qianfan_api_key",
|
|
90
|
+
default=os.getenv("PADDLEOCR_MCP_QIANFAN_API_KEY"),
|
|
91
|
+
help="Qianfan API key (required for Qianfan).",
|
|
92
|
+
)
|
|
88
93
|
parser.add_argument(
|
|
89
94
|
"--timeout",
|
|
90
95
|
type=int,
|
|
@@ -105,7 +110,7 @@ def _validate_args(args: argparse.Namespace) -> None:
|
|
|
105
110
|
)
|
|
106
111
|
sys.exit(2)
|
|
107
112
|
|
|
108
|
-
if args.ppocr_source in ["aistudio", "self_hosted"]:
|
|
113
|
+
if args.ppocr_source in ["aistudio", "qianfan", "self_hosted"]:
|
|
109
114
|
if not args.server_url:
|
|
110
115
|
print("Error: The server base URL is required.", file=sys.stderr)
|
|
111
116
|
print(
|
|
@@ -154,6 +159,7 @@ async def async_main() -> None:
|
|
|
154
159
|
device=args.device,
|
|
155
160
|
server_url=args.server_url,
|
|
156
161
|
aistudio_access_token=args.aistudio_access_token,
|
|
162
|
+
qianfan_api_key=args.qianfan_api_key,
|
|
157
163
|
timeout=args.timeout,
|
|
158
164
|
)
|
|
159
165
|
except Exception as e:
|
|
@@ -138,6 +138,7 @@ class PipelineHandler(abc.ABC):
|
|
|
138
138
|
device: Optional[str],
|
|
139
139
|
server_url: Optional[str],
|
|
140
140
|
aistudio_access_token: Optional[str],
|
|
141
|
+
qianfan_api_key: Optional[str],
|
|
141
142
|
timeout: Optional[int],
|
|
142
143
|
) -> None:
|
|
143
144
|
"""Initialize the pipeline handler.
|
|
@@ -149,12 +150,13 @@ class PipelineHandler(abc.ABC):
|
|
|
149
150
|
device: Device to run inference on.
|
|
150
151
|
server_url: Base URL for service mode.
|
|
151
152
|
aistudio_access_token: AI Studio access token.
|
|
153
|
+
qianfan_api_key: Qianfan API key.
|
|
152
154
|
timeout: Read timeout in seconds for HTTP requests.
|
|
153
155
|
"""
|
|
154
156
|
self._pipeline = pipeline
|
|
155
157
|
if ppocr_source == "local":
|
|
156
158
|
self._mode = "local"
|
|
157
|
-
elif ppocr_source in ("aistudio", "self_hosted"):
|
|
159
|
+
elif ppocr_source in ("aistudio", "qianfan", "self_hosted"):
|
|
158
160
|
self._mode = "service"
|
|
159
161
|
else:
|
|
160
162
|
raise ValueError(f"Unknown PaddleOCR source {repr(ppocr_source)}")
|
|
@@ -163,6 +165,7 @@ class PipelineHandler(abc.ABC):
|
|
|
163
165
|
self._device = device
|
|
164
166
|
self._server_url = server_url
|
|
165
167
|
self._aistudio_access_token = aistudio_access_token
|
|
168
|
+
self._qianfan_api_key = qianfan_api_key
|
|
166
169
|
self._timeout = timeout or 60
|
|
167
170
|
|
|
168
171
|
if self._mode == "local":
|
|
@@ -472,7 +475,9 @@ class SimpleInferencePipelineHandler(PipelineHandler):
|
|
|
472
475
|
raise RuntimeError("Server URL not configured")
|
|
473
476
|
|
|
474
477
|
endpoint = self._get_service_endpoint()
|
|
475
|
-
|
|
478
|
+
if endpoint:
|
|
479
|
+
endpoint = "/" + endpoint
|
|
480
|
+
url = f"{self._server_url.rstrip('/')}{endpoint}"
|
|
476
481
|
|
|
477
482
|
payload = self._prepare_service_payload(processed_input, file_type, **kwargs)
|
|
478
483
|
headers = {"Content-Type": "application/json"}
|
|
@@ -481,6 +486,10 @@ class SimpleInferencePipelineHandler(PipelineHandler):
|
|
|
481
486
|
if not self._aistudio_access_token:
|
|
482
487
|
raise RuntimeError("Missing AI Studio access token")
|
|
483
488
|
headers["Authorization"] = f"token {self._aistudio_access_token}"
|
|
489
|
+
elif self._ppocr_source == "qianfan":
|
|
490
|
+
if not self._qianfan_api_key:
|
|
491
|
+
raise RuntimeError("Missing Qianfan API key")
|
|
492
|
+
headers["Authorization"] = f"Bearer {self._qianfan_api_key}"
|
|
484
493
|
|
|
485
494
|
try:
|
|
486
495
|
timeout = httpx.Timeout(
|
|
@@ -22,12 +22,22 @@ from .base import PaddleXPipelineWrapper, PipelineCLISubcommandExecutor
|
|
|
22
22
|
from .utils import create_config_from_structure
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
_AVAILABLE_PIPELINE_VERSIONS = ["v1", "v1.5"]
|
|
26
|
+
_DEFAULT_PIPELINE_VERSION = "v1.5"
|
|
27
|
+
_SUPPORTED_VL_BACKENDS = [
|
|
28
|
+
"native",
|
|
29
|
+
"vllm-server",
|
|
30
|
+
"sglang-server",
|
|
31
|
+
"fastdeploy-server",
|
|
32
|
+
"mlx-vlm-server",
|
|
33
|
+
"llama-cpp-server",
|
|
34
|
+
]
|
|
26
35
|
|
|
27
36
|
|
|
28
37
|
class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
29
38
|
def __init__(
|
|
30
39
|
self,
|
|
40
|
+
pipeline_version=_DEFAULT_PIPELINE_VERSION,
|
|
31
41
|
layout_detection_model_name=None,
|
|
32
42
|
layout_detection_model_dir=None,
|
|
33
43
|
layout_threshold=None,
|
|
@@ -49,9 +59,19 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
49
59
|
use_doc_unwarping=None,
|
|
50
60
|
use_layout_detection=None,
|
|
51
61
|
use_chart_recognition=None,
|
|
62
|
+
use_seal_recognition=None,
|
|
63
|
+
use_ocr_for_image_block=None,
|
|
52
64
|
format_block_content=None,
|
|
65
|
+
merge_layout_blocks=None,
|
|
66
|
+
markdown_ignore_labels=None,
|
|
67
|
+
use_queues=None,
|
|
53
68
|
**kwargs,
|
|
54
69
|
):
|
|
70
|
+
if pipeline_version not in _AVAILABLE_PIPELINE_VERSIONS:
|
|
71
|
+
raise ValueError(
|
|
72
|
+
f"Invalid pipeline version: {pipeline_version}. Supported versions are {_AVAILABLE_PIPELINE_VERSIONS}."
|
|
73
|
+
)
|
|
74
|
+
|
|
55
75
|
if vl_rec_backend is not None and vl_rec_backend not in _SUPPORTED_VL_BACKENDS:
|
|
56
76
|
raise ValueError(
|
|
57
77
|
f"Invalid backend for the VL recognition module: {vl_rec_backend}. Supported values are {_SUPPORTED_VL_BACKENDS}."
|
|
@@ -59,14 +79,21 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
59
79
|
|
|
60
80
|
params = locals().copy()
|
|
61
81
|
params.pop("self")
|
|
82
|
+
params.pop("pipeline_version")
|
|
62
83
|
params.pop("kwargs")
|
|
63
84
|
self._params = params
|
|
85
|
+
self.pipeline_version = pipeline_version
|
|
64
86
|
|
|
65
87
|
super().__init__(**kwargs)
|
|
66
88
|
|
|
67
89
|
@property
|
|
68
90
|
def _paddlex_pipeline_name(self):
|
|
69
|
-
|
|
91
|
+
if self.pipeline_version == "v1":
|
|
92
|
+
return "PaddleOCR-VL"
|
|
93
|
+
elif self.pipeline_version == "v1.5":
|
|
94
|
+
return "PaddleOCR-VL-1.5"
|
|
95
|
+
else:
|
|
96
|
+
raise AssertionError(f"Unknown pipeline version: {self.pipeline_version}")
|
|
70
97
|
|
|
71
98
|
def predict_iter(
|
|
72
99
|
self,
|
|
@@ -76,10 +103,13 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
76
103
|
use_doc_unwarping=None,
|
|
77
104
|
use_layout_detection=None,
|
|
78
105
|
use_chart_recognition=None,
|
|
106
|
+
use_seal_recognition=None,
|
|
107
|
+
use_ocr_for_image_block=None,
|
|
79
108
|
layout_threshold=None,
|
|
80
109
|
layout_nms=None,
|
|
81
110
|
layout_unclip_ratio=None,
|
|
82
111
|
layout_merge_bboxes_mode=None,
|
|
112
|
+
layout_shape_mode="auto",
|
|
83
113
|
use_queues=None,
|
|
84
114
|
prompt_label=None,
|
|
85
115
|
format_block_content=None,
|
|
@@ -88,6 +118,10 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
88
118
|
top_p=None,
|
|
89
119
|
min_pixels=None,
|
|
90
120
|
max_pixels=None,
|
|
121
|
+
max_new_tokens=None,
|
|
122
|
+
merge_layout_blocks=None,
|
|
123
|
+
markdown_ignore_labels=None,
|
|
124
|
+
vlm_extra_args=None,
|
|
91
125
|
**kwargs,
|
|
92
126
|
):
|
|
93
127
|
return self.paddlex_pipeline.predict(
|
|
@@ -96,10 +130,13 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
96
130
|
use_doc_unwarping=use_doc_unwarping,
|
|
97
131
|
use_layout_detection=use_layout_detection,
|
|
98
132
|
use_chart_recognition=use_chart_recognition,
|
|
133
|
+
use_seal_recognition=use_seal_recognition,
|
|
134
|
+
use_ocr_for_image_block=use_ocr_for_image_block,
|
|
99
135
|
layout_threshold=layout_threshold,
|
|
100
136
|
layout_nms=layout_nms,
|
|
101
137
|
layout_unclip_ratio=layout_unclip_ratio,
|
|
102
138
|
layout_merge_bboxes_mode=layout_merge_bboxes_mode,
|
|
139
|
+
layout_shape_mode=layout_shape_mode,
|
|
103
140
|
use_queues=use_queues,
|
|
104
141
|
prompt_label=prompt_label,
|
|
105
142
|
format_block_content=format_block_content,
|
|
@@ -108,6 +145,10 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
108
145
|
top_p=top_p,
|
|
109
146
|
min_pixels=min_pixels,
|
|
110
147
|
max_pixels=max_pixels,
|
|
148
|
+
max_new_tokens=max_new_tokens,
|
|
149
|
+
merge_layout_blocks=merge_layout_blocks,
|
|
150
|
+
markdown_ignore_labels=markdown_ignore_labels,
|
|
151
|
+
vlm_extra_args=vlm_extra_args,
|
|
111
152
|
**kwargs,
|
|
112
153
|
)
|
|
113
154
|
|
|
@@ -119,10 +160,13 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
119
160
|
use_doc_unwarping=None,
|
|
120
161
|
use_layout_detection=None,
|
|
121
162
|
use_chart_recognition=None,
|
|
163
|
+
use_seal_recognition=None,
|
|
164
|
+
use_ocr_for_image_block=None,
|
|
122
165
|
layout_threshold=None,
|
|
123
166
|
layout_nms=None,
|
|
124
167
|
layout_unclip_ratio=None,
|
|
125
168
|
layout_merge_bboxes_mode=None,
|
|
169
|
+
layout_shape_mode="auto",
|
|
126
170
|
use_queues=None,
|
|
127
171
|
prompt_label=None,
|
|
128
172
|
format_block_content=None,
|
|
@@ -131,6 +175,10 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
131
175
|
top_p=None,
|
|
132
176
|
min_pixels=None,
|
|
133
177
|
max_pixels=None,
|
|
178
|
+
max_new_tokens=None,
|
|
179
|
+
merge_layout_blocks=None,
|
|
180
|
+
markdown_ignore_labels=None,
|
|
181
|
+
vlm_extra_args=None,
|
|
134
182
|
**kwargs,
|
|
135
183
|
):
|
|
136
184
|
return list(
|
|
@@ -140,10 +188,13 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
140
188
|
use_doc_unwarping=use_doc_unwarping,
|
|
141
189
|
use_layout_detection=use_layout_detection,
|
|
142
190
|
use_chart_recognition=use_chart_recognition,
|
|
191
|
+
use_seal_recognition=use_seal_recognition,
|
|
192
|
+
use_ocr_for_image_block=use_ocr_for_image_block,
|
|
143
193
|
layout_threshold=layout_threshold,
|
|
144
194
|
layout_nms=layout_nms,
|
|
145
195
|
layout_unclip_ratio=layout_unclip_ratio,
|
|
146
196
|
layout_merge_bboxes_mode=layout_merge_bboxes_mode,
|
|
197
|
+
layout_shape_mode=layout_shape_mode,
|
|
147
198
|
use_queues=use_queues,
|
|
148
199
|
prompt_label=prompt_label,
|
|
149
200
|
format_block_content=format_block_content,
|
|
@@ -152,6 +203,10 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
152
203
|
top_p=top_p,
|
|
153
204
|
min_pixels=min_pixels,
|
|
154
205
|
max_pixels=max_pixels,
|
|
206
|
+
max_new_tokens=max_new_tokens,
|
|
207
|
+
merge_layout_blocks=merge_layout_blocks,
|
|
208
|
+
markdown_ignore_labels=markdown_ignore_labels,
|
|
209
|
+
vlm_extra_args=vlm_extra_args,
|
|
155
210
|
**kwargs,
|
|
156
211
|
)
|
|
157
212
|
)
|
|
@@ -159,6 +214,18 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
159
214
|
def concatenate_markdown_pages(self, markdown_list):
|
|
160
215
|
return self.paddlex_pipeline.concatenate_markdown_pages(markdown_list)
|
|
161
216
|
|
|
217
|
+
def restructure_pages(
|
|
218
|
+
self, res_list, merge_tables=True, relevel_titles=True, concatenate_pages=False
|
|
219
|
+
):
|
|
220
|
+
return list(
|
|
221
|
+
self.paddlex_pipeline.restructure_pages(
|
|
222
|
+
res_list,
|
|
223
|
+
merge_tables=merge_tables,
|
|
224
|
+
relevel_titles=relevel_titles,
|
|
225
|
+
concatenate_pages=concatenate_pages,
|
|
226
|
+
)
|
|
227
|
+
)
|
|
228
|
+
|
|
162
229
|
@classmethod
|
|
163
230
|
def get_cli_subcommand_executor(cls):
|
|
164
231
|
return PaddleOCRVLCLISubcommandExecutor()
|
|
@@ -176,6 +243,9 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
176
243
|
"use_layout_detection": self._params["use_layout_detection"],
|
|
177
244
|
"use_chart_recognition": self._params["use_chart_recognition"],
|
|
178
245
|
"format_block_content": self._params["format_block_content"],
|
|
246
|
+
"merge_layout_blocks": self._params["merge_layout_blocks"],
|
|
247
|
+
"markdown_ignore_labels": self._params["markdown_ignore_labels"],
|
|
248
|
+
"use_queues": self._params["use_queues"],
|
|
179
249
|
"SubModules.LayoutDetection.model_name": self._params[
|
|
180
250
|
"layout_detection_model_name"
|
|
181
251
|
],
|
|
@@ -219,6 +289,8 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
219
289
|
"SubPipelines.DocPreprocessor.SubModules.DocUnwarping.model_dir": self._params[
|
|
220
290
|
"doc_unwarping_model_dir"
|
|
221
291
|
],
|
|
292
|
+
"use_seal_recognition": self._params["use_seal_recognition"],
|
|
293
|
+
"use_ocr_for_image_block": self._params["use_ocr_for_image_block"],
|
|
222
294
|
}
|
|
223
295
|
return create_config_from_structure(STRUCTURE)
|
|
224
296
|
|
|
@@ -231,6 +303,13 @@ class PaddleOCRVLCLISubcommandExecutor(PipelineCLISubcommandExecutor):
|
|
|
231
303
|
def _update_subparser(self, subparser):
|
|
232
304
|
add_simple_inference_args(subparser)
|
|
233
305
|
|
|
306
|
+
subparser.add_argument(
|
|
307
|
+
"--pipeline_version",
|
|
308
|
+
type=str,
|
|
309
|
+
default=_DEFAULT_PIPELINE_VERSION,
|
|
310
|
+
choices=_AVAILABLE_PIPELINE_VERSIONS,
|
|
311
|
+
)
|
|
312
|
+
|
|
234
313
|
subparser.add_argument(
|
|
235
314
|
"--layout_detection_model_name",
|
|
236
315
|
type=str,
|
|
@@ -340,16 +419,45 @@ class PaddleOCRVLCLISubcommandExecutor(PipelineCLISubcommandExecutor):
|
|
|
340
419
|
type=str2bool,
|
|
341
420
|
help="Whether to use chart recognition.",
|
|
342
421
|
)
|
|
422
|
+
subparser.add_argument(
|
|
423
|
+
"--use_seal_recognition",
|
|
424
|
+
type=str2bool,
|
|
425
|
+
help="Whether to use seal recognition.",
|
|
426
|
+
)
|
|
427
|
+
subparser.add_argument(
|
|
428
|
+
"--use_ocr_for_image_block",
|
|
429
|
+
type=str2bool,
|
|
430
|
+
help="Whether to use OCR for image blocks.",
|
|
431
|
+
)
|
|
343
432
|
subparser.add_argument(
|
|
344
433
|
"--format_block_content",
|
|
345
434
|
type=str2bool,
|
|
346
435
|
help="Whether to format block content to Markdown.",
|
|
347
436
|
)
|
|
437
|
+
subparser.add_argument(
|
|
438
|
+
"--merge_layout_blocks",
|
|
439
|
+
type=str2bool,
|
|
440
|
+
help="Whether to merge layout blocks.",
|
|
441
|
+
)
|
|
442
|
+
subparser.add_argument(
|
|
443
|
+
"--markdown_ignore_labels",
|
|
444
|
+
type=str,
|
|
445
|
+
nargs="+",
|
|
446
|
+
help="List of layout labels to ignore in Markdown output.",
|
|
447
|
+
)
|
|
448
|
+
|
|
348
449
|
subparser.add_argument(
|
|
349
450
|
"--use_queues",
|
|
350
451
|
type=str2bool,
|
|
351
452
|
help="Whether to use queues for asynchronous processing.",
|
|
352
453
|
)
|
|
454
|
+
|
|
455
|
+
subparser.add_argument(
|
|
456
|
+
"--layout_shape_mode",
|
|
457
|
+
type=str,
|
|
458
|
+
default="auto",
|
|
459
|
+
help="Mode for layout shape.",
|
|
460
|
+
)
|
|
353
461
|
subparser.add_argument(
|
|
354
462
|
"--prompt_label",
|
|
355
463
|
type=str,
|
|
@@ -380,6 +488,11 @@ class PaddleOCRVLCLISubcommandExecutor(PipelineCLISubcommandExecutor):
|
|
|
380
488
|
type=int,
|
|
381
489
|
help="Maximum pixels for image preprocessing for the VLM.",
|
|
382
490
|
)
|
|
491
|
+
subparser.add_argument(
|
|
492
|
+
"--max_new_tokens",
|
|
493
|
+
type=int,
|
|
494
|
+
help="Maximum number of tokens generated by the VLM.",
|
|
495
|
+
)
|
|
383
496
|
|
|
384
497
|
def execute_with_args(self, args):
|
|
385
498
|
params = get_subcommand_args(args)
|
|
@@ -387,12 +500,13 @@ class PaddleOCRVLCLISubcommandExecutor(PipelineCLISubcommandExecutor):
|
|
|
387
500
|
PaddleOCRVL,
|
|
388
501
|
params,
|
|
389
502
|
predict_param_names={
|
|
390
|
-
"
|
|
503
|
+
"layout_shape_mode",
|
|
391
504
|
"prompt_label",
|
|
392
505
|
"repetition_penalty",
|
|
393
506
|
"temperature",
|
|
394
507
|
"top_p",
|
|
395
508
|
"min_pixels",
|
|
396
509
|
"max_pixels",
|
|
510
|
+
"max_new_tokens",
|
|
397
511
|
},
|
|
398
512
|
)
|
|
@@ -91,6 +91,8 @@ class PPStructureV3(PaddleXPipelineWrapper):
|
|
|
91
91
|
use_formula_recognition=None,
|
|
92
92
|
use_chart_recognition=None,
|
|
93
93
|
use_region_detection=None,
|
|
94
|
+
format_block_content=None,
|
|
95
|
+
markdown_ignore_labels=None,
|
|
94
96
|
lang=None,
|
|
95
97
|
ocr_version=None,
|
|
96
98
|
**kwargs,
|
|
@@ -152,6 +154,7 @@ class PPStructureV3(PaddleXPipelineWrapper):
|
|
|
152
154
|
use_formula_recognition=None,
|
|
153
155
|
use_chart_recognition=None,
|
|
154
156
|
use_region_detection=None,
|
|
157
|
+
format_block_content=None,
|
|
155
158
|
layout_threshold=None,
|
|
156
159
|
layout_nms=None,
|
|
157
160
|
layout_unclip_ratio=None,
|
|
@@ -174,6 +177,7 @@ class PPStructureV3(PaddleXPipelineWrapper):
|
|
|
174
177
|
use_ocr_results_with_table_cells=True,
|
|
175
178
|
use_e2e_wired_table_rec_model=False,
|
|
176
179
|
use_e2e_wireless_table_rec_model=True,
|
|
180
|
+
markdown_ignore_labels=None,
|
|
177
181
|
**kwargs,
|
|
178
182
|
):
|
|
179
183
|
return self.paddlex_pipeline.predict(
|
|
@@ -186,6 +190,7 @@ class PPStructureV3(PaddleXPipelineWrapper):
|
|
|
186
190
|
use_formula_recognition=use_formula_recognition,
|
|
187
191
|
use_chart_recognition=use_chart_recognition,
|
|
188
192
|
use_region_detection=use_region_detection,
|
|
193
|
+
format_block_content=format_block_content,
|
|
189
194
|
layout_threshold=layout_threshold,
|
|
190
195
|
layout_nms=layout_nms,
|
|
191
196
|
layout_unclip_ratio=layout_unclip_ratio,
|
|
@@ -208,6 +213,7 @@ class PPStructureV3(PaddleXPipelineWrapper):
|
|
|
208
213
|
use_ocr_results_with_table_cells=use_ocr_results_with_table_cells,
|
|
209
214
|
use_e2e_wired_table_rec_model=use_e2e_wired_table_rec_model,
|
|
210
215
|
use_e2e_wireless_table_rec_model=use_e2e_wireless_table_rec_model,
|
|
216
|
+
markdown_ignore_labels=markdown_ignore_labels,
|
|
211
217
|
**kwargs,
|
|
212
218
|
)
|
|
213
219
|
|
|
@@ -223,6 +229,7 @@ class PPStructureV3(PaddleXPipelineWrapper):
|
|
|
223
229
|
use_formula_recognition=None,
|
|
224
230
|
use_chart_recognition=None,
|
|
225
231
|
use_region_detection=None,
|
|
232
|
+
format_block_content=None,
|
|
226
233
|
layout_threshold=None,
|
|
227
234
|
layout_nms=None,
|
|
228
235
|
layout_unclip_ratio=None,
|
|
@@ -245,6 +252,7 @@ class PPStructureV3(PaddleXPipelineWrapper):
|
|
|
245
252
|
use_ocr_results_with_table_cells=True,
|
|
246
253
|
use_e2e_wired_table_rec_model=False,
|
|
247
254
|
use_e2e_wireless_table_rec_model=True,
|
|
255
|
+
markdown_ignore_labels=None,
|
|
248
256
|
**kwargs,
|
|
249
257
|
):
|
|
250
258
|
return list(
|
|
@@ -258,6 +266,7 @@ class PPStructureV3(PaddleXPipelineWrapper):
|
|
|
258
266
|
use_formula_recognition=use_formula_recognition,
|
|
259
267
|
use_chart_recognition=use_chart_recognition,
|
|
260
268
|
use_region_detection=use_region_detection,
|
|
269
|
+
format_block_content=format_block_content,
|
|
261
270
|
layout_threshold=layout_threshold,
|
|
262
271
|
layout_nms=layout_nms,
|
|
263
272
|
layout_unclip_ratio=layout_unclip_ratio,
|
|
@@ -280,6 +289,7 @@ class PPStructureV3(PaddleXPipelineWrapper):
|
|
|
280
289
|
use_ocr_results_with_table_cells=use_ocr_results_with_table_cells,
|
|
281
290
|
use_e2e_wired_table_rec_model=use_e2e_wired_table_rec_model,
|
|
282
291
|
use_e2e_wireless_table_rec_model=use_e2e_wireless_table_rec_model,
|
|
292
|
+
markdown_ignore_labels=markdown_ignore_labels,
|
|
283
293
|
**kwargs,
|
|
284
294
|
)
|
|
285
295
|
)
|
|
@@ -309,6 +319,8 @@ class PPStructureV3(PaddleXPipelineWrapper):
|
|
|
309
319
|
"use_formula_recognition": self._params["use_formula_recognition"],
|
|
310
320
|
"use_chart_recognition": self._params["use_chart_recognition"],
|
|
311
321
|
"use_region_detection": self._params["use_region_detection"],
|
|
322
|
+
"format_block_content": self._params["format_block_content"],
|
|
323
|
+
"markdown_ignore_labels": self._params["markdown_ignore_labels"],
|
|
312
324
|
"SubModules.LayoutDetection.model_name": self._params[
|
|
313
325
|
"layout_detection_model_name"
|
|
314
326
|
],
|
|
@@ -997,6 +1009,18 @@ class PPStructureV3CLISubcommandExecutor(PipelineCLISubcommandExecutor):
|
|
|
997
1009
|
help="Whether to use region detection.",
|
|
998
1010
|
)
|
|
999
1011
|
|
|
1012
|
+
subparser.add_argument(
|
|
1013
|
+
"--format_block_content",
|
|
1014
|
+
type=str2bool,
|
|
1015
|
+
help="Whether to format block content to Markdown.",
|
|
1016
|
+
)
|
|
1017
|
+
subparser.add_argument(
|
|
1018
|
+
"--markdown_ignore_labels",
|
|
1019
|
+
type=str,
|
|
1020
|
+
nargs="+",
|
|
1021
|
+
help="List of layout labels to ignore in Markdown output.",
|
|
1022
|
+
)
|
|
1023
|
+
|
|
1000
1024
|
def execute_with_args(self, args):
|
|
1001
1025
|
params = get_subcommand_args(args)
|
|
1002
1026
|
perform_simple_inference(
|