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
ipCameraReader.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_PRODUCER_IP_CAMERA_READER_HPP
2 #define OPENPOSE_PRODUCER_IP_CAMERA_READER_HPP
3 
6 
7 namespace op
8 {
13  {
14  public:
19  explicit IpCameraReader(const std::string& cameraPath);
20 
21  virtual ~IpCameraReader();
22 
23  std::vector<cv::Mat> getCameraMatrices();
24 
25  std::vector<cv::Mat> getCameraExtrinsics();
26 
27  std::vector<cv::Mat> getCameraIntrinsics();
28 
29  std::string getNextFrameName();
30 
31  inline bool isOpened() const
32  {
34  }
35 
36  inline double get(const int capProperty)
37  {
38  return VideoCaptureReader::get(capProperty);
39  }
40 
41  inline void set(const int capProperty, const double value)
42  {
43  VideoCaptureReader::set(capProperty, value);
44  }
45 
46  private:
47  const std::string mPathName;
48 
49  cv::Mat getRawFrame();
50 
51  std::vector<cv::Mat> getRawFrames();
52 
54  };
55 }
56 
57 #endif // OPENPOSE_PRODUCER_IP_CAMERA_READER_HPP
#define DELETE_COPY(className)
Definition: macros.hpp:34
virtual double get(const int capProperty)=0
void set(const int capProperty, const double value)
Definition: ipCameraReader.hpp:41
Definition: videoCaptureReader.hpp:15
virtual bool isOpened() const
virtual void set(const int capProperty, const double value)=0
Definition: ipCameraReader.hpp:12
#define OP_API
Definition: macros.hpp:19
bool isOpened() const
Definition: ipCameraReader.hpp:31
std::string string
Definition: cl2.hpp:574