class Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceAnnotation

A face annotation object contains the results of face detection.

Attributes

anger_likelihood[RW]

Anger likelihood. Corresponds to the JSON property `angerLikelihood` @return [String]

blurred_likelihood[RW]

Blurred likelihood. Corresponds to the JSON property `blurredLikelihood` @return [String]

bounding_poly[RW]

A bounding polygon for the detected image annotation. Corresponds to the JSON property `boundingPoly` @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]

detection_confidence[RW]

Detection confidence. Range [0, 1]. Corresponds to the JSON property `detectionConfidence` @return [Float]

fd_bounding_poly[RW]

A bounding polygon for the detected image annotation. Corresponds to the JSON property `fdBoundingPoly` @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]

headwear_likelihood[RW]

Headwear likelihood. Corresponds to the JSON property `headwearLikelihood` @return [String]

joy_likelihood[RW]

Joy likelihood. Corresponds to the JSON property `joyLikelihood` @return [String]

landmarking_confidence[RW]

Face landmarking confidence. Range [0, 1]. Corresponds to the JSON property `landmarkingConfidence` @return [Float]

landmarks[RW]

Detected face landmarks. Corresponds to the JSON property `landmarks` @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceAnnotationLandmark>]

pan_angle[RW]

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]

recognition_result[RW]

Additional recognition information. Only computed if image_context. face_recognition_params is provided, and a match is found to a Celebrity in the input CelebritySet. This field is sorted in order of decreasing confidence values. Corresponds to the JSON property `recognitionResult` @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceRecognitionResult>]

roll_angle[RW]

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[RW]

Sorrow likelihood. Corresponds to the JSON property `sorrowLikelihood` @return [String]

surprise_likelihood[RW]

Surprise likelihood. Corresponds to the JSON property `surpriseLikelihood` @return [String]

tilt_angle[RW]

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[RW]

Under-exposed likelihood. Corresponds to the JSON property `underExposedLikelihood` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1/classes.rb, line 7196
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vision_v1/classes.rb, line 7201
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)
  @recognition_result = args[:recognition_result] if args.key?(:recognition_result)
  @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