All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
videoReader.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_PRODUCER_VIDEO_READER_HPP
#define OPENPOSE_PRODUCER_VIDEO_READER_HPP
#include <openpose/3d/cameraParameterReader.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 unsigned int imageDirectoryStereo = 1,
const std::string& cameraParameterPath = "");
virtual ~VideoReader();
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();
}
double get(const int capProperty);
void set(const int capProperty, const double value);
private:
const unsigned int mImageDirectoryStereo;
const std::string mPathName;
CameraParameterReader mCameraParameterReader;
cv::Mat getRawFrame();
std::vector<cv::Mat> getRawFrames();
DELETE_COPY(VideoReader);
};
}
#endif // OPENPOSE_PRODUCER_VIDEO_READER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
op::VideoReader
Definition: videoReader.hpp:14
op::VideoCaptureReader
Definition: videoCaptureReader.hpp:15
cameraParameterReader.hpp
op::VideoCaptureReader::isOpened
virtual bool isOpened() const
common.hpp
op::VideoReader::isOpened
bool isOpened() const
Definition: videoReader.hpp:39
op::CameraParameterReader
Definition: cameraParameterReader.hpp:9
videoCaptureReader.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574