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

Tesseract parameter passing #105

Closed
SebastianSingle99 opened this issue Dec 13, 2016 · 2 comments
Closed

Tesseract parameter passing #105

SebastianSingle99 opened this issue Dec 13, 2016 · 2 comments

Comments

@SebastianSingle99
Copy link

SebastianSingle99 commented Dec 13, 2016

How can i use tesseract parameters like -psm 0?
I use this method
textract.fromFileWithPath(filePath, {tesseract: { lang:"chi_sim", psm: 0 } }

Textract only recognizes the 'lang' options. Looking at the source file images.js
it seems only the language options is regarded.

if ( options.tesseract && options.tesseract.lang ) { cmd += ' -l ' + options.tesseract.lang; }

Am I missing something or is this a bug?

@dbashford
Copy link
Owner

I would classify it as a missing feature. :)

@dbashford
Copy link
Owner

Fixed and published as 2.1

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