#ifndef _YOLOV5_DETECT_INFERENCE_H_ #define _YOLOV5_DETECT_INFERENCE_H_ #include "preprocess.h" #include "inference.h" #include "postprocess.h" using namespace nvinfer1; using namespace nvcaffeparser1; using namespace std; class YoloV5DetectInference: public Inference { public: YoloV5DetectInference(); ~YoloV5DetectInference(); int YoloV5DetectInferenceInit(CommonModelInfo* pYoloV5ModelInfo, const std::string& strModelName, const std::string& strEngineName); int YoloV5DetectInferenceDeinit(void); int YoloV5DetectInferenceModel(cv::Mat& frame, std::vector& vecRes); private: CommonModelInfo* pYoloV5ModelInfo_ = nullptr; }; #endif //END OF _YOLOV5_DETECT_INFERENCE_H_