5
0
mirror of https://github.com/sml2h3/ddddocr.git synced 2025-05-04 10:20:34 +08:00
ddddocr/test.py
2021-12-21 16:53:06 +08:00

9 lines
147 B
Python

import ddddocr
ocr = ddddocr.DdddOcr()
with open('test.jpg', 'rb') as f:
img_bytes = f.read()
res = ocr.classification(img_bytes)
print(res)