exe/ocrspace in ocr_space-0.2.6 vs exe/ocrspace in ocr_space-0.2.7
- old
+ new
@@ -1,14 +1,15 @@
# !/usr/bin/env ruby
+require 'colorize'
require_relative "../lib/ocr_space/from_file"
if ARGV.empty?
- puts "You need to mention the image path"
+ puts "You need to mention the image path".colorize(:red)
else
begin
result = OcrSpace::FromFile.new(files: ARGV[0])
- puts result.text_data
+ puts result.text_data.colorize(:orange)
rescue
- puts "Something went wrong, Please try again."
+ puts "Something went wrong, Please try again.".colorize(:red)
end
end