Using tesseract-ocr #3.02.02.
tesseract-ocr
The basic usage of tesseract is
tesseract sourc.png result
and result.txt is ge
result.txt
You should upgrade to v3.03 where support for stdout was added.
The solution is:
tesseract input.jpg stdout
But you need at least version 3.03