All Projects → suyesh → ocr_space

suyesh / ocr_space

Licence: MIT license
Free Online OCR for Ruby - Convert images to text

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to ocr space

pmOCR
A wrapper for tesseract / abbyyOCR11 ocr4linux finereader cli that can perform batch operations or monitor a directory and launch an OCR conversion on file activity
Stars: ✭ 53 (-14.52%)
Mutual labels:  ocr, ocr-service
ruby-lokalise-api
Lokalise API v2 Ruby interface.
Stars: ✭ 17 (-72.58%)
Mutual labels:  rubygem
tensorflow ocr
OCR detection implement with tensorflow v1.4
Stars: ✭ 15 (-75.81%)
Mutual labels:  ocr
deep-learning-for-document-dewarping
An application of high resolution GANs to dewarp images of perturbed documents
Stars: ✭ 100 (+61.29%)
Mutual labels:  ocr
ni-translate
A translator for Linux, running at the background which wakes up with the translation of the last selected text on command.
Stars: ✭ 82 (+32.26%)
Mutual labels:  ocr
vehicle-rear
Vehicle-Rear: A New Dataset to Explore Feature Fusion For Vehicle Identification Using Convolutional Neural Networks
Stars: ✭ 99 (+59.68%)
Mutual labels:  ocr
ResumeRise
An NLP tool which classifies and summarizes resumes
Stars: ✭ 29 (-53.23%)
Mutual labels:  ocr
BankCard-Recognizer
Identifying numbers from bankcard, based on Deep Learning with Keras [China Software Cup 2019]
Stars: ✭ 74 (+19.35%)
Mutual labels:  ocr
papermerge-core
Papermerge RESTful backend structured as reusable Django app
Stars: ✭ 103 (+66.13%)
Mutual labels:  ocr
CleanSCAN
A simple, smart and efficient document scanner for Android
Stars: ✭ 151 (+143.55%)
Mutual labels:  ocr
awesome-document-understanding
A curated list of resources for Document Understanding (DU) topic
Stars: ✭ 620 (+900%)
Mutual labels:  ocr
OCRVisualizer
Microsoft Cognitive Services, Computer Vision API, OCR Visualizer on documents
Stars: ✭ 19 (-69.35%)
Mutual labels:  ocr
AgentOCR
一个多语言支持、易使用的 OCR 项目。An easy-to-use OCR project with multilingual support.
Stars: ✭ 98 (+58.06%)
Mutual labels:  ocr
CRNN-OCR-lite
Lightweight CRNN for OCR (including handwritten text) with depthwise separable convolutions and spatial transformer module [keras+tf]
Stars: ✭ 130 (+109.68%)
Mutual labels:  ocr
tty-link
Hyperlinks in your terminal
Stars: ✭ 30 (-51.61%)
Mutual labels:  rubygem
align iranian national id card
A program to align rotated id cards and extract user data from it.
Stars: ✭ 48 (-22.58%)
Mutual labels:  ocr
ScribeBot
A highly scriptable automation system full of cool features. Automate everything with a little bit of Lua.
Stars: ✭ 72 (+16.13%)
Mutual labels:  ocr
ocreval
Update of the ISRI Analytic Tools for OCR Evaluation with UTF-8 support
Stars: ✭ 48 (-22.58%)
Mutual labels:  ocr
Game2Text
Complete toolbox for gamifying language learning
Stars: ✭ 86 (+38.71%)
Mutual labels:  ocr
sidekiq-backend
Karafka Sidekiq backend for background messages processing
Stars: ✭ 69 (+11.29%)
Mutual labels:  rubygem

OCR.SPACE Gem Version

OcrSpace

Simple API wrapper for OCR.Space, An awesome free API for converting images to text. Register here for free api key.

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

Hosted at rubygems.org

ENV Variables (Optional)

Setting env variables with API key is optional but for command line interface to work you will have to set ENV variable 'ocr_api_key' to your API key. For more details on the command line interface, scroll to the bottom of this page.

$ export ocr_api_key='YOUR API KEY'

Usage

Nicola Tesla

Instantiate OcrSpace resource with API key

require 'ocr_space'

resource = OcrSpace::Resource.new(apikey: "YOUR API KEY")
#By default it picks up ocr_api_key='YOUR API KEY' from your env variables

To convert images from URL

result = resource.convert url: "http://bit.ly/2ih9aXt"

puts result
=>  #[{"TextOverlay"=>{"Lines"=>[], "HasOverlay"=>false, "Message"=>"Text overlay is not provided as it is not requested"}, "FileParseExitCode"=>1, "ParsedText"=>"If you want to find the secrets of the \r\nuniverse, think in terms of energy, \r\nfrequency and vibration. \r\nAZ QUOTES \r\n", "ErrorMessage"=>"", "ErrorDetails"=>""}]

result = resource.clean_convert url: "http://bit.ly/2ih9aXt"

puts result

=> #If you want to find the secrets of the universe, think in terms of energy, frequency and vibration. AZ QUOTES

To convert images from file upload

result = resource.convert file: "/Users/suyesh/Desktop/nicola_tesla.jpg"

puts result #Raw result

=>  #{"TextOverlay"=>{"Lines"=>[], "HasOverlay"=>false, "Message"=>"Text overlay is not provided as it is not requested"}, "FileParseExitCode"=>1, "ParsedText"=>"If you want to find the secrets of the \r\nuniverse, think in terms of energy, \r\nfrequency and vibration. \r\nAZ QUOTES \r\n", "ErrorMessage"=>"", "ErrorDetails"=>""}

result = resource.clean_convert file: "/Users/suyesh/Desktop/nicola_tesla.jpg"

puts result

=> #If you want to find the secrets of the universe, think in terms of energy, frequency and vibration. AZ QUOTES

Command line interface BONUS

You can run ocr_space through shell to get quick result from a image using file path or URL.

$ ocr_space /Users/suyesh/Desktop/nicola_tesla.jpg

=> If you want to find the secrets of the universe, think in terms of energy, frequency and vibration. AZ QUOTES

Optional

You can also pass in Optional attributes

isOverlayRequired:
#[Optional] Default = False Allows you to specify if the image/pdf text overlay is required. Overlay could be #used to show the text over the image

language:
#Czech = ce; Danish = dan; Dutch = dut; English = eng; Finnish = fin; French = fre; German = ger;Hungarian=hun;
#Italian = ita; Norwegian = nor; Polish = pol; Portuguese = por; Spanish = spa; Swedish = swe; #ChineseSimplified = chs; Greek = gre; Japanese = jpn; Russian = rus; Turkish = tur; ChineseTraditional = cht; #Korean = kor
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].