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