1 // Copyright 2018 Google LLC.
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
18 package google.cloud.vision.v1p4beta1;
20 import "google/api/annotations.proto";
22 option cc_enable_arenas = true;
23 option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1;vision";
24 option java_multiple_files = true;
25 option java_outer_classname = "WebDetectionProto";
26 option java_package = "com.google.cloud.vision.v1p4beta1";
27 option objc_class_prefix = "GCVN";
29 // Relevant information for the image from the Internet.
30 message WebDetection {
31 // Entity deduced from similar images on the Internet.
36 // Overall relevancy score for the entity.
37 // Not normalized and not comparable across different image queries.
40 // Canonical description of the entity, in English.
41 string description = 3;
44 // Metadata for online images.
46 // The result image URL.
49 // (Deprecated) Overall relevancy score for the image.
53 // Label to provide extra metadata for the web detection.
55 // Label for extra metadata.
58 // The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
59 // For more information, see
60 // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
61 string language_code = 2;
64 // Metadata for web pages.
66 // The result web page URL.
69 // (Deprecated) Overall relevancy score for the web page.
72 // Title for the web page, may contain HTML markups.
73 string page_title = 3;
75 // Fully matching images on the page.
76 // Can include resized copies of the query image.
77 repeated WebImage full_matching_images = 4;
79 // Partial matching images on the page.
80 // Those images are similar enough to share some key-point features. For
81 // example an original image will likely have partial matching for its
83 repeated WebImage partial_matching_images = 5;
86 // Deduced entities from similar images on the Internet.
87 repeated WebEntity web_entities = 1;
89 // Fully matching images from the Internet.
90 // Can include resized copies of the query image.
91 repeated WebImage full_matching_images = 2;
93 // Partial matching images from the Internet.
94 // Those images are similar enough to share some key-point features. For
95 // example an original image will likely have partial matching for its crops.
96 repeated WebImage partial_matching_images = 3;
98 // Web pages containing the matching images from the Internet.
99 repeated WebPage pages_with_matching_images = 4;
101 // The visually similar image results.
102 repeated WebImage visually_similar_images = 6;
104 // The service's best guess as to the topic of the request image.
105 // Inferred from similar images on the open web.
106 repeated WebLabel best_guess_labels = 8;