Sha256: 0af09aff7045369f41e10d94587bac56c497ed236b26070649b0accedcf99ada
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
# !/usr/bin/env ruby require 'colorize' require_relative "../lib/ocr_space/convert" if ARGV.empty? puts "You need to mention the image path".colorize(:red) else begin resource = OcrSpace::Resource.new result = resource.convert file: ARGV[0] puts result.text_data.colorize(:orange) rescue puts "Something went wrong, Please try again.".colorize(:red) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ocr_space-2.1 | exe/ocrspace |
ocr_space-2.0 | exe/ocrspace |