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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ocr_stream
3
- Version: 2.2.7
3
+ Version: 2.2.8
4
4
  Summary: Extrair textos de documentos digitalizados e imagens.
5
5
  Author: Bruno Chaves
6
6
  Requires-Python: >=3.11
@@ -20,7 +20,7 @@ from ocr_stream.bin_tess import BinTesseract
20
20
  try:
21
21
  import pyocr.tesseract
22
22
  except:
23
- pyocr.tesseract = None
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 lang:
165
+ if lang in langs:
166
166
  self.lang = lang
167
167
  else:
168
168
  self.lang = langs[0]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ocr_stream
3
- Version: 2.2.7
3
+ Version: 2.2.8
4
4
  Summary: Extrair textos de documentos digitalizados e imagens.
5
5
  Author: Bruno Chaves
6
6
  Requires-Python: >=3.11
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ocr_stream"
7
- version = "2.2.7"
7
+ version = "2.2.8"
8
8
  authors = [
9
9
  { name="Bruno Chaves"},
10
10
  ]
File without changes
File without changes