Mercurial Hosting > traffic-intelligence
comparison include/InputVideoFileModule.h @ 399:c389fae9689a
Added a class to read list of image instead of video. This is controlled by the use of the database-filename and folder-data parameters in the config file.
author | Jean-Philippe Jodoin <jpjodoin@gmail.com> |
---|---|
date | Mon, 29 Jul 2013 17:12:45 -0400 |
parents | |
children | 7ef1071e3cc3 |
comparison
equal
deleted
inserted
replaced
398:3399bd48cb40 | 399:c389fae9689a |
---|---|
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 | |
16 bool isOpen() const { return mInit;} | |
17 const cv::Size& getSize() const { return mSize;} | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 bool getNextFrame(cv::Mat&); | |
24 | |
25 unsigned int getNbFrames(){ return mNumberOfFrame;} | |
26 | |
27 | |
28 | |
29 | |
30 private: | |
31 cv::Size mSize; | |
32 cv::VideoCapture mVideoCapture; | |
33 bool mInit; | |
34 int mNumberOfFrame; | |
35 }; | |
36 | |
37 #endif |