Spaces:
Runtime error
Runtime error
Update utility/utils.py
Browse files119 unmodified lines120121122123123124125125126127128128129130131119 unmodified lines for line in result[0]: # Check how many values are returned (2 or 3) and unpack accordingly if len(line) == 3: box, text, _ = line # When 3 values are returned box, (text, confidence), _ = line # When 3 values are returned elif len(line) == 2: box, text = line # When only 2 values are returned box, (text, confidence) = line # When only 2 values are returned
# Store the recognized text and bounding boxes final_text += ' ' + text final_text += ' ' + text # Extract the text from the tuple boxes.append(box)
# Draw the bounding boxutility/utils.py+3-3