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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3bac19209109e303fb5daea66266a07e9ea44de
4
- data.tar.gz: bca785eddb625c53ff17be582bbc44d2e855b17e
3
+ metadata.gz: cef62bdd806d4457f816032cf244ba55c492f948
4
+ data.tar.gz: 200c089218c5ae2d8830971af7754fe4647b2576
5
5
  SHA512:
6
- metadata.gz: a9df69ef6db2d8b36712e5a42b0d20f1f1baf7fb5e08e19f5e694b2905fe87b3a7aecc67ba41ee4742bf50d9b743eb72c03a3e2c52e305dcdb0ac48b941f5e46
7
- data.tar.gz: 30b93873d756a5ea64c759a468b449ec702b8bc781340ffdf0a381be6170d8459cf47541b78ef3c76c849e7d2a1155c3c5b06988ae3cfd59e613edb1399f4d6d
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
 
@@ -32,7 +32,7 @@ module GoogleCloudVision
32
32
  },
33
33
  features: {
34
34
  type: image[:detection],
35
- maxResults: 1
35
+ maxResults: image[:max_results] || 1
36
36
  }
37
37
  }
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module GoogleCloudVision
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-04 00:00:00.000000000 Z
11
+ date: 2016-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler