Class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1FaceRecognitionResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/vision_v1p1beta1/classes.rb,
generated/google/apis/vision_v1p1beta1/representations.rb,
generated/google/apis/vision_v1p1beta1/representations.rb

Overview

Information about a face's identity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVisionV1p4beta1FaceRecognitionResult

Returns a new instance of GoogleCloudVisionV1p4beta1FaceRecognitionResult.



7451
7452
7453
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 7451

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#celebrityGoogle::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1Celebrity

A Celebrity is a group of Faces with an identity. Corresponds to the JSON property celebrity



7444
7445
7446
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 7444

def celebrity
  @celebrity
end

#confidenceFloat

Recognition confidence. Range [0, 1]. Corresponds to the JSON property confidence

Returns:

  • (Float)


7449
7450
7451
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 7449

def confidence
  @confidence
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7456
7457
7458
7459
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 7456

def update!(**args)
  @celebrity = args[:celebrity] if args.key?(:celebrity)
  @confidence = args[:confidence] if args.key?(:confidence)
end