All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ipCameraReader.hpp
Go to the documentation of this file.
#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);
virtual ~IpCameraReader();
std::vector<cv::Mat> getCameraMatrices();
std::vector<cv::Mat> getCameraExtrinsics();
std::vector<cv::Mat> getCameraIntrinsics();
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;
cv::Mat getRawFrame();
std::vector<cv::Mat> getRawFrames();
DELETE_COPY(IpCameraReader);
};
}
#endif // OPENPOSE_PRODUCER_IP_CAMERA_READER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
op::VideoCaptureReader::get
virtual double get(const int capProperty)=0
op::IpCameraReader::set
void set(const int capProperty, const double value)
Definition: ipCameraReader.hpp:41
op::VideoCaptureReader
Definition: videoCaptureReader.hpp:15
op::VideoCaptureReader::isOpened
virtual bool isOpened() const
op::VideoCaptureReader::set
virtual void set(const int capProperty, const double value)=0
common.hpp
op::IpCameraReader
Definition: ipCameraReader.hpp:12
videoCaptureReader.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
op::IpCameraReader::isOpened
bool isOpened() const
Definition: ipCameraReader.hpp:31
cl::string
std::string string
Definition: cl2.hpp:574