tesseract 训练新字体失败 [英] tesseract training new fonts fail

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

问题描述

我能够安装 tesseract 并训练新字体

I was able install tesseract and train new fonts

我已按照 http 中提到的所有步骤进行操作://michaeljaylissner.com/blog/adding-new-fonts-to-tesseract-3-ocr-engine

现在我正在测试训练数据,但是当我运行命令时出现以下错误

And now i m testing the traineddata but i get the following error when i run the command

tesseract eng.digital.exp0.tif ./output.txt -l eng

给我错误

Tesseract Open Source OCR Engine v3.03 with Leptonica
tessdata_manager.SeekToStart(TESSDATA_INTTEMP):Error:Assert failed:in file adaptmatch.cpp,    line 522
Abort trap: 6

现在,即使我正在尝试训练新数据,我也会收到此错误,我的意思是我现在无法运行以下命令

Now, after this even if i'm trying to train new data, i get this error, i mean i'm unable to run the following command now

tesseract engg.digital.exp0.tif engg.digital.exp0.box nobatch box.train.stderr

我能够通过再次卸载和安装 tesseract 来解决此错误.如果有更简单的方法来解决这个问题,你们能帮我吗?

I was able to resolve this error by uninstalling and installing tesseract again. Could you guys help me, if there is an easier way to fix this?

提前致谢.

推荐答案

好的,我已经修复了第二次运行失败的问题.基本上我正在用英语训练另一种字体,我替换了原始 tessdata 文件夹中的 eng.traineddata .. 因此它失败了.我替换了原来的 eng.traineddata,现在可以重新训练了.

Ok i have fixed the 2nd time run fail. Basically i was training another font in english and i replaced eng.traineddata in original tessdata folder.. Hence it was failing. I replaced the original eng.traineddata and i can retrain now.

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

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