29 static HMODULE handle = LoadLibraryEx(L
"libdface.dll", NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
    32 static void *handle = dlopen(
"libdfacepro.so", RTLD_LAZY);
    45         printf(
"library failed to load.\n");
    52         printf(
"library failed to load.\n");
    56     const char* dlsym_error = dlerror();
    58         printf(
"%s", dlsym_error);
    62     return createDetect(model_path, precision);
    77     const char* dlsym_error = dlerror();
    79         printf(
"%s", dlsym_error);
    95         printf(
"library failed to load.\n");
   102         printf(
"library failed to load.\n");
   106     const char* dlsym_error = dlerror();
   108         printf(
"%s", dlsym_error);
   112     return createAssessment(model_path);
   127     const char* dlsym_error = dlerror();
   129         printf(
"%s", dlsym_error);
   133     destroyAssessment(p);
   146         printf(
"library failed to load.\n");
   153         printf(
"library failed to load.\n");
   157     const char* dlsym_error = dlerror();
   159         printf(
"%s", dlsym_error);
   163     return createAttribute(model_path);
   178     const char* dlsym_error = dlerror();
   180         printf(
"%s", dlsym_error);
   199         printf(
"library failed to load.\n");
   206         printf(
"library failed to load.\n");
   211     const char* dlsym_error = dlerror();
   213         printf(
"%s", dlsym_error);
   217     return createRecognize(model_path, precision);
   232     char* dlsym_error = dlerror();
   234         printf(
"%s", dlsym_error);
   251         printf(
"library failed to load.\n");
   258         printf(
"library failed to load.\n");
   262     const char* dlsym_error = dlerror();
   264         printf(
"%s", dlsym_error);
   268     return createCompare(model_path, feature_precision);
   283     const char* dlsym_error = dlerror();
   285         printf(
"%s", dlsym_error);
   303         printf(
"library failed to load.\n");
   310         printf(
"library failed to load.\n");
   314     const char* dlsym_error = dlerror();
   316         printf(
"%s", dlsym_error);
   320     return createPose(model_path);
   335     const char* dlsym_error = dlerror();
   337         printf(
"%s", dlsym_error);
   355         printf(
"library failed to load.\n");
   362         printf(
"library failed to load.\n");
   366     const char* dlsym_error = dlerror();
   368         printf(
"%s", dlsym_error);
   372     return createNirLiveness(model_path);
   387     const char* dlsym_error = dlerror();
   389         printf(
"%s", dlsym_error);
   393     destoryNirLiveness(p);
   409         printf(
"library failed to load.\n");
   416         printf(
"library failed to load.\n");
   420     const char* dlsym_error = dlerror();
   422         printf(
"%s", dlsym_error);
   426     return createRgbLiveness(model_path, level);
   441     const char* dlsym_error = dlerror();
   443         printf(
"%s", dlsym_error);
   447     destroyRgbLiveness(p);
   467         printf(
"library failed to load.\n");
   474         printf(
"library failed to load.\n");
   478     const char* dlsym_error = dlerror();
   480         printf(
"%s", dlsym_error);
   484     return createTrack(model_path, frame_width, frame_height, max_age, min_hit);
   499     const char* dlsym_error = dlerror();
   501         printf(
"%s", dlsym_error);
   519         printf(
"library failed to load.\n");
   526         printf(
"library failed to load.\n");
   530     const char* dlsym_error = dlerror();
   532         printf(
"%s", dlsym_error);
   536     return createAccredit();
   551     const char* dlsym_error = dlerror();
   553         printf(
"%s", dlsym_error);
   576 #endif //DFACE_SYMBOL_H DfaceTrack * CreateTrack(const std::string &model_path, int frame_width, int frame_height, int max_age, int min_hit)
Definition: dface_track.h:68
 
DfaceNIRLiveness * CreateNIRLiveness(const std::string &model_path)
Definition: dface_nir_liveness.h:57
 
void destory_dface_nir_liveness(dface::DfaceNIRLiveness *p)
Definition: symbol.h:379
 
DfaceAccredit * CreateAccredit()
Definition: dface_accredit.h:136
 
void destory_dface_assessment(dface::DfaceAssessment *p)
Definition: symbol.h:119
 
DfaceAssessment * CreateAssessment(const std::string &model_path)
Definition: dface_assessment.h:50
 
void DestroyCompare(DfaceCompare *dc)
Definition: dface_compare.h:59
 
void DestroyRGBLiveness(DfaceRGBLiveness *instance)
Definition: dface_rgb_liveness.h:57
 
void DestroyNIRLiveness(DfaceNIRLiveness *dc)
Definition: dface_nir_liveness.h:63
 
FaceRecognize API. 
Definition: dface_recognize.h:17
 
DfaceAttribute * CreateAttribute(const std::string &model_path)
Definition: dface_attribute.h:62
 
DfaceCompare * CreateCompare(const std::string &model_path, int feature_precision)
Definition: dface_compare.h:53
 
FaceRGBLiveness API. 
Definition: dface_rgb_liveness.h:19
 
void DestroyDetect(DfaceDetect *dc)
Definition: dface_detect.h:77
 
dface::DfaceTrack * load_dface_track(const std::string &model_path, int frame_width, int frame_height, int max_age=200, int min_hit=3)
Definition: symbol.h:461
 
DfaceAccredit * load_dface_accredit()
Definition: symbol.h:513
 
void DestroyTrack(DfaceTrack *rc)
Definition: dface_track.h:74
 
void destory_dface_attribute(dface::DfaceAttribute *p)
Definition: symbol.h:170
 
void destory_dface_pose(dface::DfacePose *p)
Definition: symbol.h:327
 
FaceNIRLiveness API. 
Definition: dface_nir_liveness.h:17
 
DfacePose * CreatePose(const std::string &model_path)
Definition: dface_pose.h:65
 
void destory_dface_rgb_liveness(dface::DfaceRGBLiveness *p)
Definition: symbol.h:433
 
dface::DfaceRGBLiveness * load_dface_rgb_liveness(const std::string &model_path, int level)
Definition: symbol.h:403
 
DfaceRGBLiveness * CreateRGBLiveness(const std::string &model_path, int level)
Definition: dface_rgb_liveness.h:51
 
License API. 
Definition: dface_accredit.h:14
 
void destory_dface_accredit(DfaceAccredit *p)
Definition: symbol.h:543
 
dface::DfacePose * load_dface_pose(const std::string &model_path)
Definition: symbol.h:297
 
FaceTrack API. 
Definition: dface_track.h:17
 
FaceAttribute API. 
Definition: dface_attribute.h:18
 
dface::DfaceAttribute * load_dface_attribute(const std::string &model_path)
Definition: symbol.h:142
 
void destory_dface_track(dface::DfaceTrack *p)
Definition: symbol.h:491
 
void destory_dface_detect(dface::DfaceDetect *p)
Definition: symbol.h:69
 
void DestroyAssessment(DfaceAssessment *dc)
Definition: dface_assessment.h:56
 
dface::DfaceCompare * load_dface_compare(const std::string &model_path, int feature_precision)
Definition: symbol.h:245
 
dface::DfaceNIRLiveness * load_dface_nir_liveness(const std::string &model_path)
Definition: symbol.h:349
 
void DestroyRecognize(DfaceRecognize *rc)
Definition: dface_recognize.h:54
 
void DestroyAccredit(DfaceAccredit *dc)
Definition: dface_accredit.h:142
 
void DestroyAttribute(DfaceAttribute *dc)
Definition: dface_attribute.h:68
 
void DestroyPose(DfacePose *dc)
Definition: dface_pose.h:71
 
dface::DfaceDetect * load_dface_detect(const std::string &model_path, int precision)
Definition: symbol.h:41
 
dface::DfaceRecognize * load_dface_recognize(const std::string &model_path, int precision)
Definition: symbol.h:194
 
DfaceRecognize * CreateRecognize(const std::string &model_path, int precision)
Definition: dface_recognize.h:48
 
FaceAssessment API. 
Definition: dface_assessment.h:18
 
dface::DfaceAssessment * load_dface_assessment(const std::string &model_path)
Definition: symbol.h:91
 
void destory_dface_compare(dface::DfaceCompare *p)
Definition: symbol.h:275
 
void destory_dface_recognize(dface::DfaceRecognize *p)
Definition: symbol.h:224
 
DfaceDetect * CreateDetect(const std::string &model_path, int precision)
Definition: dface_detect.h:71
 
FacePose API. 
Definition: dface_pose.h:18
 
void free_dface()
Definition: symbol.h:564
 
FaceDetect API. 
Definition: dface_detect.h:17
 
FaceCompare API. 
Definition: dface_compare.h:16