#ifndef _c_face_h_ #define _c_face_h_ #ifdef __cplusplus extern "C"{ #endif #include "csrc/struct.h" void *create_sdkface(); void release(void *handle); int init_detector(void *handle, const int min_faces, const int roll_angles, const int threads_max, const int gpu); int init_extractor(void *handle, const int threads_max, const int gpu); int init_propertizer(void *handle, const int threads_max); int init_tracker(void *handle, const int width, const int height, const int max_faces, const int interval, const int sample_size, const int threads_max, const int gpu); int detect(void *handle, const void *data, const int w, const int h, const int c, const int chan, void **fpos, int *fcnt); int extract(void *handle, const cFacePos *pos, const void*data, const int w, const int h, const int c, const int chan, void **feat, int *featLen); float compare(void *handle, unsigned char *feat1, unsigned char *feat2); int propertize(void *handle, const cFacePos *pos, const void *data, const int w, const int h, const int c, const int chan, void **res); int track(void *handle, const void *data, const int w, const int h, const int c, const int chan, void **fInfo, int *fcnt); int track_resize(void *handle, const int w, const int h, const int chan); #ifdef __cplusplus } #endif #endif