#pragma once #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace cv; class InferVideo { private: std::string m_fileName; string m_enc_type; string m_outputDir; int m_fps; int m_cacheTime; list m_frameBuffer; int m_count; int m_videoMaxTime; Size m_frameSize; std::shared_ptr m_videoWriter; bool m_videoStart; std::string pid; public: InferVideo(const string &outputDir,const string &enc_type, const int fps, const int videoMaxTime,const int cacheTime,const Size& frameSize); ~InferVideo(); void Destroy(); bool capture(int num, Mat& dst); string getFileName(); int getVideoFps(); int getVideoTime(); void setPid(std::string Pid){ this->pid = Pid; } };