| | #ifndef OPENPOSE_PRODUCER_VIDEO_CAPTURE_READER_HPP |
| | #define OPENPOSE_PRODUCER_VIDEO_CAPTURE_READER_HPP |
| |
|
| | #include <openpose/core/common.hpp> |
| | #include <openpose/producer/producer.hpp> |
| |
|
| | namespace op |
| | { |
| | |
| | |
| | |
| | |
| | class OP_API VideoCaptureReader : public Producer |
| | { |
| | public: |
| | |
| | |
| | |
| | |
| | explicit VideoCaptureReader(const int index, const bool throwExceptionIfNoOpened, |
| | const std::string& cameraParameterPath, const bool undistortImage, |
| | const int numberViews); |
| |
|
| | |
| | |
| | |
| | |
| | |
| | explicit VideoCaptureReader(const std::string& path, const ProducerType producerType, |
| | const std::string& cameraParameterPath, const bool undistortImage, |
| | const int numberViews); |
| |
|
| | |
| | |
| | |
| | |
| | virtual ~VideoCaptureReader(); |
| |
|
| | virtual std::string getNextFrameName() = 0; |
| |
|
| | virtual bool isOpened() const; |
| |
|
| | void release(); |
| |
|
| | virtual double get(const int capProperty) = 0; |
| |
|
| | virtual void set(const int capProperty, const double value) = 0; |
| |
|
| | protected: |
| | virtual Matrix getRawFrame() = 0; |
| |
|
| | virtual std::vector<Matrix> getRawFrames() = 0; |
| |
|
| | void resetWebcam(const int index, const bool throwExceptionIfNoOpened); |
| |
|
| | private: |
| | |
| | |
| | struct ImplVideoCaptureReader; |
| | std::unique_ptr<ImplVideoCaptureReader> upImpl; |
| |
|
| | DELETE_COPY(VideoCaptureReader); |
| | }; |
| | } |
| |
|
| | #endif |
| |
|