onnxtr 0.8.0__py3-none-any.whl → 0.8.1__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.
- onnxtr/contrib/artefacts.py +1 -1
- onnxtr/contrib/base.py +1 -1
- onnxtr/file_utils.py +1 -2
- onnxtr/io/elements.py +1 -1
- onnxtr/io/html.py +1 -1
- onnxtr/io/image.py +1 -1
- onnxtr/io/pdf.py +1 -1
- onnxtr/io/reader.py +1 -1
- onnxtr/models/_utils.py +55 -17
- onnxtr/models/builder.py +1 -1
- onnxtr/models/classification/models/mobilenet.py +1 -1
- onnxtr/models/classification/predictor/base.py +1 -1
- onnxtr/models/classification/zoo.py +1 -1
- onnxtr/models/detection/_utils/base.py +1 -1
- onnxtr/models/detection/core.py +1 -1
- onnxtr/models/detection/models/differentiable_binarization.py +1 -1
- onnxtr/models/detection/models/fast.py +1 -1
- onnxtr/models/detection/models/linknet.py +1 -1
- onnxtr/models/detection/postprocessor/base.py +1 -1
- onnxtr/models/detection/predictor/base.py +1 -1
- onnxtr/models/detection/zoo.py +1 -1
- onnxtr/models/engine.py +3 -1
- onnxtr/models/factory/hub.py +18 -13
- onnxtr/models/predictor/base.py +1 -1
- onnxtr/models/predictor/predictor.py +1 -1
- onnxtr/models/preprocessor/base.py +1 -1
- onnxtr/models/recognition/core.py +1 -1
- onnxtr/models/recognition/models/crnn.py +1 -1
- onnxtr/models/recognition/models/master.py +1 -1
- onnxtr/models/recognition/models/parseq.py +1 -1
- onnxtr/models/recognition/models/sar.py +1 -1
- onnxtr/models/recognition/models/viptr.py +1 -1
- onnxtr/models/recognition/models/vitstr.py +1 -1
- onnxtr/models/recognition/predictor/_utils.py +1 -1
- onnxtr/models/recognition/predictor/base.py +1 -1
- onnxtr/models/recognition/utils.py +1 -1
- onnxtr/models/recognition/zoo.py +1 -1
- onnxtr/models/zoo.py +1 -1
- onnxtr/transforms/base.py +1 -1
- onnxtr/utils/common_types.py +1 -1
- onnxtr/utils/data.py +1 -2
- onnxtr/utils/fonts.py +1 -1
- onnxtr/utils/geometry.py +1 -1
- onnxtr/utils/multithreading.py +1 -1
- onnxtr/utils/reconstitution.py +1 -1
- onnxtr/utils/repr.py +1 -1
- onnxtr/utils/visualization.py +1 -1
- onnxtr/utils/vocabs.py +1 -1
- onnxtr/version.py +1 -1
- {onnxtr-0.8.0.dist-info → onnxtr-0.8.1.dist-info}/METADATA +7 -6
- onnxtr-0.8.1.dist-info/RECORD +76 -0
- {onnxtr-0.8.0.dist-info → onnxtr-0.8.1.dist-info}/WHEEL +1 -1
- onnxtr-0.8.0.dist-info/RECORD +0 -76
- {onnxtr-0.8.0.dist-info → onnxtr-0.8.1.dist-info}/licenses/LICENSE +0 -0
- {onnxtr-0.8.0.dist-info → onnxtr-0.8.1.dist-info}/top_level.txt +0 -0
- {onnxtr-0.8.0.dist-info → onnxtr-0.8.1.dist-info}/zip-safe +0 -0
onnxtr/contrib/artefacts.py
CHANGED
onnxtr/contrib/base.py
CHANGED
onnxtr/file_utils.py
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
# Copyright (C) 2021-
|
|
1
|
+
# Copyright (C) 2021-2026, Mindee | Felix Dittrich.
|
|
2
2
|
|
|
3
3
|
# This program is licensed under the Apache License 2.0.
|
|
4
4
|
# See LICENSE or go to <https://opensource.org/licenses/Apache-2.0> for full license details.
|
|
5
5
|
|
|
6
6
|
import importlib.metadata
|
|
7
|
-
import importlib.util
|
|
8
7
|
import logging
|
|
9
8
|
|
|
10
9
|
__all__ = ["requires_package"]
|
onnxtr/io/elements.py
CHANGED
onnxtr/io/html.py
CHANGED
onnxtr/io/image.py
CHANGED
onnxtr/io/pdf.py
CHANGED
onnxtr/io/reader.py
CHANGED
onnxtr/models/_utils.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2021-
|
|
1
|
+
# Copyright (C) 2021-2026, Mindee | Felix Dittrich.
|
|
2
2
|
|
|
3
3
|
# This program is licensed under the Apache License 2.0.
|
|
4
4
|
# See LICENSE or go to <https://opensource.org/licenses/Apache-2.0> for full license details.
|
|
@@ -25,6 +25,8 @@ def get_max_width_length_ratio(contour: np.ndarray) -> float:
|
|
|
25
25
|
the maximum shape ratio
|
|
26
26
|
"""
|
|
27
27
|
_, (w, h), _ = cv2.minAreaRect(contour)
|
|
28
|
+
if w == 0 or h == 0:
|
|
29
|
+
return 0.0
|
|
28
30
|
return max(w / h, h / w)
|
|
29
31
|
|
|
30
32
|
|
|
@@ -52,7 +54,7 @@ def estimate_orientation(
|
|
|
52
54
|
the estimated angle of the page (clockwise, negative for left side rotation, positive for right side rotation)
|
|
53
55
|
"""
|
|
54
56
|
assert len(img.shape) == 3 and img.shape[-1] in [1, 3], f"Image shape {img.shape} not supported"
|
|
55
|
-
|
|
57
|
+
|
|
56
58
|
# Convert image to grayscale if necessary
|
|
57
59
|
if img.shape[-1] == 3:
|
|
58
60
|
gray_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
|
|
@@ -61,11 +63,14 @@ def estimate_orientation(
|
|
|
61
63
|
else:
|
|
62
64
|
thresh = img.astype(np.uint8)
|
|
63
65
|
|
|
64
|
-
page_orientation, orientation_confidence = general_page_orientation or (
|
|
65
|
-
|
|
66
|
+
page_orientation, orientation_confidence = general_page_orientation or (0, 0.0)
|
|
67
|
+
is_confident = page_orientation is not None and orientation_confidence >= min_confidence
|
|
68
|
+
base_angle = page_orientation if is_confident else 0
|
|
69
|
+
|
|
70
|
+
if is_confident:
|
|
66
71
|
# We rotate the image to the general orientation which improves the detection
|
|
67
72
|
# No expand needed bitmap is already padded
|
|
68
|
-
thresh = rotate_image(thresh, -
|
|
73
|
+
thresh = rotate_image(thresh, -base_angle)
|
|
69
74
|
else: # That's only required if we do not work on the detection models bin map
|
|
70
75
|
# try to merge words in lines
|
|
71
76
|
(h, w) = img.shape[:2]
|
|
@@ -87,30 +92,63 @@ def estimate_orientation(
|
|
|
87
92
|
angles = []
|
|
88
93
|
for contour in contours[:n_ct]:
|
|
89
94
|
_, (w, h), angle = cv2.minAreaRect(contour)
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
95
|
+
|
|
96
|
+
# OpenCV version-proof normalization: force 'w' to be the long side
|
|
97
|
+
# so the angle is consistently relative to the major axis.
|
|
98
|
+
# https://github.com/opencv/opencv/pull/28051/changes
|
|
99
|
+
if w < h:
|
|
100
|
+
w, h = h, w
|
|
101
|
+
angle -= 90
|
|
102
|
+
|
|
103
|
+
# Normalize angle to be within [-90, 90]
|
|
104
|
+
while angle <= -90:
|
|
105
|
+
angle += 180
|
|
106
|
+
while angle > 90:
|
|
107
|
+
angle -= 180
|
|
108
|
+
|
|
109
|
+
if h > 0:
|
|
110
|
+
if w / h > ratio_threshold_for_lines: # select only contours with ratio like lines
|
|
111
|
+
angles.append(angle)
|
|
112
|
+
elif w / h < 1 / ratio_threshold_for_lines: # if lines are vertical, substract 90 degree
|
|
113
|
+
angles.append(angle - 90)
|
|
94
114
|
|
|
95
115
|
if len(angles) == 0:
|
|
96
|
-
|
|
116
|
+
skew_angle = 0 # in case no angles is found
|
|
97
117
|
else:
|
|
118
|
+
# median_low picks a value from the data to avoid outliers
|
|
98
119
|
median = -median_low(angles)
|
|
99
|
-
|
|
120
|
+
skew_angle = -round(median) if abs(median) != 0 else 0
|
|
121
|
+
|
|
122
|
+
# Resolve the 90-degree flip ambiguity.
|
|
123
|
+
# If the estimation is exactly 90/-90, it's usually a vertical detection of horizontal lines.
|
|
124
|
+
if abs(skew_angle) == 90:
|
|
125
|
+
skew_angle = 0
|
|
100
126
|
|
|
101
127
|
# combine with the general orientation and the estimated angle
|
|
102
|
-
|
|
128
|
+
# Apply the detected skew to our base orientation
|
|
129
|
+
final_angle = base_angle + skew_angle
|
|
130
|
+
|
|
131
|
+
# Standardize result to [-179, 180] range to handle wrap-around cases (e.g., 180 + -31)
|
|
132
|
+
while final_angle > 180:
|
|
133
|
+
final_angle -= 360
|
|
134
|
+
while final_angle <= -180:
|
|
135
|
+
final_angle += 360
|
|
136
|
+
|
|
137
|
+
if is_confident:
|
|
138
|
+
# If the estimated angle is perpendicular, treat it as 0 to avoid wrong flips
|
|
139
|
+
if abs(skew_angle) % 90 == 0:
|
|
140
|
+
return page_orientation
|
|
141
|
+
|
|
103
142
|
# special case where the estimated angle is mostly wrong:
|
|
104
143
|
# case 1: - and + swapped
|
|
105
144
|
# case 2: estimated angle is completely wrong
|
|
106
145
|
# so in this case we prefer the general page orientation
|
|
107
|
-
if abs(
|
|
146
|
+
if abs(skew_angle) == abs(page_orientation) and page_orientation != 0:
|
|
108
147
|
return page_orientation
|
|
109
|
-
estimated_angle = estimated_angle if page_orientation == 0 else page_orientation + estimated_angle
|
|
110
|
-
if estimated_angle > 180:
|
|
111
|
-
estimated_angle -= 360
|
|
112
148
|
|
|
113
|
-
return
|
|
149
|
+
return int(
|
|
150
|
+
final_angle
|
|
151
|
+
) # return the clockwise angle (negative - left side rotation, positive - right side rotation)
|
|
114
152
|
|
|
115
153
|
|
|
116
154
|
def rectify_crops(
|
onnxtr/models/builder.py
CHANGED
onnxtr/models/detection/core.py
CHANGED
onnxtr/models/detection/zoo.py
CHANGED
onnxtr/models/engine.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2021-
|
|
1
|
+
# Copyright (C) 2021-2026, Mindee | Felix Dittrich.
|
|
2
2
|
|
|
3
3
|
# This program is licensed under the Apache License 2.0.
|
|
4
4
|
# See LICENSE or go to <https://opensource.org/licenses/Apache-2.0> for full license details.
|
|
@@ -65,6 +65,8 @@ class EngineConfig:
|
|
|
65
65
|
},
|
|
66
66
|
),
|
|
67
67
|
)
|
|
68
|
+
elif "CoreMLExecutionProvider" in available_providers: # pragma: no cover
|
|
69
|
+
providers.insert(0, ("CoreMLExecutionProvider", {}))
|
|
68
70
|
return providers
|
|
69
71
|
|
|
70
72
|
def _init_sess_opts(self) -> SessionOptions:
|
onnxtr/models/factory/hub.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2021-
|
|
1
|
+
# Copyright (C) 2021-2026, Mindee | Felix Dittrich.
|
|
2
2
|
|
|
3
3
|
# This program is licensed under the Apache License 2.0.
|
|
4
4
|
# See LICENSE or go to <https://opensource.org/licenses/Apache-2.0> for full license details.
|
|
@@ -7,18 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
import json
|
|
9
9
|
import logging
|
|
10
|
-
import os
|
|
11
10
|
import shutil
|
|
12
11
|
import subprocess
|
|
12
|
+
import tempfile
|
|
13
13
|
import textwrap
|
|
14
14
|
from pathlib import Path
|
|
15
15
|
from typing import Any
|
|
16
16
|
|
|
17
17
|
from huggingface_hub import (
|
|
18
18
|
HfApi,
|
|
19
|
-
Repository,
|
|
20
19
|
get_token,
|
|
21
|
-
get_token_permission,
|
|
22
20
|
hf_hub_download,
|
|
23
21
|
login,
|
|
24
22
|
)
|
|
@@ -39,9 +37,9 @@ AVAILABLE_ARCHS = {
|
|
|
39
37
|
def login_to_hub() -> None: # pragma: no cover
|
|
40
38
|
"""Login to huggingface hub"""
|
|
41
39
|
access_token = get_token()
|
|
42
|
-
if access_token is not None
|
|
40
|
+
if access_token is not None:
|
|
43
41
|
logging.info("Huggingface Hub token found and valid")
|
|
44
|
-
login(token=access_token
|
|
42
|
+
login(token=access_token)
|
|
45
43
|
else:
|
|
46
44
|
login()
|
|
47
45
|
# check if git lfs is installed
|
|
@@ -165,16 +163,23 @@ def push_to_hf_hub(
|
|
|
165
163
|
|
|
166
164
|
commit_message = f"Add {model_name} model"
|
|
167
165
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
166
|
+
# Create repository
|
|
167
|
+
api = HfApi()
|
|
168
|
+
api.create_repo(model_name, token=get_token(), exist_ok=False)
|
|
171
169
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
# Save model files to a temporary directory
|
|
171
|
+
with tempfile.TemporaryDirectory() as tmp_dir:
|
|
172
|
+
_save_model_and_config_for_hf_hub(model, tmp_dir, arch=arch, task=task)
|
|
173
|
+
readme_path = Path(tmp_dir) / "README.md"
|
|
175
174
|
readme_path.write_text(readme)
|
|
176
175
|
|
|
177
|
-
|
|
176
|
+
# Upload all files to the hub
|
|
177
|
+
api.upload_folder(
|
|
178
|
+
folder_path=tmp_dir,
|
|
179
|
+
repo_id=model_name,
|
|
180
|
+
commit_message=commit_message,
|
|
181
|
+
token=get_token(),
|
|
182
|
+
)
|
|
178
183
|
|
|
179
184
|
|
|
180
185
|
def from_hub(repo_id: str, engine_cfg: EngineConfig | None = None, **kwargs: Any):
|
onnxtr/models/predictor/base.py
CHANGED
onnxtr/models/recognition/zoo.py
CHANGED
onnxtr/models/zoo.py
CHANGED
onnxtr/transforms/base.py
CHANGED
onnxtr/utils/common_types.py
CHANGED
onnxtr/utils/data.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2021-
|
|
1
|
+
# Copyright (C) 2021-2026, Mindee | Felix Dittrich.
|
|
2
2
|
|
|
3
3
|
# This program is licensed under the Apache License 2.0.
|
|
4
4
|
# See LICENSE or go to <https://opensource.org/licenses/Apache-2.0> for full license details.
|
|
@@ -9,7 +9,6 @@ import hashlib
|
|
|
9
9
|
import logging
|
|
10
10
|
import os
|
|
11
11
|
import re
|
|
12
|
-
import urllib
|
|
13
12
|
import urllib.error
|
|
14
13
|
import urllib.request
|
|
15
14
|
from pathlib import Path
|
onnxtr/utils/fonts.py
CHANGED
onnxtr/utils/geometry.py
CHANGED
onnxtr/utils/multithreading.py
CHANGED
onnxtr/utils/reconstitution.py
CHANGED
onnxtr/utils/repr.py
CHANGED
onnxtr/utils/visualization.py
CHANGED
onnxtr/utils/vocabs.py
CHANGED
onnxtr/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = 'v0.8.
|
|
1
|
+
__version__ = 'v0.8.1'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: onnxtr
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.1
|
|
4
4
|
Summary: Onnx Text Recognition (OnnxTR): docTR Onnx-Wrapper for high-performance OCR on documents.
|
|
5
5
|
Author-email: Felix Dittrich <felixdittrich92@gmail.com>
|
|
6
6
|
Maintainer: Felix Dittrich
|
|
@@ -227,11 +227,11 @@ Description-Content-Type: text/markdown
|
|
|
227
227
|
License-File: LICENSE
|
|
228
228
|
Requires-Dist: numpy<3.0.0,>=1.16.0
|
|
229
229
|
Requires-Dist: scipy<2.0.0,>=1.4.0
|
|
230
|
-
Requires-Dist: pypdfium2<
|
|
230
|
+
Requires-Dist: pypdfium2<6.0.0,>=4.11.0
|
|
231
231
|
Requires-Dist: pyclipper<2.0.0,>=1.2.0
|
|
232
232
|
Requires-Dist: rapidfuzz<4.0.0,>=3.0.0
|
|
233
233
|
Requires-Dist: langdetect<2.0.0,>=1.0.9
|
|
234
|
-
Requires-Dist: huggingface-hub<
|
|
234
|
+
Requires-Dist: huggingface-hub<2.0.0,>=0.23.0
|
|
235
235
|
Requires-Dist: Pillow>=9.2.0
|
|
236
236
|
Requires-Dist: defusedxml>=0.7.0
|
|
237
237
|
Requires-Dist: anyascii>=0.3.2
|
|
@@ -294,8 +294,8 @@ Dynamic: license-file
|
|
|
294
294
|
[](https://codecov.io/gh/felixdittrich92/OnnxTR)
|
|
295
295
|
[](https://app.codacy.com/gh/felixdittrich92/OnnxTR/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
|
296
296
|
[](https://www.codefactor.io/repository/github/felixdittrich92/onnxtr)
|
|
297
|
-
[](https://socket.dev/pypi/package/onnxtr/overview/0.8.1/tar-gz)
|
|
298
|
+
[](https://pypi.org/project/OnnxTR/)
|
|
299
299
|
[](https://github.com/felixdittrich92/OnnxTR/pkgs/container/onnxtr)
|
|
300
300
|
[](https://huggingface.co/spaces/Felix92/OnnxTR-OCR)
|
|
301
301
|

|
|
@@ -325,7 +325,7 @@ You can then install the latest release of the package using [pypi](https://pypi
|
|
|
325
325
|
|
|
326
326
|
**NOTE:**
|
|
327
327
|
|
|
328
|
-
Currently supported execution providers by default are: CPU, CUDA (NVIDIA GPU), OpenVINO (Intel CPU | GPU).
|
|
328
|
+
Currently supported execution providers by default are: CPU, CUDA (NVIDIA GPU), OpenVINO (Intel CPU | GPU), CoreML (Apple Silicon).
|
|
329
329
|
|
|
330
330
|
For GPU support please take a look at: [ONNX Runtime](https://onnxruntime.ai/getting-started).
|
|
331
331
|
|
|
@@ -355,6 +355,7 @@ If you have:
|
|
|
355
355
|
|
|
356
356
|
- a NVIDIA GPU, use one of the `gpu` variants
|
|
357
357
|
- an Intel CPU or GPU, use one of the `openvino` variants
|
|
358
|
+
- an Apple Silicon Mac, use one of the `cpu` variants (CoreML is auto-detected)
|
|
358
359
|
- otherwise, use one of the `cpu` variants
|
|
359
360
|
|
|
360
361
|
**OpenVINO:**
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
onnxtr/__init__.py,sha256=h7Wc2tuHLsaoCk5xNpEFEK-g11A6SJA7nAasA76TQ_Y,100
|
|
2
|
+
onnxtr/file_utils.py,sha256=6pUZcrZtSRaHJr7luLd7EwTZOUcPzT9Ibm3DYcHiWAk,1045
|
|
3
|
+
onnxtr/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
onnxtr/version.py,sha256=M-PQbswhc8YrXcs4GoOEbQ4Ze9_y4MlJlfbrXibvsTs,23
|
|
5
|
+
onnxtr/contrib/__init__.py,sha256=0Jo052I1DIdbNVYQBg213UJBNH3UKZIOcn2HVusQlj4,39
|
|
6
|
+
onnxtr/contrib/artefacts.py,sha256=QBBeOau-cgUnTcwxYAmKBsKGFt9zqLK56pus-0yrrCk,5323
|
|
7
|
+
onnxtr/contrib/base.py,sha256=IMz-CGgJL8Gyh2sd2xsAFch7IPAXlwfolIlufBSGh64,3135
|
|
8
|
+
onnxtr/io/__init__.py,sha256=kS7tKGFvzxOCWBOun-Y8n9CsziwRKNynjwpZEUUI03M,106
|
|
9
|
+
onnxtr/io/elements.py,sha256=E2BENrWN1aU0HCdtO-l2-PRjaEbE8lh_gaVFKComhZM,17751
|
|
10
|
+
onnxtr/io/html.py,sha256=bwiDWL1h_WMOzCSDkM0sYyKHO81d2t7BRU9eJlVVVoY,716
|
|
11
|
+
onnxtr/io/image.py,sha256=na6vt-2rHa5tF0G8GOIp-rSKes52mNiTmpsLnBi1l1Q,1700
|
|
12
|
+
onnxtr/io/pdf.py,sha256=cYigyEAsCzt4GdW1L4ncJ2XIZVZJpp-aI7vOkVdWMEo,1327
|
|
13
|
+
onnxtr/io/reader.py,sha256=3S9jOAA6cJf8pNXhiHZ9F2EsMJotpSlONd53ZeSn3HI,2755
|
|
14
|
+
onnxtr/models/__init__.py,sha256=QTfZlqUyv1d7NUCbGIUFM1DLOOXe-cqHZ7uaKkGdXvk,157
|
|
15
|
+
onnxtr/models/_utils.py,sha256=Tr-L3JjfzBq19yNL73wknMr0X12rAPsWVDk7QCiUDd8,7550
|
|
16
|
+
onnxtr/models/builder.py,sha256=wqBRSxEYZ3tyCNnOuxxYoz3sUfDv4VejHUGraqV9hBw,14076
|
|
17
|
+
onnxtr/models/engine.py,sha256=iyEBRAK65fBhNOhOAj0p0jXVctzKI3SRXyPsnlnTgro,5880
|
|
18
|
+
onnxtr/models/zoo.py,sha256=a6nkqIRiFP_jlyjcCgfR9KEn3WkV3-AdBPxIE_0mVYg,5303
|
|
19
|
+
onnxtr/models/classification/__init__.py,sha256=h1bZs55iLJBMATtzS4ntTKwfD6OGXBiiqGv_hEnOFnE,41
|
|
20
|
+
onnxtr/models/classification/zoo.py,sha256=Npj9s8DFGE_ZMsr-fAdHLNotGqVxfnmQnALxx4qp0vo,4271
|
|
21
|
+
onnxtr/models/classification/models/__init__.py,sha256=rohbM6ZQslfYchi7feZwwh-sX3XXRUhgtEJQeurAytQ,24
|
|
22
|
+
onnxtr/models/classification/models/mobilenet.py,sha256=i7hGwwLm706LKTEsXffrxHJqM7bnKxaiQlB0LLmVgdI,4818
|
|
23
|
+
onnxtr/models/classification/predictor/__init__.py,sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY,20
|
|
24
|
+
onnxtr/models/classification/predictor/base.py,sha256=60zS-rj6IFvt3oZCuPZPb0cjkJgdeu4zZIEd7yrwLAw,2313
|
|
25
|
+
onnxtr/models/detection/__init__.py,sha256=h1bZs55iLJBMATtzS4ntTKwfD6OGXBiiqGv_hEnOFnE,41
|
|
26
|
+
onnxtr/models/detection/core.py,sha256=iAg1jZq-RbHIxGeq1OGTC3V4Mh4RKAy3XTveDFs5Jps,3466
|
|
27
|
+
onnxtr/models/detection/zoo.py,sha256=_-YMZWsnsnZVsYV194c5TzJT2NVcPbNOXfBM1wD6N-U,3385
|
|
28
|
+
onnxtr/models/detection/_utils/__init__.py,sha256=oPkIYbySSbLsOk02wVPNO9bUuywC47YjaenfyTwfOsw,20
|
|
29
|
+
onnxtr/models/detection/_utils/base.py,sha256=o771Zpm4TUngmzkK-uYG4KsnU83MU7fAiNoDpbD43nc,2300
|
|
30
|
+
onnxtr/models/detection/models/__init__.py,sha256=6Ea6knYrVCR2jAmPlsVWmCdHe-c6lSRETSAuZGfhx8I,85
|
|
31
|
+
onnxtr/models/detection/models/differentiable_binarization.py,sha256=kI6Z-cAxB6eSySSKwRQjTdfEWo07dEW5fAfge8QUItM,6630
|
|
32
|
+
onnxtr/models/detection/models/fast.py,sha256=S_mD0YMX7n4418rrYmeOG8uEOTEpgnlc2_Bzcjq9qxw,6188
|
|
33
|
+
onnxtr/models/detection/models/linknet.py,sha256=KYDgLCoDDUtCO8UsUr0PklRNFqxVF_lkBDoZCOdG2iM,6666
|
|
34
|
+
onnxtr/models/detection/postprocessor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
+
onnxtr/models/detection/postprocessor/base.py,sha256=-7mjzEl5mCYOr_hHKYHR1-WAJgs-slyj08_8JI7i2Xk,5657
|
|
36
|
+
onnxtr/models/detection/predictor/__init__.py,sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY,20
|
|
37
|
+
onnxtr/models/detection/predictor/base.py,sha256=TsQ9Xm5aKtpgaMY4nigZTGy8YKkkrOvv6559oRC7gMc,2293
|
|
38
|
+
onnxtr/models/factory/__init__.py,sha256=cKPoH2V2157lLMTR2zsljG3_IQHziodqR-XK_LG0D_I,19
|
|
39
|
+
onnxtr/models/factory/hub.py,sha256=xqP_uoEJxz2uIFd1difs5HHiaK0MoFcCXxF9no1kTv0,7119
|
|
40
|
+
onnxtr/models/predictor/__init__.py,sha256=XL25XkRkgyK7mldF-CWhg2MMakSdP5vLpDLwL59hphk,25
|
|
41
|
+
onnxtr/models/predictor/base.py,sha256=G_LD6OLpNqzEGx_Bw2QgrNZLMkloM5yc-Jhz04HtZhQ,9432
|
|
42
|
+
onnxtr/models/predictor/predictor.py,sha256=5x0tXhTqGDRnNxeTknL7kIFHaKrWLrJjbrhZgzhTxFM,6351
|
|
43
|
+
onnxtr/models/preprocessor/__init__.py,sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY,20
|
|
44
|
+
onnxtr/models/preprocessor/base.py,sha256=dlbSTsODQ2pbcy8hlXgaqfS_ZJxlnvHgX7785s2DbXo,3963
|
|
45
|
+
onnxtr/models/recognition/__init__.py,sha256=h1bZs55iLJBMATtzS4ntTKwfD6OGXBiiqGv_hEnOFnE,41
|
|
46
|
+
onnxtr/models/recognition/core.py,sha256=X4hj3T5mxO4suFp5AxQH4k43lUoney5EMIwnsCB-qsM,730
|
|
47
|
+
onnxtr/models/recognition/utils.py,sha256=SGPKYML1YhVhOnd2TAG0hLpkTY4yH6HcJ91cs7n6Sv4,3756
|
|
48
|
+
onnxtr/models/recognition/zoo.py,sha256=Vrp6bWMfYd_HdbSlJh-sQG9ph8O-k_Crt_Z96VN9gMU,3018
|
|
49
|
+
onnxtr/models/recognition/models/__init__.py,sha256=hbjiDSCgh_EUEM7q9aSbcK7ffszMvsDWW89-MVN21Vk,126
|
|
50
|
+
onnxtr/models/recognition/models/crnn.py,sha256=zGEm-wuMo-AGD5hEorXgI4Ajuxt2wU13CoyQCm4yN-U,8779
|
|
51
|
+
onnxtr/models/recognition/models/master.py,sha256=KSyjhK20632kcxXJNZMVwh1i46XfzTlrigIf8NwIRqE,4669
|
|
52
|
+
onnxtr/models/recognition/models/parseq.py,sha256=zCtZ6HPtfkLccg-WWlvcaUT4e-AxC1TogC5-Py2AaVk,4512
|
|
53
|
+
onnxtr/models/recognition/models/sar.py,sha256=L9nyKphWRHWLJOm2RJ_b5Ceg7NovyVwfwsFKNB9Twk4,4523
|
|
54
|
+
onnxtr/models/recognition/models/viptr.py,sha256=6hiLmVdlTfSf9bz6KVjstXd2PxmTvwHAPqlM48tnYHE,5656
|
|
55
|
+
onnxtr/models/recognition/models/vitstr.py,sha256=jZ4MfIP_RChXbpmVW78UsJv9pQpCocKR39FPMM4EbJs,5964
|
|
56
|
+
onnxtr/models/recognition/predictor/__init__.py,sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY,20
|
|
57
|
+
onnxtr/models/recognition/predictor/_utils.py,sha256=OUZtvMT_IWjLm8G4LZK86hc_4BQqq7MCkvdHq6w4b2A,5182
|
|
58
|
+
onnxtr/models/recognition/predictor/base.py,sha256=6uwKbmcYo0ugmTLtECls_FRwoAtQgBkHA49ph4fuNLU,2503
|
|
59
|
+
onnxtr/transforms/__init__.py,sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY,20
|
|
60
|
+
onnxtr/transforms/base.py,sha256=kN_fkcYTFHJjO1v1qRgyxETjNHc61yKNk1dgV6mjFbk,4120
|
|
61
|
+
onnxtr/utils/__init__.py,sha256=pESRJKtcQyjRxiMgZPhtPYeLbCj-YSGyMVRHTbcMONU,94
|
|
62
|
+
onnxtr/utils/common_types.py,sha256=NCT64caDsSr7inZhIcDnrnPh7DDV4ALwZBUQcCdbP-s,551
|
|
63
|
+
onnxtr/utils/data.py,sha256=OkXA9mkCqzEjyoS3X_A7mhzwfOXOZGjGpbeR1DrVpfc,4248
|
|
64
|
+
onnxtr/utils/fonts.py,sha256=N4rVcFzYr_IZ7JG49h-SIE0Wo8IV7odxc8PKKRjM4uE,1282
|
|
65
|
+
onnxtr/utils/geometry.py,sha256=VOc_jQUK4382GEFqKBpJCpVeGmYLsw6b_mwnqwz03nY,20418
|
|
66
|
+
onnxtr/utils/multithreading.py,sha256=YzsMiN4KDYSByHW5QxzECnqnNzpqDOi_97ysOG3YcZk,1994
|
|
67
|
+
onnxtr/utils/reconstitution.py,sha256=2KJi9gOsa_J8aaqk0xDROCnQRgCNnWphI3ptBMWgsvY,6119
|
|
68
|
+
onnxtr/utils/repr.py,sha256=_AfcLMEoa9tGfUa5okAe_ITFMi_o2fEWezJb2sCpq28,2105
|
|
69
|
+
onnxtr/utils/visualization.py,sha256=XJic1Ljn1HlQbjvvWB3f3lqTytYymhFTLB9vPnhXebw,9831
|
|
70
|
+
onnxtr/utils/vocabs.py,sha256=sMFWfDgykfxKjr5bnygasJpxb0ETCq3CKoT0ctHWhtM,99049
|
|
71
|
+
onnxtr-0.8.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
onnxtr-0.8.1.dist-info/METADATA,sha256=OnT2OQNNN0Tj9j9cMPzlXJ7AJUtUuUTGFDbpMjNWSfI,36019
|
|
73
|
+
onnxtr-0.8.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
74
|
+
onnxtr-0.8.1.dist-info/top_level.txt,sha256=r_MSUTpspp4pWEEWvly-s7ZkfCg1KwrK6-kBlXkWKU8,7
|
|
75
|
+
onnxtr-0.8.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
76
|
+
onnxtr-0.8.1.dist-info/RECORD,,
|
onnxtr-0.8.0.dist-info/RECORD
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
onnxtr/__init__.py,sha256=h7Wc2tuHLsaoCk5xNpEFEK-g11A6SJA7nAasA76TQ_Y,100
|
|
2
|
-
onnxtr/file_utils.py,sha256=rlflwU-KTHQ6wD1GU2EqPJs4y7gTyZSUnhtx9w2lIOk,1067
|
|
3
|
-
onnxtr/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
onnxtr/version.py,sha256=XbvKmQHvfaLsOHsQx8r-8Tg2eqiGheb-FcQ7cNGg5ro,23
|
|
5
|
-
onnxtr/contrib/__init__.py,sha256=0Jo052I1DIdbNVYQBg213UJBNH3UKZIOcn2HVusQlj4,39
|
|
6
|
-
onnxtr/contrib/artefacts.py,sha256=4uJyXrl2YEjeWaGC8pAVC5227eVzb34vTSbAe0fzGbw,5323
|
|
7
|
-
onnxtr/contrib/base.py,sha256=SPPWd8SVwZr4kGPI-yM8UdQguEZ0awRBUZGjGKZEC-U,3135
|
|
8
|
-
onnxtr/io/__init__.py,sha256=kS7tKGFvzxOCWBOun-Y8n9CsziwRKNynjwpZEUUI03M,106
|
|
9
|
-
onnxtr/io/elements.py,sha256=F-AcKzVqDKVE5zfHEVGRhRGJWt8Ln54ndk3cVNQXmas,17751
|
|
10
|
-
onnxtr/io/html.py,sha256=VleLE-94eJ2BermRZGDuKKLruE2p3bP1c3ZtaNkciF0,716
|
|
11
|
-
onnxtr/io/image.py,sha256=ehOcXzH1eFjwLO3pwiV3bUwGcn4SdW-FO9DVbUjWw2M,1700
|
|
12
|
-
onnxtr/io/pdf.py,sha256=cO_e9MWh2uCu20a9eLqp3y3GS9idpROkOuNkCU5yE8U,1327
|
|
13
|
-
onnxtr/io/reader.py,sha256=JBDoGXaQsiV3eZxDu4Sd8aeULIEmLV5oNGqGXLAmtBk,2755
|
|
14
|
-
onnxtr/models/__init__.py,sha256=QTfZlqUyv1d7NUCbGIUFM1DLOOXe-cqHZ7uaKkGdXvk,157
|
|
15
|
-
onnxtr/models/_utils.py,sha256=IqXlismua45W3Uo451oVNrnMnUCrxKoRqKJ5TKyypYE,6448
|
|
16
|
-
onnxtr/models/builder.py,sha256=aaMHLZl8fayeWsXHsvSy5Tq2yQWTO0gpj4Ob4kNZ0xk,14076
|
|
17
|
-
onnxtr/models/engine.py,sha256=FafLMq_qtNqyQSPO-pvYiaX9BM5YINENhQdp02EWpu0,5732
|
|
18
|
-
onnxtr/models/zoo.py,sha256=44H7NfE4DWH7KgmF8vod9fMlPnxw41dwjpwjuIJkLHg,5303
|
|
19
|
-
onnxtr/models/classification/__init__.py,sha256=h1bZs55iLJBMATtzS4ntTKwfD6OGXBiiqGv_hEnOFnE,41
|
|
20
|
-
onnxtr/models/classification/zoo.py,sha256=4hD51Mdf5gkSoQ4g9zTBvurbBdrsaFFEl5WFpptBtNk,4271
|
|
21
|
-
onnxtr/models/classification/models/__init__.py,sha256=rohbM6ZQslfYchi7feZwwh-sX3XXRUhgtEJQeurAytQ,24
|
|
22
|
-
onnxtr/models/classification/models/mobilenet.py,sha256=pRI97DvBpBE-h2VymUG6sw_Jn-9-dUdvIMLavYF1syk,4818
|
|
23
|
-
onnxtr/models/classification/predictor/__init__.py,sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY,20
|
|
24
|
-
onnxtr/models/classification/predictor/base.py,sha256=hpLYmhn8PCbx46zYBM8rZiy2vabpN3YkviwmmbVaqRo,2313
|
|
25
|
-
onnxtr/models/detection/__init__.py,sha256=h1bZs55iLJBMATtzS4ntTKwfD6OGXBiiqGv_hEnOFnE,41
|
|
26
|
-
onnxtr/models/detection/core.py,sha256=0oTo-NxtsvVwXqCpNHv98uiXoOcUk8WsIRi5X65bnc8,3466
|
|
27
|
-
onnxtr/models/detection/zoo.py,sha256=RbzG9nR0Oa9bV0vwEBer2GDJMg1XvthpRLBxD2MsUvQ,3385
|
|
28
|
-
onnxtr/models/detection/_utils/__init__.py,sha256=oPkIYbySSbLsOk02wVPNO9bUuywC47YjaenfyTwfOsw,20
|
|
29
|
-
onnxtr/models/detection/_utils/base.py,sha256=MUn3cHUSq-dIKAA021ZUrTm0SLpAC9qsiw1BAWvcppc,2300
|
|
30
|
-
onnxtr/models/detection/models/__init__.py,sha256=6Ea6knYrVCR2jAmPlsVWmCdHe-c6lSRETSAuZGfhx8I,85
|
|
31
|
-
onnxtr/models/detection/models/differentiable_binarization.py,sha256=38LrxqtcVJfEdpeTu3aSeBOWmf1J_cLUDQyAfXVIlhc,6630
|
|
32
|
-
onnxtr/models/detection/models/fast.py,sha256=8qsBwlV9J-eDqFDn0JMtvrvql3WmfWvKEy3iJ6_sSCY,6188
|
|
33
|
-
onnxtr/models/detection/models/linknet.py,sha256=jgCOf9d7sQPNZ4qKM5l4O3PQFBnBOJJklNhcCXKDBrs,6666
|
|
34
|
-
onnxtr/models/detection/postprocessor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
-
onnxtr/models/detection/postprocessor/base.py,sha256=sAjeYH3G_EMoN0yKOlk503ZGChVX85mNuhvBZj36PcI,5657
|
|
36
|
-
onnxtr/models/detection/predictor/__init__.py,sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY,20
|
|
37
|
-
onnxtr/models/detection/predictor/base.py,sha256=Yumq_zTSk5rnCbTJiVeOr1AQp6hv2yScI0MvXzl0n3w,2293
|
|
38
|
-
onnxtr/models/factory/__init__.py,sha256=cKPoH2V2157lLMTR2zsljG3_IQHziodqR-XK_LG0D_I,19
|
|
39
|
-
onnxtr/models/factory/hub.py,sha256=CzjFJ5ioPBG-QC8NYET51B-vzHn2t2EYj_tsoZXan44,7126
|
|
40
|
-
onnxtr/models/predictor/__init__.py,sha256=XL25XkRkgyK7mldF-CWhg2MMakSdP5vLpDLwL59hphk,25
|
|
41
|
-
onnxtr/models/predictor/base.py,sha256=1E70wZ6papp7OZkRCgY3Kf7xxMTpxIce_5ExFtT-GAg,9432
|
|
42
|
-
onnxtr/models/predictor/predictor.py,sha256=xMtL8APgMt8hByDhABJBddzEVbe5NR0jZ6XWEEQhZls,6351
|
|
43
|
-
onnxtr/models/preprocessor/__init__.py,sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY,20
|
|
44
|
-
onnxtr/models/preprocessor/base.py,sha256=oGvc2yNZJjGqHE6HFJ-2k7Z5BJ6Dcw6IwS5iY12cy_E,3963
|
|
45
|
-
onnxtr/models/recognition/__init__.py,sha256=h1bZs55iLJBMATtzS4ntTKwfD6OGXBiiqGv_hEnOFnE,41
|
|
46
|
-
onnxtr/models/recognition/core.py,sha256=V6DMa3ABT0amr9vPSQSyo0dZqK-Y8qmA__XWhOxItSU,730
|
|
47
|
-
onnxtr/models/recognition/utils.py,sha256=jsKZl7XbGKCgEhdH4xYDdf9xrrDR0vS3RqbwGIg17z0,3756
|
|
48
|
-
onnxtr/models/recognition/zoo.py,sha256=nNDf60Et6wE60cJhcqwxNbCPQfcv2pgQIK6KeGVH0WE,3018
|
|
49
|
-
onnxtr/models/recognition/models/__init__.py,sha256=hbjiDSCgh_EUEM7q9aSbcK7ffszMvsDWW89-MVN21Vk,126
|
|
50
|
-
onnxtr/models/recognition/models/crnn.py,sha256=fZDrHp6ojs_-r1VZm9J8jMiRQ4lA760pBZXTzzi0Jrk,8779
|
|
51
|
-
onnxtr/models/recognition/models/master.py,sha256=H_KcoJCK8nElyID5FKJdld5xapu5ZOWVcH5_H68_N1I,4669
|
|
52
|
-
onnxtr/models/recognition/models/parseq.py,sha256=qe7lavwFT37SPLSMWoPaoCYo7yrTYGcCYqQraTwIuQY,4512
|
|
53
|
-
onnxtr/models/recognition/models/sar.py,sha256=5v0VOPACvB_-I_kDh57pA00GmunIh6frD_4I6ojSjiQ,4523
|
|
54
|
-
onnxtr/models/recognition/models/viptr.py,sha256=fIzZQJIdbh5nFlXCd8idSN0zb9fXR6Lpr2jhrAldFEg,5656
|
|
55
|
-
onnxtr/models/recognition/models/vitstr.py,sha256=U1nlfmoga4-8Lv9aHuDQiyidp5lNdFGAi5xui7N0cUs,5964
|
|
56
|
-
onnxtr/models/recognition/predictor/__init__.py,sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY,20
|
|
57
|
-
onnxtr/models/recognition/predictor/_utils.py,sha256=fezg3Hb4S-3BoztCzi-yB7yELQuGUm72yOTrKu6Gl3I,5182
|
|
58
|
-
onnxtr/models/recognition/predictor/base.py,sha256=XE0eYQdsc2VCFSER63qAnjSV8XXjJ6pAiXSPK1R_j7k,2503
|
|
59
|
-
onnxtr/transforms/__init__.py,sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY,20
|
|
60
|
-
onnxtr/transforms/base.py,sha256=jKYrJ99BQDrIgdPL-OSfDw8KoAQsW6Su2n0xLhxSsp8,4120
|
|
61
|
-
onnxtr/utils/__init__.py,sha256=pESRJKtcQyjRxiMgZPhtPYeLbCj-YSGyMVRHTbcMONU,94
|
|
62
|
-
onnxtr/utils/common_types.py,sha256=BiPSNYSU8p2R-LqBmyFw7TL-VN4RliKKlRwFOeYkpng,551
|
|
63
|
-
onnxtr/utils/data.py,sha256=K7t5dvQoCWsxLUwOD3o70TxCFdwe7laCVGEmtF0XHMQ,4262
|
|
64
|
-
onnxtr/utils/fonts.py,sha256=WAUitozOFoYZl6UI4uHEt3qkYvL_XIZ0NmEJvVvYP6U,1282
|
|
65
|
-
onnxtr/utils/geometry.py,sha256=-5Rx6mJN3eRqyv2QqQPkwjKKQ-eA5Vu3wjLdgMLR2Qg,20418
|
|
66
|
-
onnxtr/utils/multithreading.py,sha256=P8LXpaZSKRYsYZw6SRlWWXiQMDswk8zEgDSbCYVHzSA,1994
|
|
67
|
-
onnxtr/utils/reconstitution.py,sha256=2SUkaReD5eJ5NFs7V7Z0m4N4lUr8QB7oH1mSHTC3vLA,6119
|
|
68
|
-
onnxtr/utils/repr.py,sha256=lAcKRShXLpJ2DvsS2qf3vYq0lJrMJa30kLYXmfN3rV0,2105
|
|
69
|
-
onnxtr/utils/visualization.py,sha256=MImlxVKOLXPriJYSrBfjZfJw0GEZ1gT8eni3KXZHrXk,9831
|
|
70
|
-
onnxtr/utils/vocabs.py,sha256=i7LIv6tUiTXMcqHZfDgU43knJ-9zBptF6loXdft4KY4,99049
|
|
71
|
-
onnxtr-0.8.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
-
onnxtr-0.8.0.dist-info/METADATA,sha256=JLbYn1isqfSmHlTpKVpTxFmx0HW1YQpxEeVPv7ID29s,35915
|
|
73
|
-
onnxtr-0.8.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
74
|
-
onnxtr-0.8.0.dist-info/top_level.txt,sha256=r_MSUTpspp4pWEEWvly-s7ZkfCg1KwrK6-kBlXkWKU8,7
|
|
75
|
-
onnxtr-0.8.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
76
|
-
onnxtr-0.8.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|