kreuzberg 3.1.2__tar.gz → 3.1.3__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.
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/PKG-INFO +1 -1
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_ocr/_easyocr.py +3 -1
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg.egg-info/PKG-INFO +1 -1
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/pyproject.toml +1 -1
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/LICENSE +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/README.md +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/__init__.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_chunker.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_constants.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_extractors/__init__.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_extractors/_base.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_extractors/_html.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_extractors/_image.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_extractors/_pandoc.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_extractors/_pdf.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_extractors/_presentation.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_extractors/_spread_sheet.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_gmft.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_mime_types.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_ocr/__init__.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_ocr/_base.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_ocr/_paddleocr.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_ocr/_tesseract.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_playa.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_registry.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_types.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_utils/__init__.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_utils/_string.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_utils/_sync.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/_utils/_tmp.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/exceptions.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/extraction.py +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg/py.typed +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg.egg-info/SOURCES.txt +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg.egg-info/dependency_links.txt +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg.egg-info/requires.txt +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/kreuzberg.egg-info/top_level.txt +0 -0
- {kreuzberg-3.1.2 → kreuzberg-3.1.3}/setup.cfg +0 -0
@@ -170,6 +170,8 @@ class EasyOCRBackend(OCRBackend[EasyOCRConfig]):
|
|
170
170
|
Raises:
|
171
171
|
OCRError: If OCR processing fails.
|
172
172
|
"""
|
173
|
+
import numpy as np
|
174
|
+
|
173
175
|
await self._init_easyocr(**kwargs)
|
174
176
|
|
175
177
|
beam_width = kwargs.pop("beam_width")
|
@@ -180,7 +182,7 @@ class EasyOCRBackend(OCRBackend[EasyOCRConfig]):
|
|
180
182
|
try:
|
181
183
|
result = await run_sync(
|
182
184
|
self._reader.readtext,
|
183
|
-
|
185
|
+
np.array(image),
|
184
186
|
beamWidth=beam_width,
|
185
187
|
**kwargs,
|
186
188
|
)
|
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
|
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
|