python-doctr 1.0.1__tar.gz → 1.1.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.
Files changed (194) hide show
  1. {python_doctr-1.0.1 → python_doctr-1.1.0}/PKG-INFO +67 -27
  2. {python_doctr-1.0.1 → python_doctr-1.1.0}/README.md +57 -17
  3. python_doctr-1.1.0/doctr/cli/main.py +506 -0
  4. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/__init__.py +2 -0
  5. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/coco_text.py +4 -2
  6. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/cord.py +2 -1
  7. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/datasets/base.py +12 -24
  8. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/datasets/pytorch.py +14 -4
  9. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/detection.py +2 -1
  10. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/doc_artefacts.py +2 -1
  11. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/funsd.py +2 -1
  12. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/generator/base.py +5 -4
  13. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/generator/pytorch.py +4 -5
  14. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/ic03.py +3 -2
  15. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/ic13.py +4 -2
  16. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/iiit5k.py +2 -1
  17. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/iiithws.py +4 -2
  18. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/imgur5k.py +4 -2
  19. python_doctr-1.1.0/doctr/datasets/layout.py +123 -0
  20. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/mjsynth.py +4 -2
  21. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/ocr.py +2 -1
  22. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/orientation.py +2 -1
  23. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/recognition.py +2 -1
  24. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/sroie.py +2 -1
  25. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/svhn.py +2 -1
  26. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/svt.py +3 -2
  27. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/synthtext.py +2 -1
  28. python_doctr-1.1.0/doctr/datasets/table_structure.py +97 -0
  29. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/utils.py +14 -5
  30. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/vocabs.py +2 -0
  31. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/wildreceipt.py +4 -2
  32. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/file_utils.py +3 -1
  33. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/io/__init__.py +1 -0
  34. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/io/elements.py +252 -260
  35. python_doctr-1.1.0/doctr/io/exporters.py +1275 -0
  36. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/io/image/base.py +3 -2
  37. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/io/image/pytorch.py +5 -3
  38. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/__init__.py +2 -0
  39. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/_utils.py +56 -8
  40. python_doctr-1.1.0/doctr/models/builder.py +970 -0
  41. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/__init__.py +2 -0
  42. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/magc_resnet/pytorch.py +1 -1
  43. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/mobilenet/pytorch.py +6 -6
  44. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/predictor/pytorch.py +6 -2
  45. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/resnet/pytorch.py +5 -5
  46. python_doctr-1.1.0/doctr/models/classification/starnet/pytorch.py +202 -0
  47. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/textnet/pytorch.py +6 -5
  48. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/vgg/pytorch.py +3 -2
  49. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/vip/layers/pytorch.py +4 -4
  50. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/vip/pytorch.py +4 -4
  51. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/vit/pytorch.py +3 -3
  52. python_doctr-1.1.0/doctr/models/classification/vit_det/layers/pytorch.py +215 -0
  53. python_doctr-1.1.0/doctr/models/classification/vit_det/pytorch.py +346 -0
  54. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/zoo.py +3 -0
  55. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/detection/_utils/base.py +23 -7
  56. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/detection/core.py +33 -18
  57. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/detection/differentiable_binarization/base.py +6 -4
  58. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/detection/differentiable_binarization/pytorch.py +3 -3
  59. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/detection/fast/base.py +5 -1
  60. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/detection/fast/pytorch.py +3 -3
  61. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/detection/linknet/base.py +5 -1
  62. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/detection/linknet/pytorch.py +3 -3
  63. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/detection/predictor/pytorch.py +3 -2
  64. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/detection/zoo.py +2 -2
  65. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/factory/hub.py +56 -41
  66. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/kie_predictor/base.py +16 -1
  67. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/kie_predictor/pytorch.py +41 -10
  68. python_doctr-1.1.0/doctr/models/layout/__init__.py +2 -0
  69. python_doctr-1.1.0/doctr/models/layout/lw_detr/base.py +309 -0
  70. python_doctr-1.1.0/doctr/models/layout/lw_detr/layers/pytorch.py +785 -0
  71. python_doctr-1.1.0/doctr/models/layout/lw_detr/pytorch.py +838 -0
  72. python_doctr-1.1.0/doctr/models/layout/predictor/pytorch.py +82 -0
  73. python_doctr-1.1.0/doctr/models/layout/zoo.py +90 -0
  74. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/modules/layers/pytorch.py +139 -3
  75. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/predictor/base.py +137 -15
  76. python_doctr-1.1.0/doctr/models/predictor/pytorch.py +297 -0
  77. python_doctr-1.1.0/doctr/models/preprocessor/pytorch.py +174 -0
  78. python_doctr-1.1.0/doctr/models/reading_order/__init__.py +1 -0
  79. python_doctr-1.1.0/doctr/models/reading_order/base.py +667 -0
  80. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/crnn/pytorch.py +5 -7
  81. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/master/pytorch.py +6 -7
  82. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/parseq/pytorch.py +4 -4
  83. python_doctr-1.1.0/doctr/models/recognition/predictor/__init__.py +1 -0
  84. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/predictor/pytorch.py +1 -1
  85. python_doctr-1.1.0/doctr/models/recognition/sar/__init__.py +1 -0
  86. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/sar/pytorch.py +1 -1
  87. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/utils.py +8 -10
  88. python_doctr-1.1.0/doctr/models/recognition/viptr/__init__.py +1 -0
  89. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/viptr/pytorch.py +3 -5
  90. python_doctr-1.1.0/doctr/models/recognition/vitstr/__init__.py +1 -0
  91. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/vitstr/pytorch.py +5 -5
  92. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/zoo.py +5 -6
  93. python_doctr-1.1.0/doctr/models/table_structure/__init__.py +2 -0
  94. python_doctr-1.1.0/doctr/models/table_structure/predictor/__init__.py +1 -0
  95. python_doctr-1.1.0/doctr/models/table_structure/predictor/pytorch.py +80 -0
  96. python_doctr-1.1.0/doctr/models/table_structure/tablecenternet/base.py +485 -0
  97. python_doctr-1.1.0/doctr/models/table_structure/tablecenternet/pytorch.py +522 -0
  98. python_doctr-1.1.0/doctr/models/table_structure/zoo.py +82 -0
  99. python_doctr-1.1.0/doctr/models/utils/__init__.py +1 -0
  100. python_doctr-1.1.0/doctr/models/utils/pytorch.py +477 -0
  101. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/zoo.py +90 -2
  102. python_doctr-1.1.0/doctr/py.typed +0 -0
  103. python_doctr-1.1.0/doctr/transforms/functional/__init__.py +1 -0
  104. python_doctr-1.1.0/doctr/transforms/modules/__init__.py +2 -0
  105. python_doctr-1.1.0/doctr/transforms/modules/base.py +391 -0
  106. python_doctr-1.1.0/doctr/transforms/modules/pytorch.py +448 -0
  107. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/utils/common_types.py +21 -1
  108. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/utils/data.py +4 -2
  109. python_doctr-1.1.0/doctr/utils/fonts.py +77 -0
  110. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/utils/geometry.py +135 -18
  111. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/utils/metrics.py +350 -18
  112. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/utils/multithreading.py +5 -2
  113. python_doctr-1.1.0/doctr/utils/reconstitution.py +772 -0
  114. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/utils/visualization.py +62 -3
  115. python_doctr-1.1.0/doctr/version.py +1 -0
  116. {python_doctr-1.0.1 → python_doctr-1.1.0}/pyproject.toml +15 -13
  117. {python_doctr-1.0.1 → python_doctr-1.1.0}/python_doctr.egg-info/PKG-INFO +67 -27
  118. {python_doctr-1.0.1 → python_doctr-1.1.0}/python_doctr.egg-info/SOURCES.txt +30 -0
  119. python_doctr-1.1.0/python_doctr.egg-info/entry_points.txt +2 -0
  120. {python_doctr-1.0.1 → python_doctr-1.1.0}/python_doctr.egg-info/requires.txt +6 -7
  121. {python_doctr-1.0.1 → python_doctr-1.1.0}/python_doctr.egg-info/top_level.txt +1 -0
  122. {python_doctr-1.0.1 → python_doctr-1.1.0}/setup.py +1 -1
  123. python_doctr-1.0.1/doctr/models/builder.py +0 -499
  124. python_doctr-1.0.1/doctr/models/predictor/pytorch.py +0 -155
  125. python_doctr-1.0.1/doctr/models/preprocessor/pytorch.py +0 -119
  126. python_doctr-1.0.1/doctr/models/utils/pytorch.py +0 -178
  127. python_doctr-1.0.1/doctr/transforms/modules/base.py +0 -226
  128. python_doctr-1.0.1/doctr/transforms/modules/pytorch.py +0 -309
  129. python_doctr-1.0.1/doctr/utils/fonts.py +0 -38
  130. python_doctr-1.0.1/doctr/utils/reconstitution.py +0 -208
  131. python_doctr-1.0.1/doctr/version.py +0 -1
  132. {python_doctr-1.0.1 → python_doctr-1.1.0}/LICENSE +0 -0
  133. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/__init__.py +0 -0
  134. /python_doctr-1.0.1/doctr/py.typed → /python_doctr-1.1.0/doctr/cli/__init__.py +0 -0
  135. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/contrib/__init__.py +0 -0
  136. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/contrib/artefacts.py +0 -0
  137. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/contrib/base.py +0 -0
  138. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/datasets/__init__.py +0 -0
  139. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/datasets/generator/__init__.py +0 -0
  140. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/io/html.py +0 -0
  141. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/io/image/__init__.py +0 -0
  142. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/io/pdf.py +0 -0
  143. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/io/reader.py +0 -0
  144. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/magc_resnet/__init__.py +0 -0
  145. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/mobilenet/__init__.py +0 -0
  146. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/predictor/__init__.py +0 -0
  147. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/classification/resnet/__init__.py +0 -0
  148. {python_doctr-1.0.1/doctr/models/classification/textnet → python_doctr-1.1.0/doctr/models/classification/starnet}/__init__.py +0 -0
  149. {python_doctr-1.0.1/doctr/models/classification/vgg → python_doctr-1.1.0/doctr/models/classification/textnet}/__init__.py +0 -0
  150. {python_doctr-1.0.1/doctr/models/classification/vip → python_doctr-1.1.0/doctr/models/classification/vgg}/__init__.py +0 -0
  151. {python_doctr-1.0.1/doctr/models/classification/vip/layers → python_doctr-1.1.0/doctr/models/classification/vip}/__init__.py +0 -0
  152. {python_doctr-1.0.1/doctr/models/classification/vit → python_doctr-1.1.0/doctr/models/classification/vip/layers}/__init__.py +0 -0
  153. {python_doctr-1.0.1/doctr/models/detection/differentiable_binarization → python_doctr-1.1.0/doctr/models/classification/vit}/__init__.py +0 -0
  154. {python_doctr-1.0.1/doctr/models/detection/fast → python_doctr-1.1.0/doctr/models/classification/vit_det}/__init__.py +0 -0
  155. {python_doctr-1.0.1/doctr/models/detection/linknet → python_doctr-1.1.0/doctr/models/classification/vit_det/layers}/__init__.py +0 -0
  156. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/core.py +0 -0
  157. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/detection/__init__.py +0 -0
  158. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/detection/_utils/__init__.py +0 -0
  159. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/detection/_utils/pytorch.py +0 -0
  160. {python_doctr-1.0.1/doctr/models/detection/predictor → python_doctr-1.1.0/doctr/models/detection/differentiable_binarization}/__init__.py +0 -0
  161. {python_doctr-1.0.1/doctr/models/kie_predictor → python_doctr-1.1.0/doctr/models/detection/fast}/__init__.py +0 -0
  162. {python_doctr-1.0.1/doctr/models/modules/layers → python_doctr-1.1.0/doctr/models/detection/linknet}/__init__.py +0 -0
  163. {python_doctr-1.0.1/doctr/models/modules/transformer → python_doctr-1.1.0/doctr/models/detection/predictor}/__init__.py +0 -0
  164. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/factory/__init__.py +0 -0
  165. {python_doctr-1.0.1/doctr/models/modules/vision_transformer → python_doctr-1.1.0/doctr/models/kie_predictor}/__init__.py +0 -0
  166. {python_doctr-1.0.1/doctr/models/predictor → python_doctr-1.1.0/doctr/models/layout/lw_detr}/__init__.py +0 -0
  167. {python_doctr-1.0.1/doctr/models/preprocessor → python_doctr-1.1.0/doctr/models/layout/lw_detr/layers}/__init__.py +0 -0
  168. {python_doctr-1.0.1/doctr/models/recognition/crnn → python_doctr-1.1.0/doctr/models/layout/predictor}/__init__.py +0 -0
  169. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/modules/__init__.py +0 -0
  170. {python_doctr-1.0.1/doctr/models/recognition/master → python_doctr-1.1.0/doctr/models/modules/layers}/__init__.py +0 -0
  171. {python_doctr-1.0.1/doctr/models/recognition/parseq → python_doctr-1.1.0/doctr/models/modules/transformer}/__init__.py +0 -0
  172. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/modules/transformer/pytorch.py +0 -0
  173. {python_doctr-1.0.1/doctr/models/recognition/predictor → python_doctr-1.1.0/doctr/models/modules/vision_transformer}/__init__.py +0 -0
  174. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/modules/vision_transformer/pytorch.py +0 -0
  175. {python_doctr-1.0.1/doctr/models/recognition/sar → python_doctr-1.1.0/doctr/models/predictor}/__init__.py +0 -0
  176. {python_doctr-1.0.1/doctr/models/recognition/viptr → python_doctr-1.1.0/doctr/models/preprocessor}/__init__.py +0 -0
  177. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/__init__.py +0 -0
  178. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/core.py +0 -0
  179. {python_doctr-1.0.1/doctr/models/recognition/vitstr → python_doctr-1.1.0/doctr/models/recognition/crnn}/__init__.py +0 -0
  180. {python_doctr-1.0.1/doctr/models/utils → python_doctr-1.1.0/doctr/models/recognition/master}/__init__.py +0 -0
  181. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/master/base.py +0 -0
  182. {python_doctr-1.0.1/doctr/transforms/functional → python_doctr-1.1.0/doctr/models/recognition/parseq}/__init__.py +0 -0
  183. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/parseq/base.py +0 -0
  184. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/predictor/_utils.py +0 -0
  185. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/models/recognition/vitstr/base.py +0 -0
  186. {python_doctr-1.0.1/doctr/transforms/modules → python_doctr-1.1.0/doctr/models/table_structure/tablecenternet}/__init__.py +0 -0
  187. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/transforms/__init__.py +0 -0
  188. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/transforms/functional/base.py +0 -0
  189. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/transforms/functional/pytorch.py +0 -0
  190. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/utils/__init__.py +0 -0
  191. {python_doctr-1.0.1 → python_doctr-1.1.0}/doctr/utils/repr.py +0 -0
  192. {python_doctr-1.0.1 → python_doctr-1.1.0}/python_doctr.egg-info/dependency_links.txt +0 -0
  193. {python_doctr-1.0.1 → python_doctr-1.1.0}/python_doctr.egg-info/zip-safe +0 -0
  194. {python_doctr-1.0.1 → python_doctr-1.1.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-doctr
3
- Version: 1.0.1
3
+ Version: 1.1.0
4
4
  Summary: Document Text Recognition (docTR): deep Learning for high-performance OCR on documents.
5
5
  Author-email: Mindee <contact@mindee.com>
6
6
  Maintainer: François-Guillaume Fernandez, Charles Gaillard, Olivier Dulcy, Felix Dittrich
@@ -219,11 +219,12 @@ Classifier: License :: OSI Approved :: Apache Software License
219
219
  Classifier: Natural Language :: English
220
220
  Classifier: Operating System :: OS Independent
221
221
  Classifier: Programming Language :: Python :: 3
222
- Classifier: Programming Language :: Python :: 3.10
223
222
  Classifier: Programming Language :: Python :: 3.11
224
223
  Classifier: Programming Language :: Python :: 3.12
224
+ Classifier: Programming Language :: Python :: 3.13
225
+ Classifier: Programming Language :: Python :: 3.14
225
226
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
226
- Requires-Python: <4,>=3.10.0
227
+ Requires-Python: <4,>=3.11.0
227
228
  Description-Content-Type: text/markdown
228
229
  License-File: LICENSE
229
230
  Requires-Dist: torch<3.0.0,>=2.0.0
@@ -232,15 +233,14 @@ Requires-Dist: onnx<3.0.0,>=1.12.0
232
233
  Requires-Dist: numpy<3.0.0,>=1.16.0
233
234
  Requires-Dist: scipy<2.0.0,>=1.4.0
234
235
  Requires-Dist: h5py<4.0.0,>=3.1.0
235
- Requires-Dist: opencv-python<5.0.0,>=4.5.0
236
+ Requires-Dist: opencv-python<6.0.0,>=4.5.0
236
237
  Requires-Dist: pypdfium2<6.0.0,>=4.11.0
237
238
  Requires-Dist: pyclipper<2.0.0,>=1.2.0
238
239
  Requires-Dist: shapely<3.0.0,>=1.6.0
239
240
  Requires-Dist: langdetect<2.0.0,>=1.0.9
240
241
  Requires-Dist: rapidfuzz<4.0.0,>=3.0.0
241
242
  Requires-Dist: huggingface-hub<2.0.0,>=0.20.0
242
- Requires-Dist: Pillow>=9.2.0
243
- Requires-Dist: defusedxml>=0.7.0
243
+ Requires-Dist: Pillow>=10.1.0
244
244
  Requires-Dist: anyascii>=0.3.2
245
245
  Requires-Dist: validators>=0.18.0
246
246
  Requires-Dist: tqdm>=4.30.0
@@ -252,11 +252,11 @@ Requires-Dist: mplcursors>=0.3; extra == "viz"
252
252
  Provides-Extra: contrib
253
253
  Requires-Dist: onnxruntime>=1.11.0; extra == "contrib"
254
254
  Provides-Extra: testing
255
- Requires-Dist: pytest>=5.3.2; extra == "testing"
256
- Requires-Dist: coverage[toml]>=4.5.4; extra == "testing"
255
+ Requires-Dist: pytest-cov>=7.0.0; extra == "testing"
257
256
  Requires-Dist: onnxruntime>=1.11.0; extra == "testing"
258
257
  Requires-Dist: requests>=2.20.0; extra == "testing"
259
258
  Requires-Dist: psutil>=5.9.5; extra == "testing"
259
+ Requires-Dist: pandas>=2.0.0; extra == "testing"
260
260
  Provides-Extra: quality
261
261
  Requires-Dist: ruff>=0.1.5; extra == "quality"
262
262
  Requires-Dist: mypy>=0.812; extra == "quality"
@@ -277,11 +277,11 @@ Requires-Dist: onnx<3.0.0,>=1.12.0; extra == "dev"
277
277
  Requires-Dist: weasyprint>=55.0; extra == "dev"
278
278
  Requires-Dist: matplotlib>=3.1.0; extra == "dev"
279
279
  Requires-Dist: mplcursors>=0.3; extra == "dev"
280
- Requires-Dist: pytest>=5.3.2; extra == "dev"
281
- Requires-Dist: coverage[toml]>=4.5.4; extra == "dev"
280
+ Requires-Dist: pytest-cov>=7.0.0; extra == "dev"
282
281
  Requires-Dist: onnxruntime>=1.11.0; extra == "dev"
283
282
  Requires-Dist: requests>=2.20.0; extra == "dev"
284
283
  Requires-Dist: psutil>=5.9.5; extra == "dev"
284
+ Requires-Dist: pandas>=2.0.0; extra == "dev"
285
285
  Requires-Dist: ruff>=0.3.0; extra == "dev"
286
286
  Requires-Dist: mypy>=1.0; extra == "dev"
287
287
  Requires-Dist: pre-commit>=3.0.0; extra == "dev"
@@ -299,11 +299,17 @@ Dynamic: license-file
299
299
  <img src="https://github.com/mindee/doctr/raw/main/docs/images/Logo_doctr.gif" width="40%">
300
300
  </p>
301
301
 
302
- [![Slack Icon](https://img.shields.io/badge/Slack-Community-4A154B?style=flat-square&logo=slack&logoColor=white)](https://slack.mindee.com) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) ![Build Status](https://github.com/mindee/doctr/workflows/builds/badge.svg) [![Docker Images](https://img.shields.io/badge/Docker-4287f5?style=flat&logo=docker&logoColor=white)](https://github.com/mindee/doctr/pkgs/container/doctr) [![codecov](https://codecov.io/gh/mindee/doctr/branch/main/graph/badge.svg?token=577MO567NM)](https://codecov.io/gh/mindee/doctr) [![CodeFactor](https://www.codefactor.io/repository/github/mindee/doctr/badge?s=bae07db86bb079ce9d6542315b8c6e70fa708a7e)](https://www.codefactor.io/repository/github/mindee/doctr) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/340a76749b634586a498e1c0ab998f08)](https://app.codacy.com/gh/mindee/doctr?utm_source=github.com&utm_medium=referral&utm_content=mindee/doctr&utm_campaign=Badge_Grade) [![Doc Status](https://github.com/mindee/doctr/workflows/doc-status/badge.svg)](https://mindee.github.io/doctr) [![Pypi](https://img.shields.io/badge/pypi-v1.0.0-blue.svg)](https://pypi.org/project/python-doctr/) [![Hugging Face Spaces](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/mindee/doctr) [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mindee/notebooks/blob/main/doctr/quicktour.ipynb) [![Gurubase](https://img.shields.io/badge/Gurubase-Ask%20docTR%20Guru-006BFF)](https://gurubase.io/g/doctr)
302
+ [![Slack Icon](https://img.shields.io/badge/Slack-Community-4A154B?style=flat-square&logo=slack&logoColor=white)](https://slack.mindee.com) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) ![Build Status](https://github.com/mindee/doctr/workflows/builds/badge.svg) [![Docker Images](https://img.shields.io/badge/Docker-4287f5?style=flat&logo=docker&logoColor=white)](https://github.com/mindee/doctr/pkgs/container/doctr) [![codecov](https://codecov.io/gh/mindee/doctr/branch/main/graph/badge.svg?token=577MO567NM)](https://codecov.io/gh/mindee/doctr) [![CodeFactor](https://www.codefactor.io/repository/github/mindee/doctr/badge?s=bae07db86bb079ce9d6542315b8c6e70fa708a7e)](https://www.codefactor.io/repository/github/mindee/doctr) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/340a76749b634586a498e1c0ab998f08)](https://app.codacy.com/gh/mindee/doctr?utm_source=github.com&utm_medium=referral&utm_content=mindee/doctr&utm_campaign=Badge_Grade) [![Doc Status](https://github.com/mindee/doctr/workflows/doc-status/badge.svg)](https://mindee.github.io/doctr) [![Pypi](https://img.shields.io/badge/pypi-v1.1.0-blue.svg)](https://pypi.org/project/python-doctr/) [![Hugging Face Spaces](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/mindee/doctr) [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mindee/notebooks/blob/main/doctr/quicktour.ipynb) [![Gurubase](https://img.shields.io/badge/Gurubase-Ask%20docTR%20Guru-006BFF)](https://gurubase.io/g/doctr)
303
303
 
304
304
 
305
305
  **Optical Character Recognition made seamless & accessible to anyone, powered by PyTorch**
306
306
 
307
+ ## Project responsibility
308
+
309
+ **docTR** was originally created by [Mindee](https://mindee.com). It is now actively developed and maintained by [t2k GmbH](https://www.text2knowledge.de/de).
310
+
311
+ [![Need help solving a complex use case?](https://github.com/mindee/doctr/raw/main/docs/images/doctr-need-help.png)](https://www.text2knowledge.de/de)
312
+
307
313
  What you can expect from this repository:
308
314
 
309
315
  - efficient ways to parse textual information (localize and identify each word) from your documents
@@ -321,7 +327,7 @@ As such, you can select the architecture used for [text detection](https://minde
321
327
  ```python
322
328
  from doctr.models import ocr_predictor
323
329
 
324
- model = ocr_predictor(det_arch='db_resnet50', reco_arch='crnn_vgg16_bn', pretrained=True)
330
+ model = ocr_predictor(det_arch="db_resnet50", reco_arch="crnn_vgg16_bn", pretrained=True)
325
331
  ```
326
332
 
327
333
  ### Reading files
@@ -330,6 +336,7 @@ Documents can be interpreted from PDF or images:
330
336
 
331
337
  ```python
332
338
  from doctr.io import DocumentFile
339
+
333
340
  # PDF
334
341
  pdf_doc = DocumentFile.from_pdf("path/to/your/doc.pdf")
335
342
  # Image
@@ -355,6 +362,23 @@ doc = DocumentFile.from_pdf("path/to/your/doc.pdf")
355
362
  result = model(doc)
356
363
  ```
357
364
 
365
+ ### Detecting the document layout
366
+
367
+ You can additionally run a layout detection model as part of the pipeline by passing `detect_layout=True`. The detected regions (e.g. `Title`, `Text`, `Table`, `Page-header`, `Page-footer`) are attached to every page and rendered by `.show()`:
368
+
369
+ ```python
370
+ from doctr.io import DocumentFile
371
+ from doctr.models import ocr_predictor
372
+
373
+ model = ocr_predictor(pretrained=True, detect_layout=True)
374
+ doc = DocumentFile.from_images("path/to/your/doc.jpg")
375
+ result = model(doc)
376
+
377
+ # Access the detected layout regions of the first page
378
+ for region in result.pages[0].layout:
379
+ print(region.type, region.confidence, region.geometry)
380
+ ```
381
+
358
382
  ### Dealing with rotated documents
359
383
 
360
384
  Should you use docTR on documents that include rotated pages, or pages with multiple box orientations,
@@ -384,7 +408,9 @@ Or even rebuild the original document from its predictions:
384
408
  import matplotlib.pyplot as plt
385
409
 
386
410
  synthetic_pages = result.synthesize()
387
- plt.imshow(synthetic_pages[0]); plt.axis('off'); plt.show()
411
+ plt.imshow(synthetic_pages[0])
412
+ plt.axis("off")
413
+ plt.show()
388
414
  ```
389
415
 
390
416
  ![Synthesis sample](https://github.com/mindee/doctr/raw/main/docs/images/synthesized_sample.png)
@@ -409,7 +435,7 @@ from doctr.io import DocumentFile
409
435
  from doctr.models import kie_predictor
410
436
 
411
437
  # Model
412
- model = kie_predictor(det_arch='db_resnet50', reco_arch='crnn_vgg16_bn', pretrained=True)
438
+ model = kie_predictor(det_arch="db_resnet50", reco_arch="crnn_vgg16_bn", pretrained=True)
413
439
  # PDF
414
440
  doc = DocumentFile.from_pdf("path/to/your/doc.pdf")
415
441
  # Analyze
@@ -424,15 +450,11 @@ for class_name in predictions.keys():
424
450
 
425
451
  The KIE predictor results per page are in a dictionary format with each key representing a class name and it's value are the predictions for that class.
426
452
 
427
- ### If you are looking for support from the Mindee team
428
-
429
- [![Bad OCR test detection image asking the developer if they need help](https://github.com/mindee/doctr/raw/main/docs/images/doctr-need-help.png)](https://mindee.com/product/doctr)
430
-
431
453
  ## Installation
432
454
 
433
455
  ### Prerequisites
434
456
 
435
- Python 3.10 (or higher) and [pip](https://pip.pypa.io/en/stable/) are required to install docTR.
457
+ Python 3.11 (or higher) and [pip](https://pip.pypa.io/en/stable/) are required to install docTR.
436
458
 
437
459
  ### Latest release
438
460
 
@@ -486,6 +508,14 @@ Credits where it's due: this repository is implementing, among others, architect
486
508
  - PARSeq: [Scene Text Recognition with Permuted Autoregressive Sequence Models](https://arxiv.org/pdf/2207.06966).
487
509
  - VIPTR: [A Vision Permutable Extractor for Fast and Efficient Scene Text Recognition](https://arxiv.org/abs/2401.10110).
488
510
 
511
+ ### Layout Analysis
512
+
513
+ - LW-DETR: [A Transformer Replacement to YOLO for Real-Time Detection](https://arxiv.org/pdf/2406.03459v1).
514
+
515
+ ### Table Structure Recognition
516
+
517
+ - TableCenterNet: [A one-stage network for table structure recognition](https://arxiv.org/abs/2504.17522).
518
+
489
519
  ## More goodies
490
520
 
491
521
  ### Documentation
@@ -539,7 +569,7 @@ docker run -it --gpus all ghcr.io/mindee/doctr:torch-py3.9.18-2024-10 bash
539
569
  The Docker images for docTR follow a specific tag nomenclature: `<deps>-py<python_version>-<doctr_version|YYYY-MM>`. Here's a breakdown of the tag structure:
540
570
 
541
571
  - `<deps>`: `torch`, `torch-viz-html-contrib`.
542
- - `<python_version>`: `3.9.18`, `3.10.13` or `3.11.8`.
572
+ - `<python_version>`: `3.10.13`, `3.11.8`, etc.
543
573
  - `<doctr_version>`: a tag >= `v0.11.0`
544
574
  - `<YYYY-MM>`: e.g. `2014-10`
545
575
 
@@ -610,7 +640,7 @@ import requests
610
640
 
611
641
  params = {"det_arch": "db_resnet50", "reco_arch": "crnn_vgg16_bn"}
612
642
 
613
- with open('/path/to/your/doc.jpg', 'rb') as f:
643
+ with open("/path/to/your/doc.jpg", "rb") as f:
614
644
  files = [ # application/pdf, image/jpeg, image/png supported
615
645
  ("files", ("doc.jpg", f.read(), "image/jpeg")),
616
646
  ]
@@ -621,12 +651,6 @@ print(requests.post("http://localhost:8080/ocr", params=params, files=files).jso
621
651
 
622
652
  Looking for more illustrations of docTR features? You might want to check the [Jupyter notebooks](https://github.com/mindee/doctr/tree/main/notebooks) designed to give you a broader overview.
623
653
 
624
- ## Supported By
625
-
626
- This project is supported by [t2k GmbH](https://www.text2knowledge.de/de),
627
- <p align="center">
628
- <img src="https://github.com/mindee/doctr/raw/main/docs/images/t2k_logo.png" width="40%">
629
- </p>
630
654
 
631
655
  ## Citation
632
656
 
@@ -642,6 +666,22 @@ If you wish to cite this project, feel free to use this [BibTeX](http://www.bibt
642
666
  }
643
667
  ```
644
668
 
669
+ ## Custom Development and Support
670
+
671
+ [t2k GmbH](https://www.text2knowledge.de/de) offers professional services around docTR : whether you are building a product or contributing to the open-source project.
672
+
673
+ ### For organizations
674
+
675
+ Interested in docTR and want to develop, implement, or ship your own solution? t2k can help with:
676
+
677
+ - **Custom OCR development** : individual detection, recognition, and pipeline work built on docTR
678
+ - **Project implementation** : turning your ideas into production-ready docTR integrations
679
+ - **Technical consulting** : architecture, deployment, and integration guidance
680
+ - **Ongoing development** : feature extensions and implementation support tailored to your use case
681
+ - **Workshops & advisory** : verbal consulting, hands-on sessions, and recommendations for working with docTR
682
+
683
+ Contact [info@text2knowledge.de](mailto:info@text2knowledge.de) or visit our [home page](https://www.text2knowledge.de) to discuss your project.
684
+
645
685
  ## Contributing
646
686
 
647
687
  If you scrolled down to this section, you most likely appreciate open source. Do you feel like extending the range of our supported characters? Or perhaps submitting a paper implementation? Or contributing in any other way?
@@ -2,11 +2,17 @@
2
2
  <img src="https://github.com/mindee/doctr/raw/main/docs/images/Logo_doctr.gif" width="40%">
3
3
  </p>
4
4
 
5
- [![Slack Icon](https://img.shields.io/badge/Slack-Community-4A154B?style=flat-square&logo=slack&logoColor=white)](https://slack.mindee.com) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) ![Build Status](https://github.com/mindee/doctr/workflows/builds/badge.svg) [![Docker Images](https://img.shields.io/badge/Docker-4287f5?style=flat&logo=docker&logoColor=white)](https://github.com/mindee/doctr/pkgs/container/doctr) [![codecov](https://codecov.io/gh/mindee/doctr/branch/main/graph/badge.svg?token=577MO567NM)](https://codecov.io/gh/mindee/doctr) [![CodeFactor](https://www.codefactor.io/repository/github/mindee/doctr/badge?s=bae07db86bb079ce9d6542315b8c6e70fa708a7e)](https://www.codefactor.io/repository/github/mindee/doctr) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/340a76749b634586a498e1c0ab998f08)](https://app.codacy.com/gh/mindee/doctr?utm_source=github.com&utm_medium=referral&utm_content=mindee/doctr&utm_campaign=Badge_Grade) [![Doc Status](https://github.com/mindee/doctr/workflows/doc-status/badge.svg)](https://mindee.github.io/doctr) [![Pypi](https://img.shields.io/badge/pypi-v1.0.0-blue.svg)](https://pypi.org/project/python-doctr/) [![Hugging Face Spaces](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/mindee/doctr) [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mindee/notebooks/blob/main/doctr/quicktour.ipynb) [![Gurubase](https://img.shields.io/badge/Gurubase-Ask%20docTR%20Guru-006BFF)](https://gurubase.io/g/doctr)
5
+ [![Slack Icon](https://img.shields.io/badge/Slack-Community-4A154B?style=flat-square&logo=slack&logoColor=white)](https://slack.mindee.com) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) ![Build Status](https://github.com/mindee/doctr/workflows/builds/badge.svg) [![Docker Images](https://img.shields.io/badge/Docker-4287f5?style=flat&logo=docker&logoColor=white)](https://github.com/mindee/doctr/pkgs/container/doctr) [![codecov](https://codecov.io/gh/mindee/doctr/branch/main/graph/badge.svg?token=577MO567NM)](https://codecov.io/gh/mindee/doctr) [![CodeFactor](https://www.codefactor.io/repository/github/mindee/doctr/badge?s=bae07db86bb079ce9d6542315b8c6e70fa708a7e)](https://www.codefactor.io/repository/github/mindee/doctr) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/340a76749b634586a498e1c0ab998f08)](https://app.codacy.com/gh/mindee/doctr?utm_source=github.com&utm_medium=referral&utm_content=mindee/doctr&utm_campaign=Badge_Grade) [![Doc Status](https://github.com/mindee/doctr/workflows/doc-status/badge.svg)](https://mindee.github.io/doctr) [![Pypi](https://img.shields.io/badge/pypi-v1.1.0-blue.svg)](https://pypi.org/project/python-doctr/) [![Hugging Face Spaces](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/mindee/doctr) [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mindee/notebooks/blob/main/doctr/quicktour.ipynb) [![Gurubase](https://img.shields.io/badge/Gurubase-Ask%20docTR%20Guru-006BFF)](https://gurubase.io/g/doctr)
6
6
 
7
7
 
8
8
  **Optical Character Recognition made seamless & accessible to anyone, powered by PyTorch**
9
9
 
10
+ ## Project responsibility
11
+
12
+ **docTR** was originally created by [Mindee](https://mindee.com). It is now actively developed and maintained by [t2k GmbH](https://www.text2knowledge.de/de).
13
+
14
+ [![Need help solving a complex use case?](https://github.com/mindee/doctr/raw/main/docs/images/doctr-need-help.png)](https://www.text2knowledge.de/de)
15
+
10
16
  What you can expect from this repository:
11
17
 
12
18
  - efficient ways to parse textual information (localize and identify each word) from your documents
@@ -24,7 +30,7 @@ As such, you can select the architecture used for [text detection](https://minde
24
30
  ```python
25
31
  from doctr.models import ocr_predictor
26
32
 
27
- model = ocr_predictor(det_arch='db_resnet50', reco_arch='crnn_vgg16_bn', pretrained=True)
33
+ model = ocr_predictor(det_arch="db_resnet50", reco_arch="crnn_vgg16_bn", pretrained=True)
28
34
  ```
29
35
 
30
36
  ### Reading files
@@ -33,6 +39,7 @@ Documents can be interpreted from PDF or images:
33
39
 
34
40
  ```python
35
41
  from doctr.io import DocumentFile
42
+
36
43
  # PDF
37
44
  pdf_doc = DocumentFile.from_pdf("path/to/your/doc.pdf")
38
45
  # Image
@@ -58,6 +65,23 @@ doc = DocumentFile.from_pdf("path/to/your/doc.pdf")
58
65
  result = model(doc)
59
66
  ```
60
67
 
68
+ ### Detecting the document layout
69
+
70
+ You can additionally run a layout detection model as part of the pipeline by passing `detect_layout=True`. The detected regions (e.g. `Title`, `Text`, `Table`, `Page-header`, `Page-footer`) are attached to every page and rendered by `.show()`:
71
+
72
+ ```python
73
+ from doctr.io import DocumentFile
74
+ from doctr.models import ocr_predictor
75
+
76
+ model = ocr_predictor(pretrained=True, detect_layout=True)
77
+ doc = DocumentFile.from_images("path/to/your/doc.jpg")
78
+ result = model(doc)
79
+
80
+ # Access the detected layout regions of the first page
81
+ for region in result.pages[0].layout:
82
+ print(region.type, region.confidence, region.geometry)
83
+ ```
84
+
61
85
  ### Dealing with rotated documents
62
86
 
63
87
  Should you use docTR on documents that include rotated pages, or pages with multiple box orientations,
@@ -87,7 +111,9 @@ Or even rebuild the original document from its predictions:
87
111
  import matplotlib.pyplot as plt
88
112
 
89
113
  synthetic_pages = result.synthesize()
90
- plt.imshow(synthetic_pages[0]); plt.axis('off'); plt.show()
114
+ plt.imshow(synthetic_pages[0])
115
+ plt.axis("off")
116
+ plt.show()
91
117
  ```
92
118
 
93
119
  ![Synthesis sample](https://github.com/mindee/doctr/raw/main/docs/images/synthesized_sample.png)
@@ -112,7 +138,7 @@ from doctr.io import DocumentFile
112
138
  from doctr.models import kie_predictor
113
139
 
114
140
  # Model
115
- model = kie_predictor(det_arch='db_resnet50', reco_arch='crnn_vgg16_bn', pretrained=True)
141
+ model = kie_predictor(det_arch="db_resnet50", reco_arch="crnn_vgg16_bn", pretrained=True)
116
142
  # PDF
117
143
  doc = DocumentFile.from_pdf("path/to/your/doc.pdf")
118
144
  # Analyze
@@ -127,15 +153,11 @@ for class_name in predictions.keys():
127
153
 
128
154
  The KIE predictor results per page are in a dictionary format with each key representing a class name and it's value are the predictions for that class.
129
155
 
130
- ### If you are looking for support from the Mindee team
131
-
132
- [![Bad OCR test detection image asking the developer if they need help](https://github.com/mindee/doctr/raw/main/docs/images/doctr-need-help.png)](https://mindee.com/product/doctr)
133
-
134
156
  ## Installation
135
157
 
136
158
  ### Prerequisites
137
159
 
138
- Python 3.10 (or higher) and [pip](https://pip.pypa.io/en/stable/) are required to install docTR.
160
+ Python 3.11 (or higher) and [pip](https://pip.pypa.io/en/stable/) are required to install docTR.
139
161
 
140
162
  ### Latest release
141
163
 
@@ -189,6 +211,14 @@ Credits where it's due: this repository is implementing, among others, architect
189
211
  - PARSeq: [Scene Text Recognition with Permuted Autoregressive Sequence Models](https://arxiv.org/pdf/2207.06966).
190
212
  - VIPTR: [A Vision Permutable Extractor for Fast and Efficient Scene Text Recognition](https://arxiv.org/abs/2401.10110).
191
213
 
214
+ ### Layout Analysis
215
+
216
+ - LW-DETR: [A Transformer Replacement to YOLO for Real-Time Detection](https://arxiv.org/pdf/2406.03459v1).
217
+
218
+ ### Table Structure Recognition
219
+
220
+ - TableCenterNet: [A one-stage network for table structure recognition](https://arxiv.org/abs/2504.17522).
221
+
192
222
  ## More goodies
193
223
 
194
224
  ### Documentation
@@ -242,7 +272,7 @@ docker run -it --gpus all ghcr.io/mindee/doctr:torch-py3.9.18-2024-10 bash
242
272
  The Docker images for docTR follow a specific tag nomenclature: `<deps>-py<python_version>-<doctr_version|YYYY-MM>`. Here's a breakdown of the tag structure:
243
273
 
244
274
  - `<deps>`: `torch`, `torch-viz-html-contrib`.
245
- - `<python_version>`: `3.9.18`, `3.10.13` or `3.11.8`.
275
+ - `<python_version>`: `3.10.13`, `3.11.8`, etc.
246
276
  - `<doctr_version>`: a tag >= `v0.11.0`
247
277
  - `<YYYY-MM>`: e.g. `2014-10`
248
278
 
@@ -313,7 +343,7 @@ import requests
313
343
 
314
344
  params = {"det_arch": "db_resnet50", "reco_arch": "crnn_vgg16_bn"}
315
345
 
316
- with open('/path/to/your/doc.jpg', 'rb') as f:
346
+ with open("/path/to/your/doc.jpg", "rb") as f:
317
347
  files = [ # application/pdf, image/jpeg, image/png supported
318
348
  ("files", ("doc.jpg", f.read(), "image/jpeg")),
319
349
  ]
@@ -324,12 +354,6 @@ print(requests.post("http://localhost:8080/ocr", params=params, files=files).jso
324
354
 
325
355
  Looking for more illustrations of docTR features? You might want to check the [Jupyter notebooks](https://github.com/mindee/doctr/tree/main/notebooks) designed to give you a broader overview.
326
356
 
327
- ## Supported By
328
-
329
- This project is supported by [t2k GmbH](https://www.text2knowledge.de/de),
330
- <p align="center">
331
- <img src="https://github.com/mindee/doctr/raw/main/docs/images/t2k_logo.png" width="40%">
332
- </p>
333
357
 
334
358
  ## Citation
335
359
 
@@ -345,6 +369,22 @@ If you wish to cite this project, feel free to use this [BibTeX](http://www.bibt
345
369
  }
346
370
  ```
347
371
 
372
+ ## Custom Development and Support
373
+
374
+ [t2k GmbH](https://www.text2knowledge.de/de) offers professional services around docTR : whether you are building a product or contributing to the open-source project.
375
+
376
+ ### For organizations
377
+
378
+ Interested in docTR and want to develop, implement, or ship your own solution? t2k can help with:
379
+
380
+ - **Custom OCR development** : individual detection, recognition, and pipeline work built on docTR
381
+ - **Project implementation** : turning your ideas into production-ready docTR integrations
382
+ - **Technical consulting** : architecture, deployment, and integration guidance
383
+ - **Ongoing development** : feature extensions and implementation support tailored to your use case
384
+ - **Workshops & advisory** : verbal consulting, hands-on sessions, and recommendations for working with docTR
385
+
386
+ Contact [info@text2knowledge.de](mailto:info@text2knowledge.de) or visit our [home page](https://www.text2knowledge.de) to discuss your project.
387
+
348
388
  ## Contributing
349
389
 
350
390
  If you scrolled down to this section, you most likely appreciate open source. Do you feel like extending the range of our supported characters? Or perhaps submitting a paper implementation? Or contributing in any other way?