Class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1FaceRecognitionResult
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1FaceRecognitionResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vision_v1p1beta1/classes.rb,
lib/google/apis/vision_v1p1beta1/representations.rb,
lib/google/apis/vision_v1p1beta1/representations.rb
Overview
Information about a face's identity.
Instance Attribute Summary collapse
-
#celebrity ⇒ Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1Celebrity
A Celebrity is a group of Faces with an identity.
-
#confidence ⇒ Float
Recognition confidence.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVisionV1p4beta1FaceRecognitionResult
constructor
A new instance of GoogleCloudVisionV1p4beta1FaceRecognitionResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p4beta1FaceRecognitionResult
Returns a new instance of GoogleCloudVisionV1p4beta1FaceRecognitionResult.
7534 7535 7536 |
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 7534 def initialize(**args) update!(**args) end |
Instance Attribute Details
#celebrity ⇒ Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1Celebrity
A Celebrity is a group of Faces with an identity.
Corresponds to the JSON property celebrity
7527 7528 7529 |
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 7527 def celebrity @celebrity end |
#confidence ⇒ Float
Recognition confidence. Range [0, 1].
Corresponds to the JSON property confidence
7532 7533 7534 |
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 7532 def confidence @confidence end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7539 7540 7541 7542 |
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 7539 def update!(**args) @celebrity = args[:celebrity] if args.key?(:celebrity) @confidence = args[:confidence] if args.key?(:confidence) end |