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

Docsplit.extract_text auto orientation detection 'detect_orientation: true' param does not work. #143

Open
michaeltranlong opened this issue Jul 6, 2017 · 0 comments

Comments

@michaeltranlong
Copy link

michaeltranlong commented Jul 6, 2017

When I execute 'tesseract --list-langs' I do see 'osd' on my mac.

I see Docsplit::DEPENDENCIES[:tesseract] is true and Docsplit::DEPENDENCIES[:osd] is false

Tracked it down to these 33-37 lines in 'lib/docsplit.rb'

if DEPENDENCIES[:tesseract]
# osd will be listed in tesseract --listlangs
val = %x[ #{'tesseract --list-langs'} 2>&1 >/dev/null ]
DEPENDENCIES[:osd] = true if val =~ /\bosd\b/
end

Not sure why the '> /dev/null' is there but that would make 'val' assignment be empty and cause DEPENDENCIES[:osd] = false

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

1 participant