2016-08-04 28 views
0
每次

我想通过以下的oficial turorial培养出新的语言,但我就是不能执行步骤“生成训练图像和文件盒/准备一个文本文件” 。我创建了我的文本文件,但每次运行命令text2image --text=training_text.txt --outputbase=eng.TimesNewRomanBold.exp0 --font='Times New Roman Bold' --fonts_dir=/usr/share/fonts时结果为Could not find font named Times New Roman Bold. Pango suggested font FreeSerif Bold Please correct --font arg.:Error:Assert failed:in file text2image.cpp, line 437 Segmentation fault (core dumped) 正方体培训 - text2image返回段错误在Ubuntu

这发生在给定的例子中(我使用了他们在turorial中使用的那个),以及我选择的每个字体都存在于运行text2image --text=training_text.txt --outputbase=eng --fonts_dir=/usr/share/fonts --find_fonts --min_coverage=1.0 --render_per_font=false 所显示的列表中。

有人可以帮助我吗?因为这个,我无法继续深入教程...

谢谢!

回答

0

几个小时搜索关于这个问题后,我发现发生的事情是,在命令中使用的字体不承认的操作系统和CPP程序不验证这种情况,因此一个Segmentation Fault发生。

使用有效的字体后,所有运行顺利。