WebashalarForML commited on
Commit
6f27ffa
·
verified ·
1 Parent(s): 4aaae54

Update utility/utils.py

Browse files
Files changed (1) hide show
  1. 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