face.proto 2.0 KB

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