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

Cannot open file Error #22

Open
shaunak1111 opened this issue Feb 9, 2015 · 3 comments
Open

Cannot open file Error #22

shaunak1111 opened this issue Feb 9, 2015 · 3 comments

Comments

@shaunak1111
Copy link

I get the following error
{ [Error: Command failed: read_params_file: Can't open C:\Users\shaunak\AppData\L
ocal\Temp\node-tesseract-b48c93d0-c7f8-4329-986d-b2dcf942ffdd
read_params_file: Can't open l
read_params_file: Can't open eng
read_params_file: Can't open psm
read_params_file: Can't open 3

But i can output the correct result using tesseract command line command.Any help would be appreciated.

@desmondmorris
Copy link
Owner

@shaunak1111 can you post your code?

@shaunak1111
Copy link
Author

var tesseract = require('node-tesseract');

// Recognize text of any language in any format
tesseract.process('../ ocr.png',function(err, text) {
if(err) {
console.error(err);
} else {
console.log(text);
}
});

@morenoh149
Copy link

why is there a space in the path '../ ocr.png' Try fixing that.

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