Spaces:
Runtime error
Runtime error
Commit
•
f7bafaa
1
Parent(s):
839f243
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.3,
|
171 |
+
link_threshold=0.4, slope_ths=0.05, add_margin=0.05)
|
172 |
box_list, image_list = zip(*results)
|
173 |
draw_boxes(out_img, box_list)
|
174 |
|