OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
imageDirectoryReader.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_PRODUCER_IMAGE_DIRECTORY_READER_HPP
2 #define OPENPOSE_PRODUCER_IMAGE_DIRECTORY_READER_HPP
3 
6 
7 namespace op
8 {
15  {
16  public:
27  const std::string& imageDirectoryPath, const std::string& cameraParameterPath = "",
28  const bool undistortImage = false, const int numberViews = -1);
29 
31 
32  std::string getNextFrameName();
33 
34  inline bool isOpened() const
35  {
36  return (mFrameNameCounter >= 0);
37  }
38 
39  inline void release()
40  {
41  mFrameNameCounter = {-1ll};
42  }
43 
44  double get(const int capProperty);
45 
46  void set(const int capProperty, const double value);
47 
48  private:
49  const std::string mImageDirectoryPath;
50  const std::vector<std::string> mFilePaths;
51  Point<int> mResolution;
52  long long mFrameNameCounter;
53 
54  Matrix getRawFrame();
55 
56  std::vector<Matrix> getRawFrames();
57 
59  };
60 }
61 
62 #endif // OPENPOSE_PRODUCER_IMAGE_DIRECTORY_READER_HPP
ImageDirectoryReader(const std::string &imageDirectoryPath, const std::string &cameraParameterPath="", const bool undistortImage=false, const int numberViews=-1)
void set(const int capProperty, const double value)
std::string getNextFrameName()
double get(const int capProperty)
#define OP_API
Definition: macros.hpp:18
#define DELETE_COPY(className)
Definition: macros.hpp:32