Add parameter default value.
Browse files
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,
|