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 安装,识别问题 #28

Open
maikgithub opened this issue Nov 18, 2017 · 3 comments
Open

通过 Docker 安装,识别问题 #28

maikgithub opened this issue Nov 18, 2017 · 3 comments

Comments

@maikgithub
Copy link

您好,按步骤搭设环境,运行python /opt/deep_ocr/reco_chars.py 出现错误 如下图:
1

而后执行命令识别,这个时候例子提供的图片只识别出了号码,文字没有显示。如图
2017-11-18_16-11-50
请指导,谢谢!!!

@maikgithub
Copy link
Author

docker pull jinpengli/deep_ocr_cpu_docker:latest 最新的2017-11-18

@Bruce510Lee
Copy link

你好,我也遇到同样的问题,请问你解决了吗?

@wuyang0329
Copy link

您好,按步骤搭设环境,运行python /opt/deep_ocr/reco_chars.py 出现错误 如下图:
1

而后执行命令识别,这个时候例子提供的图片只识别出了号码,文字没有显示。如图
2017-11-18_16-11-50
请指导,谢谢!!!
第一个问题是图片路径有问题,要把reco_chars.py的第293行 test_image = "/opt/deep_ocr/test_data.png"改为: test_image = "/opt/deep_ocr/data/test_data.png"
第二个问题我没遇到,感觉应该是你的图片有问题,你用的是项目中自带的那种韦小宝的身份证吗,如果是的话,结果应该是这样的:
name
before merge..
韦武丁乂宝
after merge...
韦小宝
================================================================
address
before merge..
匀匕京市东城区累山前街4号
after merge...
北京市东城区累山前街4号
before merge..
紫禁城敬事房
after merge...
紫禁城敬事房
================================================================
month
before merge..
12
after merge...
12
================================================================
minzu
before merge..

after merge...

================================================================
year
before merge..
1654
after merge...
1654
================================================================
id
before merge..
1121441154X221243X
after merge...
1121441154X221243X
================================================================
sex
before merge..

after merge...

================================================================
day
before merge..
20
after merge...
20
ocr res:
============================================================
name
韦小宝
============================================================
address
北京市东城区累山前街4号
紫禁城敬事房
============================================================
month
12
============================================================
minzu

============================================================
year
1654
============================================================
sex

============================================================
id
1121441154X221243X
============================================================
day
20

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

3 participants