环境:
官方链接:GitHub - sml2h3/ddddocr: 带带弟弟 通用验证码识别OCR pypi版
官方说明python <= 3.9,我这里是3.8.8,windows系统
安装:
pip install ddddocr
ddddocr==1.4.7
import ddddocr
ocr = ddddocr.DdddOcr(beta=True)
with open("../下载.jpg", 'rb') as f:
image = f.read()
res = ocr.classification(image)
print(res)
还是不错的
