diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/InputVideoFileModule.h	Mon Jul 29 17:12:45 2013 -0400
@@ -0,0 +1,37 @@
+#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 isOpen() const { return mInit;}
+	const cv::Size& getSize() const { return mSize;}
+
+
+
+	
+
+	bool getNextFrame(cv::Mat&);
+
+	unsigned int getNbFrames(){		return mNumberOfFrame;}
+
+
+	
+	
+private:
+	cv::Size mSize;
+	cv::VideoCapture mVideoCapture;
+	bool mInit;
+	int mNumberOfFrame;
+};
+
+#endif
\ No newline at end of file