SWHL commited on
Commit
d67e4e5
1 Parent(s): 3b92c75

Add parameter default value.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -88,7 +88,7 @@ def visualize(image_path, boxes, txts, scores,
88
  return image_save
89
 
90
 
91
- def inference(img_path, box_thresh, unclip_ratio, text_score):
92
  img = cv2.imread(img_path)
93
  ocr_result, _ = rapid_ocr(img, box_thresh=box_thresh,
94
  unclip_ratio=unclip_ratio,
 
88
  return image_save
89
 
90
 
91
+ def inference(img_path, box_thresh=0.5, unclip_ratio=1.6, text_score=0.5):
92
  img = cv2.imread(img_path)
93
  ocr_result, _ = rapid_ocr(img, box_thresh=box_thresh,
94
  unclip_ratio=unclip_ratio,