验证码识别

import ddddocr

ocr = ddddocr.DdddOcr()

with open('img/验证码3.png', 'rb') as f:
    img_bytes = f.read()

result = ocr.classification(img_bytes)
print(result)

 运行结果:

 

posted @ 2024-06-20 01:32  JJJhr  阅读(5)  评论(0编辑  收藏  举报