OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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
4 #include <openpose/core/common.hpp>
5 #include <openpose/producer/videoCaptureReader.hpp>
6
7 namespace op
8 {
12 class OP_API IpCameraReader : public VideoCaptureReader
13 {
14 public:
19 explicit IpCameraReader(const std::string& cameraPath, const std::string& cameraParameterPath = "",
20 const bool undistortImage = false);
21
22 virtual ~IpCameraReader();
23
24 std::string getNextFrameName();
25
26 inline bool isOpened() const
27 {
28 return VideoCaptureReader::isOpened();
29 }
30
31 inline double get(const int capProperty)
32 {
33 return VideoCaptureReader::get(capProperty);
34 }
35
36 inline void set(const int capProperty, const double value)
37 {
38 VideoCaptureReader::set(capProperty, value);
39 }
40
41 private:
42 const std::string mPathName;
43
44 cv::Mat getRawFrame();
45
46 std::vector<cv::Mat> getRawFrames();
47
48 DELETE_COPY(IpCameraReader);
49 };
50 }
51
52 #endif // OPENPOSE_PRODUCER_IP_CAMERA_READER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
op::VideoCaptureReader::get
virtual double get(const int capProperty)=0
op::IpCameraReader::set
void set(const int capProperty, const double value)
Definition: ipCameraReader.hpp:36
op::VideoCaptureReader
Definition: videoCaptureReader.hpp:15
op::VideoCaptureReader::isOpened
virtual bool isOpened() const
op::VideoCaptureReader::set
virtual void set(const int capProperty, const double value)=0
common.hpp
op::IpCameraReader
Definition: ipCameraReader.hpp:12
videoCaptureReader.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
op::IpCameraReader::isOpened
bool isOpened() const
Definition: ipCameraReader.hpp:26
cl::string
std::string string
Definition: cl2.hpp:574