OCR.SPACE

OcrSpace

Simple API wrapper for OCR.Space, A awesome Free api for converting images to text.

Installation

Add this line to your application's Gemfile:

gem 'ocr_space'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ocr_space

Usage

To convert images from url

result = OcrSpace::FromUrl.new(apikey: "YOUR API KEY", url: "Image url")
puts result.data

To convert images from file upload

result = OcrSpace::FromFile.new(apikey: "YOUR API KEY", files: "Path to file")
puts result.data

NOTE

I will continue working on this to make it awesomer.

TODO

Make command line utility