// // Created by Scheaven on 2019/12/27. // #include // One-stop header. #include #include #include #include #include #include #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/opencv.hpp" #include "opencv2/videoio.hpp" #include "reid_feature.h" using namespace std; //using namespace cv; int main(int argc, const char* argv[]) { // if (argc != 2) { // std::cerr << "usage: reid-app \n";; // return -1; // } // torch::jit::script::Module module; // char cam_id = 'A'; // ReID_Tracker Tracker; /*初始化*/ int gpu_id = 0; ReID_Feature R_Feater; bool n_flog = R_Feater.ReID_init(0); ReID_Utils r_util; // ReID_Feature R_Feater(gpu_id); /*opencv加载图片信息*/ cv::Mat human_img = cv::imread("./03.jpg"); cv::Mat human_img2 = cv::imread("./01.jpg"); if (human_img.data == nullptr) { cerr<<"===图片文件不存在"<