exe/ocrspace in ocr_space-2.1 vs exe/ocrspace in ocr_space-2.2
- 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.text_data.colorize(:orange)
+ puts result[0]['ParsedText'].delete("\n").delete("\r").strip
rescue
puts "Something went wrong, Please try again.".colorize(:red)
end
end