view 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 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 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