| | |
| | | #include <stdexcept> |
| | | // #include <cuda_runtime_api.h> |
| | | #include <torch/torch.h> |
| | | #include <opencv2/core/core.hpp> |
| | | #include <opencv2/highgui/highgui.hpp> |
| | | #include "opencv2/imgproc/imgproc.hpp" |
| | | #include "opencv2/opencv.hpp" |
| | | #include "opencv2/videoio/videoio.hpp" |
| | | #include "opencv2/video.hpp" |
| | | using namespace std; |
| | | |
| | | reid::reid(const int gpu_index, const char *module_path) |
| | | :is_gpu_(gpu_index >= 0) |
| | | ,start_(false) |
| | | { |
| | | if(init(gpu_index, module_path) < 0){ |
| | | throw std::runtime_error("init swscale error"); |
| | | } |
| | | throw std::runtime_error("init swscale error"); |
| | | } |
| | | } |
| | | |
| | | reid::~reid() |
| | |
| | | } |
| | | } |
| | | |
| | | for (int k = 0; k < 3; ++k) { |
| | | printf("--extractor---human_feats------%f",feature[k+2000]); |
| | | } |
| | | // for (int k = 0; k < 3; ++k) { |
| | | // printf("--extractor---human_feats------%f",feature[k+2000]); |
| | | // } |
| | | |
| | | printf("\n\n\n\n\n----------------------------------------------------------------------------\n"); |
| | | |