Assert failed - Training Tesseract

試著忘記壹切 提交于 2019-12-10 11:06:10

问题


I'm trying to train tesseract with Serak Tesseract Trainer:https://code.google.com/p/serak-tesseract-trainer/ and I can't figure out why the following error in the CMD is happening while executing Train Tesseract. Any help?

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

回答1:


Before writing your font data put '\n' char beginig of the file(just hit enter). Worked for me.



来源:https://stackoverflow.com/questions/18921810/assert-failed-training-tesseract

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