xref: /aosp_15_r20/external/googleapis/google/cloud/vision/v1p4beta1/face.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1*d5c09012SAndroid Build Coastguard Worker// Copyright 2019 Google LLC.
2*d5c09012SAndroid Build Coastguard Worker//
3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*d5c09012SAndroid Build Coastguard Worker//
7*d5c09012SAndroid Build Coastguard Worker//     http://www.apache.org/licenses/LICENSE-2.0
8*d5c09012SAndroid Build Coastguard Worker//
9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*d5c09012SAndroid Build Coastguard Worker// limitations under the License.
14*d5c09012SAndroid Build Coastguard Worker//
15*d5c09012SAndroid Build Coastguard Worker
16*d5c09012SAndroid Build Coastguard Workersyntax = "proto3";
17*d5c09012SAndroid Build Coastguard Worker
18*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.vision.v1p4beta1;
19*d5c09012SAndroid Build Coastguard Worker
20*d5c09012SAndroid Build Coastguard Workerimport "google/cloud/vision/v1p4beta1/geometry.proto";
21*d5c09012SAndroid Build Coastguard Worker
22*d5c09012SAndroid Build Coastguard Workeroption cc_enable_arenas = true;
23*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/vision/apiv1p4beta1/visionpb;visionpb";
24*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
25*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "CelebrityProto";
26*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.vision.v1p4beta1";
27*d5c09012SAndroid Build Coastguard Workeroption objc_class_prefix = "GCVN";
28*d5c09012SAndroid Build Coastguard Worker
29*d5c09012SAndroid Build Coastguard Worker// Parameters for a celebrity recognition request.
30*d5c09012SAndroid Build Coastguard Workermessage FaceRecognitionParams {
31*d5c09012SAndroid Build Coastguard Worker  // The resource names for one or more
32*d5c09012SAndroid Build Coastguard Worker  // [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
33*d5c09012SAndroid Build Coastguard Worker  // set is preloaded and can be specified as "builtin/default". If this is
34*d5c09012SAndroid Build Coastguard Worker  // specified, the algorithm will try to match the faces detected in the input
35*d5c09012SAndroid Build Coastguard Worker  // image to the Celebrities in the CelebritySets.
36*d5c09012SAndroid Build Coastguard Worker  repeated string celebrity_set = 1;
37*d5c09012SAndroid Build Coastguard Worker}
38*d5c09012SAndroid Build Coastguard Worker
39*d5c09012SAndroid Build Coastguard Worker// A Celebrity is a group of Faces with an identity.
40*d5c09012SAndroid Build Coastguard Workermessage Celebrity {
41*d5c09012SAndroid Build Coastguard Worker  // The resource name of the preloaded Celebrity. Has the format
42*d5c09012SAndroid Build Coastguard Worker  // `builtin/{mid}`.
43*d5c09012SAndroid Build Coastguard Worker  string name = 1;
44*d5c09012SAndroid Build Coastguard Worker
45*d5c09012SAndroid Build Coastguard Worker  // The Celebrity's display name.
46*d5c09012SAndroid Build Coastguard Worker  string display_name = 2;
47*d5c09012SAndroid Build Coastguard Worker
48*d5c09012SAndroid Build Coastguard Worker  // The Celebrity's description.
49*d5c09012SAndroid Build Coastguard Worker  string description = 3;
50*d5c09012SAndroid Build Coastguard Worker}
51*d5c09012SAndroid Build Coastguard Worker
52*d5c09012SAndroid Build Coastguard Worker// Information about a face's identity.
53*d5c09012SAndroid Build Coastguard Workermessage FaceRecognitionResult {
54*d5c09012SAndroid Build Coastguard Worker  // The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
55*d5c09012SAndroid Build Coastguard Worker  // matched to.
56*d5c09012SAndroid Build Coastguard Worker  Celebrity celebrity = 1;
57*d5c09012SAndroid Build Coastguard Worker
58*d5c09012SAndroid Build Coastguard Worker  // Recognition confidence. Range [0, 1].
59*d5c09012SAndroid Build Coastguard Worker  float confidence = 2;
60*d5c09012SAndroid Build Coastguard Worker}
61