我正在尝试在https://tesseract-ocr.github.io/tessdoc/TrainingTesseract-4.00.html的指导下训练tesseract
但是,即使我没有在我的命令行中设置字体参数,我也会得到这样的错误:找不到名为'Arial Bold‘的字体。Pango建议使用'Palatino‘字体。请更正--font arg。错误: Program text2image失败。中止。
我找不到我在哪里犯了错?enter image description here
发布于 2020-07-20 02:15:05
所以我在https://groups.google.com/forum/#!topic/tesseract-ocr/CpxTGGUlWIo中找到了解决方案
我列出了我想要对其进行训练以获得其名称的字体:nour@nour:~$ text2image -- fonts _dir path/ to /fonts --list_available_fonts
然后,我使用字体名称编辑了:language-Speciic.sh,我将在该文件上训练tesseract。
https://stackoverflow.com/questions/62966457
复制相似问题