OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
videoSaver.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_FILESTREAM_VIDEO_SAVER_HPP
2 #define OPENPOSE_FILESTREAM_VIDEO_SAVER_HPP
3 
4 #include <opencv2/core/core.hpp> // cv::Mat
5 #include <opencv2/highgui/highgui.hpp> // cv::VideoWriter
7 
8 namespace op
9 {
11  {
12  public:
13  VideoSaver(const std::string& videoSaverPath, const int cvFourcc, const double fps, const Point<int>& cvSize);
14 
15  bool isOpened();
16 
17  void write(const cv::Mat& cvMat);
18 
19  void write(const std::vector<cv::Mat>& cvMats);
20 
21  private:
22  const std::string mVideoSaverPath;
23  const int mCvFourcc;
24  const double mFps;
25  const Point<int> mCvSize;
26  cv::VideoWriter mVideoWriter;
27  unsigned int mNumberImages;
28 
30  };
31 }
32 
33 #endif // OPENPOSE_FILESTREAM_VIDEO_SAVER_HPP
#define DELETE_COPY(className)
Definition: macros.hpp:31
Definition: videoSaver.hpp:10
#define OP_API
Definition: macros.hpp:16
std::string string
Definition: cl2.hpp:574