#ifndef _ST_FACE_CACHE_H_
|
#define _ST_FACE_CACHE_H_
|
|
#include <string>
|
#include "face_daemon_proto.h"
|
|
struct STFaceImage;
|
|
class STFaceCache
|
{
|
public:
|
STFaceCache(const std::string& _stfacedbPath);
|
~STFaceCache();
|
|
bool init();
|
void finit();
|
|
bool load_dbs();
|
void close_dbs();
|
FDP_FaceDetectResult detect(const STFaceImage& img);
|
FDP_FaceDetectResult add(const STFaceImage& img);
|
|
//#todo need a delete img, if business not linked faceid and its personid
|
// they can delete it and save/find again!
|
|
private:
|
FDP_FaceDetectResult detect_neg(const STFaceImage& img);
|
|
private:
|
const std::string stfacedbPath;
|
const std::string stfaceModels;
|
void* _dbContext;
|
void* _cacheContext;
|
};
|
|
#endif
|