飞桨是源于产业实践的开源深度学习平台
安装 python -m pip install paddlepaddle-cpu==2.3.1 -i https://mirror.baidu.com/pypi/simple
防止错误:
import os
os.environ["KMP_DUPLICATE_LIB_OK"] = "True"
识别图片代码示例:
from paddleocr import PaddleOCR, draw_ocr
ocr = PaddleOCR(use_angle_cls=True, lang="ch")
answer_img_path = f'./picture/answer_{i}_{dt_str}.png'
result = ocr.ocr(answer_img_path, cls=True)
超级简单好用!!!