Spaces:
Runtime error
Runtime error
JustinLin610
commited on
Commit
•
d9d91cc
1
Parent(s):
9a783c6
debug
Browse files
app.py
CHANGED
@@ -164,8 +164,8 @@ def apply_half(t):
|
|
164 |
|
165 |
def ocr(img):
|
166 |
out_img = Image.open(img)
|
167 |
-
results = get_images(img, reader, max_size=4000, text_confidence=0.7, text_threshold=0.
|
168 |
-
link_threshold=0.
|
169 |
box_list, image_list = zip(*results)
|
170 |
draw_boxes(out_img, box_list)
|
171 |
|
|
|
164 |
|
165 |
def ocr(img):
|
166 |
out_img = Image.open(img)
|
167 |
+
results = get_images(img, reader, max_size=4000, text_confidence=0.7, text_threshold=0.4,
|
168 |
+
link_threshold=0.4, slope_ths=0., add_margin=0.02)
|
169 |
box_list, image_list = zip(*results)
|
170 |
draw_boxes(out_img, box_list)
|
171 |
|