hri.face.Face¶
- class hri.face.Face(id, tf_buffer, reference_frame)¶
Represents a detected face.
- __init__(id, tf_buffer, reference_frame)¶
Methods
__init__(id, tf_buffer, reference_frame)close()gaze_transform([from_frame])Returns a ROS TransformStamped of the face's gaze, from the from_frame reference basis.
transform([from_frame])Returns a ROS TransformStamped of the face, from the from_frame reference basis.
Attributes
validReturns True if this face still exists (and thus is valid).
idthe face ID
nsthe full namespace of the face
framethe face tf frame name
gaze_framethe corresponding gaze tf frame name
roithe face's region of interest (normalised between 0.
alignedthe cropped and aligned (eg, the two eyes are aligned horizontally) face image, as an OpenCV/numpy array, if available
landmarksextracted facial landmarks, as a hri_msgs/FacialLnadmark object, if available
softbiometricsestimated 'soft biometrics' (eg age, gender) of the face, as a hri_msgs/SoftBiometrics object, if available