google-cloud-vision 0.22.1 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/vision.rb +133 -6
- data/lib/google/cloud/vision/annotate.rb +55 -24
- data/lib/google/cloud/vision/annotation.rb +93 -11
- data/lib/google/cloud/vision/annotation/crop_hint.rb +126 -0
- data/lib/google/cloud/vision/annotation/text.rb +789 -11
- data/lib/google/cloud/vision/annotation/web.rb +420 -0
- data/lib/google/cloud/vision/image.rb +153 -17
- data/lib/google/cloud/vision/project.rb +29 -8
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb +148 -81
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb +231 -0
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/web_detection.rb +73 -0
- data/lib/google/cloud/vision/v1/image_annotator_client.rb +4 -4
- data/lib/google/cloud/vision/v1/image_annotator_pb.rb +24 -0
- data/lib/google/cloud/vision/v1/image_annotator_services_pb.rb +3 -3
- data/lib/google/cloud/vision/v1/text_annotation_pb.rb +88 -0
- data/lib/google/cloud/vision/v1/web_detection_pb.rb +40 -0
- data/lib/google/cloud/vision/version.rb +1 -1
- metadata +8 -2
@@ -0,0 +1,40 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/vision/v1/web_detection.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "google.cloud.vision.v1.WebDetection" do
|
9
|
+
repeated :web_entities, :message, 1, "google.cloud.vision.v1.WebDetection.WebEntity"
|
10
|
+
repeated :full_matching_images, :message, 2, "google.cloud.vision.v1.WebDetection.WebImage"
|
11
|
+
repeated :partial_matching_images, :message, 3, "google.cloud.vision.v1.WebDetection.WebImage"
|
12
|
+
repeated :pages_with_matching_images, :message, 4, "google.cloud.vision.v1.WebDetection.WebPage"
|
13
|
+
end
|
14
|
+
add_message "google.cloud.vision.v1.WebDetection.WebEntity" do
|
15
|
+
optional :entity_id, :string, 1
|
16
|
+
optional :score, :float, 2
|
17
|
+
optional :description, :string, 3
|
18
|
+
end
|
19
|
+
add_message "google.cloud.vision.v1.WebDetection.WebImage" do
|
20
|
+
optional :url, :string, 1
|
21
|
+
optional :score, :float, 2
|
22
|
+
end
|
23
|
+
add_message "google.cloud.vision.v1.WebDetection.WebPage" do
|
24
|
+
optional :url, :string, 1
|
25
|
+
optional :score, :float, 2
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module Vision
|
32
|
+
module V1
|
33
|
+
WebDetection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.WebDetection").msgclass
|
34
|
+
WebDetection::WebEntity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.WebDetection.WebEntity").msgclass
|
35
|
+
WebDetection::WebImage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.WebDetection.WebImage").msgclass
|
36
|
+
WebDetection::WebPage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.WebDetection.WebPage").msgclass
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-vision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-03-
|
12
|
+
date: 2017-03-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -180,12 +180,14 @@ files:
|
|
180
180
|
- lib/google/cloud/vision.rb
|
181
181
|
- lib/google/cloud/vision/annotate.rb
|
182
182
|
- lib/google/cloud/vision/annotation.rb
|
183
|
+
- lib/google/cloud/vision/annotation/crop_hint.rb
|
183
184
|
- lib/google/cloud/vision/annotation/entity.rb
|
184
185
|
- lib/google/cloud/vision/annotation/face.rb
|
185
186
|
- lib/google/cloud/vision/annotation/properties.rb
|
186
187
|
- lib/google/cloud/vision/annotation/safe_search.rb
|
187
188
|
- lib/google/cloud/vision/annotation/text.rb
|
188
189
|
- lib/google/cloud/vision/annotation/vertex.rb
|
190
|
+
- lib/google/cloud/vision/annotation/web.rb
|
189
191
|
- lib/google/cloud/vision/credentials.rb
|
190
192
|
- lib/google/cloud/vision/image.rb
|
191
193
|
- lib/google/cloud/vision/location.rb
|
@@ -194,6 +196,8 @@ files:
|
|
194
196
|
- lib/google/cloud/vision/v1.rb
|
195
197
|
- lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/geometry.rb
|
196
198
|
- lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb
|
199
|
+
- lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb
|
200
|
+
- lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/web_detection.rb
|
197
201
|
- lib/google/cloud/vision/v1/doc/google/protobuf/any.rb
|
198
202
|
- lib/google/cloud/vision/v1/doc/google/protobuf/wrappers.rb
|
199
203
|
- lib/google/cloud/vision/v1/doc/google/rpc/status.rb
|
@@ -204,6 +208,8 @@ files:
|
|
204
208
|
- lib/google/cloud/vision/v1/image_annotator_client_config.json
|
205
209
|
- lib/google/cloud/vision/v1/image_annotator_pb.rb
|
206
210
|
- lib/google/cloud/vision/v1/image_annotator_services_pb.rb
|
211
|
+
- lib/google/cloud/vision/v1/text_annotation_pb.rb
|
212
|
+
- lib/google/cloud/vision/v1/web_detection_pb.rb
|
207
213
|
- lib/google/cloud/vision/version.rb
|
208
214
|
homepage: http://googlecloudplatform.github.io/google-cloud-ruby/
|
209
215
|
licenses:
|