#ifndef _SAMPLE_FACE_SEARCH_H_ #define _SAMPLE_FACE_SEARCH_H_ typedef void* cv_handle_t; struct cv_feature_t; struct stface_handles { cv_handle_t handle_verify; cv_handle_t handle_db; cv_handle_t handle_detect; stface_handles() : handle_verify(nullptr), handle_db(nullptr), handle_detect(nullptr) {} }; cv_feature_t *stface_extract_feature(stface_handles& handles, const char *image_path); int stface_db_add(stface_handles& handles, const char *image_path); bool stface_db_del(stface_handles& handles, int idx); bool stface_db_save(stface_handles& handles, char *db_path); bool stface_db_load(stface_handles& handles, char *db_path); bool stface_db_gen(stface_handles& handles, char *image_list, char *output_db_path); bool stface_search_db(stface_handles& handles, char *image_path); bool stface_search_list(stface_handles& handles, char *image_path, char *list_path); void stface_get_help(); int stface_main(int argc, char *argv[]); #endif