断言失败-训练Tesseract [英] Assert failed - Training Tesseract

查看:414
本文介绍了断言失败-训练Tesseract的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Serak Tesseract培训师来训练tesseract: https://code .google.com/p/serak-tesseract-trainer/,我无法弄清楚为什么在执行Train Tesseract时CMD中发生以下错误.有帮助吗?

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

推荐答案

在写入字体数据之前,将文件的'\ n'char开头(只需按Enter键). 为我工作.

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

这篇关于断言失败-训练Tesseract的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆