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