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
videoCaptureReader.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_PRODUCER_VIDEO_CAPTURE_READER_HPP
2 #define OPENPOSE_PRODUCER_VIDEO_CAPTURE_READER_HPP
3
4 #include <opencv2/core/core.hpp> // cv::Mat
5 #include <opencv2/highgui/highgui.hpp> // cv::VideoCapture
6 #include <openpose/core/common.hpp>
7 #include <openpose/producer/producer.hpp>
8
9 namespace op
10 {
15 class OP_API VideoCaptureReader : public Producer
16 {
17 public:
22 explicit VideoCaptureReader(const int index, const bool throwExceptionIfNoOpened,
23 const std::string& cameraParameterPath, const bool undistortImage,
24 const int numberViews);
25
31 explicit VideoCaptureReader(const std::string& path, const ProducerType producerType,
32 const std::string& cameraParameterPath, const bool undistortImage,
33 const int numberViews);
34
39 virtual ~VideoCaptureReader();
40
41 virtual std::string getNextFrameName() = 0;
42
43 virtual bool isOpened() const;
44
45 void release();
46
47 virtual double get(const int capProperty) = 0;
48
49 virtual void set(const int capProperty, const double value) = 0;
50
51 protected:
52 virtual cv::Mat getRawFrame() = 0;
53
54 virtual std::vector<cv::Mat> getRawFrames() = 0;
55
56 void resetWebcam(const int index, const bool throwExceptionIfNoOpened);
57
58 private:
59 cv::VideoCapture mVideoCapture;
60
61 DELETE_COPY(VideoCaptureReader);
62 };
63 }
64
65 #endif // OPENPOSE_PRODUCER_VIDEO_CAPTURE_READER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
op::VideoCaptureReader
Definition: videoCaptureReader.hpp:15
op::Producer
Definition: producer.hpp:16
common.hpp
op::ProducerType
ProducerType
Definition: enumClasses.hpp:29
producer.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574