camera_meta_get_face_yaw()
Extract the detected face yaw angle from the provided face metadata.
Synopsis:
#include <camera/camera_meta.h>
int camera_meta_get_face_yaw(const camera_metadata_t metadata, float *yaw)
Arguments:
- metadata
-
The metadata supplied to the user-defined consumer function by camera_meta_iterate_metadata().
- yaw
-
The angle of rotation of the face around the y-axis.
Library:
libcamapiDescription:
The yaw value ranges from -180 degrees to +180 degrees relative to the preview buffer coordinate space. A negative yaw angle indicates that the face is looking to the left from the face's frame of reference. A positive yaw angle indicates that the face is looking to the right from the face's frame of reference.
Returns:
CAMERA_EOK when the function successfully completes, CAMERA_ENODATA if the camera did not provide a roll value otherwise another camera_error_t value that provides the reason that the call failed.