29

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?

otiai10
  • 4,289
  • 5
  • 38
  • 50

2 Answers2

40

The solution is:

tesseract input.jpg stdout

But you need at least version 3.03

Arnold Roa
  • 7,335
  • 5
  • 50
  • 69
21

You should upgrade to v3.03 where support for stdout was added.

posit labs
  • 8,951
  • 4
  • 36
  • 66
Simeon Visser
  • 118,920
  • 18
  • 185
  • 180