Write Images not working

119 views
Skip to first unread message

Dan9er

unread,
Sep 27, 2017, 11:15:55 AM9/27/17
to tesseract-ocr
dan9er@Inspiron-530s:~/Pictures$ tesseract test1.jpg out -tessedit_write_images 1
read_params_file: Can't open 1
Tesseract Open Source OCR Engine v3.05.01 with Leptonica
Warning. Invalid resolution 0 dpi. Using 70 instead.
dan9er@Inspiron-530s:~/Pictures$ tesseract test1.jpg out --tessedit_write_images 1
read_params_file: Can't open 1
Tesseract Open Source OCR Engine v3.05.01 with Leptonica
Warning. Invalid resolution 0 dpi. Using 70 instead.
dan9er@Inspiron-530s:~/Pictures$ tesseract test1.jpg out --tessedit_write_images=1
Tesseract Open Source OCR Engine v3.05.01 with Leptonica
Warning. Invalid resolution 0 dpi. Using 70 instead.
dan9er@Inspiron-530s:~/Pictures$ tesseract test1.jpg out --tessedit_write_images=true
Tesseract Open Source OCR Engine v3.05.01 with Leptonica
Warning. Invalid resolution 0 dpi. Using 70 instead.

Where is the image file!? I can't find it anywhere!

John Muccigrosso

unread,
Sep 27, 2017, 1:38:59 PM9/27/17
to tesseract-ocr
I don't normally do this, so it took a little hunting, but on the command line, try this:

tesseract input output -c tessedit_write_images=1

You can also use a config file and pass that as the last item on the command line:

tesseract input output ~/tessconfig

where ~/.tessconfig is a file whose contents are simply:

tessedit_write_images   1


Dan9er

unread,
Sep 30, 2017, 11:26:59 AM9/30/17
to tesseract-ocr
The first code line worked, thank you!
Reply all
Reply to author
Forward
0 new messages