#ifndef _FACEDB_H_
|
#define _FACEDB_H_
|
|
#include <cv_face.h>
|
#include "time_helper.h"
|
#include <opencv2/opencv.hpp>
|
|
//ÈËÁ³ÑéÖ¤
|
static cv_handle_t handle_verify;
|
//Êý¾Ý¿â²Ù×÷
|
static cv_handle_t handle_db;
|
//¾²Ì¬ÈËÁ³Ê¶±ð
|
static cv_handle_t handle_detect;
|
|
class faceDB
|
{
|
public:
|
//static faceDB* GetInstance();
|
|
//ËÑË÷SDKÊý¾Ý¿â
|
int search_db(cv_feature_t* p_feature );
|
//Ìí¼Ó¼Ç¼
|
int db_add(cv_feature_t* p_feature);
|
//±£´æÊý¾Ý¿â
|
bool db_save();
|
int set_dbpath(char* db_path);
|
|
faceDB();
|
virtual ~faceDB();
|
//ÌáÈ¡ÌØÕ÷Öµ
|
cv_feature_t *extract_feature(cv::Mat image_color);
|
|
private:
|
|
cv_result_t cv_result;
|
//static faceDB* db;
|
//faceDB(const faceDB & );
|
|
//¼ÓÔØsdkÊý¾Ý¿â
|
bool db_load();
|
};
|
|
|
#endif
|