// // Created by Scheaven on 2019/11/19. // #ifndef DETECTER_MANAGER_H #define DETECTER_MANAGER_H #include "../config.h" #include "../detecter_tools/yolo_v2_class.hpp" // imported functions from DLL #include "../encoder_tools/model.h" #include "../utils/draw_util.h" #include "../utils/config_util.h" #include "../utils/time_util.h" using namespace std; class DetecterManager { private: struct timeval sys_t1, sys_t2, diff1; // Detector detector("../cfg/yolov3.cfg", "../model_dump/yolov3.weights"); public: static DetecterManager* instance; static DetecterManager* getInstance(); public: DetecterManager(); ~DetecterManager(); void release(); void detecter_main(const cv::Mat &mat_image, DETECTIONS& detection); void ex_features(string in_path); public: void encoder_features(std::vector boxes, DETECTIONS& detection); }; #endif //INC_04_S_MUTICAM_TRACKING_DETECTER_MANAGER_H