OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
videoReader.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_PRODUCER_VIDEO_READER_HPP
2 #define OPENPOSE_PRODUCER_VIDEO_READER_HPP
3 
6 
7 namespace op
8 {
14  {
15  public:
25  explicit VideoReader(
26  const std::string& videoPath, const std::string& cameraParameterPath = "",
27  const bool undistortImage = false, const int numberViews = -1);
28 
29  virtual ~VideoReader();
30 
31  std::string getNextFrameName();
32 
33  inline bool isOpened() const
34  {
36  }
37 
38  double get(const int capProperty);
39 
40  void set(const int capProperty, const double value);
41 
42  private:
43  const std::string mPathName;
44 
45  Matrix getRawFrame();
46 
47  std::vector<Matrix> getRawFrames();
48 
50  };
51 }
52 
53 #endif // OPENPOSE_PRODUCER_VIDEO_READER_HPP
virtual bool isOpened() const
double get(const int capProperty)
void set(const int capProperty, const double value)
VideoReader(const std::string &videoPath, const std::string &cameraParameterPath="", const bool undistortImage=false, const int numberViews=-1)
virtual ~VideoReader()
bool isOpened() const
Definition: videoReader.hpp:33
std::string getNextFrameName()
#define OP_API
Definition: macros.hpp:18
#define DELETE_COPY(className)
Definition: macros.hpp:32