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
videoReader.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_PRODUCER_VIDEO_READER_HPP
2 #define OPENPOSE_PRODUCER_VIDEO_READER_HPP
3
4 #include <openpose/core/common.hpp>
5 #include <openpose/producer/videoCaptureReader.hpp>
6
7 namespace op
8 {
13 class OP_API VideoReader : public VideoCaptureReader
14 {
15 public:
25 explicit VideoReader(
26 const std::string& videoPath, const std::string& cameraParameterPath = "",
27 const bool undistortImage = false, const int numberViews = -1);
28
29 virtual ~VideoReader();
30
31 std::string getNextFrameName();
32
33 inline bool isOpened() const
34 {
35 return VideoCaptureReader::isOpened();
36 }
37
38 double get(const int capProperty);
39
40 void set(const int capProperty, const double value);
41
42 private:
43 const std::string mPathName;
44
45 cv::Mat getRawFrame();
46
47 std::vector<cv::Mat> getRawFrames();
48
49 DELETE_COPY(VideoReader);
50 };
51 }
52
53 #endif // OPENPOSE_PRODUCER_VIDEO_READER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
op::VideoReader
Definition: videoReader.hpp:13
op::VideoCaptureReader
Definition: videoCaptureReader.hpp:15
op::VideoCaptureReader::isOpened
virtual bool isOpened() const
common.hpp
op::VideoReader::isOpened
bool isOpened() const
Definition: videoReader.hpp:33
videoCaptureReader.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574