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

关于文字转图片的问题 #7

Closed
chibai opened this issue Dec 20, 2016 · 2 comments
Closed

关于文字转图片的问题 #7

chibai opened this issue Dec 20, 2016 · 2 comments

Comments

@chibai
Copy link

chibai commented Dec 20, 2016

我上次问过,您没有回答清楚啊~
我没看出来你拿到身份证字体格式后,如何遍历下所有文字形成图片??
你能说得清楚些吗
如何从文字转到图片??

@JinpengLI
Copy link
Owner

其实在

http://chongdata.com/articles/?p=253

有介绍(但是没有介绍身份证有哪些字体,关于身份证需要哪些字体可以网上查查)。其中

deep_ocr_make_caffe_dataset --out_caffe_dir /workspace/caffe_dataset_lower_eng \
            --font_dir /opt/deep_ocr/data/fonts/chinese_fonts \
            --width 28 --height 28 --margin 4 --langs lower_eng

输出图片。其中lower_eng是输出的字符集合, 其中lower_eng是输出的字符集合,具体可以参考以下链接, 里面包含不同的字符集合。

https://github.com/JinpengLI/deep_ocr/tree/master/python/deep_ocr/langs

下面的路径是指向哪些字体文件夹

/opt/deep_ocr/data/fonts/chinese_fonts

这样清楚一些?

@chibai
Copy link
Author

chibai commented Dec 21, 2016

@JinpengLI
很清楚了,我现在想知道,如何让文字居中显示
因为在我的代码中,文字没法居中显示啊~!!真蛋疼

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