mirror of
https://github.com/sml2h3/ddddocr.git
synced 2025-05-04 10:20:34 +08:00
9 lines
147 B
Python
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) |