DFACE C++  5.0.0
dface_compare.h
Go to the documentation of this file.
1 // Hang Zhou Xiao Kong Cheng Xiang Ke Ji You Xian Gong Si is pleased to support DFACE SDK LIBRARY.
2 //
3 // Copyright © 2017-2020, Hang Zhou Xiao Kong Cheng Xiang Ke Ji You Xian Gong Si Holding Limited//
4 
5 #ifndef DFACE_C_H
6 #define DFACE_C_H
7 
8 #include <string>
9 #include <vector>
10 #include "common.h"
11 
12 namespace dface {
17  public:
22 
26  virtual ~DfaceCompare() { return; };
27 
28 
37  virtual float similarityByFeature(unsigned char *feature_1, unsigned char *feature_2, int feature_size = 1024) = 0;
38 
39 
47  virtual float similarityByFeature(std::vector<unsigned char> &feature_1, std::vector<unsigned char> &feature_2) = 0;
48  };
49 
53  typedef DfaceCompare* CreateCompare(const std::string &model_path, int feature_precision);
54 
59  typedef void DestroyCompare(DfaceCompare* dc);
60 
61 }
62 
63 #endif //DFACE_C_H
Definition: common.h:34
void DestroyCompare(DfaceCompare *dc)
Definition: dface_compare.h:59
DfaceCompare * CreateCompare(const std::string &model_path, int feature_precision)
Definition: dface_compare.h:53
DfaceCompare()
Definition: dface_compare.h:21
#define DFACE_EXPORTS
Definition: common.h:19
virtual ~DfaceCompare()
Definition: dface_compare.h:26
FaceCompare API.
Definition: dface_compare.h:16