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