| | |
| | | #include <cv_face.h>
|
| | | #include "time_helper.h"
|
| | |
|
| | | //人脸验证
|
| | | static cv_handle_t handle_verify;
|
| | | //数据库操作
|
| | | static cv_handle_t handle_db;
|
| | | //静态人脸识别
|
| | | static cv_handle_t handle_detect;
|
| | |
|
| | | class faceAPI
|
| | | {
|
| | | public:
|
| | |
| | | int do_register(cv::Mat image);
|
| | |
|
| | | private:
|
| | | |
| | |
|
| | | //调用搜索
|
| | | int p_img_search(cv_feature_t *p_feature);
|
| | |
|
| | |
| | | cv_feature_t* p_f;
|
| | | };
|
| | |
|
| | |
|
| | | 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
|