ocr-stream 2.2.7__tar.gz → 2.2.8__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.
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/PKG-INFO +1 -1
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/ocr_stream/ocr/__init__.py +2 -2
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/ocr_stream.egg-info/PKG-INFO +1 -1
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/pyproject.toml +1 -1
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/README.md +0 -0
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/ocr_stream/__init__.py +0 -0
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/ocr_stream/bin_tess/__init__.py +0 -0
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/ocr_stream/modules/__init__.py +0 -0
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/ocr_stream/recognize.py +0 -0
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/ocr_stream.egg-info/SOURCES.txt +0 -0
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/ocr_stream.egg-info/dependency_links.txt +0 -0
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/ocr_stream.egg-info/requires.txt +0 -0
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/ocr_stream.egg-info/top_level.txt +0 -0
- {ocr_stream-2.2.7 → ocr_stream-2.2.8}/setup.cfg +0 -0
|
@@ -20,7 +20,7 @@ from ocr_stream.bin_tess import BinTesseract
|
|
|
20
20
|
try:
|
|
21
21
|
import pyocr.tesseract
|
|
22
22
|
except:
|
|
23
|
-
pyocr
|
|
23
|
+
pyocr = None
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class TextRecognized(object):
|
|
@@ -162,7 +162,7 @@ class IPyOcr(ABCOcrTesseract):
|
|
|
162
162
|
# The tools are returned in the recommended order of usage
|
|
163
163
|
self._pyOcr = pyocr_modules[0]
|
|
164
164
|
langs: list[str] = self._pyOcr.get_available_languages()
|
|
165
|
-
if lang in
|
|
165
|
+
if lang in langs:
|
|
166
166
|
self.lang = lang
|
|
167
167
|
else:
|
|
168
168
|
self.lang = langs[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
|