paddleocr 3.0.1__tar.gz → 3.0.2__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.
Files changed (289) hide show
  1. {paddleocr-3.0.1/paddleocr.egg-info → paddleocr-3.0.2}/PKG-INFO +42 -3
  2. {paddleocr-3.0.1 → paddleocr-3.0.2}/README.md +39 -0
  3. {paddleocr-3.0.1 → paddleocr-3.0.2}/README_en.md +41 -15
  4. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_common_args.py +28 -15
  5. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_constants.py +1 -1
  6. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_pipelines/base.py +10 -7
  7. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_pipelines/ocr.py +105 -89
  8. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_pipelines/pp_structurev3.py +59 -1
  9. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_utils/cli.py +0 -1
  10. {paddleocr-3.0.1 → paddleocr-3.0.2/paddleocr.egg-info}/PKG-INFO +42 -3
  11. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr.egg-info/requires.txt +1 -1
  12. {paddleocr-3.0.1 → paddleocr-3.0.2}/pyproject.toml +2 -2
  13. {paddleocr-3.0.1 → paddleocr-3.0.2}/LICENSE +0 -0
  14. {paddleocr-3.0.1 → paddleocr-3.0.2}/MANIFEST.in +0 -0
  15. {paddleocr-3.0.1 → paddleocr-3.0.2}/awesome_projects.md +0 -0
  16. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/__init__.py +0 -0
  17. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/__main__.py +0 -0
  18. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_abstract.py +0 -0
  19. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_cli.py +0 -0
  20. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_env.py +0 -0
  21. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/__init__.py +0 -0
  22. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/_image_classification.py +0 -0
  23. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/_object_detection.py +0 -0
  24. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/_text_detection.py +0 -0
  25. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/base.py +0 -0
  26. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/doc_img_orientation_classification.py +0 -0
  27. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/doc_vlm.py +0 -0
  28. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/formula_recognition.py +0 -0
  29. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/layout_detection.py +0 -0
  30. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/seal_text_detection.py +0 -0
  31. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/table_cells_detection.py +0 -0
  32. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/table_classification.py +0 -0
  33. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/table_structure_recognition.py +0 -0
  34. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/text_detection.py +0 -0
  35. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/text_image_unwarping.py +0 -0
  36. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/text_recognition.py +0 -0
  37. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_models/textline_orientation_classification.py +0 -0
  38. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_pipelines/__init__.py +0 -0
  39. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_pipelines/doc_preprocessor.py +0 -0
  40. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_pipelines/doc_understanding.py +0 -0
  41. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_pipelines/formula_recognition.py +0 -0
  42. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_pipelines/pp_chatocrv4_doc.py +0 -0
  43. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_pipelines/seal_recognition.py +0 -0
  44. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_pipelines/table_recognition_v2.py +0 -0
  45. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_pipelines/utils.py +0 -0
  46. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_utils/__init__.py +0 -0
  47. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_utils/deprecation.py +0 -0
  48. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_utils/logging.py +0 -0
  49. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr/_version.py +0 -0
  50. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr.egg-info/SOURCES.txt +0 -0
  51. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr.egg-info/dependency_links.txt +0 -0
  52. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr.egg-info/entry_points.txt +0 -0
  53. {paddleocr-3.0.1 → paddleocr-3.0.2}/paddleocr.egg-info/top_level.txt +0 -0
  54. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/__init__.py +0 -0
  55. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/__init__.py +0 -0
  56. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/collate_fn.py +0 -0
  57. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/ColorJitter.py +0 -0
  58. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/__init__.py +0 -0
  59. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/abinet_aug.py +0 -0
  60. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/copy_paste.py +0 -0
  61. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/ct_process.py +0 -0
  62. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/drrg_targets.py +0 -0
  63. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/east_process.py +0 -0
  64. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/fce_aug.py +0 -0
  65. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/fce_targets.py +0 -0
  66. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/frost_img/frost1.jpg +0 -0
  67. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/frost_img/frost2.png +0 -0
  68. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/frost_img/frost3.png +0 -0
  69. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/frost_img/frost4.jpg +0 -0
  70. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/frost_img/frost5.jpg +0 -0
  71. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/frost_img/frost6.jpg +0 -0
  72. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/iaa_augment.py +0 -0
  73. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/label_ops.py +0 -0
  74. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/latex_ocr_aug.py +0 -0
  75. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/make_border_map.py +0 -0
  76. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/make_pse_gt.py +0 -0
  77. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/make_shrink_map.py +0 -0
  78. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/operators.py +0 -0
  79. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/pg_process.py +0 -0
  80. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/randaugment.py +0 -0
  81. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/random_crop_data.py +0 -0
  82. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/rec_img_aug.py +0 -0
  83. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/sast_process.py +0 -0
  84. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/ssl_img_aug.py +0 -0
  85. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/table_ops.py +0 -0
  86. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/text_image_aug/__init__.py +0 -0
  87. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/text_image_aug/augment.py +0 -0
  88. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/text_image_aug/warp_mls.py +0 -0
  89. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/unimernet_aug.py +0 -0
  90. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/vqa/__init__.py +0 -0
  91. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/vqa/augment.py +0 -0
  92. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/vqa/token/__init__.py +0 -0
  93. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/vqa/token/vqa_re_convert.py +0 -0
  94. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/vqa/token/vqa_token_chunk.py +0 -0
  95. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/vqa/token/vqa_token_pad.py +0 -0
  96. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/imaug/vqa/token/vqa_token_relation.py +0 -0
  97. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/latexocr_dataset.py +0 -0
  98. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/lmdb_dataset.py +0 -0
  99. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/multi_scale_sampler.py +0 -0
  100. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/pgnet_dataset.py +0 -0
  101. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/pubtab_dataset.py +0 -0
  102. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/data/simple_dataset.py +0 -0
  103. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/__init__.py +0 -0
  104. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/cls_postprocess.py +0 -0
  105. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/ct_postprocess.py +0 -0
  106. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/db_postprocess.py +0 -0
  107. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/drrg_postprocess.py +0 -0
  108. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/east_postprocess.py +0 -0
  109. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/fce_postprocess.py +0 -0
  110. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/locality_aware_nms.py +0 -0
  111. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/pg_postprocess.py +0 -0
  112. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/picodet_postprocess.py +0 -0
  113. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/pse_postprocess/__init__.py +0 -0
  114. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/pse_postprocess/pse/README.md +0 -0
  115. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/pse_postprocess/pse/__init__.py +0 -0
  116. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/pse_postprocess/pse/pse.pyx +0 -0
  117. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/pse_postprocess/pse/setup.py +0 -0
  118. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/pse_postprocess/pse_postprocess.py +0 -0
  119. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/rec_postprocess.py +0 -0
  120. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/sast_postprocess.py +0 -0
  121. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/table_postprocess.py +0 -0
  122. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/vqa_token_re_layoutlm_postprocess.py +0 -0
  123. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/postprocess/vqa_token_ser_layoutlm_postprocess.py +0 -0
  124. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/EN_symbol_dict.txt +0 -0
  125. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/__init__.py +0 -0
  126. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/README.md +0 -0
  127. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/ar_dict.txt +0 -0
  128. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/arabic_dict.txt +0 -0
  129. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/be_dict.txt +0 -0
  130. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/bengali_dict.txt +0 -0
  131. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/bg_dict.txt +0 -0
  132. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/bm_dict.txt +0 -0
  133. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/bm_dict_add.txt +0 -0
  134. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/bn_dict.txt +0 -0
  135. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/chinese_cht_dict.txt +0 -0
  136. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/confuse.pkl +0 -0
  137. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/cyrillic_dict.txt +0 -0
  138. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/devanagari_dict.txt +0 -0
  139. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/en_dict.txt +0 -0
  140. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/fa_dict.txt +0 -0
  141. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/french_dict.txt +0 -0
  142. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/german_dict.txt +0 -0
  143. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/gujarati_dict.txt +0 -0
  144. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/hebrew_dict.txt +0 -0
  145. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/hi_dict.txt +0 -0
  146. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/it_dict.txt +0 -0
  147. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/japan_dict.txt +0 -0
  148. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/ka_dict.txt +0 -0
  149. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/kazakh_dict.txt +0 -0
  150. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/kie_dict/xfund_class_list.txt +0 -0
  151. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/korean_dict.txt +0 -0
  152. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/latex_ocr_tokenizer.json +0 -0
  153. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/latex_symbol_dict.txt +0 -0
  154. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/latin_dict.txt +0 -0
  155. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/layout_dict/layout_cdla_dict.txt +0 -0
  156. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/layout_dict/layout_publaynet_dict.txt +0 -0
  157. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/layout_dict/layout_table_dict.txt +0 -0
  158. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/mr_dict.txt +0 -0
  159. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/ne_dict.txt +0 -0
  160. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/oc_dict.txt +0 -0
  161. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/parseq_dict.txt +0 -0
  162. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/ppocrv4_doc_dict.txt +0 -0
  163. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/ppocrv5_dict.txt +0 -0
  164. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/pu_dict.txt +0 -0
  165. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/rs_dict.txt +0 -0
  166. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/rsc_dict.txt +0 -0
  167. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/ru_dict.txt +0 -0
  168. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/samaritan_dict.txt +0 -0
  169. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/spin_dict.txt +0 -0
  170. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/syriac_dict.txt +0 -0
  171. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/ta_dict.txt +0 -0
  172. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/table_dict.txt +0 -0
  173. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/table_master_structure_dict.txt +0 -0
  174. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/table_structure_dict.txt +0 -0
  175. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/table_structure_dict_ch.txt +0 -0
  176. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/te_dict.txt +0 -0
  177. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/th_dict.txt +0 -0
  178. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/ug_dict.txt +0 -0
  179. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/uk_dict.txt +0 -0
  180. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/unimernet_tokenizer/tokenizer.json +0 -0
  181. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/unimernet_tokenizer/tokenizer_config.json +0 -0
  182. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/ur_dict.txt +0 -0
  183. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/vi_dict.txt +0 -0
  184. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict/xi_dict.txt +0 -0
  185. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/dict90.txt +0 -0
  186. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/e2e_metric/Deteval.py +0 -0
  187. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/e2e_metric/polygon_fast.py +0 -0
  188. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/e2e_utils/extract_batchsize.py +0 -0
  189. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/e2e_utils/extract_textpoint_fast.py +0 -0
  190. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/e2e_utils/extract_textpoint_slow.py +0 -0
  191. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/e2e_utils/pgnet_pp_utils.py +0 -0
  192. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/e2e_utils/visual.py +0 -0
  193. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/en_dict.txt +0 -0
  194. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/export_model.py +0 -0
  195. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/formula_utils/math_txt2pkl.py +0 -0
  196. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/formula_utils/unimernet_data_convert.py +0 -0
  197. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/gen_label.py +0 -0
  198. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/ic15_dict.txt +0 -0
  199. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/iou.py +0 -0
  200. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/loggers/__init__.py +0 -0
  201. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/loggers/base_logger.py +0 -0
  202. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/loggers/loggers.py +0 -0
  203. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/loggers/wandb_logger.py +0 -0
  204. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/logging.py +0 -0
  205. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/network.py +0 -0
  206. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/poly_nms.py +0 -0
  207. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/ppocr_keys_v1.txt +0 -0
  208. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/profiler.py +0 -0
  209. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/save_load.py +0 -0
  210. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/stats.py +0 -0
  211. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/utility.py +0 -0
  212. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppocr/utils/visual.py +0 -0
  213. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/README.md +0 -0
  214. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/__init__.py +0 -0
  215. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/kie/README.md +0 -0
  216. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/kie/README_ch.md +0 -0
  217. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/kie/how_to_do_kie.md +0 -0
  218. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/kie/how_to_do_kie_en.md +0 -0
  219. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/kie/predict_kie_token_ser.py +0 -0
  220. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/kie/predict_kie_token_ser_re.py +0 -0
  221. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/kie/requirements.txt +0 -0
  222. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/kie/tools/eval_with_label_end2end.py +0 -0
  223. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/kie/tools/trans_funsd_label.py +0 -0
  224. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/kie/tools/trans_xfun_data.py +0 -0
  225. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/layout/README.md +0 -0
  226. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/layout/README_ch.md +0 -0
  227. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/layout/__init__.py +0 -0
  228. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/layout/predict_layout.py +0 -0
  229. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/pdf2word/README.md +0 -0
  230. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/pdf2word/icons/chinese.png +0 -0
  231. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/pdf2word/icons/english.png +0 -0
  232. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/pdf2word/icons/folder-open.png +0 -0
  233. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/pdf2word/icons/folder-plus.png +0 -0
  234. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/pdf2word/pdf2word.py +0 -0
  235. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/predict_system.py +0 -0
  236. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/recovery/README.md +0 -0
  237. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/recovery/README_ch.md +0 -0
  238. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/recovery/__init__.py +0 -0
  239. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/recovery/recovery_to_doc.py +0 -0
  240. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/recovery/recovery_to_markdown.py +0 -0
  241. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/recovery/requirements.txt +0 -0
  242. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/recovery/table_process.py +0 -0
  243. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/README.md +0 -0
  244. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/README_ch.md +0 -0
  245. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/__init__.py +0 -0
  246. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/convert_label2html.py +0 -0
  247. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/eval_table.py +0 -0
  248. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/matcher.py +0 -0
  249. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/predict_structure.py +0 -0
  250. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/predict_table.py +0 -0
  251. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/table_master_match.py +0 -0
  252. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/table_metric/__init__.py +0 -0
  253. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/table_metric/parallel.py +0 -0
  254. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/table_metric/table_metric.py +0 -0
  255. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/tablepyxl/__init__.py +0 -0
  256. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/tablepyxl/style.py +0 -0
  257. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/table/tablepyxl/tablepyxl.py +0 -0
  258. {paddleocr-3.0.1 → paddleocr-3.0.2}/ppstructure/utility.py +0 -0
  259. {paddleocr-3.0.1 → paddleocr-3.0.2}/requirements.txt +0 -0
  260. {paddleocr-3.0.1 → paddleocr-3.0.2}/setup.cfg +0 -0
  261. {paddleocr-3.0.1 → paddleocr-3.0.2}/setup.py +0 -0
  262. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/__init__.py +0 -0
  263. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/end2end/convert_ppocr_label.py +0 -0
  264. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/end2end/draw_html.py +0 -0
  265. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/end2end/eval_end2end.py +0 -0
  266. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/end2end/readme.md +0 -0
  267. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/eval.py +0 -0
  268. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/export_center.py +0 -0
  269. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/export_model.py +0 -0
  270. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer/predict_cls.py +0 -0
  271. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer/predict_det.py +0 -0
  272. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer/predict_e2e.py +0 -0
  273. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer/predict_rec.py +0 -0
  274. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer/predict_sr.py +0 -0
  275. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer/predict_system.py +0 -0
  276. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer/utility.py +0 -0
  277. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer_cls.py +0 -0
  278. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer_det.py +0 -0
  279. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer_e2e.py +0 -0
  280. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer_kie.py +0 -0
  281. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer_kie_token_ser.py +0 -0
  282. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer_kie_token_ser_re.py +0 -0
  283. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer_rec.py +0 -0
  284. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer_sr.py +0 -0
  285. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/infer_table.py +0 -0
  286. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/naive_sync_bn.py +0 -0
  287. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/program.py +0 -0
  288. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/test_hubserving.py +0 -0
  289. {paddleocr-3.0.1 → paddleocr-3.0.2}/tools/train.py +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: paddleocr
3
- Version: 3.0.1
4
- Summary: Awesome OCR toolkit based on PaddlePaddle
3
+ Version: 3.0.2
4
+ Summary: Awesome multilingual OCR and document parsing toolkits based on PaddlePaddle
5
5
  Author-email: PaddlePaddle <Paddle-better@baidu.com>
6
6
  Maintainer-email: PaddlePaddle <Paddle-better@baidu.com>
7
7
  License: Apache License 2.0
@@ -18,7 +18,7 @@ Classifier: Topic :: Utilities
18
18
  Requires-Python: >=3.8
19
19
  Description-Content-Type: text/markdown
20
20
  License-File: LICENSE
21
- Requires-Dist: paddlex[ie,multimodal,ocr]==3.0.1
21
+ Requires-Dist: paddlex[ie,multimodal,ocr]==3.0.2
22
22
  Requires-Dist: PyYAML>=6
23
23
  Requires-Dist: typing-extensions>=4.12
24
24
 
@@ -63,6 +63,42 @@ PaddleOCR 3.0除了提供优秀的模型库外,还提供好学易用的工具
63
63
 
64
64
 
65
65
  ## 📣 最新动态
66
+
67
+ 🔥🔥2025.06.19: **PaddleOCR 3.0.2** 发布,包含:
68
+
69
+ - **功能新增:**
70
+ - 模型默认下载源从`BOS`改为`HuggingFace`,同时也支持用户通过更改环境变量`PADDLE_PDX_MODEL_SOURCE`为`BOS`,将模型下载源设置为百度云对象存储BOS。
71
+ - PP-OCRv5、PP-StructureV3、PP-ChatOCRv4等pipeline新增C++、Java、Go、C#、Node.js、PHP 6种语言的服务调用示例。
72
+ - 优化PP-StructureV3产线中版面分区排序算法,对复杂竖版版面排序逻辑进行完善,进一步提升了复杂版面排序效果。
73
+ - 优化模型选择逻辑,当指定语言、未指定模型版本时,自动选择支持该语言的最新版本的模型。
74
+ - 为MKL-DNN缓存大小设置默认上界,防止缓存无限增长。同时,支持用户配置缓存容量。
75
+ - 更新高性能推理默认配置,支持Paddle MKL-DNN加速。优化高性能推理自动配置逻辑,支持更智能的配置选择。
76
+ - 调整默认设备获取逻辑,考虑环境中安装的Paddle框架对计算设备的实际支持情况,使程序行为更符合直觉。
77
+ - 新增PP-OCRv5的Android端示例,[详情](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/deployment/on_device_deployment.html)。
78
+
79
+ - **Bug修复:**
80
+ - 修复PP-StructureV3部分CLI参数不生效的问题。
81
+ - 修复部分情况下`export_paddlex_config_to_yaml`无法正常工作的问题。
82
+ - 修复save_path实际行为与文档描述不符的问题。
83
+ - 修复基础服务化部署在使用MKL-DNN时可能出现的多线程错误。
84
+ - 修复Latex-OCR模型的图像预处理的通道顺序错误。
85
+ - 修复文本识别模块保存可视化图像的通道顺序错误。
86
+ - 修复PP-StructureV3中表格可视化结果通道顺序错误。
87
+ - 修复PP-StructureV3产线中极特殊的情况下,计算overlap_ratio时,变量溢出问题。
88
+
89
+ - **文档优化:**
90
+ - 更新文档中对`enable_mkldnn`参数的说明,使其更准确地描述程序的实际行为。
91
+ - 修复文档中对`lang`和`ocr_version`参数描述的错误。
92
+ - 补充通过CLI导出产线配置文件的说明。
93
+ - 修复PP-OCRv5性能数据表格中的列缺失问题。
94
+ - 润色PP-StructureV3在不同配置下的benchmark指标。
95
+
96
+ - **其他:**
97
+ - 放松numpy、pandas等依赖的版本限制,恢复对Python 3.12的支持。
98
+
99
+ <details>
100
+ <summary><strong>历史日志</strong></summary>
101
+
66
102
  🔥🔥2025.06.05: **PaddleOCR 3.0.1** 发布,包含:
67
103
 
68
104
  - **优化部分模型和模型配置:**
@@ -89,6 +125,9 @@ PaddleOCR 3.0除了提供优秀的模型库外,还提供好学易用的工具
89
125
  2. 💻 原生支持**文心大模型4.5 Turbo**,还兼容 PaddleNLP、Ollama、vLLM 等工具部署的大模型。
90
126
  3. 🤝 集成 [PP-DocBee2](https://github.com/PaddlePaddle/PaddleMIX/tree/develop/paddlemix/examples/ppdocbee2),支持印刷文字、手写体文字、印章信息、表格、图表等常见的复杂文档信息抽取和理解的能力。
91
127
 
128
+ [更多日志](https://paddlepaddle.github.io/PaddleOCR/latest/update/update.html)
129
+
130
+ </details>
92
131
 
93
132
  ## ⚡ 快速开始
94
133
  ### 1. 在线体验
@@ -39,6 +39,42 @@ PaddleOCR 3.0除了提供优秀的模型库外,还提供好学易用的工具
39
39
 
40
40
 
41
41
  ## 📣 最新动态
42
+
43
+ 🔥🔥2025.06.19: **PaddleOCR 3.0.2** 发布,包含:
44
+
45
+ - **功能新增:**
46
+ - 模型默认下载源从`BOS`改为`HuggingFace`,同时也支持用户通过更改环境变量`PADDLE_PDX_MODEL_SOURCE`为`BOS`,将模型下载源设置为百度云对象存储BOS。
47
+ - PP-OCRv5、PP-StructureV3、PP-ChatOCRv4等pipeline新增C++、Java、Go、C#、Node.js、PHP 6种语言的服务调用示例。
48
+ - 优化PP-StructureV3产线中版面分区排序算法,对复杂竖版版面排序逻辑进行完善,进一步提升了复杂版面排序效果。
49
+ - 优化模型选择逻辑,当指定语言、未指定模型版本时,自动选择支持该语言的最新版本的模型。
50
+ - 为MKL-DNN缓存大小设置默认上界,防止缓存无限增长。同时,支持用户配置缓存容量。
51
+ - 更新高性能推理默认配置,支持Paddle MKL-DNN加速。优化高性能推理自动配置逻辑,支持更智能的配置选择。
52
+ - 调整默认设备获取逻辑,考虑环境中安装的Paddle框架对计算设备的实际支持情况,使程序行为更符合直觉。
53
+ - 新增PP-OCRv5的Android端示例,[详情](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/deployment/on_device_deployment.html)。
54
+
55
+ - **Bug修复:**
56
+ - 修复PP-StructureV3部分CLI参数不生效的问题。
57
+ - 修复部分情况下`export_paddlex_config_to_yaml`无法正常工作的问题。
58
+ - 修复save_path实际行为与文档描述不符的问题。
59
+ - 修复基础服务化部署在使用MKL-DNN时可能出现的多线程错误。
60
+ - 修复Latex-OCR模型的图像预处理的通道顺序错误。
61
+ - 修复文本识别模块保存可视化图像的通道顺序错误。
62
+ - 修复PP-StructureV3中表格可视化结果通道顺序错误。
63
+ - 修复PP-StructureV3产线中极特殊的情况下,计算overlap_ratio时,变量溢出问题。
64
+
65
+ - **文档优化:**
66
+ - 更新文档中对`enable_mkldnn`参数的说明,使其更准确地描述程序的实际行为。
67
+ - 修复文档中对`lang`和`ocr_version`参数描述的错误。
68
+ - 补充通过CLI导出产线配置文件的说明。
69
+ - 修复PP-OCRv5性能数据表格中的列缺失问题。
70
+ - 润色PP-StructureV3在不同配置下的benchmark指标。
71
+
72
+ - **其他:**
73
+ - 放松numpy、pandas等依赖的版本限制,恢复对Python 3.12的支持。
74
+
75
+ <details>
76
+ <summary><strong>历史日志</strong></summary>
77
+
42
78
  🔥🔥2025.06.05: **PaddleOCR 3.0.1** 发布,包含:
43
79
 
44
80
  - **优化部分模型和模型配置:**
@@ -65,6 +101,9 @@ PaddleOCR 3.0除了提供优秀的模型库外,还提供好学易用的工具
65
101
  2. 💻 原生支持**文心大模型4.5 Turbo**,还兼容 PaddleNLP、Ollama、vLLM 等工具部署的大模型。
66
102
  3. 🤝 集成 [PP-DocBee2](https://github.com/PaddlePaddle/PaddleMIX/tree/develop/paddlemix/examples/ppdocbee2),支持印刷文字、手写体文字、印章信息、表格、图表等常见的复杂文档信息抽取和理解的能力。
67
103
 
104
+ [更多日志](https://paddlepaddle.github.io/PaddleOCR/latest/update/update.html)
105
+
106
+ </details>
68
107
 
69
108
  ## ⚡ 快速开始
70
109
  ### 1. 在线体验
@@ -44,7 +44,46 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
44
44
 
45
45
  ## 📣 Recent updates
46
46
 
47
- #### **🔥🔥 2025.06.05: Release of PaddleOCR 3.0.1, includes:**
47
+ #### 🔥🔥**2025.06.19: Release of PaddleOCR 3.0.2, includes:**
48
+
49
+ - **New Features:**
50
+
51
+ - The default download source has been changed from `BOS` to `HuggingFace`. Users can also change the environment variable `PADDLE_PDX_MODEL_SOURCE` to `BOS` to set the model download source back to Baidu Object Storage (BOS).
52
+ - Added service invocation examples for six languages—C++, Java, Go, C#, Node.js, and PHP—for pipelines like PP-OCRv5, PP-StructureV3, and PP-ChatOCRv4.
53
+ - Improved the layout partition sorting algorithm in the PP-StructureV3 pipeline, enhancing the sorting logic for complex vertical layouts to deliver better results.
54
+ - Enhanced model selection logic: when a language is specified but a model version is not, the system will automatically select the latest model version supporting that language.
55
+ - Set a default upper limit for MKL-DNN cache size to prevent unlimited growth, while also allowing users to configure cache capacity.
56
+ - Updated default configurations for high-performance inference to support Paddle MKL-DNN acceleration and optimized the logic for automatic configuration selection for smarter choices.
57
+ - Adjusted the logic for obtaining the default device to consider the actual support for computing devices by the installed Paddle framework, making program behavior more intuitive.
58
+ - Added Android example for PP-OCRv5. [Details](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/deployment/on_device_deployment.html).
59
+
60
+ - **Bug Fixes:**
61
+
62
+ - Fixed an issue with some CLI parameters in PP-StructureV3 not taking effect.
63
+ - Resolved an issue where `export_paddlex_config_to_yaml` would not function correctly in certain cases.
64
+ - Corrected the discrepancy between the actual behavior of `save_path` and its documentation description.
65
+ - Fixed potential multithreading errors when using MKL-DNN in basic service deployment.
66
+ - Corrected channel order errors in image preprocessing for the Latex-OCR model.
67
+ - Fixed channel order errors in saving visualized images within the text recognition module.
68
+ - Resolved channel order errors in visualized table results within PP-StructureV3 pipeline.
69
+ - Fixed an overflow issue in the calculation of `overlap_ratio` under extremely special circumstances in the PP-StructureV3 pipeline.
70
+
71
+ - **Documentation Improvements:**
72
+
73
+ - Updated the description of the `enable_mkldnn` parameter in the documentation to accurately reflect the program's actual behavior.
74
+ - Fixed errors in the documentation regarding the `lang` and `ocr_version` parameters.
75
+ - Added instructions for exporting production line configuration files via CLI.
76
+ - Fixed missing columns in the performance data table for PP-OCRv5.
77
+ - Refined benchmark metrics for PP-StructureV3 across different configurations.
78
+
79
+ - **Others:**
80
+
81
+ - Relaxed version restrictions on dependencies like numpy and pandas, restoring support for Python 3.12.
82
+
83
+ <details>
84
+ <summary><strong>History Log</strong></summary>
85
+
86
+ #### **2025.06.05: Release of PaddleOCR 3.0.1, includes:**
48
87
 
49
88
  - **Optimisation of certain models and model configurations:**
50
89
  - Updated the default model configuration for PP-OCRv5, changing both detection and recognition from mobile to server models. To improve default performance in most scenarios, the parameter `limit_side_len` in the configuration has been changed from 736 to 64.
@@ -68,20 +107,7 @@ In addition to providing an outstanding model library, PaddleOCR 3.0 also offers
68
107
  2. 💻 Native support for **ERINE4.5 Turbo**, with compatibility for large-model deployments via PaddleNLP, Ollama, vLLM, and more.
69
108
  3. 🤝 Integrated [PP-DocBee2](https://github.com/PaddlePaddle/PaddleMIX/tree/develop/paddlemix/examples/ppdocbee2), enabling extraction and understanding of printed text, handwriting, seals, tables, charts, and other common elements in complex documents.
70
109
 
71
- <details>
72
- <summary><strong>The history of updates </strong></summary>
73
-
74
-
75
- - 🔥🔥2025.03.07: Release of **PaddleOCR v2.10**, including:
76
-
77
- - **12 new self-developed models:**
78
- - **[Layout Detection series](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/layout_detection.html)**(3 models): PP-DocLayout-L, M, and S -- capable of detecting 23 common layout types across diverse document formats(papers, reports, exams, books, magazines, contracts, etc.) in English and Chinese. Achieves up to **90.4% mAP@0.5** , and lightweight features can process over 100 pages per second.
79
- - **[Formula Recognition series](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/formula_recognition.html)**(2 models): PP-FormulaNet-L and S -- supports recognition of 50,000+ LaTeX expressions, handling both printed and handwritten formulas. PP-FormulaNet-L offers **6% higher accuracy** than comparable models; PP-FormulaNet-S is 16x faster while maintaining similar accuracy.
80
- - **[Table Structure Recognition series](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/table_structure_recognition.html)**(2 models): SLANeXt_wired and SLANeXt_wireless -- newly developed models with **6% accuracy improvement** over SLANet_plus in complex table recognition.
81
- - **[Table Classification](https://paddlepaddle.github.io/PaddleX/latest/en/module_usage/tutorials/ocr_modules/table_classification.html)**(1 model):
82
- PP-LCNet_x1_0_table_cls -- an ultra-lightweight classifier for wired and wireless tables.
83
-
84
- [Learn more](https://paddlepaddle.github.io/PaddleOCR/latest/en/update.html)
110
+ [History Log](https://paddlepaddle.github.io/PaddleOCR/latest/en/update/update.html)
85
111
 
86
112
  </details>
87
113
 
@@ -19,7 +19,7 @@ from ._constants import (
19
19
  DEFAULT_CPU_THREADS,
20
20
  DEFAULT_DEVICE,
21
21
  DEFAULT_ENABLE_MKLDNN,
22
- DEFAULT_MIN_SUBGRAPH_SIZE,
22
+ DEFAULT_MKLDNN_CACHE_CAPACITY,
23
23
  DEFAULT_PRECISION,
24
24
  DEFAULT_USE_TENSORRT,
25
25
  SUPPORTED_PRECISION_LIST,
@@ -32,9 +32,9 @@ def parse_common_args(kwargs, *, default_enable_hpi):
32
32
  "device": DEFAULT_DEVICE,
33
33
  "enable_hpi": default_enable_hpi,
34
34
  "use_tensorrt": DEFAULT_USE_TENSORRT,
35
- "min_subgraph_size": DEFAULT_MIN_SUBGRAPH_SIZE,
36
35
  "precision": DEFAULT_PRECISION,
37
36
  "enable_mkldnn": DEFAULT_ENABLE_MKLDNN,
37
+ "mkldnn_cache_capacity": DEFAULT_MKLDNN_CACHE_CAPACITY,
38
38
  "cpu_threads": DEFAULT_CPU_THREADS,
39
39
  }
40
40
 
@@ -50,7 +50,6 @@ def parse_common_args(kwargs, *, default_enable_hpi):
50
50
  )
51
51
 
52
52
  kwargs["use_pptrt"] = kwargs.pop("use_tensorrt")
53
- kwargs["pptrt_min_subgraph_size"] = kwargs.pop("min_subgraph_size")
54
53
  kwargs["pptrt_precision"] = kwargs.pop("precision")
55
54
 
56
55
  return kwargs
@@ -60,12 +59,22 @@ def prepare_common_init_args(model_name, common_args):
60
59
  device = common_args["device"]
61
60
  if device is None:
62
61
  device = get_default_device()
63
- device_type, _ = parse_device(device)
62
+ device_type, device_ids = parse_device(device)
63
+ if device_ids is not None:
64
+ device_id = device_ids[0]
65
+ else:
66
+ device_id = None
64
67
 
65
- init_kwargs = {"device": device}
68
+ init_kwargs = {}
66
69
  init_kwargs["use_hpip"] = common_args["enable_hpi"]
70
+ init_kwargs["hpi_config"] = {
71
+ "device_type": device_type,
72
+ "device_id": device_id,
73
+ }
67
74
 
68
- pp_option = PaddlePredictorOption(model_name)
75
+ pp_option = PaddlePredictorOption(
76
+ model_name, device_type=device_type, device_id=device_id
77
+ )
69
78
  if device_type == "gpu":
70
79
  if common_args["use_pptrt"]:
71
80
  if common_args["pptrt_precision"] == "fp32":
@@ -75,13 +84,17 @@ def prepare_common_init_args(model_name, common_args):
75
84
  "pptrt_precision"
76
85
  ]
77
86
  pp_option.run_mode = "trt_fp16"
87
+ else:
88
+ pp_option.run_mode = "paddle"
78
89
  elif device_type == "cpu":
79
90
  enable_mkldnn = common_args["enable_mkldnn"]
80
91
  if enable_mkldnn:
81
- pp_option.run_mode = "mkldnn"
92
+ pp_option.mkldnn_cache_capacity = common_args["mkldnn_cache_capacity"]
82
93
  else:
83
94
  pp_option.run_mode = "paddle"
84
- pp_option.cpu_threads = common_args["cpu_threads"]
95
+ pp_option.cpu_threads = common_args["cpu_threads"]
96
+ else:
97
+ pp_option.run_mode = "paddle"
85
98
  init_kwargs["pp_option"] = pp_option
86
99
 
87
100
  return init_kwargs
@@ -110,12 +123,6 @@ def add_common_cli_opts(parser, *, default_enable_hpi, allow_multiple_devices):
110
123
  default=DEFAULT_USE_TENSORRT,
111
124
  help="Whether to use the Paddle Inference TensorRT subgraph engine.",
112
125
  )
113
- parser.add_argument(
114
- "--min_subgraph_size",
115
- type=int,
116
- default=DEFAULT_MIN_SUBGRAPH_SIZE,
117
- help="Minimum subgraph size for TensorRT when using the Paddle Inference TensorRT subgraph engine.",
118
- )
119
126
  parser.add_argument(
120
127
  "--precision",
121
128
  type=str,
@@ -127,7 +134,13 @@ def add_common_cli_opts(parser, *, default_enable_hpi, allow_multiple_devices):
127
134
  "--enable_mkldnn",
128
135
  type=str2bool,
129
136
  default=DEFAULT_ENABLE_MKLDNN,
130
- help="Enable oneDNN (formerly MKL-DNN) acceleration for inference.",
137
+ help="Enable MKL-DNN acceleration for inference. If MKL-DNN is unavailable or the model does not support it, acceleration will not be used even if this flag is set.",
138
+ )
139
+ parser.add_argument(
140
+ "--mkldnn_cache_capacity",
141
+ type=int,
142
+ default=DEFAULT_MKLDNN_CACHE_CAPACITY,
143
+ help="MKL-DNN cache capacity.",
131
144
  )
132
145
  parser.add_argument(
133
146
  "--cpu_threads",
@@ -14,8 +14,8 @@
14
14
 
15
15
  DEFAULT_DEVICE = None
16
16
  DEFAULT_USE_TENSORRT = False
17
- DEFAULT_MIN_SUBGRAPH_SIZE = 3
18
17
  DEFAULT_PRECISION = "fp32"
19
18
  DEFAULT_ENABLE_MKLDNN = True
19
+ DEFAULT_MKLDNN_CACHE_CAPACITY = 10
20
20
  DEFAULT_CPU_THREADS = 10
21
21
  SUPPORTED_PRECISION_LIST = ["fp32", "fp16"]
@@ -39,12 +39,15 @@ def _merge_dicts(d1, d2):
39
39
  return res
40
40
 
41
41
 
42
- def _to_plain_dict(d):
43
- res = d.copy()
44
- for k, v in d.items():
45
- if isinstance(v, AttrDict):
46
- res[k] = _to_plain_dict(v)
47
- return res
42
+ def _to_builtin(obj):
43
+ if isinstance(obj, AttrDict):
44
+ return {k: _to_builtin(v) for k, v in obj.items()}
45
+ elif isinstance(obj, dict):
46
+ return {k: _to_builtin(v) for k, v in obj.items()}
47
+ elif isinstance(obj, list):
48
+ return [_to_builtin(item) for item in obj]
49
+ else:
50
+ return obj
48
51
 
49
52
 
50
53
  class PaddleXPipelineWrapper(metaclass=abc.ABCMeta):
@@ -69,7 +72,7 @@ class PaddleXPipelineWrapper(metaclass=abc.ABCMeta):
69
72
 
70
73
  def export_paddlex_config_to_yaml(self, yaml_path):
71
74
  with open(yaml_path, "w", encoding="utf-8") as f:
72
- config = _to_plain_dict(self._merged_paddlex_config)
75
+ config = _to_builtin(self._merged_paddlex_config)
73
76
  yaml.safe_dump(config, f)
74
77
 
75
78
  @classmethod
@@ -295,10 +295,112 @@ class PaddleOCR(PaddleXPipelineWrapper):
295
295
  return create_config_from_structure(STRUCTURE)
296
296
 
297
297
  def _get_ocr_model_names(self, lang, ppocr_version):
298
+ LATIN_LANGS = [
299
+ "af",
300
+ "az",
301
+ "bs",
302
+ "cs",
303
+ "cy",
304
+ "da",
305
+ "de",
306
+ "es",
307
+ "et",
308
+ "fr",
309
+ "ga",
310
+ "hr",
311
+ "hu",
312
+ "id",
313
+ "is",
314
+ "it",
315
+ "ku",
316
+ "la",
317
+ "lt",
318
+ "lv",
319
+ "mi",
320
+ "ms",
321
+ "mt",
322
+ "nl",
323
+ "no",
324
+ "oc",
325
+ "pi",
326
+ "pl",
327
+ "pt",
328
+ "ro",
329
+ "rs_latin",
330
+ "sk",
331
+ "sl",
332
+ "sq",
333
+ "sv",
334
+ "sw",
335
+ "tl",
336
+ "tr",
337
+ "uz",
338
+ "vi",
339
+ "french",
340
+ "german",
341
+ ]
342
+ ARABIC_LANGS = ["ar", "fa", "ug", "ur"]
343
+ CYRILLIC_LANGS = [
344
+ "ru",
345
+ "rs_cyrillic",
346
+ "be",
347
+ "bg",
348
+ "uk",
349
+ "mn",
350
+ "abq",
351
+ "ady",
352
+ "kbd",
353
+ "ava",
354
+ "dar",
355
+ "inh",
356
+ "che",
357
+ "lbe",
358
+ "lez",
359
+ "tab",
360
+ ]
361
+ DEVANAGARI_LANGS = [
362
+ "hi",
363
+ "mr",
364
+ "ne",
365
+ "bh",
366
+ "mai",
367
+ "ang",
368
+ "bho",
369
+ "mah",
370
+ "sck",
371
+ "new",
372
+ "gom",
373
+ "sa",
374
+ "bgc",
375
+ ]
376
+ SPECIFIC_LANGS = [
377
+ "ch",
378
+ "en",
379
+ "korean",
380
+ "japan",
381
+ "chinese_cht",
382
+ "te",
383
+ "ka",
384
+ "ta",
385
+ ]
386
+
298
387
  if lang is None:
299
388
  lang = "ch"
389
+
300
390
  if ppocr_version is None:
301
- ppocr_version = "PP-OCRv5"
391
+ if lang in ("ch", "chinese_cht", "en", "japan"):
392
+ ppocr_version = "PP-OCRv5"
393
+ elif lang in (
394
+ LATIN_LANGS
395
+ + ARABIC_LANGS
396
+ + CYRILLIC_LANGS
397
+ + DEVANAGARI_LANGS
398
+ + SPECIFIC_LANGS
399
+ ):
400
+ ppocr_version = "PP-OCRv3"
401
+ else:
402
+ # Unknown language specified
403
+ return None, None
302
404
 
303
405
  if ppocr_version == "PP-OCRv5":
304
406
  if lang in ("ch", "chinese_cht", "en", "japan"):
@@ -314,84 +416,6 @@ class PaddleOCR(PaddleXPipelineWrapper):
314
416
  return None, None
315
417
  else:
316
418
  # PP-OCRv3
317
- LATIN_LANGS = [
318
- "af",
319
- "az",
320
- "bs",
321
- "cs",
322
- "cy",
323
- "da",
324
- "de",
325
- "es",
326
- "et",
327
- "fr",
328
- "ga",
329
- "hr",
330
- "hu",
331
- "id",
332
- "is",
333
- "it",
334
- "ku",
335
- "la",
336
- "lt",
337
- "lv",
338
- "mi",
339
- "ms",
340
- "mt",
341
- "nl",
342
- "no",
343
- "oc",
344
- "pi",
345
- "pl",
346
- "pt",
347
- "ro",
348
- "rs_latin",
349
- "sk",
350
- "sl",
351
- "sq",
352
- "sv",
353
- "sw",
354
- "tl",
355
- "tr",
356
- "uz",
357
- "vi",
358
- "french",
359
- "german",
360
- ]
361
- ARABIC_LANGS = ["ar", "fa", "ug", "ur"]
362
- CYRILLIC_LANGS = [
363
- "ru",
364
- "rs_cyrillic",
365
- "be",
366
- "bg",
367
- "uk",
368
- "mn",
369
- "abq",
370
- "ady",
371
- "kbd",
372
- "ava",
373
- "dar",
374
- "inh",
375
- "che",
376
- "lbe",
377
- "lez",
378
- "tab",
379
- ]
380
- DEVANAGARI_LANGS = [
381
- "hi",
382
- "mr",
383
- "ne",
384
- "bh",
385
- "mai",
386
- "ang",
387
- "bho",
388
- "mah",
389
- "sck",
390
- "new",
391
- "gom",
392
- "sa",
393
- "bgc",
394
- ]
395
419
  rec_lang = None
396
420
  if lang in LATIN_LANGS:
397
421
  rec_lang = "latin"
@@ -402,17 +426,9 @@ class PaddleOCR(PaddleXPipelineWrapper):
402
426
  elif lang in DEVANAGARI_LANGS:
403
427
  rec_lang = "devanagari"
404
428
  else:
405
- if lang in [
406
- "ch",
407
- "en",
408
- "korean",
409
- "japan",
410
- "chinese_cht",
411
- "te",
412
- "ka",
413
- "ta",
414
- ]:
429
+ if lang in SPECIFIC_LANGS:
415
430
  rec_lang = lang
431
+
416
432
  rec_model_name = None
417
433
  if rec_lang == "ch":
418
434
  rec_model_name = "PP-OCRv3_mobile_rec"
@@ -64,6 +64,8 @@ class PPStructureV3(PaddleXPipelineWrapper):
64
64
  wired_table_cells_detection_model_dir=None,
65
65
  wireless_table_cells_detection_model_name=None,
66
66
  wireless_table_cells_detection_model_dir=None,
67
+ table_orientation_classify_model_name=None,
68
+ table_orientation_classify_model_dir=None,
67
69
  seal_text_detection_model_name=None,
68
70
  seal_text_detection_model_dir=None,
69
71
  seal_det_limit_side_len=None,
@@ -377,6 +379,54 @@ class PPStructureV3(PaddleXPipelineWrapper):
377
379
  "SubPipelines.TableRecognition.SubModules.WirelessTableCellsDetection.model_dir": self._params[
378
380
  "wireless_table_cells_detection_model_dir"
379
381
  ],
382
+ "SubPipelines.TableRecognition.SubModules.TableOrientationClassify.model_name": self._params[
383
+ "table_orientation_classify_model_name"
384
+ ],
385
+ "SubPipelines.TableRecognition.SubModules.TableOrientationClassify.model_dir": self._params[
386
+ "table_orientation_classify_model_dir"
387
+ ],
388
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextDetection.model_name": self._params[
389
+ "text_detection_model_name"
390
+ ],
391
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextDetection.model_dir": self._params[
392
+ "text_detection_model_dir"
393
+ ],
394
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextDetection.limit_side_len": self._params[
395
+ "text_det_limit_side_len"
396
+ ],
397
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextDetection.limit_type": self._params[
398
+ "text_det_limit_type"
399
+ ],
400
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextDetection.thresh": self._params[
401
+ "text_det_thresh"
402
+ ],
403
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextDetection.box_thresh": self._params[
404
+ "text_det_box_thresh"
405
+ ],
406
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextDetection.unclip_ratio": self._params[
407
+ "text_det_unclip_ratio"
408
+ ],
409
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextLineOrientation.model_name": self._params[
410
+ "textline_orientation_model_name"
411
+ ],
412
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextLineOrientation.model_dir": self._params[
413
+ "textline_orientation_model_dir"
414
+ ],
415
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextLineOrientation.batch_size": self._params[
416
+ "textline_orientation_batch_size"
417
+ ],
418
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextRecognition.model_name": self._params[
419
+ "text_recognition_model_name"
420
+ ],
421
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextRecognition.model_dir": self._params[
422
+ "text_recognition_model_dir"
423
+ ],
424
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextRecognition.batch_size": self._params[
425
+ "text_recognition_batch_size"
426
+ ],
427
+ "SubPipelines.TableRecognition.SubPipelines.GeneralOCR.SubModules.TextRecognition.score_thresh": self._params[
428
+ "text_rec_score_thresh"
429
+ ],
380
430
  "SubPipelines.SealRecognition.SubPipelines.SealOCR.SubModules.TextDetection.model_name": self._params[
381
431
  "seal_text_detection_model_name"
382
432
  ],
@@ -747,4 +797,12 @@ class PPStructureV3CLISubcommandExecutor(PipelineCLISubcommandExecutor):
747
797
 
748
798
  def execute_with_args(self, args):
749
799
  params = get_subcommand_args(args)
750
- perform_simple_inference(PPStructureV3, params)
800
+ perform_simple_inference(
801
+ PPStructureV3,
802
+ params,
803
+ predict_param_names={
804
+ "use_doc_orientation_classify",
805
+ "use_doc_unwarping",
806
+ "use_chart_recognition",
807
+ },
808
+ )
@@ -41,7 +41,6 @@ def add_simple_inference_args(subparser, *, input_help=None):
41
41
  subparser.add_argument(
42
42
  "--save_path",
43
43
  type=str,
44
- default="output",
45
44
  help="Path to the output directory.",
46
45
  )
47
46