ocr_space 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/ocrspace +4 -3
- data/lib/ocr_space/version.rb +1 -1
- data/ocr_space.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07c54f34c3ffbac769ca3e06aefeb84f87232a26
|
4
|
+
data.tar.gz: 0eb9021b0320048e05304753d717eaf05fd8c3d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 467bb9d9a9273adfcd43faa244ee0a417a22f31af47562a58ab2bd5ffefae6a0e6afdf6c13d64f43c1e5ba8437cdc4dafc368602338d1503460f14d87de760cb
|
7
|
+
data.tar.gz: 71f87d3e68891d7b63ed9ece7f5fccac63531e37e399aa3cb24d7f1a6ebca3c2bbc3b2c2d3dccc8c4854e650560fd5f9054df74e390b7e6747c7bb6da3a1b255
|
data/exe/ocrspace
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
# !/usr/bin/env ruby
|
2
|
+
require 'colorize'
|
2
3
|
|
3
4
|
require_relative "../lib/ocr_space/from_file"
|
4
5
|
|
5
6
|
if ARGV.empty?
|
6
|
-
puts "You need to mention the image path"
|
7
|
+
puts "You need to mention the image path".colorize(:red)
|
7
8
|
else
|
8
9
|
begin
|
9
10
|
result = OcrSpace::FromFile.new(files: ARGV[0])
|
10
|
-
puts result.text_data
|
11
|
+
puts result.text_data.colorize(:orange)
|
11
12
|
rescue
|
12
|
-
puts "Something went wrong, Please try again."
|
13
|
+
puts "Something went wrong, Please try again.".colorize(:red)
|
13
14
|
end
|
14
15
|
end
|
data/lib/ocr_space/version.rb
CHANGED
data/ocr_space.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocr_space
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Suyesh Bhandari
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: colorize
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
description: 'Free Online OCR for Ruby - Convert images to text '
|
84
98
|
email:
|
85
99
|
- suyeshb@gmail.com
|