Summary
Calling reader.readtext() with decoder='tesseract' (or under some internal conditions) causes this error:
UnboundLocalError: cannot access local variable 'preds_str' where it is not associated with a value
Repro Steps
import easyocr
reader = easyocr.Reader(['en'], gpu=False)
reader.readtext('test_image.png', decoder='tesseract')
Traceback
for pred, pred_max_prob in zip(preds_str, preds_max_prob):
UnboundLocalError: cannot access local variable 'preds_str' where it is not associated with a value