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

can you give me an example to recongnize only digits #19

Open
kiwiwin opened this issue Jun 22, 2013 · 1 comment
Open

can you give me an example to recongnize only digits #19

kiwiwin opened this issue Jun 22, 2013 · 1 comment

Comments

@kiwiwin
Copy link

kiwiwin commented Jun 22, 2013

as title

@meh
Copy link
Owner

meh commented Jun 22, 2013

require 'tesseract'

e = Tesseract::Engine.new {|e|
  e.language  = :eng
  e.whitelist = '0123456789'
}

e.text_for('image')

That should be enough.

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