JustinLin610 commited on
Commit
28de30d
1 Parent(s): f7bafaa

update dataframes

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.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
 
 
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