Mercurial > hg > nsaunier > traffic-intelligence
view include/InputVideoFileModule.h @ 561:ee45c6eb6d49
added Mohamed Gomaa Mohamed function to smooth object trajectories
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Tue, 15 Jul 2014 16:42:04 -0400 |
| parents | 2be846d36dec |
| children |
line wrap: on
line source
#ifndef INPUT_VIDEO_FILE_MODULE_H #define INPUT_VIDEO_FILE_MODULE_H #include "InputFrameProviderIface.h" #include <string> #include "opencv2/core/core.hpp" #include "opencv2/highgui/highgui.hpp" class InputVideoFileModule : public InputFrameProviderIface { public: InputVideoFileModule(const std::string& videoPath); ~InputVideoFileModule(); bool getNextFrame(cv::Mat&); unsigned int getNbFrames(){ return mNumberOfFrame;} bool isOpen() const { return mInit;} void setFrameNumber(const unsigned int& frameNumber); const cv::Size& getSize() const { return mSize;} private: cv::Size mSize; cv::VideoCapture mVideoCapture; bool mInit; int mNumberOfFrame; }; #endif
