纯数字
数字+字母
python代码:
import ddddocr def main(imgpath): # imgpath='E:\yam_0.png' ocr = ddddocr.DdddOcr() with open(imgpath,'rb') as f: image_bytes = f.read() res = ocr.classification(image_bytes) print(res) return res