doctr-synth-generator 0.4.0__tar.gz → 0.4.1__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.
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/PKG-INFO +4 -3
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/PKG-INFO +4 -3
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/requires.txt +1 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/config.py +3 -3
- doctr_synth_generator-0.4.1/generator/version.py +1 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/pyproject.toml +4 -3
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/setup.py +1 -1
- doctr_synth_generator-0.4.0/generator/version.py +0 -1
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/LICENSE +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/README.md +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/SOURCES.txt +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/dependency_links.txt +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/entry_points.txt +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/top_level.txt +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/zip-safe +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/__init__.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/__main__.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/api.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/__init__.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/augmentation_pipeline.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_blur.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_gaussian_noise.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_jpeg_compression.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_perspective.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_pixel_dropout.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_rotate.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/__init__.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/background_downloader.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/background_manager.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/corpus_downloader.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/dataset_balancer.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/dataset_splitter.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/font_downloader.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/font_selector.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/generator.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/latex_generator.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/page_generator.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/text_renderer.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/text_styling.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/vocab_coverage.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/vocabs.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/dataset_generator.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/doctr_dataset.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/scripts/generate_grid.py +0 -0
- {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: doctr-synth-generator
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: A synthetic data generator for training OCR models
|
|
5
5
|
Author-email: Felix Dittrich <felixdittrich92@gmail.com>
|
|
6
6
|
Maintainer: Felix Dittrich
|
|
@@ -218,11 +218,11 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
218
218
|
Classifier: Natural Language :: English
|
|
219
219
|
Classifier: Operating System :: OS Independent
|
|
220
220
|
Classifier: Programming Language :: Python :: 3
|
|
221
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
222
221
|
Classifier: Programming Language :: Python :: 3.11
|
|
223
222
|
Classifier: Programming Language :: Python :: 3.12
|
|
223
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
224
224
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
225
|
-
Requires-Python: <4,>=3.
|
|
225
|
+
Requires-Python: <4,>=3.11.0
|
|
226
226
|
Description-Content-Type: text/markdown
|
|
227
227
|
License-File: LICENSE
|
|
228
228
|
Requires-Dist: fonttools<5.0.0,>=4.50.0
|
|
@@ -245,6 +245,7 @@ Requires-Dist: coverage[toml]>=4.5.4; extra == "dev"
|
|
|
245
245
|
Requires-Dist: ruff>=0.1.5; extra == "dev"
|
|
246
246
|
Requires-Dist: mypy>=0.812; extra == "dev"
|
|
247
247
|
Requires-Dist: pre-commit>=2.17.0; extra == "dev"
|
|
248
|
+
Requires-Dist: python-doctr>=1.1.0; extra == "dev"
|
|
248
249
|
Dynamic: license-file
|
|
249
250
|
|
|
250
251
|
[](LICENSE)
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: doctr-synth-generator
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: A synthetic data generator for training OCR models
|
|
5
5
|
Author-email: Felix Dittrich <felixdittrich92@gmail.com>
|
|
6
6
|
Maintainer: Felix Dittrich
|
|
@@ -218,11 +218,11 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
218
218
|
Classifier: Natural Language :: English
|
|
219
219
|
Classifier: Operating System :: OS Independent
|
|
220
220
|
Classifier: Programming Language :: Python :: 3
|
|
221
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
222
221
|
Classifier: Programming Language :: Python :: 3.11
|
|
223
222
|
Classifier: Programming Language :: Python :: 3.12
|
|
223
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
224
224
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
225
|
-
Requires-Python: <4,>=3.
|
|
225
|
+
Requires-Python: <4,>=3.11.0
|
|
226
226
|
Description-Content-Type: text/markdown
|
|
227
227
|
License-File: LICENSE
|
|
228
228
|
Requires-Dist: fonttools<5.0.0,>=4.50.0
|
|
@@ -245,6 +245,7 @@ Requires-Dist: coverage[toml]>=4.5.4; extra == "dev"
|
|
|
245
245
|
Requires-Dist: ruff>=0.1.5; extra == "dev"
|
|
246
246
|
Requires-Dist: mypy>=0.812; extra == "dev"
|
|
247
247
|
Requires-Dist: pre-commit>=2.17.0; extra == "dev"
|
|
248
|
+
Requires-Dist: python-doctr>=1.1.0; extra == "dev"
|
|
248
249
|
Dynamic: license-file
|
|
249
250
|
|
|
250
251
|
[](LICENSE)
|
|
@@ -155,7 +155,7 @@ class RecognitionConfig:
|
|
|
155
155
|
padding: padding (pixels) around the text in a crop.
|
|
156
156
|
"""
|
|
157
157
|
|
|
158
|
-
font_size_range: tuple[int, int] = (
|
|
158
|
+
font_size_range: tuple[int, int] = (12, 40)
|
|
159
159
|
padding: int = 2
|
|
160
160
|
|
|
161
161
|
|
|
@@ -195,8 +195,8 @@ class RealismConfig:
|
|
|
195
195
|
bold_width_frac_range: tuple[float, float] = (0.03, 0.06)
|
|
196
196
|
rotation_prob: float = 0.15
|
|
197
197
|
blur_prob: float = 0.2
|
|
198
|
-
perspective_prob: float = 0.
|
|
199
|
-
pixel_dropout_prob: float = 0.
|
|
198
|
+
perspective_prob: float = 0.2
|
|
199
|
+
pixel_dropout_prob: float = 0.05
|
|
200
200
|
rotation_range: tuple[float, float] = (-2, 2)
|
|
201
201
|
blur_radius_range: tuple[float, float] = (0.3, 1.0)
|
|
202
202
|
perspective_margin: int = 2
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.4.1'
|
|
@@ -10,7 +10,7 @@ maintainers = [
|
|
|
10
10
|
{name = "Felix Dittrich"},
|
|
11
11
|
]
|
|
12
12
|
readme = "README.md"
|
|
13
|
-
requires-python = ">=3.
|
|
13
|
+
requires-python = ">=3.11.0,<4"
|
|
14
14
|
license = {file = "LICENSE"}
|
|
15
15
|
keywords=["OCR", "deep learning", "computer vision", "text recognition", "synthetic data", "data augmentation", "image processing"]
|
|
16
16
|
classifiers=[
|
|
@@ -22,9 +22,9 @@ classifiers=[
|
|
|
22
22
|
"Natural Language :: English",
|
|
23
23
|
"Operating System :: OS Independent",
|
|
24
24
|
"Programming Language :: Python :: 3",
|
|
25
|
-
"Programming Language :: Python :: 3.10",
|
|
26
25
|
"Programming Language :: Python :: 3.11",
|
|
27
26
|
"Programming Language :: Python :: 3.12",
|
|
27
|
+
"Programming Language :: Python :: 3.13",
|
|
28
28
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
29
29
|
]
|
|
30
30
|
dynamic = ["version"]
|
|
@@ -58,6 +58,7 @@ dev = [
|
|
|
58
58
|
"mypy>=0.812",
|
|
59
59
|
"pre-commit>=2.17.0",
|
|
60
60
|
# docTR - from main branch
|
|
61
|
+
"python-doctr>=1.1.0",
|
|
61
62
|
]
|
|
62
63
|
|
|
63
64
|
[project.urls]
|
|
@@ -99,7 +100,7 @@ ignore_missing_imports = true
|
|
|
99
100
|
[tool.ruff]
|
|
100
101
|
exclude = [".git", "venv*", "build", "**/__init__.py"]
|
|
101
102
|
line-length = 120
|
|
102
|
-
target-version = "
|
|
103
|
+
target-version = "py311"
|
|
103
104
|
preview=true
|
|
104
105
|
|
|
105
106
|
[tool.ruff.lint]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '0.4.0'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/zip-safe
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_blur.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_rotate.py
RENAMED
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/dataset_balancer.py
RENAMED
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/dataset_splitter.py
RENAMED
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/font_downloader.py
RENAMED
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/font_selector.py
RENAMED
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/generator.py
RENAMED
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/latex_generator.py
RENAMED
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/page_generator.py
RENAMED
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/text_renderer.py
RENAMED
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/text_styling.py
RENAMED
|
File without changes
|
{doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/vocab_coverage.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|