paddle使用
# pip install paddlepaddle==2.5.2 -i https://mirror.baidu.com/pypi/simple
# pip install paddleocr==2.7.0.3 -i https://mirror.baidu.com/pypi/simplefrom paddleocr import PaddleOCR
from PIL import Image
import numpy as npimage = Image.open('./2.png')
ocr = PaddleOCR(use_angle_cls=True, use_gpu=False, ocr_version='PP-OCRv3')
text = ocr.ocr(np.asarray(image), cls=True)
for t in text[0]:print(t[1])
识别效果: