1// Copyright 2019 Google LLC. 2// 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 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 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. 14// 15 16syntax = "proto3"; 17 18package google.cloud.vision.v1p4beta1; 19 20import "google/cloud/vision/v1p4beta1/geometry.proto"; 21 22option cc_enable_arenas = true; 23option go_package = "cloud.google.com/go/vision/apiv1p4beta1/visionpb;visionpb"; 24option java_multiple_files = true; 25option java_outer_classname = "CelebrityProto"; 26option java_package = "com.google.cloud.vision.v1p4beta1"; 27option objc_class_prefix = "GCVN"; 28 29// Parameters for a celebrity recognition request. 30message FaceRecognitionParams { 31 // The resource names for one or more 32 // [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity 33 // set is preloaded and can be specified as "builtin/default". If this is 34 // specified, the algorithm will try to match the faces detected in the input 35 // image to the Celebrities in the CelebritySets. 36 repeated string celebrity_set = 1; 37} 38 39// A Celebrity is a group of Faces with an identity. 40message Celebrity { 41 // The resource name of the preloaded Celebrity. Has the format 42 // `builtin/{mid}`. 43 string name = 1; 44 45 // The Celebrity's display name. 46 string display_name = 2; 47 48 // The Celebrity's description. 49 string description = 3; 50} 51 52// Information about a face's identity. 53message FaceRecognitionResult { 54 // The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was 55 // matched to. 56 Celebrity celebrity = 1; 57 58 // Recognition confidence. Range [0, 1]. 59 float confidence = 2; 60} 61