You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes when running read_mrz on the back of a document with MRZ this error occours.
I'm happy to share any intermediate step or the ID that caused this if necessary!
Traceback:
mrz = read_mrz(im_bytes, True, pytesseract_config)
File "/usr/local/lib/python3.8/site-packages/passporteye/mrz/image.py", line 355, in read_mrz
mrz = p.result
File "/usr/local/lib/python3.8/site-packages/passporteye/mrz/image.py", line 343, in result
return self['mrz_final']
File "/usr/local/lib/python3.8/site-packages/passporteye/util/pipeline.py", line 102, in __getitem__
self._compute(key)
File "/usr/local/lib/python3.8/site-packages/passporteye/util/pipeline.py", line 111, in _compute
results = self.components[cname](*inputs)
File "/usr/local/lib/python3.8/site-packages/passporteye/mrz/image.py", line 319, in __call__
new_mrz.aux['method'] = new_mrz.aux['method'] + '\|max_width(%d)' % self.other_max_width
KeyError: 'method'
Context:
in passporteye/mrz/image.py in call at line 319
(...)
if mrz is None and (__pipeline__['img_binary'].mean() < 0.01 or __pipeline__['img'].mean() > 0.95):
__pipeline__.replace_component('scaler', Scaler(self.other_max_width))
new_mrz = __pipeline__['mrz']
if new_mrz is not None:
-----> new_mrz.aux['method'] = new_mrz.aux['method'] + '|max_width(%d)' % self.other_max_width
mrz = new_mrz
return mrz
The text was updated successfully, but these errors were encountered:
Sometimes when running read_mrz on the back of a document with MRZ this error occours.
I'm happy to share any intermediate step or the ID that caused this if necessary!
Traceback:
Context:
in passporteye/mrz/image.py in call at line 319
The text was updated successfully, but these errors were encountered: