Spaces:
Runtime error
Runtime error
JustinLin610
commited on
Commit
•
28de30d
1
Parent(s):
f7bafaa
update dataframes
Browse files
app.py
CHANGED
@@ -167,8 +167,8 @@ def apply_half(t):
|
|
167 |
|
168 |
def ocr(img):
|
169 |
out_img = Image.open(img)
|
170 |
-
results = get_images(img, reader, text_confidence=0.7, text_threshold=0.
|
171 |
-
link_threshold=0.
|
172 |
box_list, image_list = zip(*results)
|
173 |
draw_boxes(out_img, box_list)
|
174 |
|
|
|
167 |
|
168 |
def ocr(img):
|
169 |
out_img = Image.open(img)
|
170 |
+
results = get_images(img, reader, text_confidence=0.7, text_threshold=0.4,
|
171 |
+
link_threshold=0.43, slope_ths=0., add_margin=0.02)
|
172 |
box_list, image_list = zip(*results)
|
173 |
draw_boxes(out_img, box_list)
|
174 |
|