google_cloud_vision 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/google_cloud_vision.rb +1 -1
- data/lib/google_cloud_vision/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: cef62bdd806d4457f816032cf244ba55c492f948
|
4
|
+
data.tar.gz: 200c089218c5ae2d8830971af7754fe4647b2576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c326bedd242f8170d3a9b93293b06819a32a8a1fc09c328cb60e3f7dbb8837e83aa00e3d6aa414c348a0da7b713edd93c793cc727547ef9e6659ad00d35531c8
|
7
|
+
data.tar.gz: 7ea41918f2da5ff7fd8c2799fe990f9bf39b4090cc85c55e3970f1bfa2190bae1d2b04dbc1ae06409f0357a21a45ca81bee28f88e9e47d8535794b8564aa54f1
|
data/README.md
CHANGED
@@ -19,13 +19,13 @@ Or install it yourself as:
|
|
19
19
|
$ gem install google_cloud_vision
|
20
20
|
|
21
21
|
## Usage
|
22
|
-
The three types of detecttion done by the Google Cloud Vision API are Label Detection, which tries to identify what is in the image, Face Detection, which detects the position and sentiment of faces, and Text Detection which will return the text found in the photo. You can pass in an array of images and the type of detection you want like so:
|
22
|
+
The three types of detecttion done by the Google Cloud Vision API are Label Detection, which tries to identify what is in the image, Face Detection, which detects the position and sentiment of faces, and Text Detection which will return the text found in the photo. You can pass in an array of images and the type of detection you want like so. You can also specify the number of results per image with the optional max_results atribute:
|
23
23
|
|
24
24
|
```
|
25
25
|
puts GoogleCloudVision::Classifier.new('[YOUR_API_KEY]',
|
26
26
|
[
|
27
|
-
{image: './text.png', detection: 'TEXT_DETECTION'},
|
28
|
-
{image: './sushi.jpg', detection: 'LABEL_DETECTION'}
|
27
|
+
{ image: './text.png', detection: 'TEXT_DETECTION', max_results: 10 },
|
28
|
+
{ image: './sushi.jpg', detection: 'LABEL_DETECTION', max_results: 10 }
|
29
29
|
]).response
|
30
30
|
```
|
31
31
|
|
data/lib/google_cloud_vision.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_cloud_vision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Rusnak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|