camera_meta_get_face_score()

Retrieve the score that represents the certainty that a face has been detected in the image.

Synopsis:

#include <camera/camera_meta.h>
 
int camera_meta_get_face_score(const camera_metadata_t metadata, float *score)

Arguments:

metadata

The metadata supplied to the user-defined consumer function by camera_meta_iterate_metadata().

score

The returned face score as a value between 0 and 100.

Library:

libcamapi

Description:

This function is used to retrieve the score information (or face score) from the provided face metadata. The score is a value between 0 and 100 that represents the confidence that the object identified in the image is a face.

Returns:

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