ocr_space 0.2.8.2 → 0.2.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/ocr_space/banner.rb +27 -0
- data/lib/ocr_space/version.rb +1 -1
- data/lib/ocr_space.rb +1 -0
- data/ocr_space.gemspec +2 -0
- metadata +13 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6687999fbeae8360ae4329d86622fb66b1117f5d
|
4
|
+
data.tar.gz: 256df82ba753776f5265e1a2da819c155aa94ae4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d102f2da5071aaf421fe76c8e7260da62a708a3bcb0915c8ec0a7416876282910b3318c3c4520e9a213e4859f730082429ba18533e7218178eb3dbe8c0e81ea3
|
7
|
+
data.tar.gz: 4e3dea76cee240a3f398df315bea81df7b4daac698a5736370edbe28589e87fcb57c9b5ea55934346e8ebc56520d7660f0015045131f6cb926cca7c2b54338e3
|
data/README.md
CHANGED
@@ -49,7 +49,7 @@ puts result.text_data #Clean result
|
|
49
49
|
```ruby
|
50
50
|
require 'ocr_space'
|
51
51
|
|
52
|
-
result = OcrSpace::FromFile.new(apikey: "YOUR API KEY", files: "
|
52
|
+
result = OcrSpace::FromFile.new(apikey: "YOUR API KEY", files: "/Users/suyesh/Desktop/nicola_tesla.jpg")
|
53
53
|
|
54
54
|
puts result.data #Raw result
|
55
55
|
|
@@ -66,7 +66,7 @@ puts result.text_data #Clean result
|
|
66
66
|
You can run ocr_space through shell to get quick result from a image using filepath
|
67
67
|
|
68
68
|
```
|
69
|
-
$ ocrspace
|
69
|
+
$ ocrspace /Users/suyesh/Desktop/nicola_tesla.jpg
|
70
70
|
|
71
71
|
=> If you want to find the secrets of the universe, think in terms of energy, frequency and vibration. AZ QUOTES
|
72
72
|
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module OcrSpace
|
2
|
+
class Banner
|
3
|
+
def initialize(env = ENV)
|
4
|
+
@env = env
|
5
|
+
end
|
6
|
+
|
7
|
+
def to_s
|
8
|
+
ocr_space_banner
|
9
|
+
end
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def ocr_space_banner
|
14
|
+
%q{
|
15
|
+
|
16
|
+
_______ _______ _______ _______ _______ _______ _______ _______
|
17
|
+
( ___ )( ____ \( ____ ) ( ____ \( ____ )( ___ )( ____ \( ____ \
|
18
|
+
| ( ) || ( \/| ( )| | ( \/| ( )|| ( ) || ( \/| ( \/
|
19
|
+
| | | || | | (____)| | (_____ | (____)|| (___) || | | (__
|
20
|
+
| | | || | | __) (_____ )| _____)| ___ || | | __)
|
21
|
+
| | | || | | (\ ( ) || ( | ( ) || | | (
|
22
|
+
| (___) || (____/\| ) \ \__ _ /\____) || ) | ) ( || (____/\| (____/\
|
23
|
+
(_______)(_______/|/ \__/(_)\_______)|/ |/ \|(_______/(_______/
|
24
|
+
}
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/ocr_space/version.rb
CHANGED
data/lib/ocr_space.rb
CHANGED
data/ocr_space.gemspec
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
require 'ocr_space/version'
|
5
|
+
require 'ocr_space/banner'
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
8
|
spec.name = 'ocr_space'
|
@@ -29,6 +30,7 @@ Gem::Specification.new do |spec|
|
|
29
30
|
spec.bindir = 'exe'
|
30
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
32
|
spec.require_paths = ['lib']
|
33
|
+
spec.post_install_message = OcrSpace::Banner.new.to_s
|
32
34
|
|
33
35
|
spec.add_development_dependency 'bundler', '~> 1.13'
|
34
36
|
spec.add_development_dependency 'rake', '~> 10.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocr_space
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.8.
|
4
|
+
version: 0.2.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Suyesh Bhandari
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- bin/setup
|
114
114
|
- exe/ocrspace
|
115
115
|
- lib/ocr_space.rb
|
116
|
+
- lib/ocr_space/banner.rb
|
116
117
|
- lib/ocr_space/file_post.rb
|
117
118
|
- lib/ocr_space/from_file.rb
|
118
119
|
- lib/ocr_space/from_url.rb
|
@@ -123,7 +124,16 @@ licenses:
|
|
123
124
|
- MIT
|
124
125
|
metadata:
|
125
126
|
allowed_push_host: https://rubygems.org
|
126
|
-
post_install_message:
|
127
|
+
post_install_message: "\n\n _______ _______ _______ _______ _______
|
128
|
+
\ _______ _______ _______\n ( ___ )( ____ \\( ____ ) ( ____
|
129
|
+
\\( ____ )( ___ )( ____ \\( ____ \\\n | ( ) || ( \\/| ( )|
|
130
|
+
\ | ( \\/| ( )|| ( ) || ( \\/| ( \\/\n | | | || |
|
131
|
+
\ | (____)| | (_____ | (____)|| (___) || | | (__\n | | |
|
132
|
+
|| | | __) (_____ )| _____)| ___ || | | __)\n |
|
133
|
+
| | || | | (\\ ( ) || ( | ( ) || | | (\n |
|
134
|
+
(___) || (____/\\| ) \\ \\__ _ /\\____) || ) | ) ( || (____/\\| (____/\\\n
|
135
|
+
\ (_______)(_______/|/ \\__/(_)\\_______)|/ |/ \\|(_______/(_______/\n
|
136
|
+
\ "
|
127
137
|
rdoc_options: []
|
128
138
|
require_paths:
|
129
139
|
- lib
|