It extracts the text in a image and returns the text extracted.
To install it you have following options:
- Ubuntu/Debian:
$ sudo apt update && sudo apt install tesseract-ocr -y
- MacOs(with Homebrew):
$ brew install tesseract
- Validate your language is available with following command:
$ tesseract --list-langs
- If missing your language, you can install it with following command:
- Ubuntu/Debian:
$ sudo apt install tesseract-ocr-spa
- MacOs(with Homebrew):
$ brew install tesseract-lang
- Install bundler gem
$ gem install bundler
To install this project, you can run following command:
$ bundle install
You can run the project with following command:
$ ruby app.rb