onnxtr 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 (82) hide show
  1. {onnxtr-0.4.0 → onnxtr-0.4.1}/PKG-INFO +16 -6
  2. {onnxtr-0.4.0 → onnxtr-0.4.1}/README.md +14 -4
  3. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/predictor/base.py +2 -2
  4. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/predictor/predictor.py +2 -0
  5. onnxtr-0.4.1/onnxtr/version.py +1 -0
  6. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr.egg-info/PKG-INFO +16 -6
  7. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr.egg-info/requires.txt +1 -1
  8. {onnxtr-0.4.0 → onnxtr-0.4.1}/pyproject.toml +1 -1
  9. {onnxtr-0.4.0 → onnxtr-0.4.1}/setup.py +1 -1
  10. onnxtr-0.4.0/onnxtr/version.py +0 -1
  11. {onnxtr-0.4.0 → onnxtr-0.4.1}/LICENSE +0 -0
  12. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/__init__.py +0 -0
  13. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/contrib/__init__.py +0 -0
  14. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/contrib/artefacts.py +0 -0
  15. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/contrib/base.py +0 -0
  16. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/file_utils.py +0 -0
  17. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/io/__init__.py +0 -0
  18. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/io/elements.py +0 -0
  19. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/io/html.py +0 -0
  20. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/io/image.py +0 -0
  21. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/io/pdf.py +0 -0
  22. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/io/reader.py +0 -0
  23. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/__init__.py +0 -0
  24. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/_utils.py +0 -0
  25. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/builder.py +0 -0
  26. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/classification/__init__.py +0 -0
  27. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/classification/models/__init__.py +0 -0
  28. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/classification/models/mobilenet.py +0 -0
  29. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/classification/predictor/__init__.py +0 -0
  30. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/classification/predictor/base.py +0 -0
  31. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/classification/zoo.py +0 -0
  32. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/detection/__init__.py +0 -0
  33. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/detection/_utils/__init__.py +0 -0
  34. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/detection/_utils/base.py +0 -0
  35. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/detection/core.py +0 -0
  36. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/detection/models/__init__.py +0 -0
  37. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/detection/models/differentiable_binarization.py +0 -0
  38. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/detection/models/fast.py +0 -0
  39. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/detection/models/linknet.py +0 -0
  40. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/detection/postprocessor/__init__.py +0 -0
  41. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/detection/postprocessor/base.py +0 -0
  42. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/detection/predictor/__init__.py +0 -0
  43. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/detection/predictor/base.py +0 -0
  44. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/detection/zoo.py +0 -0
  45. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/engine.py +0 -0
  46. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/factory/__init__.py +0 -0
  47. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/factory/hub.py +0 -0
  48. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/predictor/__init__.py +0 -0
  49. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/preprocessor/__init__.py +0 -0
  50. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/preprocessor/base.py +0 -0
  51. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/recognition/__init__.py +0 -0
  52. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/recognition/core.py +0 -0
  53. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/recognition/models/__init__.py +0 -0
  54. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/recognition/models/crnn.py +0 -0
  55. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/recognition/models/master.py +0 -0
  56. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/recognition/models/parseq.py +0 -0
  57. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/recognition/models/sar.py +0 -0
  58. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/recognition/models/vitstr.py +0 -0
  59. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/recognition/predictor/__init__.py +0 -0
  60. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/recognition/predictor/_utils.py +0 -0
  61. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/recognition/predictor/base.py +0 -0
  62. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/recognition/utils.py +0 -0
  63. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/recognition/zoo.py +0 -0
  64. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/models/zoo.py +0 -0
  65. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/py.typed +0 -0
  66. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/transforms/__init__.py +0 -0
  67. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/transforms/base.py +0 -0
  68. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/utils/__init__.py +0 -0
  69. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/utils/common_types.py +0 -0
  70. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/utils/data.py +0 -0
  71. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/utils/fonts.py +0 -0
  72. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/utils/geometry.py +0 -0
  73. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/utils/multithreading.py +0 -0
  74. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/utils/reconstitution.py +0 -0
  75. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/utils/repr.py +0 -0
  76. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/utils/visualization.py +0 -0
  77. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr/utils/vocabs.py +0 -0
  78. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr.egg-info/SOURCES.txt +0 -0
  79. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr.egg-info/dependency_links.txt +0 -0
  80. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr.egg-info/top_level.txt +0 -0
  81. {onnxtr-0.4.0 → onnxtr-0.4.1}/onnxtr.egg-info/zip-safe +0 -0
  82. {onnxtr-0.4.0 → onnxtr-0.4.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: onnxtr
3
- Version: 0.4.0
3
+ Version: 0.4.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
@@ -225,7 +225,7 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
225
225
  Requires-Python: <4,>=3.9.0
226
226
  Description-Content-Type: text/markdown
227
227
  License-File: LICENSE
228
- Requires-Dist: numpy<2.0.0,>=1.16.0
228
+ Requires-Dist: numpy<3.0.0,>=1.16.0
229
229
  Requires-Dist: scipy<2.0.0,>=1.4.0
230
230
  Requires-Dist: opencv-python<5.0.0,>=4.5.0
231
231
  Requires-Dist: pypdfium2<5.0.0,>=4.11.0
@@ -276,7 +276,7 @@ Requires-Dist: pre-commit>=2.17.0; extra == "dev"
276
276
  [![codecov](https://codecov.io/gh/felixdittrich92/OnnxTR/graph/badge.svg?token=WVFRCQBOLI)](https://codecov.io/gh/felixdittrich92/OnnxTR)
277
277
  [![Codacy Badge](https://app.codacy.com/project/badge/Grade/4fff4d764bb14fb8b4f4afeb9587231b)](https://app.codacy.com/gh/felixdittrich92/OnnxTR/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
278
278
  [![CodeFactor](https://www.codefactor.io/repository/github/felixdittrich92/onnxtr/badge)](https://www.codefactor.io/repository/github/felixdittrich92/onnxtr)
279
- [![Pypi](https://img.shields.io/badge/pypi-v0.3.2-blue.svg)](https://pypi.org/project/OnnxTR/)
279
+ [![Pypi](https://img.shields.io/badge/pypi-v0.4.1-blue.svg)](https://pypi.org/project/OnnxTR/)
280
280
 
281
281
  > :warning: Please note that this is a wrapper around the [doctr](https://github.com/mindee/doctr) library to provide a Onnx pipeline for docTR. For feature requests, which are not directly related to the Onnx pipeline, please refer to the base project.
282
282
 
@@ -589,8 +589,8 @@ The smallest combination in OnnxTR (docTR) of `db_mobilenet_v3_large` and `crnn_
589
589
  |Library |FUNSD (199 pages) |CORD (900 pages) |
590
590
  |---------------------------------|-------------------------------|-------------------------------|
591
591
  |docTR (CPU) - v0.8.1 | ~1.29s / Page | ~0.60s / Page |
592
- |**OnnxTR (CPU)** - v0.1.2 | ~0.57s / Page | **~0.25s / Page** |
593
- |**OnnxTR (CPU) 8-bit** - v0.1.2 | **~0.38s / Page** | **~0.14s / Page** |
592
+ |**OnnxTR (CPU)** - v0.4.1 | ~0.57s / Page | **~0.25s / Page** |
593
+ |**OnnxTR (CPU) 8-bit** - v0.4.1 | **~0.38s / Page** | **~0.14s / Page** |
594
594
  |EasyOCR (CPU) - v1.7.1 | ~1.96s / Page | ~1.75s / Page |
595
595
  |**PyTesseract (CPU)** - v0.3.10 | **~0.50s / Page** | ~0.52s / Page |
596
596
  |Surya (line) (CPU) - v0.4.4 | ~48.76s / Page | ~35.49s / Page |
@@ -602,7 +602,7 @@ The smallest combination in OnnxTR (docTR) of `db_mobilenet_v3_large` and `crnn_
602
602
  |-------------------------------------|-------------------------------|-------------------------------|
603
603
  |docTR (GPU) - v0.8.1 | ~0.07s / Page | ~0.05s / Page |
604
604
  |**docTR (GPU) float16** - v0.8.1 | **~0.06s / Page** | **~0.03s / Page** |
605
- |OnnxTR (GPU) - v0.1.2 | **~0.06s / Page** | ~0.04s / Page |
605
+ |OnnxTR (GPU) - v0.4.1 | **~0.06s / Page** | ~0.04s / Page |
606
606
  |EasyOCR (GPU) - v1.7.1 | ~0.31s / Page | ~0.19s / Page |
607
607
  |Surya (GPU) float16 - v0.4.4 | ~3.70s / Page | ~2.81s / Page |
608
608
  |**PaddleOCR (GPU) - no cls - v2.7.3**| ~0.08s / Page | **~0.03s / Page** |
@@ -621,6 +621,16 @@ If you wish to cite please refer to the base project citation, feel free to use
621
621
  }
622
622
  ```
623
623
 
624
+ ```bibtex
625
+ @misc{onnxtr2024,
626
+ title={OnnxTR: Optical Character Recognition made seamless & accessible to anyone, powered by Onnx},
627
+ author={Felix Dittrich},
628
+ year={2024},
629
+ publisher = {GitHub},
630
+ howpublished = {\url{https://github.com/felixdittrich92/OnnxTR}}
631
+ }
632
+ ```
633
+
624
634
  ## License
625
635
 
626
636
  Distributed under the Apache 2.0 License. See [`LICENSE`](https://github.com/felixdittrich92/OnnxTR?tab=Apache-2.0-1-ov-file#readme) for more information.
@@ -7,7 +7,7 @@
7
7
  [![codecov](https://codecov.io/gh/felixdittrich92/OnnxTR/graph/badge.svg?token=WVFRCQBOLI)](https://codecov.io/gh/felixdittrich92/OnnxTR)
8
8
  [![Codacy Badge](https://app.codacy.com/project/badge/Grade/4fff4d764bb14fb8b4f4afeb9587231b)](https://app.codacy.com/gh/felixdittrich92/OnnxTR/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
9
9
  [![CodeFactor](https://www.codefactor.io/repository/github/felixdittrich92/onnxtr/badge)](https://www.codefactor.io/repository/github/felixdittrich92/onnxtr)
10
- [![Pypi](https://img.shields.io/badge/pypi-v0.3.2-blue.svg)](https://pypi.org/project/OnnxTR/)
10
+ [![Pypi](https://img.shields.io/badge/pypi-v0.4.1-blue.svg)](https://pypi.org/project/OnnxTR/)
11
11
 
12
12
  > :warning: Please note that this is a wrapper around the [doctr](https://github.com/mindee/doctr) library to provide a Onnx pipeline for docTR. For feature requests, which are not directly related to the Onnx pipeline, please refer to the base project.
13
13
 
@@ -320,8 +320,8 @@ The smallest combination in OnnxTR (docTR) of `db_mobilenet_v3_large` and `crnn_
320
320
  |Library |FUNSD (199 pages) |CORD (900 pages) |
321
321
  |---------------------------------|-------------------------------|-------------------------------|
322
322
  |docTR (CPU) - v0.8.1 | ~1.29s / Page | ~0.60s / Page |
323
- |**OnnxTR (CPU)** - v0.1.2 | ~0.57s / Page | **~0.25s / Page** |
324
- |**OnnxTR (CPU) 8-bit** - v0.1.2 | **~0.38s / Page** | **~0.14s / Page** |
323
+ |**OnnxTR (CPU)** - v0.4.1 | ~0.57s / Page | **~0.25s / Page** |
324
+ |**OnnxTR (CPU) 8-bit** - v0.4.1 | **~0.38s / Page** | **~0.14s / Page** |
325
325
  |EasyOCR (CPU) - v1.7.1 | ~1.96s / Page | ~1.75s / Page |
326
326
  |**PyTesseract (CPU)** - v0.3.10 | **~0.50s / Page** | ~0.52s / Page |
327
327
  |Surya (line) (CPU) - v0.4.4 | ~48.76s / Page | ~35.49s / Page |
@@ -333,7 +333,7 @@ The smallest combination in OnnxTR (docTR) of `db_mobilenet_v3_large` and `crnn_
333
333
  |-------------------------------------|-------------------------------|-------------------------------|
334
334
  |docTR (GPU) - v0.8.1 | ~0.07s / Page | ~0.05s / Page |
335
335
  |**docTR (GPU) float16** - v0.8.1 | **~0.06s / Page** | **~0.03s / Page** |
336
- |OnnxTR (GPU) - v0.1.2 | **~0.06s / Page** | ~0.04s / Page |
336
+ |OnnxTR (GPU) - v0.4.1 | **~0.06s / Page** | ~0.04s / Page |
337
337
  |EasyOCR (GPU) - v1.7.1 | ~0.31s / Page | ~0.19s / Page |
338
338
  |Surya (GPU) float16 - v0.4.4 | ~3.70s / Page | ~2.81s / Page |
339
339
  |**PaddleOCR (GPU) - no cls - v2.7.3**| ~0.08s / Page | **~0.03s / Page** |
@@ -352,6 +352,16 @@ If you wish to cite please refer to the base project citation, feel free to use
352
352
  }
353
353
  ```
354
354
 
355
+ ```bibtex
356
+ @misc{onnxtr2024,
357
+ title={OnnxTR: Optical Character Recognition made seamless & accessible to anyone, powered by Onnx},
358
+ author={Felix Dittrich},
359
+ year={2024},
360
+ publisher = {GitHub},
361
+ howpublished = {\url{https://github.com/felixdittrich92/OnnxTR}}
362
+ }
363
+ ```
364
+
355
365
  ## License
356
366
 
357
367
  Distributed under the Apache 2.0 License. See [`LICENSE`](https://github.com/felixdittrich92/OnnxTR?tab=Apache-2.0-1-ov-file#readme) for more information.
@@ -112,8 +112,8 @@ class _OCRPredictor:
112
112
  ]
113
113
  )
114
114
  return [
115
- # We exapnd if the page is wider than tall and the angle is 90 or -90
116
- rotate_image(page, angle, expand=page.shape[1] > page.shape[0] and abs(angle) == 90)
115
+ # expand if height and width are not equal
116
+ rotate_image(page, angle, expand=page.shape[0] != page.shape[1])
117
117
  for page, angle in zip(pages, origin_pages_orientations)
118
118
  ]
119
119
 
@@ -100,6 +100,8 @@ class OCRPredictor(NestedObject, _OCRPredictor):
100
100
  origin_pages_orientations = None
101
101
  if self.straighten_pages:
102
102
  pages = self._straighten_pages(pages, seg_maps, general_pages_orientations, origin_pages_orientations)
103
+ # update page shapes after straightening
104
+ origin_page_shapes = [page.shape[:2] for page in pages]
103
105
 
104
106
  # forward again to get predictions on straight pages
105
107
  loc_preds = self.det_predictor(pages, **kwargs) # type: ignore[assignment]
@@ -0,0 +1 @@
1
+ __version__ = 'v0.4.1'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: onnxtr
3
- Version: 0.4.0
3
+ Version: 0.4.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
@@ -225,7 +225,7 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
225
225
  Requires-Python: <4,>=3.9.0
226
226
  Description-Content-Type: text/markdown
227
227
  License-File: LICENSE
228
- Requires-Dist: numpy<2.0.0,>=1.16.0
228
+ Requires-Dist: numpy<3.0.0,>=1.16.0
229
229
  Requires-Dist: scipy<2.0.0,>=1.4.0
230
230
  Requires-Dist: opencv-python<5.0.0,>=4.5.0
231
231
  Requires-Dist: pypdfium2<5.0.0,>=4.11.0
@@ -276,7 +276,7 @@ Requires-Dist: pre-commit>=2.17.0; extra == "dev"
276
276
  [![codecov](https://codecov.io/gh/felixdittrich92/OnnxTR/graph/badge.svg?token=WVFRCQBOLI)](https://codecov.io/gh/felixdittrich92/OnnxTR)
277
277
  [![Codacy Badge](https://app.codacy.com/project/badge/Grade/4fff4d764bb14fb8b4f4afeb9587231b)](https://app.codacy.com/gh/felixdittrich92/OnnxTR/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
278
278
  [![CodeFactor](https://www.codefactor.io/repository/github/felixdittrich92/onnxtr/badge)](https://www.codefactor.io/repository/github/felixdittrich92/onnxtr)
279
- [![Pypi](https://img.shields.io/badge/pypi-v0.3.2-blue.svg)](https://pypi.org/project/OnnxTR/)
279
+ [![Pypi](https://img.shields.io/badge/pypi-v0.4.1-blue.svg)](https://pypi.org/project/OnnxTR/)
280
280
 
281
281
  > :warning: Please note that this is a wrapper around the [doctr](https://github.com/mindee/doctr) library to provide a Onnx pipeline for docTR. For feature requests, which are not directly related to the Onnx pipeline, please refer to the base project.
282
282
 
@@ -589,8 +589,8 @@ The smallest combination in OnnxTR (docTR) of `db_mobilenet_v3_large` and `crnn_
589
589
  |Library |FUNSD (199 pages) |CORD (900 pages) |
590
590
  |---------------------------------|-------------------------------|-------------------------------|
591
591
  |docTR (CPU) - v0.8.1 | ~1.29s / Page | ~0.60s / Page |
592
- |**OnnxTR (CPU)** - v0.1.2 | ~0.57s / Page | **~0.25s / Page** |
593
- |**OnnxTR (CPU) 8-bit** - v0.1.2 | **~0.38s / Page** | **~0.14s / Page** |
592
+ |**OnnxTR (CPU)** - v0.4.1 | ~0.57s / Page | **~0.25s / Page** |
593
+ |**OnnxTR (CPU) 8-bit** - v0.4.1 | **~0.38s / Page** | **~0.14s / Page** |
594
594
  |EasyOCR (CPU) - v1.7.1 | ~1.96s / Page | ~1.75s / Page |
595
595
  |**PyTesseract (CPU)** - v0.3.10 | **~0.50s / Page** | ~0.52s / Page |
596
596
  |Surya (line) (CPU) - v0.4.4 | ~48.76s / Page | ~35.49s / Page |
@@ -602,7 +602,7 @@ The smallest combination in OnnxTR (docTR) of `db_mobilenet_v3_large` and `crnn_
602
602
  |-------------------------------------|-------------------------------|-------------------------------|
603
603
  |docTR (GPU) - v0.8.1 | ~0.07s / Page | ~0.05s / Page |
604
604
  |**docTR (GPU) float16** - v0.8.1 | **~0.06s / Page** | **~0.03s / Page** |
605
- |OnnxTR (GPU) - v0.1.2 | **~0.06s / Page** | ~0.04s / Page |
605
+ |OnnxTR (GPU) - v0.4.1 | **~0.06s / Page** | ~0.04s / Page |
606
606
  |EasyOCR (GPU) - v1.7.1 | ~0.31s / Page | ~0.19s / Page |
607
607
  |Surya (GPU) float16 - v0.4.4 | ~3.70s / Page | ~2.81s / Page |
608
608
  |**PaddleOCR (GPU) - no cls - v2.7.3**| ~0.08s / Page | **~0.03s / Page** |
@@ -621,6 +621,16 @@ If you wish to cite please refer to the base project citation, feel free to use
621
621
  }
622
622
  ```
623
623
 
624
+ ```bibtex
625
+ @misc{onnxtr2024,
626
+ title={OnnxTR: Optical Character Recognition made seamless & accessible to anyone, powered by Onnx},
627
+ author={Felix Dittrich},
628
+ year={2024},
629
+ publisher = {GitHub},
630
+ howpublished = {\url{https://github.com/felixdittrich92/OnnxTR}}
631
+ }
632
+ ```
633
+
624
634
  ## License
625
635
 
626
636
  Distributed under the Apache 2.0 License. See [`LICENSE`](https://github.com/felixdittrich92/OnnxTR?tab=Apache-2.0-1-ov-file#readme) for more information.
@@ -1,4 +1,4 @@
1
- numpy<2.0.0,>=1.16.0
1
+ numpy<3.0.0,>=1.16.0
2
2
  scipy<2.0.0,>=1.4.0
3
3
  opencv-python<5.0.0,>=4.5.0
4
4
  pypdfium2<5.0.0,>=4.11.0
@@ -31,7 +31,7 @@ dynamic = ["version"]
31
31
  dependencies = [
32
32
  # For proper typing, mypy needs numpy>=1.20.0 (cf. https://github.com/numpy/numpy/pull/16515)
33
33
  # Additional typing support is brought by numpy>=1.22.4, but core build sticks to >=1.16.0
34
- "numpy>=1.16.0,<2.0.0",
34
+ "numpy>=1.16.0,<3.0.0",
35
35
  "scipy>=1.4.0,<2.0.0",
36
36
  "opencv-python>=4.5.0,<5.0.0",
37
37
  "pypdfium2>=4.11.0,<5.0.0",
@@ -9,7 +9,7 @@ from pathlib import Path
9
9
  from setuptools import setup
10
10
 
11
11
  PKG_NAME = "onnxtr"
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__ = 'v0.4.0'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes