OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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
6 #include <openpose/core/common.hpp>
7
8 namespace op
9 {
10 class OP_API VideoSaver
11 {
12 public:
13 VideoSaver(const std::string& videoSaverPath, const int cvFourcc, const double fps);
14
15 virtual ~VideoSaver();
16
17 bool isOpened();
18
19 void write(const cv::Mat& cvMat);
20
21 void write(const std::vector<cv::Mat>& cvMats);
22
23 private:
24 const std::string mVideoSaverPath;
25 const int mCvFourcc;
26 const double mFps;
27 Point<int> mCvSize;
28 bool mVideoStarted;
29 cv::VideoWriter mVideoWriter;
30 unsigned int mNumberImages;
31
32 DELETE_COPY(VideoSaver);
33 };
34 }
35
36 #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