class Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1FaceAnnotation
A face annotation object contains the results of face detection.
Attributes
Anger likelihood. Corresponds to the JSON property `angerLikelihood` @return [String]
Blurred likelihood. Corresponds to the JSON property `blurredLikelihood` @return [String]
A bounding polygon for the detected image annotation. Corresponds to the JSON property `boundingPoly` @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly]
Detection confidence. Range [0, 1]. Corresponds to the JSON property `detectionConfidence` @return [Float]
A bounding polygon for the detected image annotation. Corresponds to the JSON property `fdBoundingPoly` @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly]
Headwear likelihood. Corresponds to the JSON property `headwearLikelihood` @return [String]
Joy likelihood. Corresponds to the JSON property `joyLikelihood` @return [String]
Face landmarking confidence. Range [0, 1]. Corresponds to the JSON property `landmarkingConfidence` @return [Float]
Detected face landmarks. Corresponds to the JSON property `landmarks` @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1FaceAnnotationLandmark>]
Yaw angle, which indicates the leftward/rightward angle that the face is pointing relative to the vertical plane perpendicular to the image. Range [- 180,180]. Corresponds to the JSON property `panAngle` @return [Float]
Roll angle, which indicates the amount of clockwise/anti-clockwise rotation of the face relative to the image vertical about the axis perpendicular to the face. Range [-180,180]. Corresponds to the JSON property `rollAngle` @return [Float]
Sorrow likelihood. Corresponds to the JSON property `sorrowLikelihood` @return [String]
Surprise likelihood. Corresponds to the JSON property `surpriseLikelihood` @return [String]
Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to the image's horizontal plane. Range [-180,180]. Corresponds to the JSON property `tiltAngle` @return [Float]
Under-exposed likelihood. Corresponds to the JSON property `underExposedLikelihood` @return [String]
Public Class Methods
# File lib/google/apis/vision_v1p2beta1/classes.rb, line 1458 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/vision_v1p2beta1/classes.rb, line 1463 def update!(**args) @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood) @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood) @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence) @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly) @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood) @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood) @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence) @landmarks = args[:landmarks] if args.key?(:landmarks) @pan_angle = args[:pan_angle] if args.key?(:pan_angle) @roll_angle = args[:roll_angle] if args.key?(:roll_angle) @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood) @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle) @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood) end