Train tesseract stopped working

冷暖自知 提交于 2019-12-13 03:48:04

问题


I'm using Serak Tesseract Trainer for Tesseract 3.0x. I added a Train Image, which then came from jTessBoxEditor (a Box Generator). When I pressed Train Tesseract, a DOS command prompts me, it's like training the image, then suddenly this appeared:

Reading dos.bookmanoldstyle.exp0.tr ... Font id = -1/0, class id = 1/42 on sample 0 font_id >= 0 && font_id < font_id_map_.SparseSize():Error:Assert failed:in file ....\classify\trainingsampleset.cpp, line 622

then a dialog box appeared that tells something about Shape clustering that has stopped working.

I don't know what went wrong, the first time I used this, it worked fine though. Anyone who can help me resolve this?


回答1:


Save your font_properties file in Unix format (.sh) (which is available in notepad++) instead of normal text. Then use font_properties file as shown below wherever it is needed.

-F font_properties.sh



回答2:


Do you have a correct entry in font_properties file or correct input filename? Assert failed - Training Tesseract



来源:https://stackoverflow.com/questions/19965884/train-tesseract-stopped-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!