How can I hide the console window when I run tesseract with pytesser

跟風遠走 提交于 2019-12-02 12:29:52

问题


I'm new on Python. I'm working in an OCR project. I'm using Python 2.7.12 on Windows 7. I have installed tesseract in the path "C:\Program Files (x86)\Tesseract-OCR"

I found the pytesser library v0.0.2 here: https://searchcode.com/codesearch/view/11386640/#

When I run the code:

from pytesser import *
image=Image.open('dis.tiff')
text=image_to_string(image)
print (text)

It calls to tesseract and the tesseract.exe window appears (see the image: https://www.dropbox.com/s/p0i6sjj61yhfnp9/question.png?dl=0). I want to hide it but I don't know how to do it. I think that I have to change something in the library files. Somebody can help me please?

来源:https://stackoverflow.com/questions/38782124/how-can-i-hide-the-console-window-when-i-run-tesseract-with-pytesser

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