All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
videoSaver.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_FILESTREAM_VIDEO_SAVER_HPP
#define OPENPOSE_FILESTREAM_VIDEO_SAVER_HPP
#include <opencv2/core/core.hpp> // cv::Mat
#include <opencv2/highgui/highgui.hpp> // cv::VideoWriter
#include <openpose/core/common.hpp>
namespace op
{
class OP_API VideoSaver
{
public:
VideoSaver(const std::string& videoSaverPath, const int cvFourcc, const double fps, const Point<int>& cvSize);
virtual ~VideoSaver();
bool isOpened();
void write(const cv::Mat& cvMat);
void write(const std::vector<cv::Mat>& cvMats);
private:
const std::string mVideoSaverPath;
const int mCvFourcc;
const double mFps;
const Point<int> mCvSize;
cv::VideoWriter mVideoWriter;
unsigned int mNumberImages;
DELETE_COPY(VideoSaver);
};
}
#endif // OPENPOSE_FILESTREAM_VIDEO_SAVER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
op::VideoSaver
Definition: videoSaver.hpp:10
op::Point< int >
common.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574