paddleocr 0.0.2__tar.gz → 2.8.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.8.0/LICENSE +203 -0
- paddleocr-2.8.0/MANIFEST.in +10 -0
- paddleocr-2.8.0/PKG-INFO +287 -0
- paddleocr-2.8.0/README.md +253 -0
- paddleocr-2.8.0/VERSION_NUMBER +1 -0
- paddleocr-0.0.2/ppocr/utils/check.py → paddleocr-2.8.0/__init__.py +17 -19
- paddleocr-2.8.0/paddleocr.egg-info/PKG-INFO +287 -0
- paddleocr-2.8.0/paddleocr.egg-info/SOURCES.txt +183 -0
- {paddleocr-0.0.2 → paddleocr-2.8.0}/paddleocr.egg-info/entry_points.txt +0 -1
- paddleocr-2.8.0/paddleocr.egg-info/requires.txt +17 -0
- paddleocr-2.8.0/paddleocr.py +967 -0
- paddleocr-2.8.0/ppocr/data/__init__.py +150 -0
- paddleocr-2.8.0/ppocr/data/collate_fn.py +118 -0
- paddleocr-2.8.0/ppocr/data/imaug/ColorJitter.py +27 -0
- paddleocr-2.8.0/ppocr/data/imaug/__init__.py +94 -0
- paddleocr-2.8.0/ppocr/data/imaug/abinet_aug.py +512 -0
- paddleocr-2.8.0/ppocr/data/imaug/copy_paste.py +179 -0
- paddleocr-2.8.0/ppocr/data/imaug/ct_process.py +376 -0
- paddleocr-2.8.0/ppocr/data/imaug/drrg_targets.py +770 -0
- {paddleocr-0.0.2/ppocr/data/det → paddleocr-2.8.0/ppocr/data/imaug}/east_process.py +119 -210
- paddleocr-2.8.0/ppocr/data/imaug/fce_aug.py +575 -0
- paddleocr-2.8.0/ppocr/data/imaug/fce_targets.py +697 -0
- paddleocr-2.8.0/ppocr/data/imaug/iaa_augment.py +92 -0
- paddleocr-2.8.0/ppocr/data/imaug/label_ops.py +1772 -0
- paddleocr-2.8.0/ppocr/data/imaug/make_border_map.py +179 -0
- paddleocr-2.8.0/ppocr/data/imaug/make_pse_gt.py +104 -0
- paddleocr-2.8.0/ppocr/data/imaug/make_shrink_map.py +125 -0
- paddleocr-2.8.0/ppocr/data/imaug/operators.py +531 -0
- paddleocr-2.8.0/ppocr/data/imaug/pg_process.py +1116 -0
- paddleocr-2.8.0/ppocr/data/imaug/randaugment.py +141 -0
- paddleocr-2.8.0/ppocr/data/imaug/random_crop_data.py +238 -0
- paddleocr-2.8.0/ppocr/data/imaug/rec_img_aug.py +932 -0
- paddleocr-2.8.0/ppocr/data/imaug/sast_process.py +810 -0
- paddleocr-2.8.0/ppocr/data/imaug/ssl_img_aug.py +55 -0
- paddleocr-2.8.0/ppocr/data/imaug/table_ops.py +233 -0
- paddleocr-2.8.0/ppocr/data/imaug/text_image_aug/__init__.py +17 -0
- paddleocr-2.8.0/ppocr/data/imaug/text_image_aug/augment.py +123 -0
- paddleocr-2.8.0/ppocr/data/imaug/text_image_aug/warp_mls.py +187 -0
- paddleocr-2.8.0/ppocr/data/imaug/vqa/__init__.py +29 -0
- paddleocr-2.8.0/ppocr/data/imaug/vqa/augment.py +34 -0
- paddleocr-2.8.0/ppocr/data/imaug/vqa/token/__init__.py +18 -0
- paddleocr-2.8.0/ppocr/data/imaug/vqa/token/vqa_re_convert.py +49 -0
- paddleocr-2.8.0/ppocr/data/imaug/vqa/token/vqa_token_chunk.py +134 -0
- paddleocr-2.8.0/ppocr/data/imaug/vqa/token/vqa_token_pad.py +117 -0
- paddleocr-2.8.0/ppocr/data/imaug/vqa/token/vqa_token_relation.py +76 -0
- paddleocr-2.8.0/ppocr/data/lmdb_dataset.py +301 -0
- paddleocr-2.8.0/ppocr/data/multi_scale_sampler.py +171 -0
- paddleocr-2.8.0/ppocr/data/pgnet_dataset.py +107 -0
- paddleocr-2.8.0/ppocr/data/pubtab_dataset.py +138 -0
- paddleocr-2.8.0/ppocr/data/simple_dataset.py +278 -0
- paddleocr-2.8.0/ppocr/postprocess/__init__.py +116 -0
- paddleocr-2.8.0/ppocr/postprocess/cls_postprocess.py +43 -0
- paddleocr-2.8.0/ppocr/postprocess/ct_postprocess.py +158 -0
- paddleocr-2.8.0/ppocr/postprocess/db_postprocess.py +289 -0
- paddleocr-2.8.0/ppocr/postprocess/drrg_postprocess.py +338 -0
- {paddleocr-0.0.2 → paddleocr-2.8.0}/ppocr/postprocess/east_postprocess.py +43 -38
- paddleocr-2.8.0/ppocr/postprocess/fce_postprocess.py +250 -0
- {paddleocr-0.0.2 → paddleocr-2.8.0}/ppocr/postprocess/locality_aware_nms.py +11 -12
- paddleocr-2.8.0/ppocr/postprocess/pg_postprocess.py +66 -0
- paddleocr-2.8.0/ppocr/postprocess/picodet_postprocess.py +297 -0
- paddleocr-2.8.0/ppocr/postprocess/pse_postprocess/__init__.py +15 -0
- paddleocr-2.8.0/ppocr/postprocess/pse_postprocess/pse/__init__.py +33 -0
- paddleocr-2.8.0/ppocr/postprocess/pse_postprocess/pse/setup.py +18 -0
- paddleocr-2.8.0/ppocr/postprocess/pse_postprocess/pse_postprocess.py +122 -0
- paddleocr-2.8.0/ppocr/postprocess/rec_postprocess.py +1212 -0
- paddleocr-2.8.0/ppocr/postprocess/sast_postprocess.py +371 -0
- paddleocr-2.8.0/ppocr/postprocess/table_postprocess.py +188 -0
- paddleocr-2.8.0/ppocr/postprocess/vqa_token_re_layoutlm_postprocess.py +96 -0
- paddleocr-2.8.0/ppocr/postprocess/vqa_token_ser_layoutlm_postprocess.py +116 -0
- paddleocr-2.8.0/ppocr/utils/EN_symbol_dict.txt +94 -0
- paddleocr-2.8.0/ppocr/utils/__init__.py +13 -0
- paddleocr-2.8.0/ppocr/utils/dict/README.md +5 -0
- paddleocr-2.8.0/ppocr/utils/dict/ar_dict.txt +117 -0
- paddleocr-2.8.0/ppocr/utils/dict/arabic_dict.txt +161 -0
- paddleocr-2.8.0/ppocr/utils/dict/be_dict.txt +145 -0
- paddleocr-2.8.0/ppocr/utils/dict/bengali_dict.txt +74 -0
- paddleocr-2.8.0/ppocr/utils/dict/bg_dict.txt +140 -0
- paddleocr-2.8.0/ppocr/utils/dict/bm_dict.txt +160 -0
- paddleocr-2.8.0/ppocr/utils/dict/chinese_cht_dict.txt +8421 -0
- paddleocr-2.8.0/ppocr/utils/dict/confuse.pkl +0 -0
- paddleocr-2.8.0/ppocr/utils/dict/cyrillic_dict.txt +163 -0
- paddleocr-2.8.0/ppocr/utils/dict/devanagari_dict.txt +167 -0
- paddleocr-2.8.0/ppocr/utils/dict/en_dict.txt +63 -0
- paddleocr-2.8.0/ppocr/utils/dict/fa_dict.txt +136 -0
- paddleocr-2.8.0/ppocr/utils/dict/french_dict.txt +136 -0
- paddleocr-2.8.0/ppocr/utils/dict/german_dict.txt +143 -0
- paddleocr-2.8.0/ppocr/utils/dict/gujarati_dict.txt +48 -0
- paddleocr-2.8.0/ppocr/utils/dict/hi_dict.txt +162 -0
- paddleocr-2.8.0/ppocr/utils/dict/it_dict.txt +118 -0
- paddleocr-2.8.0/ppocr/utils/dict/japan_dict.txt +4399 -0
- paddleocr-2.8.0/ppocr/utils/dict/ka_dict.txt +153 -0
- paddleocr-2.8.0/ppocr/utils/dict/kazakh_dict.txt +42 -0
- paddleocr-2.8.0/ppocr/utils/dict/kie_dict/xfund_class_list.txt +4 -0
- paddleocr-2.8.0/ppocr/utils/dict/korean_dict.txt +3688 -0
- paddleocr-2.8.0/ppocr/utils/dict/latex_symbol_dict.txt +111 -0
- paddleocr-2.8.0/ppocr/utils/dict/latin_dict.txt +185 -0
- paddleocr-2.8.0/ppocr/utils/dict/layout_dict/layout_cdla_dict.txt +10 -0
- paddleocr-2.8.0/ppocr/utils/dict/layout_dict/layout_publaynet_dict.txt +5 -0
- paddleocr-2.8.0/ppocr/utils/dict/layout_dict/layout_table_dict.txt +1 -0
- paddleocr-2.8.0/ppocr/utils/dict/mr_dict.txt +153 -0
- paddleocr-2.8.0/ppocr/utils/dict/ne_dict.txt +153 -0
- paddleocr-2.8.0/ppocr/utils/dict/oc_dict.txt +96 -0
- paddleocr-2.8.0/ppocr/utils/dict/parseq_dict.txt +94 -0
- paddleocr-2.8.0/ppocr/utils/dict/pu_dict.txt +130 -0
- paddleocr-2.8.0/ppocr/utils/dict/rs_dict.txt +91 -0
- paddleocr-2.8.0/ppocr/utils/dict/rsc_dict.txt +134 -0
- paddleocr-2.8.0/ppocr/utils/dict/ru_dict.txt +125 -0
- paddleocr-2.8.0/ppocr/utils/dict/spin_dict.txt +68 -0
- paddleocr-2.8.0/ppocr/utils/dict/ta_dict.txt +128 -0
- paddleocr-2.8.0/ppocr/utils/dict/table_dict.txt +277 -0
- paddleocr-2.8.0/ppocr/utils/dict/table_master_structure_dict.txt +39 -0
- paddleocr-2.8.0/ppocr/utils/dict/table_structure_dict.txt +28 -0
- paddleocr-2.8.0/ppocr/utils/dict/table_structure_dict_ch.txt +48 -0
- paddleocr-2.8.0/ppocr/utils/dict/te_dict.txt +151 -0
- paddleocr-2.8.0/ppocr/utils/dict/ug_dict.txt +131 -0
- paddleocr-2.8.0/ppocr/utils/dict/uk_dict.txt +142 -0
- paddleocr-2.8.0/ppocr/utils/dict/ur_dict.txt +137 -0
- paddleocr-2.8.0/ppocr/utils/dict/xi_dict.txt +110 -0
- paddleocr-2.8.0/ppocr/utils/dict90.txt +90 -0
- paddleocr-2.8.0/ppocr/utils/e2e_metric/Deteval.py +852 -0
- paddleocr-2.8.0/ppocr/utils/e2e_metric/polygon_fast.py +84 -0
- paddleocr-2.8.0/ppocr/utils/e2e_utils/extract_batchsize.py +88 -0
- paddleocr-2.8.0/ppocr/utils/e2e_utils/extract_textpoint_fast.py +523 -0
- paddleocr-2.8.0/ppocr/utils/e2e_utils/extract_textpoint_slow.py +624 -0
- paddleocr-2.8.0/ppocr/utils/e2e_utils/pgnet_pp_utils.py +179 -0
- paddleocr-2.8.0/ppocr/utils/e2e_utils/visual.py +167 -0
- paddleocr-2.8.0/ppocr/utils/en_dict.txt +95 -0
- paddleocr-2.8.0/ppocr/utils/gen_label.py +82 -0
- paddleocr-2.8.0/ppocr/utils/iou.py +54 -0
- paddleocr-2.8.0/ppocr/utils/loggers/__init__.py +2 -0
- paddleocr-2.8.0/ppocr/utils/loggers/base_logger.py +16 -0
- paddleocr-2.8.0/ppocr/utils/loggers/loggers.py +19 -0
- paddleocr-2.8.0/ppocr/utils/loggers/wandb_logger.py +85 -0
- paddleocr-2.8.0/ppocr/utils/logging.py +71 -0
- paddleocr-2.8.0/ppocr/utils/network.py +95 -0
- paddleocr-2.8.0/ppocr/utils/poly_nms.py +146 -0
- {paddleocr-0.0.2 → paddleocr-2.8.0}/ppocr/utils/ppocr_keys_v1.txt +1 -1
- paddleocr-2.8.0/ppocr/utils/profiler.py +130 -0
- paddleocr-2.8.0/ppocr/utils/save_load.py +256 -0
- paddleocr-2.8.0/ppocr/utils/stats.py +70 -0
- paddleocr-2.8.0/ppocr/utils/utility.py +205 -0
- paddleocr-2.8.0/ppocr/utils/visual.py +142 -0
- paddleocr-2.8.0/ppstructure/__init__.py +13 -0
- paddleocr-2.8.0/ppstructure/kie/predict_kie_token_ser.py +183 -0
- paddleocr-2.8.0/ppstructure/kie/predict_kie_token_ser_re.py +144 -0
- paddleocr-2.8.0/ppstructure/kie/tools/eval_with_label_end2end.py +259 -0
- paddleocr-2.8.0/ppstructure/kie/tools/trans_funsd_label.py +166 -0
- paddleocr-2.8.0/ppstructure/kie/tools/trans_xfun_data.py +64 -0
- paddleocr-2.8.0/ppstructure/layout/__init__.py +13 -0
- paddleocr-2.8.0/ppstructure/layout/predict_layout.py +143 -0
- paddleocr-2.8.0/ppstructure/pdf2word/pdf2word.py +537 -0
- paddleocr-2.8.0/ppstructure/predict_system.py +394 -0
- paddleocr-2.8.0/ppstructure/recovery/__init__.py +13 -0
- paddleocr-2.8.0/ppstructure/recovery/recovery_to_doc.py +153 -0
- paddleocr-2.8.0/ppstructure/recovery/table_process.py +325 -0
- paddleocr-2.8.0/ppstructure/table/__init__.py +13 -0
- paddleocr-2.8.0/ppstructure/table/convert_label2html.py +102 -0
- paddleocr-2.8.0/ppstructure/table/eval_table.py +107 -0
- paddleocr-2.8.0/ppstructure/table/matcher.py +203 -0
- paddleocr-2.8.0/ppstructure/table/predict_structure.py +207 -0
- paddleocr-2.8.0/ppstructure/table/predict_table.py +241 -0
- paddleocr-2.8.0/ppstructure/table/table_master_match.py +995 -0
- paddleocr-2.8.0/ppstructure/table/table_metric/__init__.py +16 -0
- paddleocr-2.8.0/ppstructure/table/table_metric/parallel.py +55 -0
- paddleocr-2.8.0/ppstructure/table/table_metric/table_metric.py +249 -0
- paddleocr-2.8.0/ppstructure/table/tablepyxl/__init__.py +13 -0
- paddleocr-2.8.0/ppstructure/table/tablepyxl/style.py +349 -0
- paddleocr-2.8.0/ppstructure/table/tablepyxl/tablepyxl.py +135 -0
- paddleocr-2.8.0/ppstructure/utility.py +275 -0
- paddleocr-2.8.0/pyproject.toml +70 -0
- paddleocr-0.0.2/__init__.py → paddleocr-2.8.0/setup.py +4 -2
- paddleocr-2.8.0/tests/test_cls_postprocess.py +63 -0
- paddleocr-2.8.0/tests/test_paddleocr_api.py +116 -0
- paddleocr-2.8.0/tools/__init__.py +14 -0
- paddleocr-2.8.0/tools/infer/predict_cls.py +156 -0
- paddleocr-2.8.0/tools/infer/predict_det.py +488 -0
- paddleocr-2.8.0/tools/infer/predict_e2e.py +170 -0
- paddleocr-2.8.0/tools/infer/predict_rec.py +756 -0
- paddleocr-2.8.0/tools/infer/predict_sr.py +165 -0
- paddleocr-2.8.0/tools/infer/predict_system.py +326 -0
- paddleocr-2.8.0/tools/infer/utility.py +810 -0
- paddleocr-0.0.2/MANIFEST.in +0 -8
- paddleocr-0.0.2/PKG-INFO +0 -254
- paddleocr-0.0.2/README.md +0 -215
- paddleocr-0.0.2/paddleocr.egg-info/PKG-INFO +0 -254
- paddleocr-0.0.2/paddleocr.egg-info/SOURCES.txt +0 -58
- paddleocr-0.0.2/paddleocr.egg-info/requires.txt +0 -7
- paddleocr-0.0.2/paddleocr.py +0 -220
- paddleocr-0.0.2/ppocr/data/det/data_augment.py +0 -47
- paddleocr-0.0.2/ppocr/data/det/dataset_traversal.py +0 -111
- paddleocr-0.0.2/ppocr/data/det/db_process.py +0 -216
- paddleocr-0.0.2/ppocr/data/det/make_border_map.py +0 -147
- paddleocr-0.0.2/ppocr/data/det/make_shrink_map.py +0 -88
- paddleocr-0.0.2/ppocr/data/det/random_crop_data.py +0 -155
- paddleocr-0.0.2/ppocr/postprocess/db_postprocess.py +0 -158
- paddleocr-0.0.2/ppocr/postprocess/lanms/.gitignore +0 -1
- paddleocr-0.0.2/ppocr/postprocess/lanms/.ycm_extra_conf.py +0 -140
- paddleocr-0.0.2/ppocr/postprocess/lanms/__init__.py +0 -20
- paddleocr-0.0.2/ppocr/postprocess/lanms/__main__.py +0 -10
- paddleocr-0.0.2/ppocr/postprocess/lanms/adaptor.cpp +0 -61
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/clipper/clipper.cpp +0 -4622
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/clipper/clipper.hpp +0 -404
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/attr.h +0 -471
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/buffer_info.h +0 -108
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/cast.h +0 -2058
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/chrono.h +0 -162
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/class_support.h +0 -603
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/common.h +0 -857
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/complex.h +0 -61
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/descr.h +0 -185
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/eigen.h +0 -610
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/embed.h +0 -194
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/eval.h +0 -117
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/functional.h +0 -85
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/numpy.h +0 -1598
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/operators.h +0 -167
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/options.h +0 -65
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/pybind11.h +0 -1869
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/pytypes.h +0 -1318
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/stl.h +0 -367
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/stl_bind.h +0 -585
- paddleocr-0.0.2/ppocr/postprocess/lanms/include/pybind11/typeid.h +0 -53
- paddleocr-0.0.2/ppocr/postprocess/lanms/lanms.h +0 -234
- paddleocr-0.0.2/ppocr/utils/character.py +0 -176
- paddleocr-0.0.2/ppocr/utils/utility.py +0 -104
- paddleocr-0.0.2/setup.py +0 -62
- paddleocr-0.0.2/tools/infer/predict_det.py +0 -158
- paddleocr-0.0.2/tools/infer/predict_rec.py +0 -182
- paddleocr-0.0.2/tools/infer/predict_system.py +0 -173
- paddleocr-0.0.2/tools/infer/utility.py +0 -347
- {paddleocr-0.0.2 → paddleocr-2.8.0}/paddleocr.egg-info/dependency_links.txt +0 -0
- {paddleocr-0.0.2 → paddleocr-2.8.0}/paddleocr.egg-info/top_level.txt +0 -0
- {paddleocr-0.0.2 → paddleocr-2.8.0}/ppocr/utils/ic15_dict.txt +0 -0
- {paddleocr-0.0.2 → paddleocr-2.8.0}/setup.cfg +0 -0
paddleocr-2.8.0/LICENSE
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved
|
|
2
|
+
|
|
3
|
+
Apache License
|
|
4
|
+
Version 2.0, January 2004
|
|
5
|
+
http://www.apache.org/licenses/
|
|
6
|
+
|
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
8
|
+
|
|
9
|
+
1. Definitions.
|
|
10
|
+
|
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
12
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
13
|
+
|
|
14
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
15
|
+
the copyright owner that is granting the License.
|
|
16
|
+
|
|
17
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
18
|
+
other entities that control, are controlled by, or are under common
|
|
19
|
+
control with that entity. For the purposes of this definition,
|
|
20
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
21
|
+
direction or management of such entity, whether by contract or
|
|
22
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
23
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
24
|
+
|
|
25
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
26
|
+
exercising permissions granted by this License.
|
|
27
|
+
|
|
28
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
29
|
+
including but not limited to software source code, documentation
|
|
30
|
+
source, and configuration files.
|
|
31
|
+
|
|
32
|
+
"Object" form shall mean any form resulting from mechanical
|
|
33
|
+
transformation or translation of a Source form, including but
|
|
34
|
+
not limited to compiled object code, generated documentation,
|
|
35
|
+
and conversions to other media types.
|
|
36
|
+
|
|
37
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
38
|
+
Object form, made available under the License, as indicated by a
|
|
39
|
+
copyright notice that is included in or attached to the work
|
|
40
|
+
(an example is provided in the Appendix below).
|
|
41
|
+
|
|
42
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
43
|
+
form, that is based on (or derived from) the Work and for which the
|
|
44
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
45
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
46
|
+
of this License, Derivative Works shall not include works that remain
|
|
47
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
48
|
+
the Work and Derivative Works thereof.
|
|
49
|
+
|
|
50
|
+
"Contribution" shall mean any work of authorship, including
|
|
51
|
+
the original version of the Work and any modifications or additions
|
|
52
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
53
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
54
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
55
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
56
|
+
means any form of electronic, verbal, or written communication sent
|
|
57
|
+
to the Licensor or its representatives, including but not limited to
|
|
58
|
+
communication on electronic mailing lists, source code control systems,
|
|
59
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
60
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
61
|
+
excluding communication that is conspicuously marked or otherwise
|
|
62
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
63
|
+
|
|
64
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
65
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
66
|
+
subsequently incorporated within the Work.
|
|
67
|
+
|
|
68
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
69
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
70
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
71
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
72
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
73
|
+
Work and such Derivative Works in Source or Object form.
|
|
74
|
+
|
|
75
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
76
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
77
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
78
|
+
(except as stated in this section) patent license to make, have made,
|
|
79
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
80
|
+
where such license applies only to those patent claims licensable
|
|
81
|
+
by such Contributor that are necessarily infringed by their
|
|
82
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
83
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
84
|
+
institute patent litigation against any entity (including a
|
|
85
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
86
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
87
|
+
or contributory patent infringement, then any patent licenses
|
|
88
|
+
granted to You under this License for that Work shall terminate
|
|
89
|
+
as of the date such litigation is filed.
|
|
90
|
+
|
|
91
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
92
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
93
|
+
modifications, and in Source or Object form, provided that You
|
|
94
|
+
meet the following conditions:
|
|
95
|
+
|
|
96
|
+
(a) You must give any other recipients of the Work or
|
|
97
|
+
Derivative Works a copy of this License; and
|
|
98
|
+
|
|
99
|
+
(b) You must cause any modified files to carry prominent notices
|
|
100
|
+
stating that You changed the files; and
|
|
101
|
+
|
|
102
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
103
|
+
that You distribute, all copyright, patent, trademark, and
|
|
104
|
+
attribution notices from the Source form of the Work,
|
|
105
|
+
excluding those notices that do not pertain to any part of
|
|
106
|
+
the Derivative Works; and
|
|
107
|
+
|
|
108
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
109
|
+
distribution, then any Derivative Works that You distribute must
|
|
110
|
+
include a readable copy of the attribution notices contained
|
|
111
|
+
within such NOTICE file, excluding those notices that do not
|
|
112
|
+
pertain to any part of the Derivative Works, in at least one
|
|
113
|
+
of the following places: within a NOTICE text file distributed
|
|
114
|
+
as part of the Derivative Works; within the Source form or
|
|
115
|
+
documentation, if provided along with the Derivative Works; or,
|
|
116
|
+
within a display generated by the Derivative Works, if and
|
|
117
|
+
wherever such third-party notices normally appear. The contents
|
|
118
|
+
of the NOTICE file are for informational purposes only and
|
|
119
|
+
do not modify the License. You may add Your own attribution
|
|
120
|
+
notices within Derivative Works that You distribute, alongside
|
|
121
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
122
|
+
that such additional attribution notices cannot be construed
|
|
123
|
+
as modifying the License.
|
|
124
|
+
|
|
125
|
+
You may add Your own copyright statement to Your modifications and
|
|
126
|
+
may provide additional or different license terms and conditions
|
|
127
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
128
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
129
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
130
|
+
the conditions stated in this License.
|
|
131
|
+
|
|
132
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
133
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
134
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
135
|
+
this License, without any additional terms or conditions.
|
|
136
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
137
|
+
the terms of any separate license agreement you may have executed
|
|
138
|
+
with Licensor regarding such Contributions.
|
|
139
|
+
|
|
140
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
141
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
142
|
+
except as required for reasonable and customary use in describing the
|
|
143
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
144
|
+
|
|
145
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
146
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
147
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
148
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
149
|
+
implied, including, without limitation, any warranties or conditions
|
|
150
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
151
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
152
|
+
appropriateness of using or redistributing the Work and assume any
|
|
153
|
+
risks associated with Your exercise of permissions under this License.
|
|
154
|
+
|
|
155
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
156
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
157
|
+
unless required by applicable law (such as deliberate and grossly
|
|
158
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
159
|
+
liable to You for damages, including any direct, indirect, special,
|
|
160
|
+
incidental, or consequential damages of any character arising as a
|
|
161
|
+
result of this License or out of the use or inability to use the
|
|
162
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
163
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
164
|
+
other commercial damages or losses), even if such Contributor
|
|
165
|
+
has been advised of the possibility of such damages.
|
|
166
|
+
|
|
167
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
168
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
169
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
170
|
+
or other liability obligations and/or rights consistent with this
|
|
171
|
+
License. However, in accepting such obligations, You may act only
|
|
172
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
173
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
174
|
+
defend, and hold each Contributor harmless for any liability
|
|
175
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
176
|
+
of your accepting any such warranty or additional liability.
|
|
177
|
+
|
|
178
|
+
END OF TERMS AND CONDITIONS
|
|
179
|
+
|
|
180
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
181
|
+
|
|
182
|
+
To apply the Apache License to your work, attach the following
|
|
183
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
184
|
+
replaced with your own identifying information. (Don't include
|
|
185
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
186
|
+
comment syntax for the file format. We also recommend that a
|
|
187
|
+
file or class name and description of purpose be included on the
|
|
188
|
+
same "printed page" as the copyright notice for easier
|
|
189
|
+
identification within third-party archives.
|
|
190
|
+
|
|
191
|
+
Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
|
|
192
|
+
|
|
193
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
194
|
+
you may not use this file except in compliance with the License.
|
|
195
|
+
You may obtain a copy of the License at
|
|
196
|
+
|
|
197
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
198
|
+
|
|
199
|
+
Unless required by applicable law or agreed to in writing, software
|
|
200
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
201
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
202
|
+
See the License for the specific language governing permissions and
|
|
203
|
+
limitations under the License.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
include LICENSE
|
|
2
|
+
include README.md
|
|
3
|
+
|
|
4
|
+
recursive-include ppocr/utils *.*
|
|
5
|
+
recursive-include ppocr/data *.py
|
|
6
|
+
recursive-include ppocr/postprocess *.py
|
|
7
|
+
recursive-include tools/infer *.py
|
|
8
|
+
recursive-include tools __init__.py
|
|
9
|
+
recursive-include ppocr/utils/e2e_utils *.py
|
|
10
|
+
recursive-include ppstructure *.py
|
paddleocr-2.8.0/PKG-INFO
ADDED
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: paddleocr
|
|
3
|
+
Version: 2.8.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
|
+
Keywords: ocr,textdetection,textrecognition,paddleocr,crnn,east,star-net,rosetta,ocrlite,db,chineseocr,chinesetextdetection,chinesetextrecognition
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Natural Language :: Chinese (Simplified)
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Topic :: Utilities
|
|
14
|
+
Requires-Python: >=3.8
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: shapely
|
|
18
|
+
Requires-Dist: scikit-image
|
|
19
|
+
Requires-Dist: imgaug
|
|
20
|
+
Requires-Dist: pyclipper
|
|
21
|
+
Requires-Dist: lmdb
|
|
22
|
+
Requires-Dist: tqdm
|
|
23
|
+
Requires-Dist: numpy<2.0
|
|
24
|
+
Requires-Dist: rapidfuzz
|
|
25
|
+
Requires-Dist: opencv-python
|
|
26
|
+
Requires-Dist: opencv-contrib-python
|
|
27
|
+
Requires-Dist: cython
|
|
28
|
+
Requires-Dist: Pillow
|
|
29
|
+
Requires-Dist: pyyaml
|
|
30
|
+
Requires-Dist: python-docx
|
|
31
|
+
Requires-Dist: beautifulsoup4
|
|
32
|
+
Requires-Dist: fonttools>=4.24.0
|
|
33
|
+
Requires-Dist: fire>=0.3.0
|
|
34
|
+
|
|
35
|
+
[English](README_en.md) | 简体中文 | [हिन्दी](./doc/doc_i18n/README_हिन्द.md) | [日本語](./doc/doc_i18n/README_日本語.md) | [한국인](./doc/doc_i18n/README_한국어.md) | [Pу́сский язы́к](./doc/doc_i18n/README_Ру́сский_язы́к.md)
|
|
36
|
+
|
|
37
|
+
<p align="center">
|
|
38
|
+
<img src="./doc/PaddleOCR_log.png" align="middle" width = "600"/>
|
|
39
|
+
<p align="center">
|
|
40
|
+
<p align="center">
|
|
41
|
+
<a href="https://discord.gg/z9xaRVjdbD"><img src="https://img.shields.io/badge/Chat-on%20discord-7289da.svg?sanitize=true" alt="Chat"></a>
|
|
42
|
+
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache%202-dfd.svg"></a>
|
|
43
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/releases"><img src="https://img.shields.io/github/v/release/PaddlePaddle/PaddleOCR?color=ffa"></a>
|
|
44
|
+
<a href=""><img src="https://img.shields.io/badge/python-3.7+-aff.svg"></a>
|
|
45
|
+
<a href=""><img src="https://img.shields.io/badge/os-linux%2C%20win%2C%20mac-pink.svg"></a>
|
|
46
|
+
<a href="https://pypi.org/project/PaddleOCR/"><img src="https://img.shields.io/pypi/dm/PaddleOCR?color=9cf"></a>
|
|
47
|
+
<a href="https://github.com/PaddlePaddle/PaddleOCR/stargazers"><img src="https://img.shields.io/github/stars/PaddlePaddle/PaddleOCR?color=ccf"></a>
|
|
48
|
+
</p>
|
|
49
|
+
|
|
50
|
+
## 简介
|
|
51
|
+
PaddleOCR 旨在打造一套丰富、领先、且实用的 OCR 工具库,助力开发者训练出更好的模型,并应用落地。
|
|
52
|
+
|
|
53
|
+
<div align="center">
|
|
54
|
+
<img src="./doc/imgs_results/ch_ppocr_mobile_v2.0/test_add_91.jpg" width="800">
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div align="center">
|
|
58
|
+
<img src="./doc/imgs_results/ch_ppocr_mobile_v2.0/00006737.jpg" width="800">
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
## 🚀 社区
|
|
62
|
+
PaddleOCR 由 [PMC](https://github.com/PaddlePaddle/PaddleOCR/issues/12122) 监督。Issues 和 PRs 将在尽力的基础上进行审查。欲了解 PaddlePaddle 社区的完整概况,请访问 [community](https://github.com/PaddlePaddle/community)。
|
|
63
|
+
|
|
64
|
+
⚠️注意:[Issues](https://github.com/PaddlePaddle/PaddleOCR/issues)模块仅用来报告程序🐞Bug,其余提问请移步[Discussions](https://github.com/PaddlePaddle/PaddleOCR/discussions)模块提问。如所提Issue不是Bug,会被移到Discussions模块,敬请谅解。
|
|
65
|
+
|
|
66
|
+
## 📣 近期更新
|
|
67
|
+
- **📚直播和OCR实战打卡营预告**:《PP-ChatOCRv2赋能金融报告信息智能化抽取,新金融效率再升级》课程上线,破解复杂版面、表格识别、信息抽取OCR解析难题,直播时间:6月6日(周四)19:00。并于6月11日启动【政务采购合同信息抽取】实战打卡营。报名链接:https://www.wjx.top/vm/eBcYmqO.aspx?udsid=197406
|
|
68
|
+
|
|
69
|
+
- **🔥2024.7 添加 PaddleOCR 算法模型挑战赛冠军方案**:
|
|
70
|
+
- 赛题一:OCR 端到端识别任务冠军方案——[场景文本识别算法-SVTRv2](doc/doc_ch/algorithm_rec_svtrv2.md);
|
|
71
|
+
- 赛题二:通用表格识别任务冠军方案——[表格识别算法-SLANet-LCNetV2](doc/doc_ch/algorithm_table_slanet.md)。
|
|
72
|
+
|
|
73
|
+
- **🔥2024.5.10 上线星河零代码产线(OCR 相关)**:全面覆盖了以下四大 OCR 核心任务,提供极便捷的 Badcase 分析和实用的在线体验:
|
|
74
|
+
- [通用 OCR](https://aistudio.baidu.com/community/app/91660) (PP-OCRv4)。
|
|
75
|
+
- [通用表格识别](https://aistudio.baidu.com/community/app/91661) (SLANet)。
|
|
76
|
+
- [通用图像信息抽取](https://aistudio.baidu.com/community/app/91662) (PP-ChatOCRv2-common)。
|
|
77
|
+
- [文档场景信息抽取](https://aistudio.baidu.com/community/app/70303) (PP-ChatOCRv2-doc)。
|
|
78
|
+
|
|
79
|
+
同时采用了 **[全新的场景任务开发范式](https://aistudio.baidu.com/pipeline/mine)** ,将模型统一汇聚,实现训练部署的零代码开发,并支持在线服务化部署和导出离线服务化部署包。
|
|
80
|
+
|
|
81
|
+
- **🔥2023.8.7 发布 PaddleOCR [release/2.7](https://github.com/PaddlePaddle/PaddleOCR/tree/release/2.7)**
|
|
82
|
+
- 发布[PP-OCRv4](./doc/doc_ch/PP-OCRv4_introduction.md),提供 mobile 和 server 两种模型
|
|
83
|
+
- PP-OCRv4-mobile:速度可比情况下,中文场景效果相比于 PP-OCRv3 再提升 4.5%,英文场景提升 10%,80 语种多语言模型平均识别准确率提升 8%以上
|
|
84
|
+
- PP-OCRv4-server:发布了目前精度最高的 OCR 模型,中英文场景上检测模型精度提升 4.9%, 识别模型精度提升 2%
|
|
85
|
+
可参考[快速开始](./doc/doc_ch/quickstart.md) 一行命令快速使用,同时也可在飞桨 AI 套件(PaddleX)中的[通用 OCR 产业方案](https://aistudio.baidu.com/aistudio/modelsdetail?modelId=286)中低代码完成模型训练、推理、高性能部署全流程
|
|
86
|
+
- 🔨**2022.11 新增实现[4 种前沿算法](doc/doc_ch/algorithm_overview.md)**:文本检测 [DRRG](doc/doc_ch/algorithm_det_drrg.md), 文本识别 [RFL](doc/doc_ch/algorithm_rec_rfl.md), 文本超分[Text Telescope](doc/doc_ch/algorithm_sr_telescope.md),公式识别[CAN](doc/doc_ch/algorithm_rec_can.md)
|
|
87
|
+
- **2022.10 优化[JS 版 PP-OCRv3 模型](./deploy/paddlejs/README_ch.md)**:模型大小仅 4.3M,预测速度提升 8 倍,配套 web demo 开箱即用
|
|
88
|
+
- **💥 直播回放:PaddleOCR 研发团队详解 PP-StructureV2 优化策略**。微信扫描[下方二维码](#开源社区),关注公众号并填写问卷后进入官方交流群,获取直播回放链接与 20G 重磅 OCR 学习大礼包(内含 PDF 转 Word 应用程序、10 种垂类模型、《动手学 OCR》电子书等)
|
|
89
|
+
- **🔥2022.8.24 发布 PaddleOCR [release/2.6](https://github.com/PaddlePaddle/PaddleOCR/tree/release/2.6)**
|
|
90
|
+
- 发布[PP-StructureV2](./ppstructure/README_ch.md),系统功能性能全面升级,适配中文场景,新增支持[版面复原](./ppstructure/recovery/README_ch.md),支持**一行命令完成 PDF 转 Word**;
|
|
91
|
+
- [版面分析](./ppstructure/layout/README_ch.md)模型优化:模型存储减少 95%,速度提升 11 倍,平均 CPU 耗时仅需 41ms;
|
|
92
|
+
- [表格识别](./ppstructure/table/README_ch.md)模型优化:设计 3 大优化策略,预测耗时不变情况下,模型精度提升 6%;
|
|
93
|
+
- [关键信息抽取](./ppstructure/kie/README_ch.md)模型优化:设计视觉无关模型结构,语义实体识别精度提升 2.8%,关系抽取精度提升 9.1%。
|
|
94
|
+
- 🔥**2022.8 发布 [OCR 场景应用集合](./applications)**:包含数码管、液晶屏、车牌、高精度 SVTR 模型、手写体识别等**9 个垂类模型**,覆盖通用,制造、金融、交通行业的主要 OCR 垂类应用。
|
|
95
|
+
|
|
96
|
+
> [更多](./doc/doc_ch/update.md)
|
|
97
|
+
|
|
98
|
+
## 🌟 特性
|
|
99
|
+
|
|
100
|
+
支持多种 OCR 相关前沿算法,在此基础上打造产业级特色模型[PP-OCR](./doc/doc_ch/ppocr_introduction.md)、[PP-Structure](./ppstructure/README_ch.md)和[PP-ChatOCRv2](https://aistudio.baidu.com/community/app/70303),并打通数据生产、模型训练、压缩、预测部署全流程。
|
|
101
|
+
|
|
102
|
+
<div align="center">
|
|
103
|
+
<img src="https://raw.githubusercontent.com/tink2123/test/master/ppocrv4.png">
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
> 上述内容的使用方法建议从文档教程中的快速开始体验
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## ⚡ 快速开始
|
|
110
|
+
|
|
111
|
+
- 在线免费体验:
|
|
112
|
+
- PP-OCRv4 在线体验地址:https://aistudio.baidu.com/community/app/91660
|
|
113
|
+
- SLANet 在线体验地址:https://aistudio.baidu.com/community/app/91661
|
|
114
|
+
- PP-ChatOCRv2-common 在线体验地址:https://aistudio.baidu.com/community/app/91662
|
|
115
|
+
- PP-ChatOCRv2-doc 在线体验地址:https://aistudio.baidu.com/community/app/70303
|
|
116
|
+
|
|
117
|
+
- 一行命令快速使用:[快速开始(中英文/多语言/文档分析)](./doc/doc_ch/quickstart.md)
|
|
118
|
+
- 移动端 demo 体验:[安装包 DEMO 下载地址](https://ai.baidu.com/easyedge/app/openSource?from=paddlelite)(基于 EasyEdge 和 Paddle-Lite, 支持 iOS 和 Android 系统)
|
|
119
|
+
|
|
120
|
+
## 📖 技术交流合作
|
|
121
|
+
|
|
122
|
+
- 飞桨低代码开发工具 PaddleX 官方交流频道:https://aistudio.baidu.com/community/channel/610
|
|
123
|
+
|
|
124
|
+
## 📚《动手学 OCR》电子书
|
|
125
|
+
- [《动手学 OCR》电子书](./doc/doc_ch/ocr_book.md)
|
|
126
|
+
|
|
127
|
+
## 🛠️ PP-OCR 系列模型列表(更新中)
|
|
128
|
+
|
|
129
|
+
| 模型简介 | 模型名称 | 推荐场景 | 检测模型 | 方向分类器 | 识别模型 |
|
|
130
|
+
| ------------------------------------- | ----------------------- | --------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
|
|
131
|
+
| 中英文超轻量 PP-OCRv4 模型(15.8M) | ch_PP-OCRv4_xx | 移动端&服务器端 | [推理模型](https://paddleocr.bj.bcebos.com/PP-OCRv4/chinese/ch_PP-OCRv4_det_infer.tar) / [训练模型](https://paddleocr.bj.bcebos.com/PP-OCRv4/chinese/ch_PP-OCRv4_det_train.tar) | [推理模型](https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_cls_infer.tar) / [训练模型](https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_cls_train.tar) | [推理模型](https://paddleocr.bj.bcebos.com/PP-OCRv4/chinese/ch_PP-OCRv4_rec_infer.tar) / [训练模型](https://paddleocr.bj.bcebos.com/PP-OCRv4/chinese/ch_PP-OCRv4_rec_train.tar) |
|
|
132
|
+
| 中英文超轻量 PP-OCRv3 模型(16.2M) | ch_PP-OCRv3_xx | 移动端&服务器端 | [推理模型](https://paddleocr.bj.bcebos.com/PP-OCRv3/chinese/ch_PP-OCRv3_det_infer.tar) / [训练模型](https://paddleocr.bj.bcebos.com/PP-OCRv3/chinese/ch_PP-OCRv3_det_distill_train.tar) | [推理模型](https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_cls_infer.tar) / [训练模型](https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_cls_train.tar) | [推理模型](https://paddleocr.bj.bcebos.com/PP-OCRv3/chinese/ch_PP-OCRv3_rec_infer.tar) / [训练模型](https://paddleocr.bj.bcebos.com/PP-OCRv3/chinese/ch_PP-OCRv3_rec_train.tar) |
|
|
133
|
+
| 英文超轻量 PP-OCRv3 模型(13.4M) | en_PP-OCRv3_xx | 移动端&服务器端 | [推理模型](https://paddleocr.bj.bcebos.com/PP-OCRv3/english/en_PP-OCRv3_det_infer.tar) / [训练模型](https://paddleocr.bj.bcebos.com/PP-OCRv3/english/en_PP-OCRv3_det_distill_train.tar) | [推理模型](https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_cls_infer.tar) / [训练模型](https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_cls_train.tar) | [推理模型](https://paddleocr.bj.bcebos.com/PP-OCRv3/english/en_PP-OCRv3_rec_infer.tar) / [训练模型](https://paddleocr.bj.bcebos.com/PP-OCRv3/english/en_PP-OCRv3_rec_train.tar) |
|
|
134
|
+
|
|
135
|
+
- 超轻量 OCR 系列更多模型下载(包括多语言),可以参考[PP-OCR 系列模型下载](./doc/doc_ch/models_list.md),文档分析相关模型参考[PP-Structure 系列模型下载](./ppstructure/docs/models_list.md)
|
|
136
|
+
|
|
137
|
+
### PaddleOCR 场景应用模型
|
|
138
|
+
|
|
139
|
+
| 行业 | 类别 | 亮点 | 文档说明 | 模型下载 |
|
|
140
|
+
| ---- | ------------ | ---------------------------------- | ------------------------------------------------------------ | --------------------------------------------- |
|
|
141
|
+
| 制造 | 数码管识别 | 数码管数据合成、漏识别调优 | [光功率计数码管字符识别](./applications/光功率计数码管字符识别/光功率计数码管字符识别.md) | [下载链接](./applications/README.md#模型下载) |
|
|
142
|
+
| 金融 | 通用表单识别 | 多模态通用表单结构化提取 | [多模态表单识别](./applications/多模态表单识别.md) | [下载链接](./applications/README.md#模型下载) |
|
|
143
|
+
| 交通 | 车牌识别 | 多角度图像处理、轻量模型、端侧部署 | [轻量级车牌识别](./applications/轻量级车牌识别.md) | [下载链接](./applications/README.md#模型下载) |
|
|
144
|
+
|
|
145
|
+
- 更多制造、金融、交通行业的主要 OCR 垂类应用模型(如电表、液晶屏、高精度 SVTR 模型等),可参考[场景应用模型下载](./applications)
|
|
146
|
+
|
|
147
|
+
## 📖 文档教程
|
|
148
|
+
|
|
149
|
+
- [运行环境准备](./doc/doc_ch/environment.md)
|
|
150
|
+
- [PP-OCR 文本检测识别🔥](./doc/doc_ch/ppocr_introduction.md)
|
|
151
|
+
- [快速开始](./doc/doc_ch/quickstart.md)
|
|
152
|
+
- [模型库](./doc/doc_ch/models_list.md)
|
|
153
|
+
- [模型训练](./doc/doc_ch/training.md)
|
|
154
|
+
- [文本检测](./doc/doc_ch/detection.md)
|
|
155
|
+
- [文本识别](./doc/doc_ch/recognition.md)
|
|
156
|
+
- [文本方向分类器](./doc/doc_ch/angle_class.md)
|
|
157
|
+
- 模型压缩
|
|
158
|
+
- [模型量化](./deploy/slim/quantization/README.md)
|
|
159
|
+
- [模型裁剪](./deploy/slim/prune/README.md)
|
|
160
|
+
- [知识蒸馏](./doc/doc_ch/knowledge_distillation.md)
|
|
161
|
+
- [推理部署](./deploy/README_ch.md)
|
|
162
|
+
- [基于 Python 预测引擎推理](./doc/doc_ch/inference_ppocr.md)
|
|
163
|
+
- [基于 C++预测引擎推理](./deploy/cpp_infer/readme_ch.md)
|
|
164
|
+
- [服务化部署](./deploy/pdserving/README_CN.md)
|
|
165
|
+
- [端侧部署](./deploy/lite/readme.md)
|
|
166
|
+
- [Paddle2ONNX 模型转化与预测](./deploy/paddle2onnx/readme_ch.md)
|
|
167
|
+
- [云上飞桨部署工具](./deploy/paddlecloud/README.md)
|
|
168
|
+
- [Benchmark](./doc/doc_ch/benchmark.md)
|
|
169
|
+
- [PP-Structure 文档分析🔥](./ppstructure/README_ch.md)
|
|
170
|
+
- [快速开始](./ppstructure/docs/quickstart.md)
|
|
171
|
+
- [模型库](./ppstructure/docs/models_list.md)
|
|
172
|
+
- [模型训练](./doc/doc_ch/training.md)
|
|
173
|
+
- [版面分析](./ppstructure/layout/README_ch.md)
|
|
174
|
+
- [表格识别](./ppstructure/table/README_ch.md)
|
|
175
|
+
- [关键信息提取](./ppstructure/kie/README_ch.md)
|
|
176
|
+
- [推理部署](./deploy/README_ch.md)
|
|
177
|
+
- [基于 Python 预测引擎推理](./ppstructure/docs/inference.md)
|
|
178
|
+
- [基于 C++预测引擎推理](./deploy/cpp_infer/readme_ch.md)
|
|
179
|
+
- [服务化部署](./deploy/hubserving/readme.md)
|
|
180
|
+
- [前沿算法与模型🚀](./doc/doc_ch/algorithm_overview.md)
|
|
181
|
+
- [文本检测算法](./doc/doc_ch/algorithm_overview.md)
|
|
182
|
+
- [文本识别算法](./doc/doc_ch/algorithm_overview.md)
|
|
183
|
+
- [端到端 OCR 算法](./doc/doc_ch/algorithm_overview.md)
|
|
184
|
+
- [表格识别算法](./doc/doc_ch/algorithm_overview.md)
|
|
185
|
+
- [关键信息抽取算法](./doc/doc_ch/algorithm_overview.md)
|
|
186
|
+
- [使用 PaddleOCR 架构添加新算法](./doc/doc_ch/add_new_algorithm.md)
|
|
187
|
+
- [场景应用](./applications)
|
|
188
|
+
- 数据标注与合成
|
|
189
|
+
- [半自动标注工具 PPOCRLabel](https://github.com/PFCCLab/PPOCRLabel/blob/main/README_ch.md)
|
|
190
|
+
- [数据合成工具 Style-Text](https://github.com/PFCCLab/StyleText/blob/main/README_ch.md)
|
|
191
|
+
- [其它数据标注工具](./doc/doc_ch/data_annotation.md)
|
|
192
|
+
- [其它数据合成工具](./doc/doc_ch/data_synthesis.md)
|
|
193
|
+
- 数据集
|
|
194
|
+
- [通用中英文 OCR 数据集](doc/doc_ch/dataset/datasets.md)
|
|
195
|
+
- [手写中文 OCR 数据集](doc/doc_ch/dataset/handwritten_datasets.md)
|
|
196
|
+
- [垂类多语言 OCR 数据集](doc/doc_ch/dataset/vertical_and_multilingual_datasets.md)
|
|
197
|
+
- [版面分析数据集](doc/doc_ch/dataset/layout_datasets.md)
|
|
198
|
+
- [表格识别数据集](doc/doc_ch/dataset/table_datasets.md)
|
|
199
|
+
- [关键信息提取数据集](doc/doc_ch/dataset/kie_datasets.md)
|
|
200
|
+
- [代码组织结构](./doc/doc_ch/tree.md)
|
|
201
|
+
- [效果展示](#效果展示)
|
|
202
|
+
- [《动手学 OCR》电子书📚](./doc/doc_ch/ocr_book.md)
|
|
203
|
+
- [开源社区](#开源社区)
|
|
204
|
+
- FAQ
|
|
205
|
+
- [通用问题](./doc/doc_ch/FAQ.md)
|
|
206
|
+
- [PaddleOCR 实战问题](./doc/doc_ch/FAQ.md)
|
|
207
|
+
- [参考文献](./doc/doc_ch/reference.md)
|
|
208
|
+
- [许可证书](#许可证书)
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
<a name="效果展示"></a>
|
|
212
|
+
|
|
213
|
+
## 👀 效果展示 [more](./doc/doc_ch/visualization.md)
|
|
214
|
+
|
|
215
|
+
<details open>
|
|
216
|
+
<summary>PP-OCRv3 中文模型</summary>
|
|
217
|
+
|
|
218
|
+
<div align="center">
|
|
219
|
+
<img src="doc/imgs_results/PP-OCRv3/ch/PP-OCRv3-pic001.jpg" width="800">
|
|
220
|
+
<img src="doc/imgs_results/PP-OCRv3/ch/PP-OCRv3-pic002.jpg" width="800">
|
|
221
|
+
<img src="doc/imgs_results/PP-OCRv3/ch/PP-OCRv3-pic003.jpg" width="800">
|
|
222
|
+
</div>
|
|
223
|
+
|
|
224
|
+
</details>
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
<details open>
|
|
228
|
+
<summary>PP-OCRv3 英文模型</summary>
|
|
229
|
+
|
|
230
|
+
<div align="center">
|
|
231
|
+
<img src="doc/imgs_results/PP-OCRv3/en/en_1.png" width="800">
|
|
232
|
+
<img src="doc/imgs_results/PP-OCRv3/en/en_2.png" width="800">
|
|
233
|
+
</div>
|
|
234
|
+
|
|
235
|
+
</details>
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
<details open>
|
|
239
|
+
<summary>PP-OCRv3 多语言模型</summary>
|
|
240
|
+
|
|
241
|
+
<div align="center">
|
|
242
|
+
<img src="doc/imgs_results/PP-OCRv3/multi_lang/japan_2.jpg" width="800">
|
|
243
|
+
<img src="doc/imgs_results/PP-OCRv3/multi_lang/korean_1.jpg" width="800">
|
|
244
|
+
</div>
|
|
245
|
+
|
|
246
|
+
</details>
|
|
247
|
+
|
|
248
|
+
<details open>
|
|
249
|
+
<summary>PP-Structure 文档分析</summary>
|
|
250
|
+
|
|
251
|
+
- 版面分析+表格识别
|
|
252
|
+
<div align="center">
|
|
253
|
+
<img src="./ppstructure/docs/table/ppstructure.GIF" width="800">
|
|
254
|
+
</div>
|
|
255
|
+
|
|
256
|
+
- SER(语义实体识别)
|
|
257
|
+
<div align="center">
|
|
258
|
+
<img src="https://user-images.githubusercontent.com/14270174/185310636-6ce02f7c-790d-479f-b163-ea97a5a04808.jpg" width="600">
|
|
259
|
+
</div>
|
|
260
|
+
|
|
261
|
+
<div align="center">
|
|
262
|
+
<img src="https://user-images.githubusercontent.com/14270174/185539517-ccf2372a-f026-4a7c-ad28-c741c770f60a.png" width="600">
|
|
263
|
+
</div>
|
|
264
|
+
|
|
265
|
+
<div align="center">
|
|
266
|
+
<img src="https://user-images.githubusercontent.com/14270174/197464552-69de557f-edff-4c7f-acbf-069df1ba097f.png" width="600">
|
|
267
|
+
</div>
|
|
268
|
+
|
|
269
|
+
- RE(关系提取)
|
|
270
|
+
<div align="center">
|
|
271
|
+
<img src="https://user-images.githubusercontent.com/14270174/185393805-c67ff571-cf7e-4217-a4b0-8b396c4f22bb.jpg" width="600">
|
|
272
|
+
</div>
|
|
273
|
+
|
|
274
|
+
<div align="center">
|
|
275
|
+
<img src="https://user-images.githubusercontent.com/14270174/185540080-0431e006-9235-4b6d-b63d-0b3c6e1de48f.jpg" width="600">
|
|
276
|
+
</div>
|
|
277
|
+
|
|
278
|
+
<div align="center">
|
|
279
|
+
<img src="https://user-images.githubusercontent.com/25809855/186094813-3a8e16cc-42e5-4982-b9f4-0134dfb5688d.png" width="600">
|
|
280
|
+
</div>
|
|
281
|
+
|
|
282
|
+
</details>
|
|
283
|
+
|
|
284
|
+
<a name="许可证书"></a>
|
|
285
|
+
|
|
286
|
+
## 许可证书
|
|
287
|
+
本项目的发布受<a href="https://github.com/PaddlePaddle/PaddleOCR/blob/master/LICENSE">Apache 2.0 license</a>许可认证。
|