赞
踩
目录
- pip3 install cnocr -i https://pypi.tuna.tsinghua.edu.cn/simple
- pip3 install onnxruntime -i https://pypi.tuna.tsinghua.edu.cn/simple
- from cnocr import CnOcr
-
- img_fp = './input.jpeg'
- ocr = CnOcr() # 所有参数都使用默认值
- out = ocr.ocr(img_fp)
-
- print(out)
- from cnocr import CnOcr
-
- img_fp = './input.png'
- ocr = CnOcr(det_model_name='naive_det')
- out = ocr.ocr(img_fp)
-
- print(out)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。