Skip to content

developerfab/ruby_extract_text_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extract text from image

It extracts the text in a image and returns the text extracted.

Requeriments

  1. tesseract-ocr

To install it you have following options:

  • Ubuntu/Debian:
$ sudo apt update && sudo apt install tesseract-ocr -y
  • MacOs(with Homebrew):
$ brew install tesseract
  1. Validate your language is available with following command:
$ tesseract --list-langs
  1. 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
  1. Install bundler gem
$ gem install bundler

How to install the project?

To install this project, you can run following command:

$ bundle install

How to run the project?

You can run the project with following command:

$ ruby app.rb

Sources and bibliography

  1. Recognize text from an image in Ruby
  2. Tesseract documentation
  3. Languages supported by tesseract

About

Mini project to extract text from an image with ruby

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages