fix python default font path error

This commit is contained in:
SWHL committed 2022-03-10 15:27:01 +08:00
1 parent 7346d2a7ab
commit 80f12e59a8
1 file changed
+1 -1
+1 -1
View File
@@ -134,7 +134,7 @@ def draw_ocr_box_txt(image, boxes, txts, font_path,
def visualize(image_path, boxes, rec_res,
font_path="models/msyh.ttc"):
font_path="fonts/msyh.ttc"):
image = Image.open(image_path)
txts = [rec_res[i][0] for i in range(len(rec_res))]
scores = [rec_res[i][1] for i in range(len(rec_res))]