Tesseract: Has stdin option changed?

Created on 6 Oct 2018  路  8Comments  路  Source: tesseract-ocr/tesseract

Environment

  • 4.0.0-rc1-37-g1e47
  • 1e4768c1f56e530ecb301710eaa026abb5953ca8
  • Mac OS

Current Behavior:

calling with tesseract with stdin option should read from stdin. Instead now I get Cannot open input file: stdin

These are my args [ 'stdin', 'stdout', '-l', 'eng', '-c', 'tessedit_create_hocr=1', '-c', 'tessedit_pageseg_mode=1', '-c', 'hocr_font_info=0' ]

Expected Behavior:

in previous commits, this worked fine, for example when streaming images into Tesseract.

Suggested Fix:

Update the documentation if it's changed or restore the original behavior.

All 8 comments

Awesome project btw 馃槃 馃憦 馃憦 馃憦 馃憦 馃憦 馃憦 馃憦

We do not support 3rd party project ;-)
You need to replicate it with tesseract executable,

@zdenop apologies if I misunderstand but I am calling tesseract executable directly.

The stdin option seems to have stopped working, it's a documented option

https://github.com/tesseract-ocr/tesseract/wiki/Command-Line-Usage#tesseract---help-extra

I already found the cause, see above comment.

Pull request #1960 addresses this issue.

@uttrasey,

Please try the latest commit from the master branch.

Looking good, thanks for the swift turnaround

Was this page helpful?
0 / 5 - 0 ratings