Welcome to Image OCR App! This is a one-page version of a Image OCR App. The app allows user to upload a png image and extract text data from it. It also allows the user to search on the document provided and process by the OCR App.
To get started with the OCR App, please follow the instructions below:
- git clone ''
- Navigate to the project directory using your command prompt or terminal.
- Run the command bundle install to install all necessary dependencies.
The tech stack used to build OCR App are:
- Ruby on Rails - a web application framework written in the Ruby programming language
- PostgreSQL - an open-source relational database management system
The following dependencies are required to run OCR App:
- Ruby 3.0.2
- Rails 7.1.3
- PostgreSQL 15
- Redis
- ImageMagick
- rtesseract
Install RVM
Install the right ruby version (currently 3.0.2):
rvm install "ruby-3.0.2" ruby -vThe ouput should start with something like ruby 3.0.2
brew install postgresql
brew services start postgresql brew install redis
brew services start redis brew install imagemagick brew install tesseractbundle install or bundle
rails db:create
rails db:migrateRubocop linter is configured for this project. In order to trigger linting via CLI, run in root project's folder:
rubocop
However if you use Rails scaffolding features, autogenerated code may fail under some of the Rubocop's configured rules. Luckily Rubocop supports auto-correction, so you can fix auto-generated code running:
rubocop -A
bundle exec rails sOnce the server is running, you can access the application by navigating to http://localhost:3000 in your web browser.
With OCR APP, you can perform the following actions:
-
Upload an png image
-
Get the marked bounded box image with the extracted text highlighted
-
Search text on image
-
User can download the original and modified image
If you have any feedback or suggestions for improving OCR APP, please feel free to reach out to me. I would love to hear from you!