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
videoCaptureReader.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_PRODUCER_VIDEO_CAPTURE_READER_HPP
2 #define OPENPOSE_PRODUCER_VIDEO_CAPTURE_READER_HPP
3 
4 #include <opencv2/core/core.hpp> // cv::Mat
5 #include <opencv2/highgui/highgui.hpp> // cv::VideoCapture
8 
9 namespace op
10 {
16  {
17  public:
22  explicit VideoCaptureReader(const int index, const bool throwExceptionIfNoOpened);
23 
29  explicit VideoCaptureReader(const std::string& path, const ProducerType producerType);
30 
35  virtual ~VideoCaptureReader();
36 
37  virtual std::string getNextFrameName() = 0;
38 
39  virtual bool isOpened() const;
40 
41  void release();
42 
43  virtual double get(const int capProperty) = 0;
44 
45  virtual void set(const int capProperty, const double value) = 0;
46 
47  protected:
48  virtual cv::Mat getRawFrame() = 0;
49 
50  virtual std::vector<cv::Mat> getRawFrames() = 0;
51 
52  void resetWebcam(const int index, const bool throwExceptionIfNoOpened);
53 
54  private:
55  cv::VideoCapture mVideoCapture;
56 
58  };
59 }
60 
61 #endif // OPENPOSE_PRODUCER_VIDEO_CAPTURE_READER_HPP
#define DELETE_COPY(className)
Definition: macros.hpp:34
Definition: videoCaptureReader.hpp:15
Definition: producer.hpp:15
ProducerType
Definition: enumClasses.hpp:28
#define OP_API
Definition: macros.hpp:19
std::string string
Definition: cl2.hpp:574