Spaces:
Runtime error
Runtime error
Commit ·
a654a2c
1
Parent(s): f58179a
Update app.py
Browse files37 unmodified lines3839404142434437 unmodified linesdf = pd.DataFrame.from_dict(textdic_easyocr).Tst.table(df)# Plot image with text box and predicted textfor res in result:top_left = tuple(res[0][0]) # top left coordinates as tuplebottom_right = tuple(res[0][2]) # bottom right coordinates as tuple37 unmodified lines383940414243444537 unmodified linesdf = pd.DataFrame.from_dict(textdic_easyocr).Tst.table(df)# Plot image with text box and predicted text with cv2image = cv2.imread(file)for res in result:top_left = tuple(res[0][0]) # top left coordinates as tuplebottom_right = tuple(res[0][2]) # bottom right coordinates as tuple
app.py+2-1