Update src/ocr_engine.py
Browse files- src/ocr_engine.py +1 -1
src/ocr_engine.py
CHANGED
@@ -19,4 +19,4 @@ def extract_weight_from_image(pil_img):
|
|
19 |
confidences = [int(conf) for conf in data['conf'] if conf.isdigit()]
|
20 |
avg_conf = sum(confidences)/len(confidences) if confidences else 0
|
21 |
|
22 |
-
return extracted_text.strip(), avg_conf
|
|
|
19 |
confidences = [int(conf) for conf in data['conf'] if conf.isdigit()]
|
20 |
avg_conf = sum(confidences)/len(confidences) if confidences else 0
|
21 |
|
22 |
+
return extracted_text.strip(), avg_conf
|