OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
videoReader.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_PRODUCER_VIDEO_READER_HPP
2 #define OPENPOSE_PRODUCER_VIDEO_READER_HPP
3 
7 
8 namespace op
9 {
15  {
16  public:
26  explicit VideoReader(const std::string& videoPath, const unsigned int imageDirectoryStereo = 1,
27  const std::string& cameraParameterPath = "");
28 
29  virtual ~VideoReader();
30 
31  std::vector<cv::Mat> getCameraMatrices();
32 
33  std::vector<cv::Mat> getCameraExtrinsics();
34 
35  std::vector<cv::Mat> getCameraIntrinsics();
36 
37  std::string getNextFrameName();
38 
39  inline bool isOpened() const
40  {
42  }
43 
44  double get(const int capProperty);
45 
46  void set(const int capProperty, const double value);
47 
48  private:
49  const unsigned int mImageDirectoryStereo;
50  const std::string mPathName;
51  CameraParameterReader mCameraParameterReader;
52 
53  cv::Mat getRawFrame();
54 
55  std::vector<cv::Mat> getRawFrames();
56 
58  };
59 }
60 
61 #endif // OPENPOSE_PRODUCER_VIDEO_READER_HPP
#define DELETE_COPY(className)
Definition: macros.hpp:33
Definition: videoReader.hpp:14
Definition: videoCaptureReader.hpp:15
virtual bool isOpened() const
bool isOpened() const
Definition: videoReader.hpp:39
Definition: cameraParameterReader.hpp:9
#define OP_API
Definition: macros.hpp:18
std::string string
Definition: cl2.hpp:574