import ddddocr
ocr = ddddocr.DdddOcr()
with open(r'验证码.jpg', 'rb') as f:
img_bytes = f.read()
res = ocr.classification(img_bytes)
print(res)
图片验证码识别
最新推荐文章于 2024-08-28 16:14:15 发布
import ddddocr
ocr = ddddocr.DdddOcr()
with open(r'验证码.jpg', 'rb') as f:
img_bytes = f.read()
res = ocr.classification(img_bytes)
print(res)