paddleocr 2.9.0__tar.gz → 2.10.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-2.10.0/PKG-INFO +133 -0
- paddleocr-2.10.0/README.md +93 -0
- paddleocr-2.10.0/README_en.md +113 -0
- paddleocr-2.10.0/paddleocr.egg-info/PKG-INFO +133 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/paddleocr.egg-info/SOURCES.txt +12 -2
- {paddleocr-2.9.0 → paddleocr-2.10.0}/paddleocr.egg-info/requires.txt +3 -2
- {paddleocr-2.9.0 → paddleocr-2.10.0}/paddleocr.py +13 -4
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/collate_fn.py +40 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/__init__.py +1 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/copy_paste.py +3 -3
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/east_process.py +3 -3
- paddleocr-2.10.0/ppocr/data/imaug/frost_img/frost1.jpg +0 -0
- paddleocr-2.10.0/ppocr/data/imaug/frost_img/frost2.png +0 -0
- paddleocr-2.10.0/ppocr/data/imaug/frost_img/frost3.png +0 -0
- paddleocr-2.10.0/ppocr/data/imaug/frost_img/frost4.jpg +0 -0
- paddleocr-2.10.0/ppocr/data/imaug/frost_img/frost5.jpg +0 -0
- paddleocr-2.10.0/ppocr/data/imaug/frost_img/frost6.jpg +0 -0
- paddleocr-2.10.0/ppocr/data/imaug/iaa_augment.py +213 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/label_ops.py +318 -3
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/make_pse_gt.py +4 -4
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/make_shrink_map.py +7 -7
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/operators.py +2 -10
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/pg_process.py +3 -3
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/randaugment.py +2 -9
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/rec_img_aug.py +1 -1
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/sast_process.py +1 -1
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/table_ops.py +0 -1
- paddleocr-2.10.0/ppocr/data/imaug/unimernet_aug.py +765 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/lmdb_dataset.py +3 -3
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/pgnet_dataset.py +1 -1
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/pubtab_dataset.py +1 -1
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/simple_dataset.py +3 -2
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/__init__.py +3 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/ct_postprocess.py +1 -1
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/db_postprocess.py +1 -1
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/east_postprocess.py +1 -1
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/locality_aware_nms.py +4 -4
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/rec_postprocess.py +227 -7
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/sast_postprocess.py +1 -1
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/README.md +1 -1
- paddleocr-2.10.0/ppocr/utils/dict/ppocrv4_doc_dict.txt +15629 -0
- paddleocr-2.10.0/ppocr/utils/dict/th_dict.txt +81 -0
- paddleocr-2.10.0/ppocr/utils/dict/unimernet_tokenizer/tokenizer.json +100067 -0
- paddleocr-2.10.0/ppocr/utils/dict/unimernet_tokenizer/tokenizer_config.json +205 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/e2e_utils/extract_textpoint_slow.py +2 -2
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/export_model.py +199 -49
- paddleocr-2.10.0/ppocr/utils/formula_utils/unimernet_data_convert.py +107 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/network.py +4 -2
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/save_load.py +41 -18
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/utility.py +1 -1
- paddleocr-2.10.0/ppstructure/README.md +3 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/kie/how_to_do_kie_en.md +1 -1
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/kie/predict_kie_token_ser.py +13 -5
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/pdf2word/pdf2word.py +5 -5
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/recovery/README.md +5 -5
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/recovery/README_ch.md +1 -1
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/recovery/recovery_to_doc.py +1 -1
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/recovery/recovery_to_markdown.py +7 -2
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/README.md +3 -3
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/README_ch.md +2 -2
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/convert_label2html.py +2 -2
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/table_metric/table_metric.py +1 -1
- {paddleocr-2.9.0 → paddleocr-2.10.0}/pyproject.toml +5 -3
- {paddleocr-2.9.0 → paddleocr-2.10.0}/requirements.txt +4 -4
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/eval.py +10 -2
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer/utility.py +83 -23
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer_rec.py +14 -2
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/naive_sync_bn.py +1 -1
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/program.py +34 -6
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/train.py +7 -6
- paddleocr-2.9.0/PKG-INFO +0 -117
- paddleocr-2.9.0/README.md +0 -78
- paddleocr-2.9.0/README_en.md +0 -95
- paddleocr-2.9.0/paddleocr.egg-info/PKG-INFO +0 -117
- paddleocr-2.9.0/ppocr/data/imaug/iaa_augment.py +0 -92
- paddleocr-2.9.0/ppstructure/README.md +0 -120
- paddleocr-2.9.0/ppstructure/README_ch.md +0 -126
- paddleocr-2.9.0/ppstructure/return_word_pos.md +0 -85
- {paddleocr-2.9.0 → paddleocr-2.10.0}/LICENSE +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/MANIFEST.in +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/paddleocr.egg-info/dependency_links.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/paddleocr.egg-info/entry_points.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/paddleocr.egg-info/top_level.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/ColorJitter.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/abinet_aug.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/ct_process.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/drrg_targets.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/fce_aug.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/fce_targets.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/latex_ocr_aug.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/make_border_map.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/random_crop_data.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/ssl_img_aug.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/text_image_aug/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/text_image_aug/augment.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/text_image_aug/warp_mls.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/vqa/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/vqa/augment.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/vqa/token/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/vqa/token/vqa_re_convert.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/vqa/token/vqa_token_chunk.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/vqa/token/vqa_token_pad.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/imaug/vqa/token/vqa_token_relation.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/latexocr_dataset.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/data/multi_scale_sampler.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/cls_postprocess.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/drrg_postprocess.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/fce_postprocess.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/pg_postprocess.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/picodet_postprocess.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/pse_postprocess/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/pse_postprocess/pse/README.md +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/pse_postprocess/pse/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/pse_postprocess/pse/pse.pyx +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/pse_postprocess/pse/setup.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/pse_postprocess/pse_postprocess.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/table_postprocess.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/vqa_token_re_layoutlm_postprocess.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/postprocess/vqa_token_ser_layoutlm_postprocess.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/EN_symbol_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/ar_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/arabic_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/be_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/bengali_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/bg_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/bm_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/bm_dict_add.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/bn_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/chinese_cht_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/confuse.pkl +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/cyrillic_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/devanagari_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/en_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/fa_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/french_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/german_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/gujarati_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/hebrew_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/hi_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/it_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/japan_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/ka_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/kazakh_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/kie_dict/xfund_class_list.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/korean_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/latex_ocr_tokenizer.json +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/latex_symbol_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/latin_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/layout_dict/layout_cdla_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/layout_dict/layout_publaynet_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/layout_dict/layout_table_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/mr_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/ne_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/oc_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/parseq_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/pu_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/rs_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/rsc_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/ru_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/samaritan_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/spin_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/syriac_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/ta_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/table_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/table_master_structure_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/table_structure_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/table_structure_dict_ch.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/te_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/ug_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/uk_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/ur_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/vi_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict/xi_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/dict90.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/e2e_metric/Deteval.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/e2e_metric/polygon_fast.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/e2e_utils/extract_batchsize.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/e2e_utils/extract_textpoint_fast.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/e2e_utils/pgnet_pp_utils.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/e2e_utils/visual.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/en_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/formula_utils/math_txt2pkl.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/gen_label.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/ic15_dict.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/iou.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/loggers/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/loggers/base_logger.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/loggers/loggers.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/loggers/wandb_logger.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/logging.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/poly_nms.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/ppocr_keys_v1.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/profiler.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/stats.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppocr/utils/visual.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/kie/README.md +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/kie/README_ch.md +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/kie/how_to_do_kie.md +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/kie/predict_kie_token_ser_re.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/kie/requirements.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/kie/tools/eval_with_label_end2end.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/kie/tools/trans_funsd_label.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/kie/tools/trans_xfun_data.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/layout/README.md +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/layout/README_ch.md +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/layout/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/layout/predict_layout.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/pdf2word/README.md +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/pdf2word/icons/chinese.png +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/pdf2word/icons/english.png +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/pdf2word/icons/folder-open.png +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/pdf2word/icons/folder-plus.png +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/predict_system.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/recovery/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/recovery/requirements.txt +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/recovery/table_process.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/eval_table.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/matcher.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/predict_structure.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/predict_table.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/table_master_match.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/table_metric/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/table_metric/parallel.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/tablepyxl/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/tablepyxl/style.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/table/tablepyxl/tablepyxl.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/ppstructure/utility.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/setup.cfg +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/setup.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/__init__.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/end2end/convert_ppocr_label.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/end2end/draw_html.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/end2end/eval_end2end.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/end2end/readme.md +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/export_center.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/export_model.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer/predict_cls.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer/predict_det.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer/predict_e2e.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer/predict_rec.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer/predict_sr.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer/predict_system.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer_cls.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer_det.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer_e2e.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer_kie.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer_kie_token_ser.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer_kie_token_ser_re.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer_sr.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/infer_table.py +0 -0
- {paddleocr-2.9.0 → paddleocr-2.10.0}/tools/test_hubserving.py +0 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: paddleocr
|
|
3
|
+
Version: 2.10.0
|
|
4
|
+
Summary: Awesome OCR toolkits based on PaddlePaddle(8.6M ultra-lightweight pre-trained model, support training and deployment among server, mobile, embedded and IoT devices)
|
|
5
|
+
Author-email: PaddlePaddle <Paddle-better@baidu.com>
|
|
6
|
+
Maintainer-email: PaddlePaddle <Paddle-better@baidu.com>
|
|
7
|
+
License: Apache License 2.0
|
|
8
|
+
Project-URL: homepage, https://github.com/PaddlePaddle/PaddleOCR
|
|
9
|
+
Project-URL: documentation, https://github.com/PaddlePaddle/PaddleOCR/blob/main/README.md
|
|
10
|
+
Project-URL: repository, https://github.com/PaddlePaddle/PaddleOCR.git
|
|
11
|
+
Project-URL: issues, https://github.com/PaddlePaddle/PaddleOCR/issues
|
|
12
|
+
Keywords: ocr,textdetection,textrecognition,paddleocr,crnn,east,star-net,rosetta,ocrlite,db,chineseocr,chinesetextdetection,chinesetextrecognition
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Natural Language :: Chinese (Simplified)
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Topic :: Utilities
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: shapely
|
|
22
|
+
Requires-Dist: scikit-image
|
|
23
|
+
Requires-Dist: pyclipper
|
|
24
|
+
Requires-Dist: lmdb
|
|
25
|
+
Requires-Dist: tqdm
|
|
26
|
+
Requires-Dist: numpy
|
|
27
|
+
Requires-Dist: rapidfuzz
|
|
28
|
+
Requires-Dist: opencv-python
|
|
29
|
+
Requires-Dist: opencv-contrib-python
|
|
30
|
+
Requires-Dist: cython
|
|
31
|
+
Requires-Dist: Pillow
|
|
32
|
+
Requires-Dist: pyyaml
|
|
33
|
+
Requires-Dist: python-docx
|
|
34
|
+
Requires-Dist: beautifulsoup4
|
|
35
|
+
Requires-Dist: fonttools>=4.24.0
|
|
36
|
+
Requires-Dist: fire>=0.3.0
|
|
37
|
+
Requires-Dist: requests
|
|
38
|
+
Requires-Dist: albumentations
|
|
39
|
+
Requires-Dist: albucore
|
|
40
|
+
|
|
41
|
+
[English](README_en.md) | 简体中文
|
|
42
|
+
|
|
43
|
+
<p align="center">
|
|
44
|
+
<img src="https://github.com/PaddlePaddle/PaddleOCR/releases/download/v2.8.0/PaddleOCR_logo.png" align="middle" width = "600"/>
|
|
45
|
+
<p align="center">
|
|
46
|
+
<p align="center">
|
|
47
|
+
<a href="https://discord.gg/z9xaRVjdbD"><img src="https://img.shields.io/badge/Chat-on%20discord-7289da.svg?sanitize=true" alt="Chat"></a>
|
|
48
|
+
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache%202-dfd.svg"></a>
|
|
49
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/releases"><img src="https://img.shields.io/github/v/release/PaddlePaddle/PaddleOCR?color=ffa"></a>
|
|
50
|
+
<a href=""><img src="https://img.shields.io/badge/python-3.7+-aff.svg"></a>
|
|
51
|
+
<a href=""><img src="https://img.shields.io/badge/os-linux%2C%20win%2C%20mac-pink.svg"></a>
|
|
52
|
+
<a href="https://pypi.org/project/PaddleOCR/"><img src="https://img.shields.io/pypi/dm/PaddleOCR?color=9cf"></a>
|
|
53
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/stargazers"><img src="https://img.shields.io/github/stars/PaddlePaddle/PaddleOCR?color=ccf"></a>
|
|
54
|
+
</p>
|
|
55
|
+
|
|
56
|
+
## 简介
|
|
57
|
+
|
|
58
|
+
PaddleOCR 旨在打造一套丰富、领先、且实用的 OCR 工具库,助力开发者训练出更好的模型,并应用落地。
|
|
59
|
+
|
|
60
|
+
<div align="center">
|
|
61
|
+
<img src="https://github.com/PaddlePaddle/PaddleOCR/releases/download/v2.8.0/demo.gif" width="800">
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
## 🚀 社区
|
|
65
|
+
|
|
66
|
+
PaddleOCR 由 [PMC](https://github.com/PaddlePaddle/PaddleOCR/issues/12122) 监督。Issues 和 PRs 将在尽力的基础上进行审查。欲了解 PaddlePaddle 社区的完整概况,请访问 [community](https://github.com/PaddlePaddle/community)。
|
|
67
|
+
|
|
68
|
+
⚠️注意:[Issues](https://github.com/PaddlePaddle/PaddleOCR/issues)模块仅用来报告程序🐞Bug,其余提问请移步[Discussions](https://github.com/PaddlePaddle/PaddleOCR/discussions)模块提问。如所提Issue不是Bug,会被移到Discussions模块,敬请谅解。
|
|
69
|
+
|
|
70
|
+
## 📣 近期更新([more](https://paddlepaddle.github.io/PaddleOCR/latest/update.html))
|
|
71
|
+
|
|
72
|
+
- **🔥🔥2025.3.7 PaddleOCR 2.10 版本,主要包含如下内容**:
|
|
73
|
+
|
|
74
|
+
- **重磅新增 OCR 领域 12 个自研单模型:**
|
|
75
|
+
- **[版面区域检测](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/layout_detection.html)** 系列 3 个模型:PP-DocLayout-L、PP-DocLayout-M、PP-DocLayout-S,支持预测 23 个常见版面类别,中英论文、研报、试卷、书籍、杂志、合同、报纸等丰富类型的文档实现高质量版面检测,**mAP@0.5 最高达 90.4%,轻量模型端到端每秒处理超百页文档图像。**
|
|
76
|
+
- **[公式识别](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/formula_recognition.html)** 系列 2 个模型:PP-FormulaNet-L、PP-FormulaNet-S,支持 5 万种 LaTeX 常见词汇,支持识别高难度印刷公式和手写公式,其中 **PP-FormulaNet-L 较开源同等量级模型精度高 6 个百分点,PP-FormulaNet-S 较同等精度模型速度快 16 倍。**
|
|
77
|
+
- **[表格结构识别](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/table_structure_recognition.html)** 系列 2 个模型:SLANeXt_wired、SLANeXt_wireless。飞桨自研新一代表格结构识别模型,分别支持有线表格和无线表格的结构预测。相比于SLANet_plus,SLANeXt在表格结构方面有较大提升,**在内部高难度表格识别评测集上精度高 6 个百分点。**
|
|
78
|
+
- **[表格分类](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/table_classification.html)** 系列 1 个模型:PP-LCNet_x1_0_table_cls,超轻量级有线表格和无线表格的分类模型。
|
|
79
|
+
- **[表格单元格检测](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/table_cells_detection.html)** 系列 2 个模型:RT-DETR-L_wired_table_cell_det、RT-DETR-L_wireless_table_cell_det,分别支持有线表格和无线表格的单元格检测,可配合SLANeXt_wired、SLANeXt_wireless、文本检测、文本识别模块完成对表格的端到端预测。(参见本次新增的表格识别v2产线)
|
|
80
|
+
- **[文本识别](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/text_recognition.html)** 系列 1 个模型: PP-OCRv4_server_rec_doc,**支持1.5万+字典,文字识别范围更广,与此同时提升了部分文字的识别精准度,在内部数据集上,精度较 PP-OCRv4_server_rec 高 3 个百分点以上。**
|
|
81
|
+
- **[文本行方向分类](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/text_recognition.html)** 系列 1 个模型:PP-LCNet_x0_25_textline_ori,**存储只有 0.3M** 的超轻量级文本行方向分类模型。
|
|
82
|
+
|
|
83
|
+
- **重磅推出 4 条高价值多模型组合方案:**
|
|
84
|
+
- **[文档图像预处理产线](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/ocr_pipelines/doc_preprocessor.html)**:通过超轻量级模型组合使用,实现对文档图像的扭曲和方向的矫正。
|
|
85
|
+
- **[版面解析v2产线](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/ocr_pipelines/layout_parsing_v2.html)**:组合多个自研的不同类型的 OCR 类模型,优化复杂版面阅读顺序,实现多种复杂 PDF 文件端到端转换 Markdown 文件和 JSON 文件。在多个文档场景下,转换效果较其他开源方案更好。可以为大模型训练和应用提供高质量的数据生产能力。
|
|
86
|
+
- **[表格识别v2产线](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/ocr_pipelines/table_recognition_v2.html)**:**提供更好的表格端到端识别能力。** 通过将表格分类模块、表格单元格检测模块、表格结构识别模块、文本检测模块、文本识别模块等组合使用,实现对多种样式的表格预测,用户可自定义微调其中任意模块以提升垂类表格的效果。
|
|
87
|
+
- **[PP-ChatOCRv4-doc产线](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/information_extraction_pipelines/document_scene_information_extraction_v4.html)**:在 PP-ChatOCRv3-doc 的基础上,**融合了多模态大模型,优化了 Prompt 和多模型组合后处理逻辑,更好地解决了版面分析、生僻字、多页 pdf、表格、印章识别等常见的复杂文档信息抽取难点问题,准确率较 PP-ChatOCRv3-doc 高 15 个百分点。其中,大模型升级了本地部署的能力,提供了标准的 OpenAI 调用接口,支持对本地大模型如 DeepSeek-R1 部署的调用。**
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
- **🔥2024.10.1 添加OCR领域低代码全流程开发能力**:
|
|
91
|
+
- 飞桨低代码开发工具PaddleX,依托于PaddleOCR的先进技术,支持了OCR领域的低代码全流程开发能力:
|
|
92
|
+
- 🎨 [**模型丰富一键调用**](https://paddlepaddle.github.io/PaddleOCR/latest/paddlex/quick_start.html):将文本图像智能分析、通用OCR、通用版面解析、通用表格识别、公式识别、印章文本识别涉及的**17个模型**整合为6条模型产线,通过极简的**Python API一键调用**,快速体验模型效果。此外,同一套API,也支持图像分类、目标检测、图像分割、时序预测等共计**200+模型**,形成20+单功能模块,方便开发者进行**模型组合**使用。
|
|
93
|
+
- 🚀[**提高效率降低门槛**](https://paddlepaddle.github.io/PaddleOCR/latest/paddlex/overview.html):提供基于**统一命令**和**图形界面**两种方式,实现模型简洁高效的使用、组合与定制。支持**高性能推理、服务化部署和端侧部署**等多种部署方式。此外,对于各种主流硬件如**英伟达GPU、昆仑芯、昇腾、寒武纪和海光**等,进行模型开发时,都可以**无缝切换**。
|
|
94
|
+
|
|
95
|
+
- 支持文档场景信息抽取v3[PP-ChatOCRv3-doc](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/information_extraction_pipelines/document_scene_information_extraction.html)、基于RT-DETR的[高精度版面区域检测模型](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/layout_detection.html)和PicoDet的[高效率版面区域检测模型](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/layout_detection.html)、高精度表格结构识别模型[SLANet_Plus](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/table_structure_recognition.html)、文本图像矫正模型[UVDoc](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/text_image_unwarping.html)、公式识别模型[LatexOCR](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/formula_recognition.html)、基于PP-LCNet的[文档图像方向分类模型](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/doc_img_orientation_classification.html)
|
|
96
|
+
|
|
97
|
+
- **🔥2024.7 添加 PaddleOCR 算法模型挑战赛冠军方案**:
|
|
98
|
+
- 赛题一:OCR 端到端识别任务冠军方案——[场景文本识别算法-SVTRv2](https://paddlepaddle.github.io/PaddleOCR/latest/algorithm/text_recognition/algorithm_rec_svtrv2.html);
|
|
99
|
+
- 赛题二:通用表格识别任务冠军方案——[表格识别算法-SLANet-LCNetV2](https://paddlepaddle.github.io/PaddleOCR/latest/algorithm/table_recognition/algorithm_table_slanet.html)。
|
|
100
|
+
|
|
101
|
+
## 🌟 特性
|
|
102
|
+
|
|
103
|
+
支持多种 OCR 相关前沿算法,在此基础上打造产业级特色模型PP-OCR、PP-Structure和PP-ChatOCR,并打通数据生产、模型训练、压缩、预测部署全流程。
|
|
104
|
+
|
|
105
|
+
<div align="center">
|
|
106
|
+
<img src="./docs/images/ppocrv4.png">
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
## ⚡ [快速开始](https://paddlepaddle.github.io/PaddleOCR/latest/quick_start.html)
|
|
110
|
+
|
|
111
|
+
## 🔥 [低代码全流程开发](https://paddlepaddle.github.io/PaddleOCR/latest/paddlex/overview.html)
|
|
112
|
+
|
|
113
|
+
## 📝 文档
|
|
114
|
+
|
|
115
|
+
完整文档请移步:[docs](https://paddlepaddle.github.io/PaddleOCR/latest/)
|
|
116
|
+
|
|
117
|
+
## 📚《动手学 OCR》电子书
|
|
118
|
+
|
|
119
|
+
- [《动手学 OCR》电子书](https://paddlepaddle.github.io/PaddleOCR/latest/ppocr/blog/ocr_book.html)
|
|
120
|
+
|
|
121
|
+
## 🎖 贡献者
|
|
122
|
+
|
|
123
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/graphs/contributors">
|
|
124
|
+
<img src="https://contrib.rocks/image?repo=PaddlePaddle/PaddleOCR&max=400&columns=20" width="800"/>
|
|
125
|
+
</a>
|
|
126
|
+
|
|
127
|
+
## ⭐️ Star
|
|
128
|
+
|
|
129
|
+
[](https://star-history.com/#PaddlePaddle/PaddleOCR&Date)
|
|
130
|
+
|
|
131
|
+
## 许可证书
|
|
132
|
+
|
|
133
|
+
本项目的发布受 [Apache License Version 2.0](./LICENSE) 许可认证。
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
[English](README_en.md) | 简体中文
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://github.com/PaddlePaddle/PaddleOCR/releases/download/v2.8.0/PaddleOCR_logo.png" align="middle" width = "600"/>
|
|
5
|
+
<p align="center">
|
|
6
|
+
<p align="center">
|
|
7
|
+
<a href="https://discord.gg/z9xaRVjdbD"><img src="https://img.shields.io/badge/Chat-on%20discord-7289da.svg?sanitize=true" alt="Chat"></a>
|
|
8
|
+
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache%202-dfd.svg"></a>
|
|
9
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/releases"><img src="https://img.shields.io/github/v/release/PaddlePaddle/PaddleOCR?color=ffa"></a>
|
|
10
|
+
<a href=""><img src="https://img.shields.io/badge/python-3.7+-aff.svg"></a>
|
|
11
|
+
<a href=""><img src="https://img.shields.io/badge/os-linux%2C%20win%2C%20mac-pink.svg"></a>
|
|
12
|
+
<a href="https://pypi.org/project/PaddleOCR/"><img src="https://img.shields.io/pypi/dm/PaddleOCR?color=9cf"></a>
|
|
13
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/stargazers"><img src="https://img.shields.io/github/stars/PaddlePaddle/PaddleOCR?color=ccf"></a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
## 简介
|
|
17
|
+
|
|
18
|
+
PaddleOCR 旨在打造一套丰富、领先、且实用的 OCR 工具库,助力开发者训练出更好的模型,并应用落地。
|
|
19
|
+
|
|
20
|
+
<div align="center">
|
|
21
|
+
<img src="https://github.com/PaddlePaddle/PaddleOCR/releases/download/v2.8.0/demo.gif" width="800">
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
## 🚀 社区
|
|
25
|
+
|
|
26
|
+
PaddleOCR 由 [PMC](https://github.com/PaddlePaddle/PaddleOCR/issues/12122) 监督。Issues 和 PRs 将在尽力的基础上进行审查。欲了解 PaddlePaddle 社区的完整概况,请访问 [community](https://github.com/PaddlePaddle/community)。
|
|
27
|
+
|
|
28
|
+
⚠️注意:[Issues](https://github.com/PaddlePaddle/PaddleOCR/issues)模块仅用来报告程序🐞Bug,其余提问请移步[Discussions](https://github.com/PaddlePaddle/PaddleOCR/discussions)模块提问。如所提Issue不是Bug,会被移到Discussions模块,敬请谅解。
|
|
29
|
+
|
|
30
|
+
## 📣 近期更新([more](https://paddlepaddle.github.io/PaddleOCR/latest/update.html))
|
|
31
|
+
|
|
32
|
+
- **🔥🔥2025.3.7 PaddleOCR 2.10 版本,主要包含如下内容**:
|
|
33
|
+
|
|
34
|
+
- **重磅新增 OCR 领域 12 个自研单模型:**
|
|
35
|
+
- **[版面区域检测](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/layout_detection.html)** 系列 3 个模型:PP-DocLayout-L、PP-DocLayout-M、PP-DocLayout-S,支持预测 23 个常见版面类别,中英论文、研报、试卷、书籍、杂志、合同、报纸等丰富类型的文档实现高质量版面检测,**mAP@0.5 最高达 90.4%,轻量模型端到端每秒处理超百页文档图像。**
|
|
36
|
+
- **[公式识别](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/formula_recognition.html)** 系列 2 个模型:PP-FormulaNet-L、PP-FormulaNet-S,支持 5 万种 LaTeX 常见词汇,支持识别高难度印刷公式和手写公式,其中 **PP-FormulaNet-L 较开源同等量级模型精度高 6 个百分点,PP-FormulaNet-S 较同等精度模型速度快 16 倍。**
|
|
37
|
+
- **[表格结构识别](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/table_structure_recognition.html)** 系列 2 个模型:SLANeXt_wired、SLANeXt_wireless。飞桨自研新一代表格结构识别模型,分别支持有线表格和无线表格的结构预测。相比于SLANet_plus,SLANeXt在表格结构方面有较大提升,**在内部高难度表格识别评测集上精度高 6 个百分点。**
|
|
38
|
+
- **[表格分类](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/table_classification.html)** 系列 1 个模型:PP-LCNet_x1_0_table_cls,超轻量级有线表格和无线表格的分类模型。
|
|
39
|
+
- **[表格单元格检测](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/table_cells_detection.html)** 系列 2 个模型:RT-DETR-L_wired_table_cell_det、RT-DETR-L_wireless_table_cell_det,分别支持有线表格和无线表格的单元格检测,可配合SLANeXt_wired、SLANeXt_wireless、文本检测、文本识别模块完成对表格的端到端预测。(参见本次新增的表格识别v2产线)
|
|
40
|
+
- **[文本识别](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/text_recognition.html)** 系列 1 个模型: PP-OCRv4_server_rec_doc,**支持1.5万+字典,文字识别范围更广,与此同时提升了部分文字的识别精准度,在内部数据集上,精度较 PP-OCRv4_server_rec 高 3 个百分点以上。**
|
|
41
|
+
- **[文本行方向分类](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/text_recognition.html)** 系列 1 个模型:PP-LCNet_x0_25_textline_ori,**存储只有 0.3M** 的超轻量级文本行方向分类模型。
|
|
42
|
+
|
|
43
|
+
- **重磅推出 4 条高价值多模型组合方案:**
|
|
44
|
+
- **[文档图像预处理产线](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/ocr_pipelines/doc_preprocessor.html)**:通过超轻量级模型组合使用,实现对文档图像的扭曲和方向的矫正。
|
|
45
|
+
- **[版面解析v2产线](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/ocr_pipelines/layout_parsing_v2.html)**:组合多个自研的不同类型的 OCR 类模型,优化复杂版面阅读顺序,实现多种复杂 PDF 文件端到端转换 Markdown 文件和 JSON 文件。在多个文档场景下,转换效果较其他开源方案更好。可以为大模型训练和应用提供高质量的数据生产能力。
|
|
46
|
+
- **[表格识别v2产线](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/ocr_pipelines/table_recognition_v2.html)**:**提供更好的表格端到端识别能力。** 通过将表格分类模块、表格单元格检测模块、表格结构识别模块、文本检测模块、文本识别模块等组合使用,实现对多种样式的表格预测,用户可自定义微调其中任意模块以提升垂类表格的效果。
|
|
47
|
+
- **[PP-ChatOCRv4-doc产线](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/information_extraction_pipelines/document_scene_information_extraction_v4.html)**:在 PP-ChatOCRv3-doc 的基础上,**融合了多模态大模型,优化了 Prompt 和多模型组合后处理逻辑,更好地解决了版面分析、生僻字、多页 pdf、表格、印章识别等常见的复杂文档信息抽取难点问题,准确率较 PP-ChatOCRv3-doc 高 15 个百分点。其中,大模型升级了本地部署的能力,提供了标准的 OpenAI 调用接口,支持对本地大模型如 DeepSeek-R1 部署的调用。**
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **🔥2024.10.1 添加OCR领域低代码全流程开发能力**:
|
|
51
|
+
- 飞桨低代码开发工具PaddleX,依托于PaddleOCR的先进技术,支持了OCR领域的低代码全流程开发能力:
|
|
52
|
+
- 🎨 [**模型丰富一键调用**](https://paddlepaddle.github.io/PaddleOCR/latest/paddlex/quick_start.html):将文本图像智能分析、通用OCR、通用版面解析、通用表格识别、公式识别、印章文本识别涉及的**17个模型**整合为6条模型产线,通过极简的**Python API一键调用**,快速体验模型效果。此外,同一套API,也支持图像分类、目标检测、图像分割、时序预测等共计**200+模型**,形成20+单功能模块,方便开发者进行**模型组合**使用。
|
|
53
|
+
- 🚀[**提高效率降低门槛**](https://paddlepaddle.github.io/PaddleOCR/latest/paddlex/overview.html):提供基于**统一命令**和**图形界面**两种方式,实现模型简洁高效的使用、组合与定制。支持**高性能推理、服务化部署和端侧部署**等多种部署方式。此外,对于各种主流硬件如**英伟达GPU、昆仑芯、昇腾、寒武纪和海光**等,进行模型开发时,都可以**无缝切换**。
|
|
54
|
+
|
|
55
|
+
- 支持文档场景信息抽取v3[PP-ChatOCRv3-doc](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/information_extraction_pipelines/document_scene_information_extraction.html)、基于RT-DETR的[高精度版面区域检测模型](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/layout_detection.html)和PicoDet的[高效率版面区域检测模型](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/layout_detection.html)、高精度表格结构识别模型[SLANet_Plus](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/table_structure_recognition.html)、文本图像矫正模型[UVDoc](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/text_image_unwarping.html)、公式识别模型[LatexOCR](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/formula_recognition.html)、基于PP-LCNet的[文档图像方向分类模型](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/doc_img_orientation_classification.html)
|
|
56
|
+
|
|
57
|
+
- **🔥2024.7 添加 PaddleOCR 算法模型挑战赛冠军方案**:
|
|
58
|
+
- 赛题一:OCR 端到端识别任务冠军方案——[场景文本识别算法-SVTRv2](https://paddlepaddle.github.io/PaddleOCR/latest/algorithm/text_recognition/algorithm_rec_svtrv2.html);
|
|
59
|
+
- 赛题二:通用表格识别任务冠军方案——[表格识别算法-SLANet-LCNetV2](https://paddlepaddle.github.io/PaddleOCR/latest/algorithm/table_recognition/algorithm_table_slanet.html)。
|
|
60
|
+
|
|
61
|
+
## 🌟 特性
|
|
62
|
+
|
|
63
|
+
支持多种 OCR 相关前沿算法,在此基础上打造产业级特色模型PP-OCR、PP-Structure和PP-ChatOCR,并打通数据生产、模型训练、压缩、预测部署全流程。
|
|
64
|
+
|
|
65
|
+
<div align="center">
|
|
66
|
+
<img src="./docs/images/ppocrv4.png">
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
## ⚡ [快速开始](https://paddlepaddle.github.io/PaddleOCR/latest/quick_start.html)
|
|
70
|
+
|
|
71
|
+
## 🔥 [低代码全流程开发](https://paddlepaddle.github.io/PaddleOCR/latest/paddlex/overview.html)
|
|
72
|
+
|
|
73
|
+
## 📝 文档
|
|
74
|
+
|
|
75
|
+
完整文档请移步:[docs](https://paddlepaddle.github.io/PaddleOCR/latest/)
|
|
76
|
+
|
|
77
|
+
## 📚《动手学 OCR》电子书
|
|
78
|
+
|
|
79
|
+
- [《动手学 OCR》电子书](https://paddlepaddle.github.io/PaddleOCR/latest/ppocr/blog/ocr_book.html)
|
|
80
|
+
|
|
81
|
+
## 🎖 贡献者
|
|
82
|
+
|
|
83
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/graphs/contributors">
|
|
84
|
+
<img src="https://contrib.rocks/image?repo=PaddlePaddle/PaddleOCR&max=400&columns=20" width="800"/>
|
|
85
|
+
</a>
|
|
86
|
+
|
|
87
|
+
## ⭐️ Star
|
|
88
|
+
|
|
89
|
+
[](https://star-history.com/#PaddlePaddle/PaddleOCR&Date)
|
|
90
|
+
|
|
91
|
+
## 许可证书
|
|
92
|
+
|
|
93
|
+
本项目的发布受 [Apache License Version 2.0](./LICENSE) 许可认证。
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
English | [简体中文](README.md)
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://github.com/PaddlePaddle/PaddleOCR/releases/download/v2.8.0/PaddleOCR_logo.png" align="middle" width = "600"/>
|
|
5
|
+
<p align="center">
|
|
6
|
+
<p align="center">
|
|
7
|
+
<a href="https://discord.gg/z9xaRVjdbD"><img src="https://img.shields.io/badge/Chat-on%20discord-7289da.svg?sanitize=true" alt="Chat"></a>
|
|
8
|
+
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache%202-dfd.svg"></a>
|
|
9
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/releases"><img src="https://img.shields.io/github/v/release/PaddlePaddle/PaddleOCR?color=ffa"></a>
|
|
10
|
+
<a href=""><img src="https://img.shields.io/badge/python-3.7+-aff.svg"></a>
|
|
11
|
+
<a href=""><img src="https://img.shields.io/badge/os-linux%2C%20win%2C%20mac-pink.svg"></a>
|
|
12
|
+
<a href="https://pypi.org/project/PaddleOCR/"><img src="https://img.shields.io/pypi/dm/PaddleOCR?color=9cf"></a>
|
|
13
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/stargazers"><img src="https://img.shields.io/github/stars/PaddlePaddle/PaddleOCR?color=ccf"></a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
## Introduction
|
|
17
|
+
|
|
18
|
+
PaddleOCR aims to create multilingual, awesome, leading, and practical OCR tools that help users train better models and apply them into practice.
|
|
19
|
+
|
|
20
|
+
<div align="center">
|
|
21
|
+
<img src="https://github.com/PaddlePaddle/PaddleOCR/releases/download/v2.8.0/demo.gif" width="800">
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
## 🚀 Community
|
|
25
|
+
|
|
26
|
+
PaddleOCR is being oversight by a [PMC](https://github.com/PaddlePaddle/PaddleOCR/issues/12122). Issues and PRs will be reviewed on a best-effort basis. For a complete overview of PaddlePaddle community, please visit [community](https://github.com/PaddlePaddle/community).
|
|
27
|
+
|
|
28
|
+
⚠️ Note: The [Issues](https://github.com/PaddlePaddle/PaddleOCR/issues) module is only for reporting program 🐞 bugs, for the rest of the questions, please move to the [Discussions](https://github.com/PaddlePaddle/PaddleOCR/discussions). Please note that if the Issue mentioned is not a bug, it will be moved to the Discussions module.
|
|
29
|
+
|
|
30
|
+
## 📣 Recent updates ([more](https://paddlepaddle.github.io/PaddleOCR/latest/en/update.html))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
- **🔥🔥2025.3.7 release PaddleOCR v2.10, including**:
|
|
34
|
+
|
|
35
|
+
- **12 new self-developed single models:**
|
|
36
|
+
- **[Layout Detection](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/layout_detection.html)** series with 3 models: PP-DocLayout-L, PP-DocLayout-M, PP-DocLayout-S, supporting prediction of 23 common layout categories. High-quality layout detection for various document types such as papers, reports, exams, books, magazines, contracts, newspapers in both English and Chinese. **mAP@0.5 reaches up to 90.4%, lightweight models can process over 100 pages of document images per second end-to-end.**
|
|
37
|
+
- **[Formula Recognition](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/formula_recognition.html)** series with 2 models: PP-FormulaNet-L, PP-FormulaNet-S, supporting 50,000 common LaTeX vocabulary, capable of recognizing complex printed and handwritten formulas. **PP-FormulaNet-L has 6 percentage points higher accuracy than models of the same level, and PP-FormulaNet-S is 16 times faster than models with similar accuracy.**
|
|
38
|
+
- **[Table Structure Recognition](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/table_structure_recognition.html)** series with 2 models: SLANeXt_wired, SLANeXt_wireless. A newly developed table structure recognition model, supporting structured prediction for both wired and wireless tables. Compared to SLANet_plus, SLANeXt shows significant improvement in table structure, **with 6 percentage points higher accuracy on internal high-difficulty table recognition evaluation sets.**
|
|
39
|
+
- **[Table Classification](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/table_classification.html)** series with 1 model: PP-LCNet_x1_0_table_cls, an ultra-lightweight classification model for both wired and wireless tables.
|
|
40
|
+
- **[Table Cell Detection](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/table_cells_detection.html)** series with 2 models: RT-DETR-L_wired_table_cell_det, RT-DETR-L_wireless_table_cell_det, supporting cell detection in both wired and wireless tables. These can be combined with SLANeXt_wired, SLANeXt_wireless, text detection, and text recognition modules for end-to-end table prediction. (See the newly added Table Recognition v2 pipeline)
|
|
41
|
+
- **[Text Recognition](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/text_recognition.html)** series with 1 model: PP-OCRv4_server_rec_doc, **supports over 15,000 characters, with a broader text recognition range, additionally improving the recognition accuracy of certain texts. The accuracy is more than 3 percentage points higher than PP-OCRv4_server_rec on internal datasets.**
|
|
42
|
+
- **[Text Line Orientation Classification](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/text_recognition.html)** series with 1 model: PP-LCNet_x0_25_textline_ori, **an ultra-lightweight text line orientation classification model with only 0.3M storage.**
|
|
43
|
+
|
|
44
|
+
- **4 high-value multi-model combination solutions:**
|
|
45
|
+
- **[Document Image Preprocessing Pipeline](https://paddlepaddle.github.io/PaddleX/latest/en/pipeline_usage/tutorials/ocr_pipelines/doc_preprocessor.html)**: Achieve correction of distortion and orientation in document images through the combination of ultra-lightweight models.
|
|
46
|
+
- **[Layout Parsing v2 Pipeline](https://paddlepaddle.github.io/PaddleX/latest/en/pipeline_usage/tutorials/ocr_pipelines/layout_parsing_v2.html)**: Combines multiple self-developed different types of OCR models to optimize complex layout reading order, achieving end-to-end conversion of various complex PDF files to Markdown and JSON files. The conversion effect is better than other open-source solutions in multiple document scenarios. It can provide high-quality data production capabilities for large model training and application.
|
|
47
|
+
- **[Table Recognition v2 Pipeline](https://paddlepaddle.github.io/PaddleX/latest/en/pipeline_usage/tutorials/ocr_pipelines/table_recognition_v2.html)**: **Provides better table recognition capabilities.** By combining table classification module, table cell detection module, table structure recognition module, text detection module, text recognition module, etc., it achieves prediction of various styles of tables. Users can customize and finetune any module to improve the effect of vertical tables.
|
|
48
|
+
- **[PP-ChatOCRv4-doc Pipeline](https://paddlepaddle.github.io/PaddleX/latest/en/pipeline_usage/tutorials/information_extraction_pipelines/document_scene_information_extraction_v4.html)**: Based on PP-ChatOCRv3-doc, **integrating multi-modal large models, optimizing Prompt and multi-model combination post-processing logic. It effectively addresses common complex document information extraction challenges such as layout analysis, rare characters, multi-page PDFs, tables, and seal recognition, achieving 15 percentage points higher accuracy than PP-ChatOCRv3-doc. The large model upgrades local deployment capabilities, providing a standard OpenAI interface, supporting calls to locally deployed large models like DeepSeek-R1.**
|
|
49
|
+
|
|
50
|
+
- **🔥 2024.10.18 release PaddleOCR v2.9, including**:
|
|
51
|
+
- PaddleX, an All-in-One development tool based on PaddleOCR's advanced technology, supports low-code full-process development capabilities in the OCR field:
|
|
52
|
+
- 🎨 [**Rich Model One-Click Call**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/quick_start.html): Integrates **17 models** related to text image intelligent analysis, general OCR, general layout parsing, table recognition, formula recognition, and seal recognition into 6 pipelines, which can be quickly experienced through a simple **Python API one-click call**. In addition, the same set of APIs also supports a total of **200+ models** in image classification, object detection, image segmentation, and time series forecasting, forming 20+ single-function modules, making it convenient for developers to use **model combinations**.
|
|
53
|
+
|
|
54
|
+
- 🚀 [**High Efficiency and Low barrier of entry**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/overview.html): Provides two methods based on **unified commands** and **GUI** to achieve simple and efficient use, combination, and customization of models. Supports multiple deployment methods such as **high-performance inference, service-oriented deployment, and edge deployment**. Additionally, for various mainstream hardware such as **NVIDIA GPU, Kunlunxin XPU, Ascend NPU, Cambricon MLU, and Haiguang DCU**, models can be developed with **seamless switching**.
|
|
55
|
+
|
|
56
|
+
- Supports [PP-ChatOCRv3-doc](https://paddlepaddle.github.io/PaddleX/latest/en/pipeline_usage/tutorials/information_extraction_pipelines/document_scene_information_extraction.html), [high-precision layout detection model based on RT-DETR](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/layout_detection.html) and [high-efficiency layout area detection model based on PicoDet](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/layout_detection.html), [high-precision table structure recognition model](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/table_structure_recognition.html), text image unwarping model [UVDoc](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/text_image_unwarping.html), formula recognition model [LatexOCR](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/formula_recognition.html), and [document image orientation classification model based on PP-LCNet](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/doc_img_orientation_classification.html).
|
|
57
|
+
|
|
58
|
+
- **🔥2024.7 Added PaddleOCR Algorithm Model Challenge Champion Solutions**:
|
|
59
|
+
- Challenge One, OCR End-to-End Recognition Task Champion Solution: [Scene Text Recognition Algorithm-SVTRv2](https://paddlepaddle.github.io/PaddleOCR/algorithm/text_recognition/algorithm_rec_svtrv2.html);
|
|
60
|
+
- Challenge Two, General Table Recognition Task Champion Solution: [Table Recognition Algorithm-SLANet-LCNetV2](https://paddlepaddle.github.io/PaddleOCR/algorithm/table_recognition/algorithm_table_slanet.html).
|
|
61
|
+
|
|
62
|
+
## 📚 Documentation
|
|
63
|
+
|
|
64
|
+
Full documentation can be found on [docs](https://paddlepaddle.github.io/PaddleOCR/latest/en/index.html).
|
|
65
|
+
|
|
66
|
+
## 🌟 Features
|
|
67
|
+
|
|
68
|
+
PaddleOCR support a variety of cutting-edge algorithms related to OCR, and developed industrial featured models/solution [PP-OCR](https://paddlepaddle.github.io/PaddleOCR/latest/en/ppocr/overview.html)、 [PP-Structure](https://paddlepaddle.github.io/PaddleOCR/latest/en/ppstructure/overview.html) and [PP-ChatOCR](https://aistudio.baidu.com/aistudio/projectdetail/6488689) on this basis, and get through the whole process of data production, model training, compression, inference and deployment.
|
|
69
|
+
|
|
70
|
+
<div align="center">
|
|
71
|
+
<img src="./docs/images/ppocrv4_en.jpg">
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
> It is recommended to start with the “quick experience” in the document tutorial
|
|
75
|
+
|
|
76
|
+
## ⚡ [Quick Start](https://paddlepaddle.github.io/PaddleOCR/latest/en/quick_start.html)
|
|
77
|
+
|
|
78
|
+
## 📖 Technical exchange and cooperation
|
|
79
|
+
|
|
80
|
+
PaddleX provides a one-stop full-process high-efficiency development platform for flying paddle ecological model training, pressure, and push. Its mission is to help AI technology quickly land, and its vision is to make everyone an AI Developer!
|
|
81
|
+
|
|
82
|
+
- PaddleX currently covers areas such as image classification, object detection, image segmentation, 3D, OCR, and time series prediction, and has built-in 36 basic single models, such as RP-DETR, PP-YOLOE, PP-HGNet, PP-LCNet, PP- LiteSeg, etc.; integrated 12 practical industrial solutions, such as PP-OCRv4, PP-ChatOCR, PP-ShiTu, PP-TS, vehicle-mounted road waste detection, identification of prohibited wildlife products, etc.
|
|
83
|
+
- PaddleX provides two AI development modes: "Toolbox" and "Developer". The toolbox mode can tune key hyperparameters without code, and the developer mode can perform single-model training, push and multi-model serial inference with low code, and supports both cloud and local terminals.
|
|
84
|
+
- PaddleX also supports joint innovation and development, profit sharing! At present, PaddleX is rapidly iterating, and welcomes the participation of individual developers and enterprise developers to create a prosperous AI technology ecosystem!
|
|
85
|
+
|
|
86
|
+
## 📚 E-book: *Dive Into OCR*
|
|
87
|
+
|
|
88
|
+
- [Dive Into OCR](./doc/doc_en/ocr_book_en.md)
|
|
89
|
+
|
|
90
|
+
## 🎖 Contributors
|
|
91
|
+
|
|
92
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/graphs/contributors">
|
|
93
|
+
<img src="https://contrib.rocks/image?repo=PaddlePaddle/PaddleOCR&max=400&columns=20" width="800"/>
|
|
94
|
+
</a>
|
|
95
|
+
|
|
96
|
+
## ⭐️ Star
|
|
97
|
+
|
|
98
|
+
[](https://star-history.com/#PaddlePaddle/PaddleOCR&Date)
|
|
99
|
+
|
|
100
|
+
## 🇺🇳 Guideline for New Language Requests
|
|
101
|
+
|
|
102
|
+
If you want to request a new language support, a PR with 1 following files are needed:
|
|
103
|
+
|
|
104
|
+
- In folder [ppocr/utils/dict](./ppocr/utils/dict),
|
|
105
|
+
it is necessary to submit the dict text to this path and name it with `{language}_dict.txt` that contains a list of all characters. Please see the format example from other files in that folder.
|
|
106
|
+
|
|
107
|
+
If your language has unique elements, please tell me in advance within any way, such as useful links, wikipedia and so on.
|
|
108
|
+
|
|
109
|
+
More details, please refer to [Multilingual OCR Development Plan](https://github.com/PaddlePaddle/PaddleOCR/discussions/12734).
|
|
110
|
+
|
|
111
|
+
## 📄 License
|
|
112
|
+
|
|
113
|
+
This project is released under [Apache License Version 2.0](./LICENSE).
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: paddleocr
|
|
3
|
+
Version: 2.10.0
|
|
4
|
+
Summary: Awesome OCR toolkits based on PaddlePaddle(8.6M ultra-lightweight pre-trained model, support training and deployment among server, mobile, embedded and IoT devices)
|
|
5
|
+
Author-email: PaddlePaddle <Paddle-better@baidu.com>
|
|
6
|
+
Maintainer-email: PaddlePaddle <Paddle-better@baidu.com>
|
|
7
|
+
License: Apache License 2.0
|
|
8
|
+
Project-URL: homepage, https://github.com/PaddlePaddle/PaddleOCR
|
|
9
|
+
Project-URL: documentation, https://github.com/PaddlePaddle/PaddleOCR/blob/main/README.md
|
|
10
|
+
Project-URL: repository, https://github.com/PaddlePaddle/PaddleOCR.git
|
|
11
|
+
Project-URL: issues, https://github.com/PaddlePaddle/PaddleOCR/issues
|
|
12
|
+
Keywords: ocr,textdetection,textrecognition,paddleocr,crnn,east,star-net,rosetta,ocrlite,db,chineseocr,chinesetextdetection,chinesetextrecognition
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Natural Language :: Chinese (Simplified)
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Topic :: Utilities
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: shapely
|
|
22
|
+
Requires-Dist: scikit-image
|
|
23
|
+
Requires-Dist: pyclipper
|
|
24
|
+
Requires-Dist: lmdb
|
|
25
|
+
Requires-Dist: tqdm
|
|
26
|
+
Requires-Dist: numpy
|
|
27
|
+
Requires-Dist: rapidfuzz
|
|
28
|
+
Requires-Dist: opencv-python
|
|
29
|
+
Requires-Dist: opencv-contrib-python
|
|
30
|
+
Requires-Dist: cython
|
|
31
|
+
Requires-Dist: Pillow
|
|
32
|
+
Requires-Dist: pyyaml
|
|
33
|
+
Requires-Dist: python-docx
|
|
34
|
+
Requires-Dist: beautifulsoup4
|
|
35
|
+
Requires-Dist: fonttools>=4.24.0
|
|
36
|
+
Requires-Dist: fire>=0.3.0
|
|
37
|
+
Requires-Dist: requests
|
|
38
|
+
Requires-Dist: albumentations
|
|
39
|
+
Requires-Dist: albucore
|
|
40
|
+
|
|
41
|
+
[English](README_en.md) | 简体中文
|
|
42
|
+
|
|
43
|
+
<p align="center">
|
|
44
|
+
<img src="https://github.com/PaddlePaddle/PaddleOCR/releases/download/v2.8.0/PaddleOCR_logo.png" align="middle" width = "600"/>
|
|
45
|
+
<p align="center">
|
|
46
|
+
<p align="center">
|
|
47
|
+
<a href="https://discord.gg/z9xaRVjdbD"><img src="https://img.shields.io/badge/Chat-on%20discord-7289da.svg?sanitize=true" alt="Chat"></a>
|
|
48
|
+
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache%202-dfd.svg"></a>
|
|
49
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/releases"><img src="https://img.shields.io/github/v/release/PaddlePaddle/PaddleOCR?color=ffa"></a>
|
|
50
|
+
<a href=""><img src="https://img.shields.io/badge/python-3.7+-aff.svg"></a>
|
|
51
|
+
<a href=""><img src="https://img.shields.io/badge/os-linux%2C%20win%2C%20mac-pink.svg"></a>
|
|
52
|
+
<a href="https://pypi.org/project/PaddleOCR/"><img src="https://img.shields.io/pypi/dm/PaddleOCR?color=9cf"></a>
|
|
53
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/stargazers"><img src="https://img.shields.io/github/stars/PaddlePaddle/PaddleOCR?color=ccf"></a>
|
|
54
|
+
</p>
|
|
55
|
+
|
|
56
|
+
## 简介
|
|
57
|
+
|
|
58
|
+
PaddleOCR 旨在打造一套丰富、领先、且实用的 OCR 工具库,助力开发者训练出更好的模型,并应用落地。
|
|
59
|
+
|
|
60
|
+
<div align="center">
|
|
61
|
+
<img src="https://github.com/PaddlePaddle/PaddleOCR/releases/download/v2.8.0/demo.gif" width="800">
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
## 🚀 社区
|
|
65
|
+
|
|
66
|
+
PaddleOCR 由 [PMC](https://github.com/PaddlePaddle/PaddleOCR/issues/12122) 监督。Issues 和 PRs 将在尽力的基础上进行审查。欲了解 PaddlePaddle 社区的完整概况,请访问 [community](https://github.com/PaddlePaddle/community)。
|
|
67
|
+
|
|
68
|
+
⚠️注意:[Issues](https://github.com/PaddlePaddle/PaddleOCR/issues)模块仅用来报告程序🐞Bug,其余提问请移步[Discussions](https://github.com/PaddlePaddle/PaddleOCR/discussions)模块提问。如所提Issue不是Bug,会被移到Discussions模块,敬请谅解。
|
|
69
|
+
|
|
70
|
+
## 📣 近期更新([more](https://paddlepaddle.github.io/PaddleOCR/latest/update.html))
|
|
71
|
+
|
|
72
|
+
- **🔥🔥2025.3.7 PaddleOCR 2.10 版本,主要包含如下内容**:
|
|
73
|
+
|
|
74
|
+
- **重磅新增 OCR 领域 12 个自研单模型:**
|
|
75
|
+
- **[版面区域检测](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/layout_detection.html)** 系列 3 个模型:PP-DocLayout-L、PP-DocLayout-M、PP-DocLayout-S,支持预测 23 个常见版面类别,中英论文、研报、试卷、书籍、杂志、合同、报纸等丰富类型的文档实现高质量版面检测,**mAP@0.5 最高达 90.4%,轻量模型端到端每秒处理超百页文档图像。**
|
|
76
|
+
- **[公式识别](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/formula_recognition.html)** 系列 2 个模型:PP-FormulaNet-L、PP-FormulaNet-S,支持 5 万种 LaTeX 常见词汇,支持识别高难度印刷公式和手写公式,其中 **PP-FormulaNet-L 较开源同等量级模型精度高 6 个百分点,PP-FormulaNet-S 较同等精度模型速度快 16 倍。**
|
|
77
|
+
- **[表格结构识别](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/table_structure_recognition.html)** 系列 2 个模型:SLANeXt_wired、SLANeXt_wireless。飞桨自研新一代表格结构识别模型,分别支持有线表格和无线表格的结构预测。相比于SLANet_plus,SLANeXt在表格结构方面有较大提升,**在内部高难度表格识别评测集上精度高 6 个百分点。**
|
|
78
|
+
- **[表格分类](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/table_classification.html)** 系列 1 个模型:PP-LCNet_x1_0_table_cls,超轻量级有线表格和无线表格的分类模型。
|
|
79
|
+
- **[表格单元格检测](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/table_cells_detection.html)** 系列 2 个模型:RT-DETR-L_wired_table_cell_det、RT-DETR-L_wireless_table_cell_det,分别支持有线表格和无线表格的单元格检测,可配合SLANeXt_wired、SLANeXt_wireless、文本检测、文本识别模块完成对表格的端到端预测。(参见本次新增的表格识别v2产线)
|
|
80
|
+
- **[文本识别](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/text_recognition.html)** 系列 1 个模型: PP-OCRv4_server_rec_doc,**支持1.5万+字典,文字识别范围更广,与此同时提升了部分文字的识别精准度,在内部数据集上,精度较 PP-OCRv4_server_rec 高 3 个百分点以上。**
|
|
81
|
+
- **[文本行方向分类](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/text_recognition.html)** 系列 1 个模型:PP-LCNet_x0_25_textline_ori,**存储只有 0.3M** 的超轻量级文本行方向分类模型。
|
|
82
|
+
|
|
83
|
+
- **重磅推出 4 条高价值多模型组合方案:**
|
|
84
|
+
- **[文档图像预处理产线](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/ocr_pipelines/doc_preprocessor.html)**:通过超轻量级模型组合使用,实现对文档图像的扭曲和方向的矫正。
|
|
85
|
+
- **[版面解析v2产线](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/ocr_pipelines/layout_parsing_v2.html)**:组合多个自研的不同类型的 OCR 类模型,优化复杂版面阅读顺序,实现多种复杂 PDF 文件端到端转换 Markdown 文件和 JSON 文件。在多个文档场景下,转换效果较其他开源方案更好。可以为大模型训练和应用提供高质量的数据生产能力。
|
|
86
|
+
- **[表格识别v2产线](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/ocr_pipelines/table_recognition_v2.html)**:**提供更好的表格端到端识别能力。** 通过将表格分类模块、表格单元格检测模块、表格结构识别模块、文本检测模块、文本识别模块等组合使用,实现对多种样式的表格预测,用户可自定义微调其中任意模块以提升垂类表格的效果。
|
|
87
|
+
- **[PP-ChatOCRv4-doc产线](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/information_extraction_pipelines/document_scene_information_extraction_v4.html)**:在 PP-ChatOCRv3-doc 的基础上,**融合了多模态大模型,优化了 Prompt 和多模型组合后处理逻辑,更好地解决了版面分析、生僻字、多页 pdf、表格、印章识别等常见的复杂文档信息抽取难点问题,准确率较 PP-ChatOCRv3-doc 高 15 个百分点。其中,大模型升级了本地部署的能力,提供了标准的 OpenAI 调用接口,支持对本地大模型如 DeepSeek-R1 部署的调用。**
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
- **🔥2024.10.1 添加OCR领域低代码全流程开发能力**:
|
|
91
|
+
- 飞桨低代码开发工具PaddleX,依托于PaddleOCR的先进技术,支持了OCR领域的低代码全流程开发能力:
|
|
92
|
+
- 🎨 [**模型丰富一键调用**](https://paddlepaddle.github.io/PaddleOCR/latest/paddlex/quick_start.html):将文本图像智能分析、通用OCR、通用版面解析、通用表格识别、公式识别、印章文本识别涉及的**17个模型**整合为6条模型产线,通过极简的**Python API一键调用**,快速体验模型效果。此外,同一套API,也支持图像分类、目标检测、图像分割、时序预测等共计**200+模型**,形成20+单功能模块,方便开发者进行**模型组合**使用。
|
|
93
|
+
- 🚀[**提高效率降低门槛**](https://paddlepaddle.github.io/PaddleOCR/latest/paddlex/overview.html):提供基于**统一命令**和**图形界面**两种方式,实现模型简洁高效的使用、组合与定制。支持**高性能推理、服务化部署和端侧部署**等多种部署方式。此外,对于各种主流硬件如**英伟达GPU、昆仑芯、昇腾、寒武纪和海光**等,进行模型开发时,都可以**无缝切换**。
|
|
94
|
+
|
|
95
|
+
- 支持文档场景信息抽取v3[PP-ChatOCRv3-doc](https://paddlepaddle.github.io/PaddleX/latest/pipeline_usage/tutorials/information_extraction_pipelines/document_scene_information_extraction.html)、基于RT-DETR的[高精度版面区域检测模型](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/layout_detection.html)和PicoDet的[高效率版面区域检测模型](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/layout_detection.html)、高精度表格结构识别模型[SLANet_Plus](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/table_structure_recognition.html)、文本图像矫正模型[UVDoc](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/text_image_unwarping.html)、公式识别模型[LatexOCR](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/formula_recognition.html)、基于PP-LCNet的[文档图像方向分类模型](https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/doc_img_orientation_classification.html)
|
|
96
|
+
|
|
97
|
+
- **🔥2024.7 添加 PaddleOCR 算法模型挑战赛冠军方案**:
|
|
98
|
+
- 赛题一:OCR 端到端识别任务冠军方案——[场景文本识别算法-SVTRv2](https://paddlepaddle.github.io/PaddleOCR/latest/algorithm/text_recognition/algorithm_rec_svtrv2.html);
|
|
99
|
+
- 赛题二:通用表格识别任务冠军方案——[表格识别算法-SLANet-LCNetV2](https://paddlepaddle.github.io/PaddleOCR/latest/algorithm/table_recognition/algorithm_table_slanet.html)。
|
|
100
|
+
|
|
101
|
+
## 🌟 特性
|
|
102
|
+
|
|
103
|
+
支持多种 OCR 相关前沿算法,在此基础上打造产业级特色模型PP-OCR、PP-Structure和PP-ChatOCR,并打通数据生产、模型训练、压缩、预测部署全流程。
|
|
104
|
+
|
|
105
|
+
<div align="center">
|
|
106
|
+
<img src="./docs/images/ppocrv4.png">
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
## ⚡ [快速开始](https://paddlepaddle.github.io/PaddleOCR/latest/quick_start.html)
|
|
110
|
+
|
|
111
|
+
## 🔥 [低代码全流程开发](https://paddlepaddle.github.io/PaddleOCR/latest/paddlex/overview.html)
|
|
112
|
+
|
|
113
|
+
## 📝 文档
|
|
114
|
+
|
|
115
|
+
完整文档请移步:[docs](https://paddlepaddle.github.io/PaddleOCR/latest/)
|
|
116
|
+
|
|
117
|
+
## 📚《动手学 OCR》电子书
|
|
118
|
+
|
|
119
|
+
- [《动手学 OCR》电子书](https://paddlepaddle.github.io/PaddleOCR/latest/ppocr/blog/ocr_book.html)
|
|
120
|
+
|
|
121
|
+
## 🎖 贡献者
|
|
122
|
+
|
|
123
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/graphs/contributors">
|
|
124
|
+
<img src="https://contrib.rocks/image?repo=PaddlePaddle/PaddleOCR&max=400&columns=20" width="800"/>
|
|
125
|
+
</a>
|
|
126
|
+
|
|
127
|
+
## ⭐️ Star
|
|
128
|
+
|
|
129
|
+
[](https://star-history.com/#PaddlePaddle/PaddleOCR&Date)
|
|
130
|
+
|
|
131
|
+
## 许可证书
|
|
132
|
+
|
|
133
|
+
本项目的发布受 [Apache License Version 2.0](./LICENSE) 许可认证。
|
|
@@ -45,6 +45,13 @@ ppocr/data/imaug/rec_img_aug.py
|
|
|
45
45
|
ppocr/data/imaug/sast_process.py
|
|
46
46
|
ppocr/data/imaug/ssl_img_aug.py
|
|
47
47
|
ppocr/data/imaug/table_ops.py
|
|
48
|
+
ppocr/data/imaug/unimernet_aug.py
|
|
49
|
+
ppocr/data/imaug/frost_img/frost1.jpg
|
|
50
|
+
ppocr/data/imaug/frost_img/frost2.png
|
|
51
|
+
ppocr/data/imaug/frost_img/frost3.png
|
|
52
|
+
ppocr/data/imaug/frost_img/frost4.jpg
|
|
53
|
+
ppocr/data/imaug/frost_img/frost5.jpg
|
|
54
|
+
ppocr/data/imaug/frost_img/frost6.jpg
|
|
48
55
|
ppocr/data/imaug/text_image_aug/__init__.py
|
|
49
56
|
ppocr/data/imaug/text_image_aug/augment.py
|
|
50
57
|
ppocr/data/imaug/text_image_aug/warp_mls.py
|
|
@@ -125,6 +132,7 @@ ppocr/utils/dict/mr_dict.txt
|
|
|
125
132
|
ppocr/utils/dict/ne_dict.txt
|
|
126
133
|
ppocr/utils/dict/oc_dict.txt
|
|
127
134
|
ppocr/utils/dict/parseq_dict.txt
|
|
135
|
+
ppocr/utils/dict/ppocrv4_doc_dict.txt
|
|
128
136
|
ppocr/utils/dict/pu_dict.txt
|
|
129
137
|
ppocr/utils/dict/rs_dict.txt
|
|
130
138
|
ppocr/utils/dict/rsc_dict.txt
|
|
@@ -138,6 +146,7 @@ ppocr/utils/dict/table_master_structure_dict.txt
|
|
|
138
146
|
ppocr/utils/dict/table_structure_dict.txt
|
|
139
147
|
ppocr/utils/dict/table_structure_dict_ch.txt
|
|
140
148
|
ppocr/utils/dict/te_dict.txt
|
|
149
|
+
ppocr/utils/dict/th_dict.txt
|
|
141
150
|
ppocr/utils/dict/ug_dict.txt
|
|
142
151
|
ppocr/utils/dict/uk_dict.txt
|
|
143
152
|
ppocr/utils/dict/ur_dict.txt
|
|
@@ -147,6 +156,8 @@ ppocr/utils/dict/kie_dict/xfund_class_list.txt
|
|
|
147
156
|
ppocr/utils/dict/layout_dict/layout_cdla_dict.txt
|
|
148
157
|
ppocr/utils/dict/layout_dict/layout_publaynet_dict.txt
|
|
149
158
|
ppocr/utils/dict/layout_dict/layout_table_dict.txt
|
|
159
|
+
ppocr/utils/dict/unimernet_tokenizer/tokenizer.json
|
|
160
|
+
ppocr/utils/dict/unimernet_tokenizer/tokenizer_config.json
|
|
150
161
|
ppocr/utils/e2e_metric/Deteval.py
|
|
151
162
|
ppocr/utils/e2e_metric/polygon_fast.py
|
|
152
163
|
ppocr/utils/e2e_utils/extract_batchsize.py
|
|
@@ -155,15 +166,14 @@ ppocr/utils/e2e_utils/extract_textpoint_slow.py
|
|
|
155
166
|
ppocr/utils/e2e_utils/pgnet_pp_utils.py
|
|
156
167
|
ppocr/utils/e2e_utils/visual.py
|
|
157
168
|
ppocr/utils/formula_utils/math_txt2pkl.py
|
|
169
|
+
ppocr/utils/formula_utils/unimernet_data_convert.py
|
|
158
170
|
ppocr/utils/loggers/__init__.py
|
|
159
171
|
ppocr/utils/loggers/base_logger.py
|
|
160
172
|
ppocr/utils/loggers/loggers.py
|
|
161
173
|
ppocr/utils/loggers/wandb_logger.py
|
|
162
174
|
ppstructure/README.md
|
|
163
|
-
ppstructure/README_ch.md
|
|
164
175
|
ppstructure/__init__.py
|
|
165
176
|
ppstructure/predict_system.py
|
|
166
|
-
ppstructure/return_word_pos.md
|
|
167
177
|
ppstructure/utility.py
|
|
168
178
|
ppstructure/kie/README.md
|
|
169
179
|
ppstructure/kie/README_ch.md
|