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
frameDisplayer.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_GUI_FRAMES_DISPLAY_HPP
2 #define OPENPOSE_GUI_FRAMES_DISPLAY_HPP
3
4 #include <opencv2/core/core.hpp> // cv::Mat
5 #include <openpose/core/common.hpp>
6 #include <openpose/gui/enumClasses.hpp>
7
8 namespace op
9 {
13 class OP_API FrameDisplayer
14 {
15 public:
24 FrameDisplayer(const std::string& windowedName = OPEN_POSE_NAME_AND_VERSION,
25 const Point<int>& initialWindowedSize = Point<int>{}, const bool fullScreen = false);
26
27 virtual ~FrameDisplayer();
28
29 // Due to OpenCV visualization issues (all visualization functions must be in the same thread)
30 void initializationOnThread();
31
36 void setFullScreenMode(const FullScreenMode fullScreenMode);
37
42 void switchFullScreenMode();
43
52 void displayFrame(const cv::Mat& frame, const int waitKeyValue = -1);
53
57 void displayFrame(const std::vector<cv::Mat>& frames, const int waitKeyValue = -1);
58
59 private:
60 const std::string mWindowName;
61 Point<int> mWindowedSize;
62 FullScreenMode mFullScreenMode;
63 };
64 }
65
66 #endif // OPENPOSE_GUI_FRAMES_DISPLAY_HPP
enumClasses.hpp
op::FullScreenMode
FullScreenMode
Definition: enumClasses.hpp:23
OPEN_POSE_NAME_AND_VERSION
const std::string OPEN_POSE_NAME_AND_VERSION
Definition: macros.hpp:15
op::FrameDisplayer
Definition: frameDisplayer.hpp:13
op::Point< int >
common.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574