Mercurial > hg > nsaunier > traffic-intelligence
comparison include/InputVideoFileModule.h @ 614:5e09583275a4
Merged Nicolas/trafficintelligence into default
| author | Mohamed Gomaa <eng.m.gom3a@gmail.com> |
|---|---|
| date | Fri, 05 Dec 2014 12:13:53 -0500 |
| parents | 2be846d36dec |
| children |
comparison
equal
deleted
inserted
replaced
| 598:11f96bd08552 | 614:5e09583275a4 |
|---|---|
| 1 #ifndef INPUT_VIDEO_FILE_MODULE_H | |
| 2 #define INPUT_VIDEO_FILE_MODULE_H | |
| 3 | |
| 4 #include "InputFrameProviderIface.h" | |
| 5 #include <string> | |
| 6 #include "opencv2/core/core.hpp" | |
| 7 #include "opencv2/highgui/highgui.hpp" | |
| 8 | |
| 9 class InputVideoFileModule : public InputFrameProviderIface | |
| 10 { | |
| 11 public: | |
| 12 InputVideoFileModule(const std::string& videoPath); | |
| 13 ~InputVideoFileModule(); | |
| 14 | |
| 15 bool getNextFrame(cv::Mat&); | |
| 16 | |
| 17 unsigned int getNbFrames(){ return mNumberOfFrame;} | |
| 18 | |
| 19 bool isOpen() const { return mInit;} | |
| 20 | |
| 21 void setFrameNumber(const unsigned int& frameNumber); | |
| 22 | |
| 23 const cv::Size& getSize() const { return mSize;} | |
| 24 | |
| 25 private: | |
| 26 cv::Size mSize; | |
| 27 cv::VideoCapture mVideoCapture; | |
| 28 bool mInit; | |
| 29 int mNumberOfFrame; | |
| 30 }; | |
| 31 | |
| 32 #endif |
