KanduAI SDK  1.1
Functions
face_detection_c_api.h File Reference
#include "api_types.h"

Go to the source code of this file.

Functions

void * rf_face_detection_init (const char *detection_path, rf_error_type *error)
 
void rf_face_detection_close (void *face_detection_handle, rf_error_type *error)
 
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)
 

Function Documentation

◆ rf_face_detection_close()

void rf_face_detection_close ( void *  face_detection_handle,
rf_error_type error 
)

Deletes face detector.

Parameters
face_detection_handleface detector handle
erroroutput parameter to return an error details

◆ rf_face_detection_detect()

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_handleface detector handle
image_handleimage handle (use image API to create)
out_boxesreturns 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)
erroroutput parameter to return an error details

◆ rf_face_detection_init()

void* rf_face_detection_init ( const char *  detection_path,
rf_error_type error 
)

Initializes face detector.

Parameters
detection_pathpath to the detection model
erroroutput parameter to return an error details
Returns
face detector handle