Spaces:
Sleeping
Sleeping
WebashalarForML
commited on
Update utility/utils.py
Browse files- utility/utils.py +0 -8
utility/utils.py
CHANGED
@@ -137,14 +137,6 @@ def ocr_with_paddle(img):
|
|
137 |
|
138 |
return final_text, img_with_boxes
|
139 |
|
140 |
-
# Function to draw bounding boxes around text
|
141 |
-
#def draw_boxes(image, boxes):
|
142 |
-
# draw = ImageDraw.Draw(image)
|
143 |
-
# for box in boxes:
|
144 |
-
# draw.polygon(box, outline="red", width=3)
|
145 |
-
# return image
|
146 |
-
|
147 |
-
# Extract text and create a result image with bounding boxes
|
148 |
def extract_text_from_images(image_paths):
|
149 |
all_extracted_texts = {}
|
150 |
all_extracted_imgs = {}
|
|
|
137 |
|
138 |
return final_text, img_with_boxes
|
139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
def extract_text_from_images(image_paths):
|
141 |
all_extracted_texts = {}
|
142 |
all_extracted_imgs = {}
|