【发布时间】:2017-06-29 10:13:11
【问题描述】:
第一次使用 tesseract。我安装了 tesseract 并试图生成一些训练图像。使用说明,我在 tif 文件上运行第一个命令。
# tesseract img.tif img makebox batch.nochop
当我运行上述程序时,我收到以下错误-
read_params_file: Can't open batch.nochop
read_params_file: Can't open makebox
然后我尝试像这样给出这些文件的完整路径 -
# tesseract img.tif img /usr/local/share/tessdata/tessconfigs/batch.nochop /usr/local/share/tessdata/configs/makebox
然后我得到这个错误--
Error in findTiffCompression: function not present
Error in pixReadStreamTiff: function not present
Error in pixReadStream: tiff: no pix returned
Error in pixRead: pix not read
Error in pixGetInputFormat: pix not defined
Reading start.tif as a list of filenames...
Error in fopenReadStream: file not found
Error in pixRead: image file not found: II*
Image file II* cannot be read!
Error during processing.
我很确定我缺少一些环境变量或类似的东西。有人能指出我正确的方向吗?
顺便说一句
# tesseract -v
tesseract 3.03
leptonica-1.72
libpng 1.2.51 : zlib 1.2.8
【问题讨论】: