yomitoku 0.9.4__tar.gz → 0.9.5__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 (199) hide show
  1. {yomitoku-0.9.4 → yomitoku-0.9.5}/.github/release-drafter.yml +3 -0
  2. yomitoku-0.9.5/.github/workflows/auto_changelog.yaml +59 -0
  3. yomitoku-0.9.5/.github/workflows/build-and-publish-docs.yaml +25 -0
  4. {yomitoku-0.9.4 → yomitoku-0.9.5}/.github/workflows/create-release.yml +6 -0
  5. {yomitoku-0.9.4 → yomitoku-0.9.5}/.github/workflows/lint-and-test.yml +3 -1
  6. yomitoku-0.9.5/CHANGELOG.md +97 -0
  7. {yomitoku-0.9.4 → yomitoku-0.9.5}/PKG-INFO +2 -2
  8. {yomitoku-0.9.4 → yomitoku-0.9.5}/README.md +1 -1
  9. yomitoku-0.9.5/demo/sample_text.jpg +0 -0
  10. yomitoku-0.9.5/demo/simple_text_recognition.py +11 -0
  11. yomitoku-0.9.5/docs/document_analyzer_schema.md +3142 -0
  12. {yomitoku-0.9.4 → yomitoku-0.9.5}/docs/index.ja.md +1 -1
  13. yomitoku-0.9.5/docs/layout_analyzer_schema.md +1838 -0
  14. yomitoku-0.9.5/docs/ocr_schema.md +427 -0
  15. yomitoku-0.9.5/docs/release_note.md +6 -0
  16. yomitoku-0.9.5/docs/schema_doc.css +181 -0
  17. yomitoku-0.9.5/docs/schema_doc.min.js +1 -0
  18. {yomitoku-0.9.4 → yomitoku-0.9.5}/mkdocs.yml +8 -0
  19. {yomitoku-0.9.4 → yomitoku-0.9.5}/pyproject.toml +3 -0
  20. yomitoku-0.9.5/schemas/document_analyzer_schema.json +380 -0
  21. yomitoku-0.9.5/schemas/layout_analyzer_schema.json +234 -0
  22. yomitoku-0.9.5/schemas/ocr_schema.json +69 -0
  23. yomitoku-0.9.5/scripts/generate_schmea_doc.py +21 -0
  24. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/cli/main.py +9 -1
  25. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/document_analyzer.py +7 -40
  26. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/layout_analyzer.py +3 -13
  27. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/layout_parser.py +2 -15
  28. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/ocr.py +1 -22
  29. yomitoku-0.9.5/src/yomitoku/schemas.py +241 -0
  30. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/table_structure_recognizer.py +2 -29
  31. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/text_detector.py +2 -15
  32. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/text_recognizer.py +17 -20
  33. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/utils/visualizer.py +16 -5
  34. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/test_document_analyzer.py +5 -10
  35. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/test_export.py +12 -11
  36. {yomitoku-0.9.4 → yomitoku-0.9.5}/uv.lock +123 -1
  37. yomitoku-0.9.4/.github/workflows/build-and-publish-docs.yaml +0 -18
  38. {yomitoku-0.9.4 → yomitoku-0.9.5}/.github/FUNDING.yml +0 -0
  39. {yomitoku-0.9.4 → yomitoku-0.9.5}/.github/workflows/build-and-publish.yml +0 -0
  40. {yomitoku-0.9.4 → yomitoku-0.9.5}/.gitignore +0 -0
  41. {yomitoku-0.9.4 → yomitoku-0.9.5}/.pre-commit-config.yaml +0 -0
  42. {yomitoku-0.9.4 → yomitoku-0.9.5}/.python-version +0 -0
  43. {yomitoku-0.9.4 → yomitoku-0.9.5}/README_EN.md +0 -0
  44. {yomitoku-0.9.4 → yomitoku-0.9.5}/configs/yomitoku-layout-parser-rtdtrv2-open-beta.yaml +0 -0
  45. {yomitoku-0.9.4 → yomitoku-0.9.5}/configs/yomitoku-table-structure-recognizer-rtdtrv2-open-beta.yaml +0 -0
  46. {yomitoku-0.9.4 → yomitoku-0.9.5}/configs/yomitoku-text-detector-dbnet-open-beta.yaml +0 -0
  47. {yomitoku-0.9.4 → yomitoku-0.9.5}/configs/yomitoku-text-recognizer-parseq-open-beta.yaml +0 -0
  48. {yomitoku-0.9.4 → yomitoku-0.9.5}/configs/yomitoku-text-recognizer-parseq-small-open-beta.yaml +0 -0
  49. {yomitoku-0.9.4 → yomitoku-0.9.5}/demo/sample.pdf +0 -0
  50. {yomitoku-0.9.4 → yomitoku-0.9.5}/demo/setting_document_anaysis.py +0 -0
  51. {yomitoku-0.9.4 → yomitoku-0.9.5}/demo/simple_document_analysis.py +0 -0
  52. {yomitoku-0.9.4 → yomitoku-0.9.5}/demo/simple_layout.py +0 -0
  53. {yomitoku-0.9.4 → yomitoku-0.9.5}/demo/simple_ocr.py +0 -0
  54. {yomitoku-0.9.4 → yomitoku-0.9.5}/demo/text_detector.yaml +0 -0
  55. {yomitoku-0.9.4 → yomitoku-0.9.5}/dockerfile +0 -0
  56. {yomitoku-0.9.4 → yomitoku-0.9.5}/docs/assets/logo.svg +0 -0
  57. {yomitoku-0.9.4 → yomitoku-0.9.5}/docs/cli.en.md +0 -0
  58. {yomitoku-0.9.4 → yomitoku-0.9.5}/docs/cli.ja.md +0 -0
  59. {yomitoku-0.9.4 → yomitoku-0.9.5}/docs/configuration.en.md +0 -0
  60. {yomitoku-0.9.4 → yomitoku-0.9.5}/docs/configuration.ja.md +0 -0
  61. {yomitoku-0.9.4 → yomitoku-0.9.5}/docs/index.en.md +0 -0
  62. {yomitoku-0.9.4 → yomitoku-0.9.5}/docs/installation.en.md +0 -0
  63. {yomitoku-0.9.4 → yomitoku-0.9.5}/docs/installation.ja.md +0 -0
  64. {yomitoku-0.9.4 → yomitoku-0.9.5}/docs/mcp.en.md +0 -0
  65. {yomitoku-0.9.4 → yomitoku-0.9.5}/docs/mcp.ja.md +0 -0
  66. {yomitoku-0.9.4 → yomitoku-0.9.5}/docs/module.en.md +0 -0
  67. {yomitoku-0.9.4 → yomitoku-0.9.5}/docs/module.ja.md +0 -0
  68. {yomitoku-0.9.4 → yomitoku-0.9.5}/gallery.md +0 -0
  69. {yomitoku-0.9.4 → yomitoku-0.9.5}/pytest.ini +0 -0
  70. {yomitoku-0.9.4 → yomitoku-0.9.5}/scripts/register_hugging_face_hub.py +0 -0
  71. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/__init__.py +0 -0
  72. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/base.py +0 -0
  73. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/cli/__init__.py +0 -0
  74. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/cli/mcp_server.py +0 -0
  75. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/configs/__init__.py +0 -0
  76. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/configs/cfg_layout_parser_rtdtrv2.py +0 -0
  77. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/configs/cfg_layout_parser_rtdtrv2_v2.py +0 -0
  78. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/configs/cfg_table_structure_recognizer_rtdtrv2.py +0 -0
  79. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/configs/cfg_text_detector_dbnet.py +0 -0
  80. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/configs/cfg_text_detector_dbnet_v2.py +0 -0
  81. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/configs/cfg_text_recognizer_parseq.py +0 -0
  82. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/configs/cfg_text_recognizer_parseq_small.py +0 -0
  83. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/configs/cfg_text_recognizer_parseq_v2.py +0 -0
  84. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/constants.py +0 -0
  85. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/data/__init__.py +0 -0
  86. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/data/dataset.py +0 -0
  87. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/data/functions.py +0 -0
  88. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/export/__init__.py +0 -0
  89. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/export/export_csv.py +0 -0
  90. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/export/export_html.py +0 -0
  91. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/export/export_json.py +0 -0
  92. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/export/export_markdown.py +0 -0
  93. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/models/__init__.py +0 -0
  94. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/models/dbnet_plus.py +0 -0
  95. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/models/layers/__init__.py +0 -0
  96. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/models/layers/activate.py +0 -0
  97. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/models/layers/dbnet_feature_attention.py +0 -0
  98. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/models/layers/parseq_transformer.py +0 -0
  99. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/models/layers/rtdetr_backbone.py +0 -0
  100. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/models/layers/rtdetr_hybrid_encoder.py +0 -0
  101. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/models/layers/rtdetrv2_decoder.py +0 -0
  102. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/models/parseq.py +0 -0
  103. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/models/rtdetr.py +0 -0
  104. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/onnx/.gitkeep +0 -0
  105. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/postprocessor/__init__.py +0 -0
  106. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/postprocessor/dbnet_postporcessor.py +0 -0
  107. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/postprocessor/parseq_tokenizer.py +0 -0
  108. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/postprocessor/rtdetr_postprocessor.py +0 -0
  109. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/reading_order.py +0 -0
  110. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/resource/MPLUS1p-Medium.ttf +0 -0
  111. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/resource/charset.txt +0 -0
  112. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/utils/__init__.py +0 -0
  113. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/utils/graph.py +0 -0
  114. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/utils/logger.py +0 -0
  115. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/utils/misc.py +0 -0
  116. {yomitoku-0.9.4 → yomitoku-0.9.5}/src/yomitoku/utils/searchable_pdf.py +0 -0
  117. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/in/demo.jpg +0 -0
  118. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/in/gallery1.jpg +0 -0
  119. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/in/gallery2.jpg +0 -0
  120. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/in/gallery3.jpg +0 -0
  121. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/in/gallery4.jpg +0 -0
  122. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/in/gallery5.jpg +0 -0
  123. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/in/gallery6.jpg +0 -0
  124. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/in/gallery7.jpeg +0 -0
  125. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/logo/horizontal.png +0 -0
  126. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/demo_html.png +0 -0
  127. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_demo_p1_figure_0.png +0 -0
  128. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery1_p1_figure_0.png +0 -0
  129. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery1_p1_figure_1.png +0 -0
  130. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery1_p1_figure_10.png +0 -0
  131. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery1_p1_figure_2.png +0 -0
  132. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery1_p1_figure_3.png +0 -0
  133. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery1_p1_figure_4.png +0 -0
  134. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery1_p1_figure_5.png +0 -0
  135. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery1_p1_figure_6.png +0 -0
  136. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery1_p1_figure_7.png +0 -0
  137. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery1_p1_figure_8.png +0 -0
  138. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery1_p1_figure_9.png +0 -0
  139. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery3_p1_figure_0.png +0 -0
  140. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery3_p1_figure_1.png +0 -0
  141. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery5_p1_figure_0.png +0 -0
  142. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery5_p1_figure_1.png +0 -0
  143. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery6_p1_figure_0.png +0 -0
  144. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery6_p1_figure_1.png +0 -0
  145. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/figures/in_gallery7_p1_figure_0.png +0 -0
  146. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_demo_p1.html +0 -0
  147. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_demo_p1.md +0 -0
  148. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_demo_p1_layout.jpg +0 -0
  149. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_demo_p1_ocr.jpg +0 -0
  150. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery1_p1.html +0 -0
  151. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery1_p1.md +0 -0
  152. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery1_p1_layout.jpg +0 -0
  153. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery1_p1_ocr.jpg +0 -0
  154. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery2_p1.html +0 -0
  155. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery2_p1.md +0 -0
  156. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery2_p1_layout.jpg +0 -0
  157. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery2_p1_ocr.jpg +0 -0
  158. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery3_p1.html +0 -0
  159. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery3_p1.md +0 -0
  160. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery3_p1_layout.jpg +0 -0
  161. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery3_p1_ocr.jpg +0 -0
  162. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery4_p1.html +0 -0
  163. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery4_p1.md +0 -0
  164. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery4_p1_layout.jpg +0 -0
  165. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery4_p1_ocr.jpg +0 -0
  166. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery5_p1.html +0 -0
  167. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery5_p1.md +0 -0
  168. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery5_p1_layout.jpg +0 -0
  169. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery5_p1_ocr.jpg +0 -0
  170. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery6_p1.html +0 -0
  171. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery6_p1.md +0 -0
  172. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery6_p1_layout.jpg +0 -0
  173. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery6_p1_ocr.jpg +0 -0
  174. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery7_p1.html +0 -0
  175. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery7_p1.md +0 -0
  176. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery7_p1_layout.jpg +0 -0
  177. {yomitoku-0.9.4 → yomitoku-0.9.5}/static/out/in_gallery7_p1_ocr.jpg +0 -0
  178. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/data/invalid.jpg +0 -0
  179. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/data/invalid.pdf +0 -0
  180. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/data/rgba.png +0 -0
  181. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/data/sampldoc.tif +0 -0
  182. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/data/small.jpg +0 -0
  183. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/data/subdir/test.jpg +0 -0
  184. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/data/test.bmp +0 -0
  185. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/data/test.jpg +0 -0
  186. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/data/test.pdf +0 -0
  187. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/data/test.png +0 -0
  188. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/data/test.tiff +0 -0
  189. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/data/test.txt +0 -0
  190. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/data/test_gray.jpg +0 -0
  191. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/test_base.py +0 -0
  192. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/test_cli.py +0 -0
  193. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/test_data.py +0 -0
  194. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/test_layout_analyzer.py +0 -0
  195. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/test_ocr.py +0 -0
  196. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/yaml/layout_parser.yaml +0 -0
  197. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/yaml/table_structure_recognizer.yaml +0 -0
  198. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/yaml/text_detector.yaml +0 -0
  199. {yomitoku-0.9.4 → yomitoku-0.9.5}/tests/yaml/text_recognizer.yaml +0 -0
@@ -55,6 +55,9 @@
55
55
  labels:
56
56
  - "enhancement"
57
57
  default: patch
58
+ exclude-labels:
59
+ - "changelog"
60
+
58
61
  template: |
59
62
  ## 変更
60
63
 
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: Change Log Generator
3
+
4
+ on:
5
+ workflow_run:
6
+ workflows: ["Release Drafter"]
7
+ types: [completed]
8
+
9
+ permissions:
10
+ contents: write
11
+ pull-requests: write # PR を作成するため
12
+ issues: write # ラベルを追加するため
13
+
14
+
15
+ jobs:
16
+ changelog:
17
+ if: |
18
+ github.event_name == 'push' ||
19
+ ! contains(
20
+ github.event.pull_request.labels.*.name,
21
+ 'changelog'
22
+ )
23
+
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ with:
28
+ ref: ${{ github.event.workflow_run.head_sha }}
29
+ fetch-depth: 0
30
+ - uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: "3.3"
33
+ - run: gem install github_changelog_generator
34
+ - name: Generate CHANGELOG
35
+ env:
36
+ CHANGELOG_GITHUB_TOKEN: ${{ secrets.GH_CHANGELOG_TOKEN }}
37
+ # Use the environment variable to pass the token to the generator
38
+ run: |
39
+ github_changelog_generator \
40
+ --user ${{ github.repository_owner }} \
41
+ --project ${{ github.event.repository.name }} \
42
+ --no-issues
43
+ - name: Create Pull Request
44
+ id: cpr
45
+ uses: peter-evans/create-pull-request@v6
46
+ with:
47
+ branch: chore/changelog-${{ github.run_id }}
48
+ base: ${{ github.event.workflow_run.head_branch }}
49
+ title: "docs: Update CHANGELOG"
50
+ body: |
51
+ Automated CHANGELOG update triggered by Release Drafter.
52
+ - Workflow run: ${{ github.run_id }}
53
+ commit-message: "docs: update CHANGELOG"
54
+ token: ${{ secrets.GITHUB_TOKEN }}
55
+ signoff: false
56
+ delete-branch: true
57
+ labels: |
58
+ changelog
59
+ automated
@@ -0,0 +1,25 @@
1
+ name: ci
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ paths:
7
+ - 'CHANGELOG.md'
8
+
9
+ permissions:
10
+ contents: write
11
+ jobs:
12
+ deploy-docs:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ with:
17
+ # pull_requests[0].head.sha = PR ブランチの最新コミット
18
+ ref: ${{ github.event.workflow_run.pull_requests[0].head.sha }}
19
+ fetch-depth: 0
20
+ - uses: actions/setup-python@v4
21
+ with:
22
+ python-version: 3.x
23
+ - run: |
24
+ pip install tox
25
+ tox -e docs
@@ -13,6 +13,12 @@ permissions:
13
13
 
14
14
  jobs:
15
15
  update_release_draft:
16
+ if: |
17
+ github.event_name == 'push' ||
18
+ ! contains(
19
+ github.event.pull_request.labels.*.name,
20
+ 'changelog'
21
+ )
16
22
  permissions:
17
23
  contents: write
18
24
  pull-requests: write
@@ -10,6 +10,8 @@ permissions:
10
10
 
11
11
  jobs:
12
12
  lint-and-test:
13
+ if: "! startsWith(github.head_ref, 'chore/changelog-')"
14
+
13
15
  runs-on: ubuntu-latest
14
16
  steps:
15
17
  - uses: actions/checkout@v4
@@ -35,7 +37,7 @@ jobs:
35
37
  - name: Install dependencies
36
38
  run: sudo apt install -y libopencv-dev poppler-utils
37
39
  - name: Install tox-uv
38
- run: uv tool install tox --with tox-uv
40
+ run: uv tool install tox==4.28.4 --with tox-uv==1.27.0
39
41
  - name: Run linter
40
42
  run: tox -e lint
41
43
  - name: Run tests
@@ -0,0 +1,97 @@
1
+ # Changelog
2
+
3
+ ## [v0.9.4](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.9.4) (2025-06-12)
4
+
5
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.9.3...v0.9.4)
6
+
7
+ ## [v0.9.3](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.9.3) (2025-06-05)
8
+
9
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.9.2.post1...v0.9.3)
10
+
11
+ ## [v0.9.2.post1](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.9.2.post1) (2025-06-05)
12
+
13
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.9.2...v0.9.2.post1)
14
+
15
+ ## [v0.9.2](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.9.2) (2025-06-05)
16
+
17
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.9.1...v0.9.2)
18
+
19
+ ## [v0.9.1](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.9.1) (2025-05-16)
20
+
21
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.9.0...v0.9.1)
22
+
23
+ ## [v0.9.0](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.9.0) (2025-04-18)
24
+
25
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.8.1...v0.9.0)
26
+
27
+ ## [v0.8.1](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.8.1) (2025-04-03)
28
+
29
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.8.0...v0.8.1)
30
+
31
+ ## [v0.8.0](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.8.0) (2025-04-03)
32
+
33
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.7.4...v0.8.0)
34
+
35
+ ## [v0.7.4](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.7.4) (2025-04-03)
36
+
37
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.7.3...v0.7.4)
38
+
39
+ ## [v0.7.3](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.7.3) (2025-03-20)
40
+
41
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.7.2...v0.7.3)
42
+
43
+ ## [v0.7.2](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.7.2) (2025-02-21)
44
+
45
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.7.1...v0.7.2)
46
+
47
+ ## [v0.7.1](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.7.1) (2025-01-04)
48
+
49
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.7.0...v0.7.1)
50
+
51
+ ## [v0.7.0](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.7.0) (2024-12-31)
52
+
53
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.6.0...v0.7.0)
54
+
55
+ ## [v0.6.0](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.6.0) (2024-12-15)
56
+
57
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.5.3...v0.6.0)
58
+
59
+ ## [v0.5.3](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.5.3) (2024-12-05)
60
+
61
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.5.2...v0.5.3)
62
+
63
+ ## [v0.5.2](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.5.2) (2024-11-28)
64
+
65
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.5.1...v0.5.2)
66
+
67
+ ## [v0.5.1](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.5.1) (2024-11-26)
68
+
69
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.5.0...v0.5.1)
70
+
71
+ ## [v0.5.0](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.5.0) (2024-11-26)
72
+
73
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.4.1...v0.5.0)
74
+
75
+ ## [v0.4.1](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.4.1) (2024-11-25)
76
+
77
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.4.0...v0.4.1)
78
+
79
+ ## [v0.4.0](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.4.0) (2024-11-25)
80
+
81
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.3.0...v0.4.0)
82
+
83
+ ## [v0.3.0](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.3.0) (2024-11-19)
84
+
85
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.2.0...v0.3.0)
86
+
87
+ ## [v0.2.0](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.2.0) (2024-11-16)
88
+
89
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/v0.1.0...v0.2.0)
90
+
91
+ ## [v0.1.0](https://github.com/kotaro-kinoshita/yomitoku/tree/v0.1.0) (2024-10-30)
92
+
93
+ [Full Changelog](https://github.com/kotaro-kinoshita/yomitoku/compare/69034680a4332455de623e260860326326f02544...v0.1.0)
94
+
95
+
96
+
97
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yomitoku
3
- Version: 0.9.4
3
+ Version: 0.9.5
4
4
  Summary: Yomitoku is an AI-powered document image analysis package designed specifically for the Japanese language.
5
5
  Author-email: Kotaro Kinoshita <kotaro.kinoshita@mlism.com>
6
6
  License: CC BY-NC-SA 4.0
@@ -41,7 +41,7 @@ Description-Content-Type: text/markdown
41
41
  YomiToku は日本語に特化した AI 文章画像解析エンジン(Document AI)です。画像内の文字の全文 OCR およびレイアウト解析機能を有しており、画像内の文字情報や図表を認識、抽出、変換します。
42
42
 
43
43
  - 🤖 日本語データセットで学習した 4 種類(文字位置の検知、文字列認識、レイアウト解析、表の構造認識)の AI モデルを搭載しています。4 種類のモデルはすべて独自に学習されたモデルで日本語文書に対して、高精度に推論可能です。
44
- - 🇯🇵 各モデルは日本語の文書画像に特化して学習されており、7000 文字を超える日本語文字の認識をサーポート、手書き文字、縦書きなど日本語特有のレイアウト構造の文書画像の解析も可能です。(日本語以外にも英語の文書に対しても対応しています)。
44
+ - 🇯🇵 各モデルは日本語の文書画像に特化して学習されており、7000 文字を超える日本語文字の認識をサポート、手書き文字、縦書きなど日本語特有のレイアウト構造の文書画像の解析も可能です。(日本語以外にも英語の文書に対しても対応しています)。
45
45
  - 📈 レイアウト解析、表の構造解析, 読み順推定機能により、文書画像のレイアウトの意味的構造を壊さずに情報を抽出することが可能です。
46
46
  - 📄 多様な出力形式をサポートしています。html やマークダウン、json、csv のいずれかのフォーマットに変換可能です。また、文書内に含まれる図表、画像の抽出の出力も可能です。文書画像をサーチャブルPDFに変換する処理もサポートしています。
47
47
  - ⚡ GPU 環境で高速に動作し、効率的に文書の文字起こし解析が可能です。また、VRAM も 8GB 以内で動作し、ハイエンドな GPU を用意する必要はありません。
@@ -14,7 +14,7 @@
14
14
  YomiToku は日本語に特化した AI 文章画像解析エンジン(Document AI)です。画像内の文字の全文 OCR およびレイアウト解析機能を有しており、画像内の文字情報や図表を認識、抽出、変換します。
15
15
 
16
16
  - 🤖 日本語データセットで学習した 4 種類(文字位置の検知、文字列認識、レイアウト解析、表の構造認識)の AI モデルを搭載しています。4 種類のモデルはすべて独自に学習されたモデルで日本語文書に対して、高精度に推論可能です。
17
- - 🇯🇵 各モデルは日本語の文書画像に特化して学習されており、7000 文字を超える日本語文字の認識をサーポート、手書き文字、縦書きなど日本語特有のレイアウト構造の文書画像の解析も可能です。(日本語以外にも英語の文書に対しても対応しています)。
17
+ - 🇯🇵 各モデルは日本語の文書画像に特化して学習されており、7000 文字を超える日本語文字の認識をサポート、手書き文字、縦書きなど日本語特有のレイアウト構造の文書画像の解析も可能です。(日本語以外にも英語の文書に対しても対応しています)。
18
18
  - 📈 レイアウト解析、表の構造解析, 読み順推定機能により、文書画像のレイアウトの意味的構造を壊さずに情報を抽出することが可能です。
19
19
  - 📄 多様な出力形式をサポートしています。html やマークダウン、json、csv のいずれかのフォーマットに変換可能です。また、文書内に含まれる図表、画像の抽出の出力も可能です。文書画像をサーチャブルPDFに変換する処理もサポートしています。
20
20
  - ⚡ GPU 環境で高速に動作し、効率的に文書の文字起こし解析が可能です。また、VRAM も 8GB 以内で動作し、ハイエンドな GPU を用意する必要はありません。
Binary file
@@ -0,0 +1,11 @@
1
+ import cv2
2
+
3
+ from yomitoku import TextRecognizer
4
+
5
+ text_recognizer = TextRecognizer(visualize=False, device="cuda")
6
+
7
+ img = cv2.imread("demo/sample_text.jpg")
8
+ results, _ = text_recognizer(img)
9
+
10
+ for word in results.contents:
11
+ print("Prediction Word:", word)