1 // Copyright 2017 Google Inc.
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.
17 package google.cloud.vision.v1p1beta1;
19 import "google/api/annotations.proto";
21 option cc_enable_arenas = true;
22 option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1;vision";
23 option java_multiple_files = true;
24 option java_outer_classname = "WebDetectionProto";
25 option java_package = "com.google.cloud.vision.v1p1beta1";
27 // Relevant information for the image from the Internet.
28 message WebDetection {
29 // Entity deduced from similar images on the Internet.
34 // Overall relevancy score for the entity.
35 // Not normalized and not comparable across different image queries.
38 // Canonical description of the entity, in English.
39 string description = 3;
42 // Metadata for online images.
44 // The result image URL.
47 // (Deprecated) Overall relevancy score for the image.
51 // Metadata for web pages.
53 // The result web page URL.
56 // (Deprecated) Overall relevancy score for the web page.
59 // Title for the web page, may contain HTML markups.
60 string page_title = 3;
62 // Fully matching images on the page.
63 // Can include resized copies of the query image.
64 repeated WebImage full_matching_images = 4;
66 // Partial matching images on the page.
67 // Those images are similar enough to share some key-point features. For
68 // example an original image will likely have partial matching for its
70 repeated WebImage partial_matching_images = 5;
73 // Label to provide extra metadata for the web detection.
75 // Label for extra metadata.
78 // The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
79 // For more information, see
80 // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
81 string language_code = 2;
84 // Deduced entities from similar images on the Internet.
85 repeated WebEntity web_entities = 1;
87 // Fully matching images from the Internet.
88 // Can include resized copies of the query image.
89 repeated WebImage full_matching_images = 2;
91 // Partial matching images from the Internet.
92 // Those images are similar enough to share some key-point features. For
93 // example an original image will likely have partial matching for its crops.
94 repeated WebImage partial_matching_images = 3;
96 // Web pages containing the matching images from the Internet.
97 repeated WebPage pages_with_matching_images = 4;
99 // The visually similar image results.
100 repeated WebImage visually_similar_images = 6;
102 // Best guess text labels for the request image.
103 repeated WebLabel best_guess_labels = 8;