camera_config_vf_face_detect()
Configure viewfinder face detection.
Synopsis:
#include <camera/camera_api.h>
camera_error_t camera_config_vf_face_detect(camera_handle_t handle, bool enable)
Arguments:
- handle
-
The handle returned by a call to the camera_open() function.
- enable
-
Set to true to enable face detection, or false otherwise.
Library:
libcamapiDescription:
This function can be called if the viewfinder face-detection feature is available. You can check for this by querying CAMERA_FEATURE_VFFACEDETECT using the camera_can_feature() function.
Returns:
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.