mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-13 22:40:53 +08:00
Update test_demo.py
This commit is contained in:
1 file changed
+3
-3
+3
-3
@@ -9,8 +9,8 @@ import cv2
|
||||
import numpy as np
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
|
||||
# from rapidocr_onnxruntime import TextSystem
|
||||
from rapidocr_openvino import TextSystem
|
||||
from rapidocr_onnxruntime import TextSystem
|
||||
# from rapidocr_openvino import TextSystem
|
||||
|
||||
|
||||
def draw_ocr_box_txt(image, boxes, txts, font_path,
|
||||
@@ -97,4 +97,4 @@ if __name__ == '__main__':
|
||||
dt_boxes, rec_res = text_sys(img)
|
||||
|
||||
visualize(image_path, dt_boxes, rec_res,
|
||||
font_path='resources/fonts/msyh.ttc')
|
||||
font_path='resources/fonts/msyh.ttc')
|
||||
Reference in new issue
Block a user