Spaces:
Runtime error
Runtime error
Update utility/utils.py
Browse files- utility/utils.py +1 -2
utility/utils.py
CHANGED
|
@@ -102,8 +102,7 @@ def extract_text_from_images(image_paths, RESULT_FOLDER):
|
|
| 102 |
all_extracted_texts = {}
|
| 103 |
all_extracted_imgs={}
|
| 104 |
for image_path in image_paths:
|
| 105 |
-
# Enhance the image before OCR
|
| 106 |
-
#enhanced_image = load_image(image_path)
|
| 107 |
enhanced_image = process_image(image_path, scale=2)
|
| 108 |
#bounds = reader.readtext(enhanced_image)
|
| 109 |
# Draw boxes on the processed image
|
|
|
|
| 102 |
all_extracted_texts = {}
|
| 103 |
all_extracted_imgs={}
|
| 104 |
for image_path in image_paths:
|
| 105 |
+
# Enhance the image before OCR
|
|
|
|
| 106 |
enhanced_image = process_image(image_path, scale=2)
|
| 107 |
#bounds = reader.readtext(enhanced_image)
|
| 108 |
# Draw boxes on the processed image
|