python | 验证码识别库 | ddddocr

python | 验证码识别库 | ddddocr

这个库,非!常!好!用!

参考文章:https://z.itpub.net/article/detail/2DF6DCCC7ACCD42B394F0C4253EEF84F
Github地址:https://github.com/sml2h3/ddddocr

基本使用:

import ddddocr

ocr = ddddocr.DdddOcr()
with open('1.png', 'rb') as f:
    img_bytes = f.read()
res = ocr.classification(img_bytes)

print(res)
posted @ 2022-04-04 09:58  Mz1  阅读(389)  评论(0编辑  收藏  举报