| #ifndef OPENPOSE_PRODUCER_VIDEO_READER_HPP |
| #define OPENPOSE_PRODUCER_VIDEO_READER_HPP |
|
|
| #include <openpose/core/common.hpp> |
| #include <openpose/producer/videoCaptureReader.hpp> |
|
|
| namespace op |
| { |
| |
| |
| |
| |
| class OP_API VideoReader : public VideoCaptureReader |
| { |
| public: |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| explicit VideoReader( |
| const std::string& videoPath, const std::string& cameraParameterPath = "", |
| const bool undistortImage = false, const int numberViews = -1); |
|
|
| virtual ~VideoReader(); |
|
|
| std::string getNextFrameName(); |
|
|
| inline bool isOpened() const |
| { |
| return VideoCaptureReader::isOpened(); |
| } |
|
|
| double get(const int capProperty); |
|
|
| void set(const int capProperty, const double value); |
|
|
| private: |
| const std::string mPathName; |
|
|
| Matrix getRawFrame(); |
|
|
| std::vector<Matrix> getRawFrames(); |
|
|
| DELETE_COPY(VideoReader); |
| }; |
| } |
|
|
| #endif |
|
|