camera_config_photo_face_detect()

Configure still-image face-detection.

Synopsis:

#include <camera/camera_api.h>
 
camera_error_t camera_config_photo_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:

libcamapi

Description:

This function can be called if the CAMERA_FEATURE_FACEDETECT feature is enabled. You can determine whether the feature is available by calling the camera_can_feature() function.

Returns:

CAMERA_OK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.