Face Detection¶
Face Detection description
Functions
-
void *
rf_face_detection_init(const char *detection_path, rf_error_type *error)¶ Initializes face detector.
- Return
face detector handle
- Parameters
detection_path: path to the detection modelerror: output parameter to return an error details
-
void
rf_face_detection_close(void *face_detection_handle, rf_error_type *error)¶ Deletes face detector.
- Parameters
face_detection_handle: face detector handleerror: output parameter to return an error details
-
void
rf_face_detection_detect(void *rf_face_descriptor, void *image_handle, float score_threshold, float nms_threshold, rf_face_descriptor_list *out_descriptors, rf_error_type *error)¶ Detects all faces in given image.
- Parameters
face_detection_handle: face detector handleimage_handle: image handle (use image API to create)out_boxes: returns flattened array of all bounding boxes in image. Each bounding box is represented by for 4 consecutive points and 1 score - (ymin, xmin, ymax, xmax) fot top-left corner and bottom-right corner coordinates, accordingly and the score for this box (from 0 to 100)error: output parameter to return an error details