Spaces:
Runtime error
Runtime error
Update utility/utils.py
Browse files136 unmodified lines137138139140141142143144145146147140141142136 unmodified lines
return final_text, img_with_boxes
# Function to draw bounding boxes around text#def draw_boxes(image, boxes):# draw = ImageDraw.Draw(image)# for box in boxes:# draw.polygon(box, outline="red", width=3)# return image
# Extract text and create a result image with bounding boxesdef extract_text_from_images(image_paths): all_extracted_texts = {} all_extracted_imgs = {}utility/utils.py-8