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 fail when filename contains spaces (Windows) #9

Closed
FirstVertex opened this issue Oct 18, 2019 · 2 comments
Closed

cmd fail when filename contains spaces (Windows) #9

FirstVertex opened this issue Oct 18, 2019 · 2 comments

Comments

@FirstVertex
Copy link

Input directory is C:\Users\rc08281\code\code-challenges\ocr\work\input
Found 1 files in input directory
{ Error: Command failed: tesseract C:\Users\rc08281\code\code-challenges\ocr\work\converted\WI -Exemption -Invalid -Handwritten.png stdout -c 0=e -c 1=n -c 2=g
read_params_file: Can't open stdout
read_params_file: Can't open c
read_params_file: Can't open 0=e
read_params_file: Can't open c
read_params_file: Can't open 1=n
read_params_file: Can't open c
read_params_file: Can't open 2=g
Could not set option: 0=e
Could not set option: 1=n
Could not set option: 2=g
Tesseract Open Source OCR Engine v4.00.00alpha with Leptonica
Error in fopenReadStream: file not found
Error in findFileFormat: image file not found
Error during processing.

The filename is "WI -Exemption -Invalid -Handwritten.png"

Can you please enclose it in quotes when you spawn convert?

@pontuslaestadius
Copy link
Contributor

This was an issue with the other node-tesseract project as well.
My workaround is to enclose whatever path I have in strings:
path = "${path}"
If this project is still active, this should be easy to resolve.

pontuslaestadius added a commit to pontuslaestadius/node-tesseract-ocr that referenced this issue May 31, 2020
@zapolnoch
Copy link
Owner

Fixed in 2.0 release

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

3 participants