JustinLin610 commited on
Commit
bdfed99
1 Parent(s): 4d02728
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -165,7 +165,8 @@ def apply_half(t):
165
 
166
  def ocr(img):
167
  out_img = Image.open(img)
168
- results = get_images(img, reader, text_confidence=0.7, text_threshold=0.4, link_threshold=0.35, slope_ths=0.)
 
169
  box_list, image_list = zip(*results)
170
  draw_boxes(out_img, box_list)
171
 
 
165
 
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.35, slope_ths=0., add_margin=0.02)
170
  box_list, image_list = zip(*results)
171
  draw_boxes(out_img, box_list)
172