yomitoku 0.5.0__tar.gz → 0.5.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.
- {yomitoku-0.5.0 → yomitoku-0.5.2}/PKG-INFO +6 -6
- {yomitoku-0.5.0 → yomitoku-0.5.2}/README.md +3 -3
- {yomitoku-0.5.0 → yomitoku-0.5.2}/README_EN.md +1 -1
- {yomitoku-0.5.0 → yomitoku-0.5.2}/mkdocs.yml +1 -2
- {yomitoku-0.5.0 → yomitoku-0.5.2}/pyproject.toml +9 -3
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/text_recognizer.py +3 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/uv.lock +75 -255
- {yomitoku-0.5.0 → yomitoku-0.5.2}/.github/release-drafter.yml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/.github/workflows/build-and-publish-docs.yaml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/.github/workflows/build-and-publish.yml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/.github/workflows/create-release.yml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/.github/workflows/lint-and-test.yml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/.gitignore +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/.pre-commit-config.yaml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/.python-version +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/configs/layout_parser_rtdetrv2.yaml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/configs/table_structure_recognitizer.yaml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/configs/text_detector.yaml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/configs/text_recognizer.yaml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/demo/sample.pdf +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/demo/setting_document_anaysis.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/demo/simple_document_analysis.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/demo/simple_layout.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/demo/simple_ocr.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/demo/text_detector.yaml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/dockerfile +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/docs/assets/logo.svg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/docs/index.en.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/docs/index.ja.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/docs/installation.en.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/docs/installation.ja.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/docs/usage.en.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/docs/usage.ja.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/gallery.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/pytest.ini +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/scripts/register_hugging_face_hub.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/__init__.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/base.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/cli/__init__.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/cli/main.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/configs/__init__.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/configs/cfg_layout_parser_rtdtrv2.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/configs/cfg_table_structure_recognizer_rtdtrv2.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/configs/cfg_text_detector_dbnet.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/configs/cfg_text_recognizer_parseq.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/constants.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/data/__init__.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/data/dataset.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/data/functions.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/document_analyzer.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/export/__init__.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/export/export_csv.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/export/export_html.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/export/export_json.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/export/export_markdown.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/layout_analyzer.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/layout_parser.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/models/__init__.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/models/dbnet_plus.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/models/layers/__init__.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/models/layers/activate.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/models/layers/dbnet_feature_attention.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/models/layers/parseq_transformer.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/models/layers/rtdetr_backbone.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/models/layers/rtdetr_hybrid_encoder.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/models/layers/rtdetrv2_decoder.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/models/parseq.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/models/rtdetr.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/ocr.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/postprocessor/__init__.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/postprocessor/dbnet_postporcessor.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/postprocessor/parseq_tokenizer.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/postprocessor/rtdetr_postprocessor.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/reading_order.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/resource/MPLUS1p-Medium.ttf +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/resource/charset.txt +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/table_structure_recognizer.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/text_detector.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/utils/__init__.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/utils/graph.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/utils/logger.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/utils/misc.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/src/yomitoku/utils/visualizer.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/in/demo.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/in/gallery1.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/in/gallery2.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/in/gallery3.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/in/gallery4.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/in/gallery5.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/in/gallery6.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/logo/horizontal.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/demo_html.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_demo_p1_figure_0.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery1_p1_figure_0.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery1_p1_figure_1.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery1_p1_figure_10.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery1_p1_figure_2.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery1_p1_figure_3.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery1_p1_figure_4.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery1_p1_figure_5.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery1_p1_figure_6.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery1_p1_figure_7.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery1_p1_figure_8.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery1_p1_figure_9.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery3_p1_figure_0.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery3_p1_figure_1.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery5_p1_figure_0.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery5_p1_figure_1.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery6_p1_figure_0.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/figures/in_gallery6_p1_figure_1.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_demo_p1.html +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_demo_p1.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_demo_p1_layout.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_demo_p1_ocr.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery1_p1.html +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery1_p1.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery1_p1_layout.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery1_p1_ocr.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery2_p1.html +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery2_p1.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery2_p1_layout.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery2_p1_ocr.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery3_p1.html +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery3_p1.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery3_p1_layout.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery3_p1_ocr.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery4_p1.html +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery4_p1.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery4_p1_layout.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery4_p1_ocr.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery5_p1.html +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery5_p1.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery5_p1_layout.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery5_p1_ocr.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery6_p1.html +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery6_p1.md +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery6_p1_layout.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/static/out/in_gallery6_p1_ocr.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/data/invalid.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/data/invalid.pdf +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/data/rgba.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/data/small.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/data/subdir/test.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/data/test.bmp +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/data/test.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/data/test.pdf +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/data/test.png +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/data/test.tiff +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/data/test.txt +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/data/test_gray.jpg +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/test_base.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/test_cli.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/test_data.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/test_document_analyzer.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/test_export.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/test_layout_analyzer.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/test_ocr.py +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/yaml/layout_parser.yaml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/yaml/table_structure_recognizer.yaml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/yaml/text_detector.yaml +0 -0
- {yomitoku-0.5.0 → yomitoku-0.5.2}/tests/yaml/text_recognizer.yaml +0 -0
@@ -1,11 +1,11 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: yomitoku
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.2
|
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
|
7
7
|
Keywords: Deep Learning,Japanese,OCR
|
8
|
-
Requires-Python:
|
8
|
+
Requires-Python: <3.13,>=3.9
|
9
9
|
Requires-Dist: huggingface-hub>=0.26.1
|
10
10
|
Requires-Dist: lxml>=5.3.0
|
11
11
|
Requires-Dist: omegaconf>=2.3.0
|
@@ -15,7 +15,7 @@ Requires-Dist: pydantic>=2.9.2
|
|
15
15
|
Requires-Dist: pypdfium2>=4.30.0
|
16
16
|
Requires-Dist: shapely>=2.0.6
|
17
17
|
Requires-Dist: timm>=1.0.11
|
18
|
-
Requires-Dist: torch
|
18
|
+
Requires-Dist: torch>=2.5.0
|
19
19
|
Requires-Dist: torchvision>=0.20.0
|
20
20
|
Description-Content-Type: text/markdown
|
21
21
|
|
@@ -27,7 +27,7 @@ Description-Content-Type: text/markdown
|
|
27
27
|

|
28
28
|

|
29
29
|

|
30
|
-
[](https://kotaro-kinoshita.github.io/yomitoku
|
30
|
+
[](https://kotaro-kinoshita.github.io/yomitoku/)
|
31
31
|
|
32
32
|
## 🌟 概要
|
33
33
|
|
@@ -61,7 +61,7 @@ Markdown でエクスポートした結果は関してはリポジトリ内の[s
|
|
61
61
|
|
62
62
|
## 📣 リリース情報
|
63
63
|
|
64
|
-
- 2024 年 11 月 26 YomiToku v0.5.
|
64
|
+
- 2024 年 11 月 26 日 YomiToku v0.5.1 (beta) を公開
|
65
65
|
|
66
66
|
## 💡 インストールの方法
|
67
67
|
|
@@ -101,7 +101,7 @@ yomitoku --help
|
|
101
101
|
|
102
102
|
## 📝 ドキュメント
|
103
103
|
|
104
|
-
パッケージの詳細は[ドキュメント](https://kotaro-kinoshita.github.io/yomitoku
|
104
|
+
パッケージの詳細は[ドキュメント](https://kotaro-kinoshita.github.io/yomitoku/)を確認してください。
|
105
105
|
|
106
106
|
## LICENSE
|
107
107
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|

|
7
7
|

|
8
8
|

|
9
|
-
[](https://kotaro-kinoshita.github.io/yomitoku
|
9
|
+
[](https://kotaro-kinoshita.github.io/yomitoku/)
|
10
10
|
|
11
11
|
## 🌟 概要
|
12
12
|
|
@@ -40,7 +40,7 @@ Markdown でエクスポートした結果は関してはリポジトリ内の[s
|
|
40
40
|
|
41
41
|
## 📣 リリース情報
|
42
42
|
|
43
|
-
- 2024 年 11 月 26 YomiToku v0.5.
|
43
|
+
- 2024 年 11 月 26 日 YomiToku v0.5.1 (beta) を公開
|
44
44
|
|
45
45
|
## 💡 インストールの方法
|
46
46
|
|
@@ -80,7 +80,7 @@ yomitoku --help
|
|
80
80
|
|
81
81
|
## 📝 ドキュメント
|
82
82
|
|
83
|
-
パッケージの詳細は[ドキュメント](https://kotaro-kinoshita.github.io/yomitoku
|
83
|
+
パッケージの詳細は[ドキュメント](https://kotaro-kinoshita.github.io/yomitoku/)を確認してください。
|
84
84
|
|
85
85
|
## LICENSE
|
86
86
|
|
@@ -74,11 +74,10 @@ repo_url: https://github.com/kotaro-kinoshita/yomitoku-dev
|
|
74
74
|
plugins:
|
75
75
|
- search:
|
76
76
|
- i18n:
|
77
|
-
default_language: ja
|
78
77
|
languages:
|
79
78
|
- locale: ja
|
80
79
|
name: 日本語
|
81
80
|
default: true
|
82
81
|
- locale: en
|
83
82
|
name: English
|
84
|
-
link: /en/
|
83
|
+
link: /yomitoku/en/
|
@@ -12,7 +12,7 @@ authors = [{name = "Kotaro Kinoshita", email = "kotaro.kinoshita@mlism.com"}]
|
|
12
12
|
description = "Yomitoku is an AI-powered document image analysis package designed specifically for the Japanese language."
|
13
13
|
readme = "README.md"
|
14
14
|
license = {text = "CC BY-NC-SA 4.0"}
|
15
|
-
requires-python = ">=3.9"
|
15
|
+
requires-python = ">=3.9,<3.13"
|
16
16
|
keywords = ["Japanese", "OCR", "Deep Learning"]
|
17
17
|
dependencies = [
|
18
18
|
"huggingface-hub>=0.26.1",
|
@@ -24,7 +24,7 @@ dependencies = [
|
|
24
24
|
"shapely>=2.0.6",
|
25
25
|
"timm>=1.0.11",
|
26
26
|
"torchvision>=0.20.0",
|
27
|
-
"torch
|
27
|
+
"torch>=2.5.0",
|
28
28
|
"pypdfium2>=4.30.0",
|
29
29
|
]
|
30
30
|
|
@@ -79,12 +79,18 @@ commands =
|
|
79
79
|
pytest tests
|
80
80
|
|
81
81
|
[testenv:lint]
|
82
|
+
basepython = python3.12
|
82
83
|
deps = ruff
|
83
84
|
commands =
|
84
85
|
ruff check
|
85
86
|
|
86
87
|
[testenv:docs]
|
87
|
-
|
88
|
+
basepython = python3.12
|
89
|
+
deps =
|
90
|
+
mkdocs-material
|
91
|
+
pygments
|
92
|
+
plantuml_markdown
|
93
|
+
mkdocs-static-i18n
|
88
94
|
commands =
|
89
95
|
mkdocs gh-deploy --force
|
90
96
|
"""
|
@@ -2,6 +2,7 @@ from typing import List
|
|
2
2
|
|
3
3
|
import numpy as np
|
4
4
|
import torch
|
5
|
+
import unicodedata
|
5
6
|
from pydantic import conlist
|
6
7
|
|
7
8
|
from .base import BaseModelCatalog, BaseModule, BaseSchema
|
@@ -72,6 +73,8 @@ class TextRecognizer(BaseModule):
|
|
72
73
|
|
73
74
|
def postprocess(self, p, points):
|
74
75
|
pred, score = self.tokenizer.decode(p)
|
76
|
+
pred = [unicodedata.normalize("NFKC", x) for x in pred]
|
77
|
+
|
75
78
|
directions = []
|
76
79
|
for point in points:
|
77
80
|
point = np.array(point)
|