ocr_space 0.2.8.1 → 0.2.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -4
- data/lib/ocr_space/from_file.rb +1 -2
- data/lib/ocr_space/from_url.rb +1 -1
- data/lib/ocr_space/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c28a6190c76b3fd6e878cddc7f36ed53bee25a76
|
4
|
+
data.tar.gz: 69be5b64ec056f5d25127eea6aaedc66a173d778
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50309680a6a5bd8cfb2eb28c0f463181ade64a6084376d64074e1ef65667df4d43d315ce1f2a102e05d3af10ce1710065da2b5fe2894d73e13b3c453c1a3d185
|
7
|
+
data.tar.gz: 52cf2597180f4e9a5c8ef6be7d0ed0993c5d04fc86a004551b13d4a45d49a629950fa52ba3bfae52e82163ebd01c3f93aeaf633b861c0f2b9032da90190fc61b
|
data/README.md
CHANGED
@@ -68,10 +68,7 @@ You can run ocr_space through shell to get quick result from a image using filep
|
|
68
68
|
```
|
69
69
|
$ ocrspace home/suyesh/nicola_tesla.jpg
|
70
70
|
|
71
|
-
=> If you want to find the secrets of the
|
72
|
-
universe, think in terms of energy,
|
73
|
-
frequency and vibration.
|
74
|
-
AZ QUOTES
|
71
|
+
=> If you want to find the secrets of the universe, think in terms of energy, frequency and vibration. AZ QUOTES
|
75
72
|
|
76
73
|
```
|
77
74
|
#NOTE
|
data/lib/ocr_space/from_file.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
require 'ocr_space/file_post'
|
2
|
-
require 'fileutils'
|
3
2
|
|
4
3
|
module OcrSpace
|
5
4
|
class FromFile
|
6
5
|
attr_reader :data
|
7
|
-
def initialize(apikey: ENV['ocr_api_key'], language: 'eng', isOverlayRequired: false, files: nil
|
6
|
+
def initialize(apikey: ENV['ocr_api_key'], language: 'eng', isOverlayRequired: false, files: nil)
|
8
7
|
@file = File.new(files)
|
9
8
|
@data = OcrSpace::FilePost.post('/parse/image',
|
10
9
|
body: { apikey: apikey,
|
data/lib/ocr_space/from_url.rb
CHANGED
@@ -4,7 +4,7 @@ module OcrSpace
|
|
4
4
|
class FromUrl
|
5
5
|
attr_reader :data
|
6
6
|
def initialize(apikey: ENV['ocr_api_key'], language: 'eng', isOverlayRequired: false, url: nil, ocr_space: 'https://api.ocr.space/parse/image')
|
7
|
-
@data = HTTParty.post(
|
7
|
+
@data = HTTParty.post(ocr_space,
|
8
8
|
body: { apikey: apikey,
|
9
9
|
language: language,
|
10
10
|
isOverlayRequired: isOverlayRequired,
|
data/lib/ocr_space/version.rb
CHANGED
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Suyesh Bhandari
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|