yomitoku 0.5.1__py3-none-any.whl → 0.5.2__py3-none-any.whl
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/text_recognizer.py +3 -0
- {yomitoku-0.5.1.dist-info → yomitoku-0.5.2.dist-info}/METADATA +6 -6
- {yomitoku-0.5.1.dist-info → yomitoku-0.5.2.dist-info}/RECORD +5 -5
- {yomitoku-0.5.1.dist-info → yomitoku-0.5.2.dist-info}/WHEEL +0 -0
- {yomitoku-0.5.1.dist-info → yomitoku-0.5.2.dist-info}/entry_points.txt +0 -0
yomitoku/text_recognizer.py
CHANGED
@@ -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)
|
@@ -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.1 (beta) を公開
|
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
|
|
@@ -8,7 +8,7 @@ yomitoku/ocr.py,sha256=Rcojw0aGA6yDF2RjqfK23_rMw-xm61KGd8JmTCTOOVU,2516
|
|
8
8
|
yomitoku/reading_order.py,sha256=OfhOS9ttPDoPSuHrIRKyOzG19GGeRufbuSKDqhsohh4,6404
|
9
9
|
yomitoku/table_structure_recognizer.py,sha256=CouRzfdO_toZKUQbzQqocKdMcgA3Pr7glkZuqD5itpg,7280
|
10
10
|
yomitoku/text_detector.py,sha256=okp0xuq4lXgEDcfgCzeJcrj8hfSI4NvAgorsNwi_NYI,2682
|
11
|
-
yomitoku/text_recognizer.py,sha256=
|
11
|
+
yomitoku/text_recognizer.py,sha256=RHdq1M3-e3C1RECgbaoqPngtxicG3izAma12juD2ICQ,3789
|
12
12
|
yomitoku/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
13
|
yomitoku/cli/main.py,sha256=MBD0S4sXgquJ8P2egkZjJcglXvCke5Uw46C28SDtr8g,6252
|
14
14
|
yomitoku/configs/__init__.py,sha256=KBhb9S7xt22HZaIcoWSgZHfscXXj9YlimOwLH5z9CRo,454
|
@@ -46,7 +46,7 @@ yomitoku/utils/graph.py,sha256=LKNB8ZhSQwOZMfeAimPMF5UCVVr2ZaUWoGDkz8z-uGU,456
|
|
46
46
|
yomitoku/utils/logger.py,sha256=uOmtQDr0A0JD7wyFshedL08BiNrQorHnpktRXba8bjU,424
|
47
47
|
yomitoku/utils/misc.py,sha256=2Eyy7-9K_h4Mal1zGXq6OlxubfNzhS0mEYwn_xt7xl8,2497
|
48
48
|
yomitoku/utils/visualizer.py,sha256=2pSmbhUPylzVVJ0bXtGDoNmMdArAByab4Py7Xavvs_A,5230
|
49
|
-
yomitoku-0.5.
|
50
|
-
yomitoku-0.5.
|
51
|
-
yomitoku-0.5.
|
52
|
-
yomitoku-0.5.
|
49
|
+
yomitoku-0.5.2.dist-info/METADATA,sha256=qG0aq8sJb6iD-i0WvZL__YclRytpBdzyPzu6HNqtgIM,7819
|
50
|
+
yomitoku-0.5.2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
51
|
+
yomitoku-0.5.2.dist-info/entry_points.txt,sha256=nFV3S11zgBNW0Qq_D0XQNg2R4lNXU_9XUFr6rdJoyF8,52
|
52
|
+
yomitoku-0.5.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|