ocr-fix
This commit is contained in:
@@ -11,7 +11,7 @@ def ocr_recognize(file_path):
|
|||||||
|
|
||||||
# Use EasyOCR to detect text in the photo
|
# Use EasyOCR to detect text in the photo
|
||||||
results = reader.readtext(file_path)
|
results = reader.readtext(file_path)
|
||||||
for result in results:
|
result = result[-1]
|
||||||
[_coords, ocr_text, ocr_accuracy] = result
|
[_coords, ocr_text, ocr_accuracy] = result
|
||||||
logger.debug("OCR Result: %s", ocr_text)
|
logger.debug("OCR Result: %s", ocr_text)
|
||||||
if ocr_accuracy.item() > 0.5:
|
if ocr_accuracy.item() > 0.5:
|
||||||
|
Reference in New Issue
Block a user