mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-12 05:50:49 +08:00
fix python default font path error
This commit is contained in:
1 parent
7346d2a7ab
commit
80f12e59a8
1 file changed
+1
-1
@@ -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))]
|
||||
|
||||
Reference in new issue
Block a user