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

蹲街弑〆低调 提交于 2019-12-22 01:27:24

问题


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?


回答1:


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




回答2:


The solution is:

tesseract input.jpg stdout

But you need at least version 3.03



来源:https://stackoverflow.com/questions/24347819/can-tesseract-ocr-put-the-result-to-stdout

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!