otiai10
otiai10

Reputation: 4879

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

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?

Upvotes: 33

Views: 16616

Answers (2)

Arnold Roa
Arnold Roa

Reputation: 7708

The solution is:

tesseract input.jpg stdout

But you need at least version 3.03

Upvotes: 46

Simeon Visser
Simeon Visser

Reputation: 122336

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

Upvotes: 22

Related Questions