OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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:
22  explicit ImageDirectoryReader(const std::string& imageDirectoryPath);
23 
24  std::string getFrameName();
25 
26  inline bool isOpened() const
27  {
28  return (mFrameNameCounter >= 0);
29  }
30 
31  inline void release()
32  {
33  mFrameNameCounter = {-1ll};
34  }
35 
36  double get(const int capProperty);
37 
38  void set(const int capProperty, const double value);
39 
40  inline double get(const ProducerProperty property)
41  {
42  return Producer::get(property);
43  }
44 
45  inline void set(const ProducerProperty property, const double value)
46  {
47  Producer::set(property, value);
48  }
49 
50  private:
51  const std::string mImageDirectoryPath;
52  const std::vector<std::string> mFilePaths;
53  Point<int> mResolution;
54  long long mFrameNameCounter;
55 
56  cv::Mat getRawFrame();
57 
59  };
60 }
61 
62 #endif // OPENPOSE_PRODUCER_IMAGE_DIRECTORY_READER_HPP
#define DELETE_COPY(className)
Definition: macros.hpp:24
ProducerProperty
Definition: enumClasses.hpp:12
Definition: producer.hpp:16
virtual void set(const int capProperty, const double value)=0
void set(const ProducerProperty property, const double value)
Definition: imageDirectoryReader.hpp:45
void release()
Definition: imageDirectoryReader.hpp:31
virtual double get(const int capProperty)=0
bool isOpened() const
Definition: imageDirectoryReader.hpp:26
Definition: imageDirectoryReader.hpp:14
#define OP_API
Definition: macros.hpp:9