Sha256: 3eb3e1d8ea766ff2877a25c7158e5608acd63b628c66600578ac67ee96158c54
Contents?: true
Size: 357 Bytes
Versions: 2
Compression:
Stored size: 357 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 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.3.1 | exe/ocrspace |
ocr_space-2.3 | exe/ocrspace |