xuepengqiang
2020-01-06 569b49cb706aafbda568f947ac51373c3340cf17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// Created by Scheaven on 2020/1/3.
//
 
#ifndef INC_03_REID_STRONG_BASELINE_REID_FEATURE_H
#define INC_03_REID_STRONG_BASELINE_REID_FEATURE_H
#include <torch/script.h>
#include <opencv2/opencv.hpp>
#include <fstream>
#include <string>
#include <iomanip>
#include <stdlib.h>
#include <vector>
#include <iostream>
 
 
struct ReID_Feature {
private:
    bool is_gpu;
    //    auto feat;
    torch::jit::script::Module module;
public:
    bool ReID_init(int gpu_id);
    int ReID_size();
//    static unsigned char * extractor(unsigned char *pBuf, unsigned char *pFeature);
    bool ReID_extractor(unsigned char *pBuf, float * pFeature);
    float ReID_Compare(float *pFeature1, float *pFeature2);
    void ReID_Release();
};
 
 
#endif //INC_03_REID_STRONG_BASELINE_REID_FEATURE_H