Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMD windows #46

Closed
vanjavk opened this issue Aug 20, 2016 · 3 comments
Closed

CMD windows #46

vanjavk opened this issue Aug 20, 2016 · 3 comments

Comments

@vanjavk
Copy link

vanjavk commented Aug 20, 2016

While running this python keeps opening CMD windows http://i.imgur.com/pWI3JDW.png
How to prevent this ?

@vanjavk
Copy link
Author

vanjavk commented Aug 20, 2016

i changed from

proc = subprocess.Popen(command,
        stderr=subprocess.PIPE)
return (proc.wait(), proc.stderr.read())

to

SW_HIDE = 0
info = subprocess.STARTUPINFO()
info.dwFlags = subprocess.STARTF_USESHOWWINDOW
info.wShowWindow = SW_HIDE
proc = subprocess.Popen(command,
        stderr=subprocess.PIPE, startupinfo=info)

in pytesseract.py and fixed this!

@bozhodimitrov
Copy link
Collaborator

Thanks for your feedback @vanjavk, there is a pull request for this behavior.
I will try to merge the two solutions into one generic fix.

@bozhodimitrov
Copy link
Collaborator

Will be addressed with pull request #41. You can use the code from it until we release the next version.
Please feel free to reopen if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants