google-cloud-vision-v1p3beta1 0.5.5 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/lib/google/cloud/vision/v1p3beta1/geometry_pb.rb +0 -5
- data/lib/google/cloud/vision/v1p3beta1/image_annotator_pb.rb +2 -1
- data/lib/google/cloud/vision/v1p3beta1/product_search_pb.rb +14 -25
- data/lib/google/cloud/vision/v1p3beta1/product_search_service_pb.rb +2 -1
- data/lib/google/cloud/vision/v1p3beta1/text_annotation_pb.rb +2 -1
- data/lib/google/cloud/vision/v1p3beta1/version.rb +1 -1
- data/lib/google/cloud/vision/v1p3beta1/web_detection_pb.rb +2 -1
- data/lib/google/cloud/vision/v1p3beta1.rb +2 -0
- data/proto_docs/google/cloud/vision/v1p3beta1/geometry.rb +0 -9
- data/proto_docs/google/cloud/vision/v1p3beta1/product_search.rb +55 -93
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fe5829fd077e67cfa8e12ec5f6efc6f2d9f1e72c1dd971a13229e447e22b286
|
4
|
+
data.tar.gz: 969c954c1a0c9c0a471ed6fb93bf48fd3137229565ebf14b683dcd6bb194bcdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: feb679ba8175e76abf4bcc2d46de0748470e3289c44a34804a55702a625222af462688cc6b1997d916a350e9cc72cafacd448705ad283ef5ffddcf67e852c909
|
7
|
+
data.tar.gz: d612ae93af0484a7ca5ea1052583e17b6130b5827a4778acbd4491f2de7c8c4c63a3a48e96dc0972c8f328a3809e6d74afd987c38e87d2231574fbe38f2f6cfc
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest.new # (req
|
|
37
37
|
response = client.create_product_set request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p3beta1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/vision)
|
@@ -69,6 +69,11 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
79
|
This library is supported on Ruby 2.5+.
|
@@ -1,7 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1p3beta1/geometry.proto
|
3
3
|
|
4
|
-
require 'google/api/annotations_pb'
|
5
4
|
require 'google/protobuf'
|
6
5
|
|
7
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -18,9 +17,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
18
17
|
repeated :vertices, :message, 1, "google.cloud.vision.v1p3beta1.Vertex"
|
19
18
|
repeated :normalized_vertices, :message, 2, "google.cloud.vision.v1p3beta1.NormalizedVertex"
|
20
19
|
end
|
21
|
-
add_message "google.cloud.vision.v1p3beta1.NormalizedBoundingPoly" do
|
22
|
-
repeated :vertices, :message, 1, "google.cloud.vision.v1p3beta1.NormalizedVertex"
|
23
|
-
end
|
24
20
|
add_message "google.cloud.vision.v1p3beta1.Position" do
|
25
21
|
optional :x, :float, 1
|
26
22
|
optional :y, :float, 2
|
@@ -36,7 +32,6 @@ module Google
|
|
36
32
|
Vertex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.Vertex").msgclass
|
37
33
|
NormalizedVertex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.NormalizedVertex").msgclass
|
38
34
|
BoundingPoly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.BoundingPoly").msgclass
|
39
|
-
NormalizedBoundingPoly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.NormalizedBoundingPoly").msgclass
|
40
35
|
Position = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.Position").msgclass
|
41
36
|
end
|
42
37
|
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1p3beta1/image_annotator.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -13,7 +15,6 @@ require 'google/protobuf/timestamp_pb'
|
|
13
15
|
require 'google/rpc/status_pb'
|
14
16
|
require 'google/type/color_pb'
|
15
17
|
require 'google/type/latlng_pb'
|
16
|
-
require 'google/protobuf'
|
17
18
|
|
18
19
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
19
20
|
add_file("google/cloud/vision/v1p3beta1/image_annotator.proto", :syntax => :proto3) do
|
@@ -1,51 +1,41 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1p3beta1/product_search.proto
|
3
3
|
|
4
|
-
require 'google/
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
5
6
|
require 'google/api/resource_pb'
|
6
7
|
require 'google/cloud/vision/v1p3beta1/geometry_pb'
|
7
8
|
require 'google/cloud/vision/v1p3beta1/product_search_service_pb'
|
8
9
|
require 'google/protobuf/timestamp_pb'
|
9
|
-
require 'google/protobuf'
|
10
10
|
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/vision/v1p3beta1/product_search.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.vision.v1p3beta1.ProductSearchParams" do
|
14
|
-
optional :catalog_name, :string, 1
|
15
|
-
optional :category, :enum, 2, "google.cloud.vision.v1p3beta1.ProductSearchCategory"
|
16
|
-
optional :product_category, :string, 5
|
17
|
-
optional :normalized_bounding_poly, :message, 3, "google.cloud.vision.v1p3beta1.NormalizedBoundingPoly"
|
18
14
|
optional :bounding_poly, :message, 9, "google.cloud.vision.v1p3beta1.BoundingPoly"
|
19
|
-
optional :view, :enum, 4, "google.cloud.vision.v1p3beta1.ProductSearchResultsView"
|
20
15
|
optional :product_set, :string, 6
|
21
16
|
repeated :product_categories, :string, 7
|
22
17
|
optional :filter, :string, 8
|
23
18
|
end
|
24
19
|
add_message "google.cloud.vision.v1p3beta1.ProductSearchResults" do
|
25
|
-
optional :category, :enum, 1, "google.cloud.vision.v1p3beta1.ProductSearchCategory"
|
26
|
-
optional :product_category, :string, 4
|
27
20
|
optional :index_time, :message, 2, "google.protobuf.Timestamp"
|
28
|
-
repeated :products, :message, 3, "google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo"
|
29
21
|
repeated :results, :message, 5, "google.cloud.vision.v1p3beta1.ProductSearchResults.Result"
|
30
|
-
|
31
|
-
add_message "google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo" do
|
32
|
-
optional :product_id, :string, 1
|
33
|
-
optional :image_uri, :string, 2
|
34
|
-
optional :score, :float, 3
|
22
|
+
repeated :product_grouped_results, :message, 6, "google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult"
|
35
23
|
end
|
36
24
|
add_message "google.cloud.vision.v1p3beta1.ProductSearchResults.Result" do
|
37
25
|
optional :product, :message, 1, "google.cloud.vision.v1p3beta1.Product"
|
38
26
|
optional :score, :float, 2
|
39
27
|
optional :image, :string, 3
|
40
28
|
end
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
29
|
+
add_message "google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation" do
|
30
|
+
optional :mid, :string, 1
|
31
|
+
optional :language_code, :string, 2
|
32
|
+
optional :name, :string, 3
|
33
|
+
optional :score, :float, 4
|
45
34
|
end
|
46
|
-
|
47
|
-
|
48
|
-
|
35
|
+
add_message "google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult" do
|
36
|
+
optional :bounding_poly, :message, 1, "google.cloud.vision.v1p3beta1.BoundingPoly"
|
37
|
+
repeated :results, :message, 2, "google.cloud.vision.v1p3beta1.ProductSearchResults.Result"
|
38
|
+
repeated :object_annotations, :message, 3, "google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation"
|
49
39
|
end
|
50
40
|
end
|
51
41
|
end
|
@@ -56,10 +46,9 @@ module Google
|
|
56
46
|
module V1p3beta1
|
57
47
|
ProductSearchParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.ProductSearchParams").msgclass
|
58
48
|
ProductSearchResults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.ProductSearchResults").msgclass
|
59
|
-
ProductSearchResults::ProductInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo").msgclass
|
60
49
|
ProductSearchResults::Result = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.ProductSearchResults.Result").msgclass
|
61
|
-
|
62
|
-
|
50
|
+
ProductSearchResults::ObjectAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation").msgclass
|
51
|
+
ProductSearchResults::GroupedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult").msgclass
|
63
52
|
end
|
64
53
|
end
|
65
54
|
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1p3beta1/product_search_service.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -11,7 +13,6 @@ require 'google/protobuf/empty_pb'
|
|
11
13
|
require 'google/protobuf/field_mask_pb'
|
12
14
|
require 'google/protobuf/timestamp_pb'
|
13
15
|
require 'google/rpc/status_pb'
|
14
|
-
require 'google/protobuf'
|
15
16
|
|
16
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
18
|
add_file("google/cloud/vision/v1p3beta1/product_search_service.proto", :syntax => :proto3) do
|
@@ -1,9 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1p3beta1/text_annotation.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/cloud/vision/v1p3beta1/geometry_pb'
|
6
|
-
require 'google/protobuf'
|
7
8
|
|
8
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
10
|
add_file("google/cloud/vision/v1p3beta1/text_annotation.proto", :syntax => :proto3) do
|
@@ -1,9 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1p3beta1/web_detection.proto
|
3
3
|
|
4
|
-
require 'google/api/annotations_pb'
|
5
4
|
require 'google/protobuf'
|
6
5
|
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
|
7
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
9
|
add_file("google/cloud/vision/v1p3beta1/web_detection.proto", :syntax => :proto3) do
|
9
10
|
add_message "google.cloud.vision.v1p3beta1.WebDetection" do
|
@@ -60,15 +60,6 @@ module Google
|
|
60
60
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
61
61
|
end
|
62
62
|
|
63
|
-
# A normalized bounding polygon around a portion of an image.
|
64
|
-
# @!attribute [rw] vertices
|
65
|
-
# @return [::Array<::Google::Cloud::Vision::V1p3beta1::NormalizedVertex>]
|
66
|
-
# Normalized vertices of the bounding polygon.
|
67
|
-
class NormalizedBoundingPoly
|
68
|
-
include ::Google::Protobuf::MessageExts
|
69
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
70
|
-
end
|
71
|
-
|
72
63
|
# A 3D position in the image, used primarily for Face detection landmarks.
|
73
64
|
# A valid Position must have both x and y coordinates.
|
74
65
|
# The position coordinates are in the same scale as the original image.
|
@@ -22,107 +22,59 @@ module Google
|
|
22
22
|
module Vision
|
23
23
|
module V1p3beta1
|
24
24
|
# Parameters for a product search request.
|
25
|
-
# @!attribute [rw] catalog_name
|
26
|
-
# @return [::String]
|
27
|
-
# The resource name of the catalog to search.
|
28
|
-
#
|
29
|
-
# Format is: `productSearch/catalogs/CATALOG_NAME`.
|
30
|
-
# @!attribute [rw] category
|
31
|
-
# @return [::Google::Cloud::Vision::V1p3beta1::ProductSearchCategory]
|
32
|
-
# The category to search in.
|
33
|
-
# Optional. It is inferred by the system if it is not specified.
|
34
|
-
# [Deprecated] Use `product_category`.
|
35
|
-
# @!attribute [rw] product_category
|
36
|
-
# @return [::String]
|
37
|
-
# The product category to search in.
|
38
|
-
# Optional. It is inferred by the system if it is not specified.
|
39
|
-
# Supported values are `bag`, `shoe`, `sunglasses`, `dress`, `outerwear`,
|
40
|
-
# `skirt`, `top`, `shorts`, and `pants`.
|
41
|
-
# @!attribute [rw] normalized_bounding_poly
|
42
|
-
# @return [::Google::Cloud::Vision::V1p3beta1::NormalizedBoundingPoly]
|
43
|
-
# The bounding polygon around the area of interest in the image.
|
44
|
-
# Optional. If it is not specified, system discretion will be applied.
|
45
|
-
# [Deprecated] Use `bounding_poly`.
|
46
25
|
# @!attribute [rw] bounding_poly
|
47
26
|
# @return [::Google::Cloud::Vision::V1p3beta1::BoundingPoly]
|
48
27
|
# The bounding polygon around the area of interest in the image.
|
49
|
-
#
|
50
|
-
# @!attribute [rw] view
|
51
|
-
# @return [::Google::Cloud::Vision::V1p3beta1::ProductSearchResultsView]
|
52
|
-
# Specifies the verbosity of the product search results.
|
53
|
-
# Optional. Defaults to `BASIC`.
|
28
|
+
# If it is not specified, system discretion will be applied.
|
54
29
|
# @!attribute [rw] product_set
|
55
30
|
# @return [::String]
|
56
|
-
# The resource name of a
|
57
|
-
# {::Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} to be searched for
|
58
|
-
# similar images.
|
31
|
+
# The resource name of a {::Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} to be searched for similar images.
|
59
32
|
#
|
60
33
|
# Format is:
|
61
34
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
|
62
35
|
# @!attribute [rw] product_categories
|
63
36
|
# @return [::Array<::String>]
|
64
37
|
# The list of product categories to search in. Currently, we only consider
|
65
|
-
# the first category, and either "homegoods"
|
66
|
-
# specified.
|
38
|
+
# the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
|
39
|
+
# "packagedgoods-v1", or "general-v1" should be specified. The legacy
|
40
|
+
# categories "homegoods", "apparel", and "toys" are still supported but will
|
41
|
+
# be deprecated. For new products, please use "homegoods-v2", "apparel-v2",
|
42
|
+
# or "toys-v2" for better product search accuracy. It is recommended to
|
43
|
+
# migrate existing products to these categories as well.
|
67
44
|
# @!attribute [rw] filter
|
68
45
|
# @return [::String]
|
69
46
|
# The filtering expression. This can be used to restrict search results based
|
70
47
|
# on Product labels. We currently support an AND of OR of key-value
|
71
|
-
# expressions, where each expression within an OR must have the same key.
|
48
|
+
# expressions, where each expression within an OR must have the same key. An
|
49
|
+
# '=' should be used to connect the key and value.
|
72
50
|
#
|
73
51
|
# For example, "(color = red OR color = blue) AND brand = Google" is
|
74
|
-
# acceptable, but
|
52
|
+
# acceptable, but "(color = red OR brand = Google)" is not acceptable.
|
53
|
+
# "color: red" is not acceptable because it uses a ':' instead of an '='.
|
75
54
|
class ProductSearchParams
|
76
55
|
include ::Google::Protobuf::MessageExts
|
77
56
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
78
57
|
end
|
79
58
|
|
80
59
|
# Results for a product search request.
|
81
|
-
# @!attribute [rw] category
|
82
|
-
# @return [::Google::Cloud::Vision::V1p3beta1::ProductSearchCategory]
|
83
|
-
# Product category.
|
84
|
-
# [Deprecated] Use `product_category`.
|
85
|
-
# @!attribute [rw] product_category
|
86
|
-
# @return [::String]
|
87
|
-
# Product category.
|
88
|
-
# Supported values are `bag` and `shoe`.
|
89
|
-
# [Deprecated] `product_category` is provided in each Product.
|
90
60
|
# @!attribute [rw] index_time
|
91
61
|
# @return [::Google::Protobuf::Timestamp]
|
92
|
-
# Timestamp of the index which provided these results.
|
93
|
-
#
|
94
|
-
#
|
95
|
-
# @return [::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::ProductInfo>]
|
96
|
-
# List of detected products.
|
62
|
+
# Timestamp of the index which provided these results. Products added to the
|
63
|
+
# product set and products removed from the product set after this time are
|
64
|
+
# not reflected in the current results.
|
97
65
|
# @!attribute [rw] results
|
98
66
|
# @return [::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::Result>]
|
99
67
|
# List of results, one for each product match.
|
68
|
+
# @!attribute [rw] product_grouped_results
|
69
|
+
# @return [::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::GroupedResult>]
|
70
|
+
# List of results grouped by products detected in the query image. Each entry
|
71
|
+
# corresponds to one bounding polygon in the query image, and contains the
|
72
|
+
# matching products specific to that region. There may be duplicate product
|
73
|
+
# matches in the union of all the per-product results.
|
100
74
|
class ProductSearchResults
|
101
75
|
include ::Google::Protobuf::MessageExts
|
102
76
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
103
77
|
|
104
|
-
# Information about a product.
|
105
|
-
# @!attribute [rw] product_id
|
106
|
-
# @return [::String]
|
107
|
-
# Product ID.
|
108
|
-
# @!attribute [rw] image_uri
|
109
|
-
# @return [::String]
|
110
|
-
# The URI of the image which matched the query image.
|
111
|
-
#
|
112
|
-
# This field is returned only if `view` is set to `FULL` in
|
113
|
-
# the request.
|
114
|
-
# @!attribute [rw] score
|
115
|
-
# @return [::Float]
|
116
|
-
# A confidence level on the match, ranging from 0 (no confidence) to
|
117
|
-
# 1 (full confidence).
|
118
|
-
#
|
119
|
-
# This field is returned only if `view` is set to `FULL` in
|
120
|
-
# the request.
|
121
|
-
class ProductInfo
|
122
|
-
include ::Google::Protobuf::MessageExts
|
123
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
124
|
-
end
|
125
|
-
|
126
78
|
# Information about a product.
|
127
79
|
# @!attribute [rw] product
|
128
80
|
# @return [::Google::Cloud::Vision::V1p3beta1::Product]
|
@@ -131,9 +83,6 @@ module Google
|
|
131
83
|
# @return [::Float]
|
132
84
|
# A confidence level on the match, ranging from 0 (no confidence) to
|
133
85
|
# 1 (full confidence).
|
134
|
-
#
|
135
|
-
# This field is returned only if `view` is set to `FULL` in
|
136
|
-
# the request.
|
137
86
|
# @!attribute [rw] image
|
138
87
|
# @return [::String]
|
139
88
|
# The resource name of the image from the product that is the closest match
|
@@ -142,29 +91,42 @@ module Google
|
|
142
91
|
include ::Google::Protobuf::MessageExts
|
143
92
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
144
93
|
end
|
145
|
-
end
|
146
|
-
|
147
|
-
# Supported product search categories.
|
148
|
-
module ProductSearchCategory
|
149
|
-
# Default value used when a category is not specified.
|
150
|
-
PRODUCT_SEARCH_CATEGORY_UNSPECIFIED = 0
|
151
|
-
|
152
|
-
# Shoes category.
|
153
|
-
SHOES = 1
|
154
|
-
|
155
|
-
# Bags category.
|
156
|
-
BAGS = 2
|
157
|
-
end
|
158
94
|
|
159
|
-
|
160
|
-
|
161
|
-
#
|
162
|
-
#
|
163
|
-
|
95
|
+
# Prediction for what the object in the bounding box is.
|
96
|
+
# @!attribute [rw] mid
|
97
|
+
# @return [::String]
|
98
|
+
# Object ID that should align with EntityAnnotation mid.
|
99
|
+
# @!attribute [rw] language_code
|
100
|
+
# @return [::String]
|
101
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
102
|
+
# information, see
|
103
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
104
|
+
# @!attribute [rw] name
|
105
|
+
# @return [::String]
|
106
|
+
# Object name, expressed in its `language_code` language.
|
107
|
+
# @!attribute [rw] score
|
108
|
+
# @return [::Float]
|
109
|
+
# Score of the result. Range [0, 1].
|
110
|
+
class ObjectAnnotation
|
111
|
+
include ::Google::Protobuf::MessageExts
|
112
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
|
+
end
|
164
114
|
|
165
|
-
#
|
166
|
-
#
|
167
|
-
|
115
|
+
# Information about the products similar to a single product in a query
|
116
|
+
# image.
|
117
|
+
# @!attribute [rw] bounding_poly
|
118
|
+
# @return [::Google::Cloud::Vision::V1p3beta1::BoundingPoly]
|
119
|
+
# The bounding polygon around the product detected in the query image.
|
120
|
+
# @!attribute [rw] results
|
121
|
+
# @return [::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::Result>]
|
122
|
+
# List of results, one for each product match.
|
123
|
+
# @!attribute [rw] object_annotations
|
124
|
+
# @return [::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::ObjectAnnotation>]
|
125
|
+
# List of generic predictions for the object in the bounding box.
|
126
|
+
class GroupedResult
|
127
|
+
include ::Google::Protobuf::MessageExts
|
128
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
129
|
+
end
|
168
130
|
end
|
169
131
|
end
|
170
132
|
end
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-vision-v1p3beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
231
|
- !ruby/object:Gem::Version
|
232
232
|
version: '0'
|
233
233
|
requirements: []
|
234
|
-
rubygems_version: 3.3.
|
234
|
+
rubygems_version: 3.3.5
|
235
235
|
signing_key:
|
236
236
|
specification_version: 4
|
237
237
|
summary: API Client library for the Cloud Vision V1p3beta1 API
|