Last active
June 28, 2017 08:49
-
-
Save kingname/324c83a34e9e8aa13dd20cb4abdbb38f to your computer and use it in GitHub Desktop.
[训练tesseract] #tags:tesseract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ java -Xms4096m -Xmx4096m -jar jTessBoxEditor.jar | |
$ tesseract num.font.exp0.tif num.font.exp0 batch.nochop makebox | |
# 使用jTessBoxEditor打开并编辑num.font.exp0.tif | |
$ vim font_properties | |
# font 0 0 0 0 0 | |
$ tesseract num.font.exp0.tif num.font.exp0 nobatch box.train | |
$ unicharset_extractor num.font.exp0.box | |
$ mftraining -F font_properties -U unicharset -O num.unicharset num.font.exp0.tr | |
$ cntraining num.font.exp0.tr | |
$ mv normproto num.normproto | |
$ mv inttemp num.inttemp | |
$ mv pffmtable num.pffmtable | |
$ mv shapetable num.shapetable | |
$ combine_tessdata num. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment