Assert failed - Training Tesseract

2019-05-24 23:04发布

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条回答
倾城 Initia
2楼-- · 2019-05-24 23:34

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

查看更多
登录 后发表回答