Cygwin和Tesseract:如何在Windows

时间:2017-03-01 00:04:13

标签: cygwin tesseract

我是Cygwin(和tesseract)的新手。我正在尝试创建一个火车文件。我关注this tutorial。 我创建了一个jpg文件并尝试执行此命令:

Portekoi@PortekoiOrdi /cygdrive/d/_devs/tesseract-ocr
$ /cygdrive/d/_devs/tesseract-OCR/tesseract.exe /cygdrive/d/_Devs/Tesseract-OCR/imgTrain/fra.plaque.exp0.jpg /cygdrive/d/_devs/tesseract-OCR/imgTrain/fra.plaque.exp0 /cygdrive/d/_Devs/Tesseract-OCR/tessdata/tessconfigs/batch.nochop makebox
read_params_file: Can't open /cygdrive/d/_Devs/Tesseract-OCR/tessdata/tessconfigs/batch.nochop
Tesseract Open Source OCR Engine v3.05.00dev with Leptonica
Error in fopenReadStream: file not found
Error in findFileFormat: image file not found
Error during processing.
ObjectCache(011FAAC8)::~ObjectCache(): WARNING! LEAK! object 05C6FF48 still has count 1 (id D:\_Devs\Tesseract-OCR/tessdata/eng.traineddatapunc-dawg)
ObjectCache(011FAAC8)::~ObjectCache(): WARNING! LEAK! object 05836638 still has count 1 (id D:\_Devs\Tesseract-OCR/tessdata/eng.traineddataword-dawg)
ObjectCache(011FAAC8)::~ObjectCache(): WARNING! LEAK! object 058366C8 still has count 1 (id D:\_Devs\Tesseract-OCR/tessdata/eng.traineddatanumber-dawg)
ObjectCache(011FAAC8)::~ObjectCache(): WARNING! LEAK! object 061BB088 still has count 1 (id D:\_Devs\Tesseract-OCR/tessdata/eng.traineddatabigram-dawg)
ObjectCache(011FAAC8)::~ObjectCache(): WARNING! LEAK! object 061BB880 still has count 1 (id D:\_Devs\Tesseract-OCR/tessdata/eng.traineddatafreq-dawg)

但找不到batch.nochop(但存在于好路径中:D:\_Devs\Tesseract-OCR\tessdata\tessconfigs

  1. 如何解决此错误?
  2. 使用Cygwin,为什么我必须指定完整路径(我在环境变量上添加了良好的路径)

0 个答案:

没有答案