#ifndef _ST_FACE_CACHE_H_
|
#define _ST_FACE_CACHE_H_
|
|
#include <string>
|
#include "face_daemon_proto.h"
|
|
struct STFaceImage
|
{
|
int32_t db_id;
|
int16_t mb_type; // MB_Frame::MBFType
|
int16_t width;
|
int16_t height;
|
uint32_t size;
|
const uint8_t* buff;
|
};
|
|
class STFaceCache
|
{
|
public:
|
STFaceCache(const std::string& _stfacedbPath);
|
~STFaceCache();
|
|
bool load_dbs();
|
FDP_FaceDetectResult detect(const STFaceImage& img);
|
FDP_FaceDetectResult save(const STFaceImage& img);
|
|
private:
|
const std::string stfacedbPath;
|
const std::string stfaceModels;
|
void* _cacheContext;
|
};
|
|
#endif
|