JustinLin610 commited on
Commit
d9d91cc
1 Parent(s): 9a783c6
Files changed (1) hide show
  1. app.py +2 -2
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.43,
168
- link_threshold=0.43, slope_ths=0., add_margin=0.02)
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