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

The flag to set whether face-detection is available. Set to true to enable face-detection, false otherwise.

Library:

libcamapi

Description:

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_OK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.