Spaces:
Runtime error
Runtime error
Commit
·
7fec3ef
1
Parent(s):
bdfed99
debug
Browse files
app.py
CHANGED
@@ -166,7 +166,7 @@ def apply_half(t):
|
|
166 |
def ocr(img):
|
167 |
out_img = Image.open(img)
|
168 |
results = get_images(img, reader, text_confidence=0.7, text_threshold=0.4,
|
169 |
-
link_threshold=0.
|
170 |
box_list, image_list = zip(*results)
|
171 |
draw_boxes(out_img, box_list)
|
172 |
|
|
|
166 |
def ocr(img):
|
167 |
out_img = Image.open(img)
|
168 |
results = get_images(img, reader, text_confidence=0.7, text_threshold=0.4,
|
169 |
+
link_threshold=0.43, slope_ths=0., add_margin=0.02)
|
170 |
box_list, image_list = zip(*results)
|
171 |
draw_boxes(out_img, box_list)
|
172 |
|