Can `tesseract-ocr` put the result to STDOUT?

otiai10 picture otiai10 · Jun 22, 2014 · Viewed 10.5k times · Source

Using tesseract-ocr #3.02.02.

The basic usage of tesseract is

tesseract sourc.png result

and result.txt is generated. To get the result text, I have to cat this file.

Is there any options to dump the result in stdout?

Answer

Arnold Roa picture Arnold Roa · Sep 28, 2016

The solution is:

tesseract input.jpg stdout

But you need at least version 3.03