实用代码--验证码识别_with open("1.png", 'rb') as f:-CSDN博客

网站介绍:文章浏览阅读359次。#python版本>=3.8import ddddocrocr = ddddocr.DdddOcr()with open(‘1.png’, ‘rb’) as f:img_bytes = f.read()res = ocr.classification(img_bytes)print(res)_with open("1.png", 'rb') as f: