Mercurial Hosting > traffic-intelligence
view include/InputVideoFileModule.h @ 414:040e71067ff4
Win32 property sheet version updated to opencv 2.4.6.1
author | Jean-Philippe Jodoin <jpjodoin@gmail.com> |
---|---|
date | Sun, 08 Sep 2013 23:38:37 -0400 |
parents | 3c271a46b4d4 |
children | 2be846d36dec |
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.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