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.
Files changed (45) hide show
  1. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/PKG-INFO +4 -3
  2. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/PKG-INFO +4 -3
  3. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/requires.txt +1 -0
  4. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/config.py +3 -3
  5. doctr_synth_generator-0.4.1/generator/version.py +1 -0
  6. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/pyproject.toml +4 -3
  7. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/setup.py +1 -1
  8. doctr_synth_generator-0.4.0/generator/version.py +0 -1
  9. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/LICENSE +0 -0
  10. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/README.md +0 -0
  11. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/SOURCES.txt +0 -0
  12. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/dependency_links.txt +0 -0
  13. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/entry_points.txt +0 -0
  14. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/top_level.txt +0 -0
  15. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/doctr_synth_generator.egg-info/zip-safe +0 -0
  16. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/__init__.py +0 -0
  17. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/__main__.py +0 -0
  18. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/api.py +0 -0
  19. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/__init__.py +0 -0
  20. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/augmentation_pipeline.py +0 -0
  21. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_blur.py +0 -0
  22. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_gaussian_noise.py +0 -0
  23. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_jpeg_compression.py +0 -0
  24. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_perspective.py +0 -0
  25. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_pixel_dropout.py +0 -0
  26. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/augmentations/random_rotate.py +0 -0
  27. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/__init__.py +0 -0
  28. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/background_downloader.py +0 -0
  29. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/background_manager.py +0 -0
  30. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/corpus_downloader.py +0 -0
  31. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/dataset_balancer.py +0 -0
  32. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/dataset_splitter.py +0 -0
  33. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/font_downloader.py +0 -0
  34. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/font_selector.py +0 -0
  35. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/generator.py +0 -0
  36. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/latex_generator.py +0 -0
  37. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/page_generator.py +0 -0
  38. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/text_renderer.py +0 -0
  39. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/text_styling.py +0 -0
  40. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/vocab_coverage.py +0 -0
  41. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/components/vocabs.py +0 -0
  42. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/dataset_generator.py +0 -0
  43. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/generator/doctr_dataset.py +0 -0
  44. {doctr_synth_generator-0.4.0 → doctr_synth_generator-0.4.1}/scripts/generate_grid.py +0 -0
  45. {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.0
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.10.0
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](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: doctr-synth-generator
3
- Version: 0.4.0
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.10.0
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](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
@@ -12,6 +12,7 @@ coverage[toml]>=4.5.4
12
12
  ruff>=0.1.5
13
13
  mypy>=0.812
14
14
  pre-commit>=2.17.0
15
+ python-doctr>=1.1.0
15
16
 
16
17
  [quality]
17
18
  ruff>=0.1.5
@@ -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] = (15, 40)
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.25
199
- pixel_dropout_prob: float = 0.15
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.10.0,<4"
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 = "py310"
103
+ target-version = "py311"
103
104
  preview=true
104
105
 
105
106
  [tool.ruff.lint]
@@ -9,7 +9,7 @@ from pathlib import Path
9
9
  from setuptools import setup
10
10
 
11
11
  PKG_NAME = "doctr-synth-generator"
12
- VERSION = os.getenv("BUILD_VERSION", "0.4.0a0")
12
+ VERSION = os.getenv("BUILD_VERSION", "0.4.1a0")
13
13
 
14
14
 
15
15
  if __name__ == "__main__":
@@ -1 +0,0 @@
1
- __version__ = '0.4.0'