#include "HumanFeatures.h" #include #include "sy_errorinfo.h" using namespace std; int human_features_init(void *&handle, char*dbpath, int gpuid) { hf_param params; params.gpuid = gpuid; params.mode = DEVICE_GPU; // params.db_path = dbpath; if (hf_init(&handle, params) !=0) { cout << "Init HF Failed!" << endl; return FAILED; } return SUCCESS; } int human_features_process(void * handle, sy_img * batch_img, int batch_size, hf_result*& result) { for (int i = 0; i < batch_size; i++) { if (batch_img[i].data_ == NULL) cout << i << " data null" << endl; } hf_feature_batch(handle, batch_img, batch_size, result); return SUCCESS; } int human_feature_release(void *& handle) { hf_release(&handle); return SUCCESS; }