import ddddocr ocr = ddddocr.DdddOcr() with open('img/驗證碼3.png', 'rb') as f: img_bytes = f.read() result = ocr.classification(img_bytes) print(result)
執行結果:
import ddddocr ocr = ddddocr.DdddOcr() with open('img/驗證碼3.png', 'rb') as f: img_bytes = f.read() result = ocr.classification(img_bytes) print(result)
執行結果: