Warning: No shape table file present: shapetable
来源:互联网 发布:jdk1.7 windows 64 编辑:程序博客网 时间:2024/05/01 02:25
在用tesseract训练语言的中途
mftrainingd -F font_properties.txt -U unicharset ABC.Roman.exp0.tr
cmd报错:
Warning: No shape table file present: shapetable
Failed to load font_properties from font_properties
解决:
6.定义字体特征文件。Tesseract-OCR3.01以上的版本在训练之前需要创建一个名称为font_properties的字体特征文件。
font_properties不含有BOM头,文件内容格式如下:
<fontname> <italic> <bold> <fixed> <serif> <fraktur>
其中fontname为字体名称,必须与[lang].[fontname].exp[num].box中的名称保持一致。<italic> 、<bold> 、<fixed> 、<serif>、 <fraktur>的取值为1或0,表示字体是否具有这些属性。
这里在样本图片所在目录下创建一个名称为font_properties的文件,用记事本打开,输入以下下内容:
Roman 0 0 0 0 0
这里全取值为0,表示字体不是粗体、斜体等等。
参考:
http://www.84kf.com/html/22453.html
http://blog.csdn.net/fengbingchun/article/details/7022421
http://code.google.com/p/tesseract-ocr/issues/detail?id=465
- Warning: No shape table file present: shapetable
- iptables: No config file. [WARNING]!
- warning: no newline at end of file
- warning: no newline at end of file
- Warning: no newline at end of file
- warning: no newline at end of file
- warning: no newline at end of file
- warning: no newline at end of file?
- warning: no newline at end of file
- warning:no newline at end of file
- Linux: gcc warning warning: no newline at end of file
- gcc warning: no newline at end of file
- warning no newline at the end of file
- 如何解决warning: no newline at end of file?
- C-free提示warning: no newline at end of file
- error C2220: warning treated as error - no 'object' file generated
- warning: no newline at the end of file
- 解决warning: no newline at end of file
- lua 排序
- 让ie6也支持websocket
- ZOJ 1788 Quad Trees (朴素BFS)
- linux ls
- 科恩兄弟《谋杀绿脚趾》
- Warning: No shape table file present: shapetable
- 【Code::Blocks】windows 环境下编译 Code::Blocks(已修正)
- 二叉树的前序遍历的非递归算法(二)
- UVa 12317 (状态压缩DP)
- OA模块管理实现中出现的问题
- linux 管道命令
- 感想12.26
- MFC对话框之间传递数据
- OTP - gen_server 小计