Sha256: 3b2e590347344596eb69d287ebd9ead921a5de67cb469832b1fa9886e61761d6

Contents?: true

Size: 357 Bytes

Versions: 9

Compression:

Stored size: 357 Bytes

Contents

# !/usr/bin/env ruby
require 'colorize'

require_relative "../lib/ocr_space/from_file"

if ARGV.empty?
  puts "You need to mention the image path".colorize(:red)
else
  begin
    result = OcrSpace::FromFile.new(files: ARGV[0])
    puts result.text_data.colorize(:orange)
  rescue
     puts "Something went wrong, Please try again.".colorize(:red)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ocr_space-1.0 exe/ocrspace
ocr_space-0.2.8.4 exe/ocrspace
ocr_space-0.2.8.3 exe/ocrspace
ocr_space-0.2.8.2 exe/ocrspace
ocr_space-0.2.8.1 exe/ocrspace
ocr_space-0.2.7.3 exe/ocrspace
ocr_space-0.2.7.2 exe/ocrspace
ocr_space-0.2.7.1 exe/ocrspace
ocr_space-0.2.7 exe/ocrspace