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

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?

链接地址: http://www.djcxy.com/p/96740.html

上一篇: 文件'tesseract.log'缺少(Python 2.7,Windows)

下一篇: 当我用pytesser运行tesseract时,如何隐藏控制台窗口