exe/ocrspace in ocr_space-2.2 vs exe/ocrspace in ocr_space-2.3
- old
+ new
@@ -7,10 +7,10 @@
puts "You need to mention the image path".colorize(:red)
else
begin
resource = OcrSpace::Resource.new
result = resource.convert file: ARGV[0]
- puts result[0]['ParsedText'].delete("\n").delete("\r").strip
+ puts result
rescue
puts "Something went wrong, Please try again.".colorize(:red)
end
end