Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以封装一个docker吗 #2

Closed
luzihang123 opened this issue Jul 2, 2021 · 2 comments
Closed

可以封装一个docker吗 #2

luzihang123 opened this issue Jul 2, 2021 · 2 comments

Comments

@luzihang123
Copy link

尝试了多次,没有成功

@sml2h3
Copy link
Owner

sml2h3 commented Jul 2, 2021

可以,也可以等我做个pip包

@sml2h3
Copy link
Owner

sml2h3 commented Jul 13, 2021

尝试了多次,没有成功

为了方便大家使用,已将项目打包成pypi包
可以通过以下命令安装
pip install ddddocr==1.0.4

豆瓣源同步需要一些时间,目前建议通过官方源安装(命令后添加 -i https://pypi.org/simple)

使用方式为

import ddddocr

ocr = ddddocr.DdddOcr()

with open('test.png', 'rb') as f:
img_bytes = f.read()

res = ocr.classification(img_bytes)
print(res)

@sml2h3 sml2h3 closed this as completed Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants