This commit is contained in:
Untone 2024-09-29 08:27:06 +03:00
parent 17cc9dd8b6
commit 7a899a9593

View File

@ -11,7 +11,7 @@ def ocr_recognize(file_path):
# Use EasyOCR to detect text in the photo
results = reader.readtext(file_path)
for result in results:
result = result[-1]
[_coords, ocr_text, ocr_accuracy] = result
logger.debug("OCR Result: %s", ocr_text)
if ocr_accuracy.item() > 0.5: