paddleocr 3.3.3__tar.gz → 3.4.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.3.3 → paddleocr-3.4.0}/PKG-INFO +6 -6
- {paddleocr-3.3.3 → paddleocr-3.4.0}/mcp_server/paddleocr_mcp/__main__.py +9 -3
- {paddleocr-3.3.3 → paddleocr-3.4.0}/mcp_server/paddleocr_mcp/pipelines.py +11 -2
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_pipelines/paddleocr_vl.py +116 -3
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_pipelines/pp_structurev3.py +24 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr.egg-info/PKG-INFO +6 -6
- paddleocr-3.4.0/paddleocr.egg-info/requires.txt +16 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/rec_postprocess.py +7 -1
- {paddleocr-3.3.3 → paddleocr-3.4.0}/pyproject.toml +5 -5
- paddleocr-3.3.3/paddleocr.egg-info/requires.txt +0 -16
- {paddleocr-3.3.3 → paddleocr-3.4.0}/.lycheeignore +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/CNAME +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/LICENSE +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/MANIFEST.in +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/awesome_projects.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/mcp_server/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/mcp_server/README_en.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/mcp_server/paddleocr_mcp/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/mcp_server/paddleocr_mcp/py.typed +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/mcp_server/pyproject.toml +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/__main__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_abstract.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_cli.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_common_args.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_constants.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_env.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/_doc_vlm.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/_image_classification.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/_object_detection.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/_text_detection.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/base.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/chart_parsing.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/doc_img_orientation_classification.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/doc_vlm.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/formula_recognition.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/layout_detection.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/seal_text_detection.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/table_cells_detection.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/table_classification.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/table_structure_recognition.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/text_detection.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/text_image_unwarping.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/text_recognition.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_models/textline_orientation_classification.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_pipelines/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_pipelines/base.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_pipelines/doc_preprocessor.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_pipelines/doc_understanding.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_pipelines/formula_recognition.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_pipelines/ocr.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_pipelines/pp_chatocrv4_doc.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_pipelines/pp_doctranslation.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_pipelines/seal_recognition.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_pipelines/table_recognition_v2.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_pipelines/utils.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_utils/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_utils/cli.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_utils/deprecation.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_utils/logging.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr/_version.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr.egg-info/SOURCES.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr.egg-info/dependency_links.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr.egg-info/entry_points.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/paddleocr.egg-info/top_level.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/collate_fn.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/ColorJitter.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/abinet_aug.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/copy_paste.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/ct_process.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/drrg_targets.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/east_process.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/fce_aug.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/fce_targets.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/frost_img/frost1.jpg +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/frost_img/frost2.png +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/frost_img/frost3.png +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/frost_img/frost4.jpg +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/frost_img/frost5.jpg +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/frost_img/frost6.jpg +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/iaa_augment.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/label_ops.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/latex_ocr_aug.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/make_border_map.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/make_pse_gt.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/make_shrink_map.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/operators.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/pg_process.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/randaugment.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/random_crop_data.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/rec_img_aug.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/sast_process.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/ssl_img_aug.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/table_ops.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/text_image_aug/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/text_image_aug/augment.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/text_image_aug/warp_mls.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/unimernet_aug.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/vqa/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/vqa/augment.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/vqa/token/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/vqa/token/vqa_re_convert.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/vqa/token/vqa_token_chunk.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/vqa/token/vqa_token_pad.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/imaug/vqa/token/vqa_token_relation.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/latexocr_dataset.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/lmdb_dataset.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/multi_scale_sampler.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/pgnet_dataset.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/pubtab_dataset.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/data/simple_dataset.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/cls_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/ct_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/db_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/drrg_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/east_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/fce_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/locality_aware_nms.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/pg_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/picodet_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/pse_postprocess/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/pse_postprocess/pse/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/pse_postprocess/pse/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/pse_postprocess/pse/pse.pyx +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/pse_postprocess/pse/setup.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/pse_postprocess/pse_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/sast_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/table_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/vqa_token_re_layoutlm_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/postprocess/vqa_token_ser_layoutlm_postprocess.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/EN_symbol_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ar_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/arabic_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/be_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/bengali_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/bg_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/bm_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/bm_dict_add.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/bn_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/chinese_cht_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/confuse.pkl +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/cyrillic_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/devanagari_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/en_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/fa_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/french_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/german_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/gujarati_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/hebrew_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/hi_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/it_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/japan_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ka_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/kazakh_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/kie_dict/xfund_class_list.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/korean_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/latex_ocr_tokenizer.json +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/latex_symbol_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/latin_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/layout_dict/layout_cdla_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/layout_dict/layout_publaynet_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/layout_dict/layout_table_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/mr_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ne_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/oc_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/parseq_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ppocrv4_doc_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ppocrv5_arabic_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ppocrv5_cyrillic_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ppocrv5_devanagari_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ppocrv5_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ppocrv5_el_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ppocrv5_en_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ppocrv5_eslav_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ppocrv5_korean_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ppocrv5_latin_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ppocrv5_ta_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ppocrv5_te_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ppocrv5_th_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/pu_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/rs_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/rsc_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ru_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/samaritan_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/spin_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/syriac_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ta_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/table_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/table_master_structure_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/table_structure_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/table_structure_dict_ch.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/te_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/th_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ug_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/uk_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/unimernet_tokenizer/tokenizer.json +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/unimernet_tokenizer/tokenizer_config.json +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/ur_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/vi_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict/xi_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/dict90.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/e2e_metric/Deteval.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/e2e_metric/polygon_fast.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/e2e_utils/extract_batchsize.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/e2e_utils/extract_textpoint_fast.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/e2e_utils/extract_textpoint_slow.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/e2e_utils/pgnet_pp_utils.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/e2e_utils/visual.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/en_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/export_model.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/formula_utils/math_txt2pkl.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/formula_utils/unimernet_data_convert.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/gen_label.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/ic15_dict.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/iou.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/loggers/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/loggers/base_logger.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/loggers/loggers.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/loggers/wandb_logger.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/logging.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/network.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/poly_nms.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/ppocr_keys_v1.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/profiler.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/save_load.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/stats.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/utility.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppocr/utils/visual.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/kie/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/kie/README_ch.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/kie/how_to_do_kie.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/kie/how_to_do_kie_en.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/kie/predict_kie_token_ser.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/kie/predict_kie_token_ser_re.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/kie/requirements.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/kie/tools/eval_with_label_end2end.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/kie/tools/trans_funsd_label.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/kie/tools/trans_xfun_data.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/layout/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/layout/README_ch.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/layout/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/layout/predict_layout.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/pdf2word/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/pdf2word/icons/chinese.png +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/pdf2word/icons/english.png +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/pdf2word/icons/folder-open.png +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/pdf2word/icons/folder-plus.png +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/pdf2word/pdf2word.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/predict_system.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/recovery/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/recovery/README_ch.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/recovery/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/recovery/recovery_to_doc.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/recovery/recovery_to_markdown.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/recovery/requirements.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/recovery/table_process.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/README.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/README_ch.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/convert_label2html.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/eval_table.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/matcher.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/predict_structure.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/predict_table.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/table_master_match.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/table_metric/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/table_metric/parallel.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/table_metric/table_metric.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/tablepyxl/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/tablepyxl/style.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/table/tablepyxl/tablepyxl.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/ppstructure/utility.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/readme/README_ar.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/readme/README_cn.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/readme/README_es.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/readme/README_fr.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/readme/README_ja.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/readme/README_ko.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/readme/README_ru.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/readme/README_tcn.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/requirements.txt +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/setup.cfg +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/setup.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/__init__.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/end2end/convert_ppocr_label.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/end2end/draw_html.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/end2end/eval_end2end.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/end2end/readme.md +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/eval.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/export_center.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/export_model.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer/predict_cls.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer/predict_det.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer/predict_e2e.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer/predict_rec.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer/predict_sr.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer/predict_system.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer/utility.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer_cls.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer_det.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer_e2e.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer_kie.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer_kie_token_ser.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer_kie_token_ser_re.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer_rec.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer_sr.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/infer_table.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/naive_sync_bn.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/program.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/tools/test_hubserving.py +0 -0
- {paddleocr-3.3.3 → paddleocr-3.4.0}/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.0
|
|
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>
|
|
@@ -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,21 @@ 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
|
+
]
|
|
26
34
|
|
|
27
35
|
|
|
28
36
|
class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
29
37
|
def __init__(
|
|
30
38
|
self,
|
|
39
|
+
pipeline_version=_DEFAULT_PIPELINE_VERSION,
|
|
31
40
|
layout_detection_model_name=None,
|
|
32
41
|
layout_detection_model_dir=None,
|
|
33
42
|
layout_threshold=None,
|
|
@@ -49,9 +58,19 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
49
58
|
use_doc_unwarping=None,
|
|
50
59
|
use_layout_detection=None,
|
|
51
60
|
use_chart_recognition=None,
|
|
61
|
+
use_seal_recognition=None,
|
|
62
|
+
use_ocr_for_image_block=None,
|
|
52
63
|
format_block_content=None,
|
|
64
|
+
merge_layout_blocks=None,
|
|
65
|
+
markdown_ignore_labels=None,
|
|
66
|
+
use_queues=None,
|
|
53
67
|
**kwargs,
|
|
54
68
|
):
|
|
69
|
+
if pipeline_version not in _AVAILABLE_PIPELINE_VERSIONS:
|
|
70
|
+
raise ValueError(
|
|
71
|
+
f"Invalid pipeline version: {pipeline_version}. Supported versions are {_AVAILABLE_PIPELINE_VERSIONS}."
|
|
72
|
+
)
|
|
73
|
+
|
|
55
74
|
if vl_rec_backend is not None and vl_rec_backend not in _SUPPORTED_VL_BACKENDS:
|
|
56
75
|
raise ValueError(
|
|
57
76
|
f"Invalid backend for the VL recognition module: {vl_rec_backend}. Supported values are {_SUPPORTED_VL_BACKENDS}."
|
|
@@ -59,14 +78,21 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
59
78
|
|
|
60
79
|
params = locals().copy()
|
|
61
80
|
params.pop("self")
|
|
81
|
+
params.pop("pipeline_version")
|
|
62
82
|
params.pop("kwargs")
|
|
63
83
|
self._params = params
|
|
84
|
+
self.pipeline_version = pipeline_version
|
|
64
85
|
|
|
65
86
|
super().__init__(**kwargs)
|
|
66
87
|
|
|
67
88
|
@property
|
|
68
89
|
def _paddlex_pipeline_name(self):
|
|
69
|
-
|
|
90
|
+
if self.pipeline_version == "v1":
|
|
91
|
+
return "PaddleOCR-VL"
|
|
92
|
+
elif self.pipeline_version == "v1.5":
|
|
93
|
+
return "PaddleOCR-VL-1.5"
|
|
94
|
+
else:
|
|
95
|
+
raise AssertionError(f"Unknown pipeline version: {self.pipeline_version}")
|
|
70
96
|
|
|
71
97
|
def predict_iter(
|
|
72
98
|
self,
|
|
@@ -76,10 +102,13 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
76
102
|
use_doc_unwarping=None,
|
|
77
103
|
use_layout_detection=None,
|
|
78
104
|
use_chart_recognition=None,
|
|
105
|
+
use_seal_recognition=None,
|
|
106
|
+
use_ocr_for_image_block=None,
|
|
79
107
|
layout_threshold=None,
|
|
80
108
|
layout_nms=None,
|
|
81
109
|
layout_unclip_ratio=None,
|
|
82
110
|
layout_merge_bboxes_mode=None,
|
|
111
|
+
layout_shape_mode="auto",
|
|
83
112
|
use_queues=None,
|
|
84
113
|
prompt_label=None,
|
|
85
114
|
format_block_content=None,
|
|
@@ -88,6 +117,10 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
88
117
|
top_p=None,
|
|
89
118
|
min_pixels=None,
|
|
90
119
|
max_pixels=None,
|
|
120
|
+
max_new_tokens=None,
|
|
121
|
+
merge_layout_blocks=None,
|
|
122
|
+
markdown_ignore_labels=None,
|
|
123
|
+
vlm_extra_args=None,
|
|
91
124
|
**kwargs,
|
|
92
125
|
):
|
|
93
126
|
return self.paddlex_pipeline.predict(
|
|
@@ -96,10 +129,13 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
96
129
|
use_doc_unwarping=use_doc_unwarping,
|
|
97
130
|
use_layout_detection=use_layout_detection,
|
|
98
131
|
use_chart_recognition=use_chart_recognition,
|
|
132
|
+
use_seal_recognition=use_seal_recognition,
|
|
133
|
+
use_ocr_for_image_block=use_ocr_for_image_block,
|
|
99
134
|
layout_threshold=layout_threshold,
|
|
100
135
|
layout_nms=layout_nms,
|
|
101
136
|
layout_unclip_ratio=layout_unclip_ratio,
|
|
102
137
|
layout_merge_bboxes_mode=layout_merge_bboxes_mode,
|
|
138
|
+
layout_shape_mode=layout_shape_mode,
|
|
103
139
|
use_queues=use_queues,
|
|
104
140
|
prompt_label=prompt_label,
|
|
105
141
|
format_block_content=format_block_content,
|
|
@@ -108,6 +144,10 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
108
144
|
top_p=top_p,
|
|
109
145
|
min_pixels=min_pixels,
|
|
110
146
|
max_pixels=max_pixels,
|
|
147
|
+
max_new_tokens=max_new_tokens,
|
|
148
|
+
merge_layout_blocks=merge_layout_blocks,
|
|
149
|
+
markdown_ignore_labels=markdown_ignore_labels,
|
|
150
|
+
vlm_extra_args=vlm_extra_args,
|
|
111
151
|
**kwargs,
|
|
112
152
|
)
|
|
113
153
|
|
|
@@ -119,10 +159,13 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
119
159
|
use_doc_unwarping=None,
|
|
120
160
|
use_layout_detection=None,
|
|
121
161
|
use_chart_recognition=None,
|
|
162
|
+
use_seal_recognition=None,
|
|
163
|
+
use_ocr_for_image_block=None,
|
|
122
164
|
layout_threshold=None,
|
|
123
165
|
layout_nms=None,
|
|
124
166
|
layout_unclip_ratio=None,
|
|
125
167
|
layout_merge_bboxes_mode=None,
|
|
168
|
+
layout_shape_mode="auto",
|
|
126
169
|
use_queues=None,
|
|
127
170
|
prompt_label=None,
|
|
128
171
|
format_block_content=None,
|
|
@@ -131,6 +174,10 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
131
174
|
top_p=None,
|
|
132
175
|
min_pixels=None,
|
|
133
176
|
max_pixels=None,
|
|
177
|
+
max_new_tokens=None,
|
|
178
|
+
merge_layout_blocks=None,
|
|
179
|
+
markdown_ignore_labels=None,
|
|
180
|
+
vlm_extra_args=None,
|
|
134
181
|
**kwargs,
|
|
135
182
|
):
|
|
136
183
|
return list(
|
|
@@ -140,10 +187,13 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
140
187
|
use_doc_unwarping=use_doc_unwarping,
|
|
141
188
|
use_layout_detection=use_layout_detection,
|
|
142
189
|
use_chart_recognition=use_chart_recognition,
|
|
190
|
+
use_seal_recognition=use_seal_recognition,
|
|
191
|
+
use_ocr_for_image_block=use_ocr_for_image_block,
|
|
143
192
|
layout_threshold=layout_threshold,
|
|
144
193
|
layout_nms=layout_nms,
|
|
145
194
|
layout_unclip_ratio=layout_unclip_ratio,
|
|
146
195
|
layout_merge_bboxes_mode=layout_merge_bboxes_mode,
|
|
196
|
+
layout_shape_mode=layout_shape_mode,
|
|
147
197
|
use_queues=use_queues,
|
|
148
198
|
prompt_label=prompt_label,
|
|
149
199
|
format_block_content=format_block_content,
|
|
@@ -152,6 +202,10 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
152
202
|
top_p=top_p,
|
|
153
203
|
min_pixels=min_pixels,
|
|
154
204
|
max_pixels=max_pixels,
|
|
205
|
+
max_new_tokens=max_new_tokens,
|
|
206
|
+
merge_layout_blocks=merge_layout_blocks,
|
|
207
|
+
markdown_ignore_labels=markdown_ignore_labels,
|
|
208
|
+
vlm_extra_args=vlm_extra_args,
|
|
155
209
|
**kwargs,
|
|
156
210
|
)
|
|
157
211
|
)
|
|
@@ -159,6 +213,18 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
159
213
|
def concatenate_markdown_pages(self, markdown_list):
|
|
160
214
|
return self.paddlex_pipeline.concatenate_markdown_pages(markdown_list)
|
|
161
215
|
|
|
216
|
+
def restructure_pages(
|
|
217
|
+
self, res_list, merge_tables=True, relevel_titles=True, concatenate_pages=False
|
|
218
|
+
):
|
|
219
|
+
return list(
|
|
220
|
+
self.paddlex_pipeline.restructure_pages(
|
|
221
|
+
res_list,
|
|
222
|
+
merge_tables=merge_tables,
|
|
223
|
+
relevel_titles=relevel_titles,
|
|
224
|
+
concatenate_pages=concatenate_pages,
|
|
225
|
+
)
|
|
226
|
+
)
|
|
227
|
+
|
|
162
228
|
@classmethod
|
|
163
229
|
def get_cli_subcommand_executor(cls):
|
|
164
230
|
return PaddleOCRVLCLISubcommandExecutor()
|
|
@@ -176,6 +242,9 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
176
242
|
"use_layout_detection": self._params["use_layout_detection"],
|
|
177
243
|
"use_chart_recognition": self._params["use_chart_recognition"],
|
|
178
244
|
"format_block_content": self._params["format_block_content"],
|
|
245
|
+
"merge_layout_blocks": self._params["merge_layout_blocks"],
|
|
246
|
+
"markdown_ignore_labels": self._params["markdown_ignore_labels"],
|
|
247
|
+
"use_queues": self._params["use_queues"],
|
|
179
248
|
"SubModules.LayoutDetection.model_name": self._params[
|
|
180
249
|
"layout_detection_model_name"
|
|
181
250
|
],
|
|
@@ -219,6 +288,8 @@ class PaddleOCRVL(PaddleXPipelineWrapper):
|
|
|
219
288
|
"SubPipelines.DocPreprocessor.SubModules.DocUnwarping.model_dir": self._params[
|
|
220
289
|
"doc_unwarping_model_dir"
|
|
221
290
|
],
|
|
291
|
+
"use_seal_recognition": self._params["use_seal_recognition"],
|
|
292
|
+
"use_ocr_for_image_block": self._params["use_ocr_for_image_block"],
|
|
222
293
|
}
|
|
223
294
|
return create_config_from_structure(STRUCTURE)
|
|
224
295
|
|
|
@@ -231,6 +302,13 @@ class PaddleOCRVLCLISubcommandExecutor(PipelineCLISubcommandExecutor):
|
|
|
231
302
|
def _update_subparser(self, subparser):
|
|
232
303
|
add_simple_inference_args(subparser)
|
|
233
304
|
|
|
305
|
+
subparser.add_argument(
|
|
306
|
+
"--pipeline_version",
|
|
307
|
+
type=str,
|
|
308
|
+
default=_DEFAULT_PIPELINE_VERSION,
|
|
309
|
+
choices=_AVAILABLE_PIPELINE_VERSIONS,
|
|
310
|
+
)
|
|
311
|
+
|
|
234
312
|
subparser.add_argument(
|
|
235
313
|
"--layout_detection_model_name",
|
|
236
314
|
type=str,
|
|
@@ -340,16 +418,45 @@ class PaddleOCRVLCLISubcommandExecutor(PipelineCLISubcommandExecutor):
|
|
|
340
418
|
type=str2bool,
|
|
341
419
|
help="Whether to use chart recognition.",
|
|
342
420
|
)
|
|
421
|
+
subparser.add_argument(
|
|
422
|
+
"--use_seal_recognition",
|
|
423
|
+
type=str2bool,
|
|
424
|
+
help="Whether to use seal recognition.",
|
|
425
|
+
)
|
|
426
|
+
subparser.add_argument(
|
|
427
|
+
"--use_ocr_for_image_block",
|
|
428
|
+
type=str2bool,
|
|
429
|
+
help="Whether to use OCR for image blocks.",
|
|
430
|
+
)
|
|
343
431
|
subparser.add_argument(
|
|
344
432
|
"--format_block_content",
|
|
345
433
|
type=str2bool,
|
|
346
434
|
help="Whether to format block content to Markdown.",
|
|
347
435
|
)
|
|
436
|
+
subparser.add_argument(
|
|
437
|
+
"--merge_layout_blocks",
|
|
438
|
+
type=str2bool,
|
|
439
|
+
help="Whether to merge layout blocks.",
|
|
440
|
+
)
|
|
441
|
+
subparser.add_argument(
|
|
442
|
+
"--markdown_ignore_labels",
|
|
443
|
+
type=str,
|
|
444
|
+
nargs="+",
|
|
445
|
+
help="List of layout labels to ignore in Markdown output.",
|
|
446
|
+
)
|
|
447
|
+
|
|
348
448
|
subparser.add_argument(
|
|
349
449
|
"--use_queues",
|
|
350
450
|
type=str2bool,
|
|
351
451
|
help="Whether to use queues for asynchronous processing.",
|
|
352
452
|
)
|
|
453
|
+
|
|
454
|
+
subparser.add_argument(
|
|
455
|
+
"--layout_shape_mode",
|
|
456
|
+
type=str,
|
|
457
|
+
default="auto",
|
|
458
|
+
help="Mode for layout shape.",
|
|
459
|
+
)
|
|
353
460
|
subparser.add_argument(
|
|
354
461
|
"--prompt_label",
|
|
355
462
|
type=str,
|
|
@@ -380,6 +487,11 @@ class PaddleOCRVLCLISubcommandExecutor(PipelineCLISubcommandExecutor):
|
|
|
380
487
|
type=int,
|
|
381
488
|
help="Maximum pixels for image preprocessing for the VLM.",
|
|
382
489
|
)
|
|
490
|
+
subparser.add_argument(
|
|
491
|
+
"--max_new_tokens",
|
|
492
|
+
type=int,
|
|
493
|
+
help="Maximum number of tokens generated by the VLM.",
|
|
494
|
+
)
|
|
383
495
|
|
|
384
496
|
def execute_with_args(self, args):
|
|
385
497
|
params = get_subcommand_args(args)
|
|
@@ -387,12 +499,13 @@ class PaddleOCRVLCLISubcommandExecutor(PipelineCLISubcommandExecutor):
|
|
|
387
499
|
PaddleOCRVL,
|
|
388
500
|
params,
|
|
389
501
|
predict_param_names={
|
|
390
|
-
"
|
|
502
|
+
"layout_shape_mode",
|
|
391
503
|
"prompt_label",
|
|
392
504
|
"repetition_penalty",
|
|
393
505
|
"temperature",
|
|
394
506
|
"top_p",
|
|
395
507
|
"min_pixels",
|
|
396
508
|
"max_pixels",
|
|
509
|
+
"max_new_tokens",
|
|
397
510
|
},
|
|
398
511
|
)
|
|
@@ -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(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: paddleocr
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.4.0
|
|
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>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
paddlex[ocr-core]<3.5.0,>=3.4.0
|
|
2
|
+
PyYAML>=6
|
|
3
|
+
requests
|
|
4
|
+
typing-extensions>=4.12
|
|
5
|
+
|
|
6
|
+
[all]
|
|
7
|
+
paddlex[genai-client,ie,ocr,trans]<3.5.0,>=3.4.0
|
|
8
|
+
|
|
9
|
+
[doc-parser]
|
|
10
|
+
paddlex[genai-client,ocr]<3.5.0,>=3.4.0
|
|
11
|
+
|
|
12
|
+
[ie]
|
|
13
|
+
paddlex[ie]<3.5.0,>=3.4.0
|
|
14
|
+
|
|
15
|
+
[trans]
|
|
16
|
+
paddlex[trans]<3.5.0,>=3.4.0
|
|
@@ -95,11 +95,17 @@ class BaseRecLabelDecode(object):
|
|
|
95
95
|
for c_i, char in enumerate(text):
|
|
96
96
|
if "\u4e00" <= char <= "\u9fff":
|
|
97
97
|
c_state = "cn"
|
|
98
|
-
|
|
98
|
+
# Use \w with UNICODE flag to match letters (including accented chars like ä, ö, ü, é, etc.) and digits
|
|
99
|
+
# Exclude underscore since \w includes it but we want to treat it as splitter
|
|
100
|
+
elif bool(re.search(r"[\w]", char, re.UNICODE)) and char != "_":
|
|
99
101
|
c_state = "en&num"
|
|
100
102
|
else:
|
|
101
103
|
c_state = "splitter"
|
|
102
104
|
|
|
105
|
+
# Handle apostrophes in French words like "n'êtes"
|
|
106
|
+
if char == "'" and state == "en&num":
|
|
107
|
+
c_state = "en&num"
|
|
108
|
+
|
|
103
109
|
if (
|
|
104
110
|
char == "."
|
|
105
111
|
and state == "en&num"
|
|
@@ -39,7 +39,7 @@ classifiers = [
|
|
|
39
39
|
"Topic :: Utilities",
|
|
40
40
|
]
|
|
41
41
|
dependencies = [
|
|
42
|
-
"paddlex[ocr-core]>=3.
|
|
42
|
+
"paddlex[ocr-core]>=3.4.0,<3.5.0",
|
|
43
43
|
"PyYAML>=6",
|
|
44
44
|
"requests",
|
|
45
45
|
"typing-extensions>=4.12",
|
|
@@ -55,10 +55,10 @@ issues = "https://github.com/PaddlePaddle/PaddleOCR/issues"
|
|
|
55
55
|
paddleocr = "paddleocr.__main__:console_entry"
|
|
56
56
|
|
|
57
57
|
[project.optional-dependencies]
|
|
58
|
-
doc-parser = ["paddlex[ocr,genai-client]>=3.
|
|
59
|
-
ie = ["paddlex[ie]>=3.
|
|
60
|
-
trans = ["paddlex[trans]>=3.
|
|
61
|
-
all = ["paddlex[ocr,genai-client,ie,trans]>=3.
|
|
58
|
+
doc-parser = ["paddlex[ocr,genai-client]>=3.4.0,<3.5.0"]
|
|
59
|
+
ie = ["paddlex[ie]>=3.4.0,<3.5.0"]
|
|
60
|
+
trans = ["paddlex[trans]>=3.4.0,<3.5.0"]
|
|
61
|
+
all = ["paddlex[ocr,genai-client,ie,trans]>=3.4.0,<3.5.0"]
|
|
62
62
|
|
|
63
63
|
[tool.setuptools.packages.find]
|
|
64
64
|
where = ["."]
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
paddlex[ocr-core]<3.4.0,>=3.3.0
|
|
2
|
-
PyYAML>=6
|
|
3
|
-
requests
|
|
4
|
-
typing-extensions>=4.12
|
|
5
|
-
|
|
6
|
-
[all]
|
|
7
|
-
paddlex[genai-client,ie,ocr,trans]<3.4.0,>=3.3.0
|
|
8
|
-
|
|
9
|
-
[doc-parser]
|
|
10
|
-
paddlex[genai-client,ocr]<3.4.0,>=3.3.0
|
|
11
|
-
|
|
12
|
-
[ie]
|
|
13
|
-
paddlex[ie]<3.4.0,>=3.3.0
|
|
14
|
-
|
|
15
|
-
[trans]
|
|
16
|
-
paddlex[trans]<3.4.0,>=3.3.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|