生成 Tesseract 训练数据失败

发布于 2025-01-16 07:20:27 字数 702 浏览 1 评论 0原文

我在 Windows 10 上使用 Tesseract v5.0.1.20220118,训练只有字母“P”和“Q”的字体。

当我执行到此步骤时,

mftraining -F font_properties.txt -U unicharset -O normal.unicharset pq.normal.exp0.tr

未生成 pffmtable 文件。

当我运行代码 cntraining pq.normal.exp0.tr

它告诉我

Reading pq.normal.exp0.tr ...
Clustering ...
N == sizeof(Cluster->Mean):Error:Assert failed:in file ../../../src/classify/cluster.cpp, line 2526

为什么会出错?我该如何修复它?

我只生成了 inttempshapetable,但教程说会有四个文件,包括 shapetableinttemppffmtablenormproto,我想知道可能是因为字体只有字母“P”和“Q”,但我不知道如何解决。

I'm using Tesseract v5.0.1.20220118 on Windows 10, training a font only have letter "P" and "Q".

When I get to the step

mftraining -F font_properties.txt -U unicharset -O normal.unicharset pq.normal.exp0.tr

The pffmtable file is not generated.

And when I run code cntraining pq.normal.exp0.tr

It shows me

Reading pq.normal.exp0.tr ...
Clustering ...
N == sizeof(Cluster->Mean):Error:Assert failed:in file ../../../src/classify/cluster.cpp, line 2526

Why it goes wrong? How can I fix it?

I only have inttemp and shapetable generated, but the tutorial says there will be four files include shapetable, inttemp, pffmtable and normproto, I wonder that maybe is beacuse of the font only have letter "P" and "Q", but I have no idea how to solve it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文