CarpeDiemKopi
CarpeDiemKopi

Reputation: 334

Tesseract OCR Eye parameter "tessedit_write_images"

Edit2: The config-file must have Unix Line Ending: Only "\n" and not "\r\n".

Edit: duplication How to set tessedit_write_images in python-tesseract?

Tesseract has an option to output the processed image, the so called Tesseract Eye. I use for first test the command line and I'm not able to get the output of the config parameter: tessedit_write_images

I have made a config file c:/tmp/config.txt with the only content:

tessedit_write_images true 

Here's my command line:

   C:\Program Files (x86)\Tesseract-OCR>tesseract c:/tmp/textscan11.tif     c:/tmp/textscan -psm 7  c:/tmp/config.txt
    Tesseract Open Source OCR Engine v3.05.01 with Leptonica
    Page 1

I get c:/tmp/textscan.txt as output and that's all. The second file as result of the Eye-parameter is missing. I have searched the complete disk for the exspected file tessinput.tif.

-- Tesseract v3.05.01 Windows10 64 bit --

What's wrong?

Thanks in advance

Upvotes: 0

Views: 3157

Answers (1)

user898678
user898678

Reputation: 3328

Try to check if c:/tmp/config.txt has expected line break (just '\n').

Upvotes: 1

Related Questions