OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
frameDisplayer.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_GUI_FRAMES_DISPLAY_HPP
2 #define OPENPOSE_GUI_FRAMES_DISPLAY_HPP
3 
6 
7 namespace op
8 {
13  {
14  public:
23  FrameDisplayer(const std::string& windowedName = OPEN_POSE_NAME_AND_VERSION,
24  const Point<int>& initialWindowedSize = Point<int>{}, const bool fullScreen = false);
25 
26  virtual ~FrameDisplayer();
27 
28  // Due to OpenCV visualization issues (all visualization functions must be in the same thread)
30 
35  void setFullScreenMode(const FullScreenMode fullScreenMode);
36 
42 
51  void displayFrame(const Matrix& frame, const int waitKeyValue = -1);
52 
56  void displayFrame(const std::vector<Matrix>& frames, const int waitKeyValue = -1);
57 
58  private:
59  const std::string mWindowName;
60  Point<int> mWindowedSize;
61  FullScreenMode mFullScreenMode;
62  };
63 }
64 
65 #endif // OPENPOSE_GUI_FRAMES_DISPLAY_HPP
FrameDisplayer(const std::string &windowedName=OPEN_POSE_NAME_AND_VERSION, const Point< int > &initialWindowedSize=Point< int >{}, const bool fullScreen=false)
void displayFrame(const std::vector< Matrix > &frames, const int waitKeyValue=-1)
void setFullScreenMode(const FullScreenMode fullScreenMode)
void displayFrame(const Matrix &frame, const int waitKeyValue=-1)
virtual ~FrameDisplayer()
void switchFullScreenMode()
void initializationOnThread()
#define OP_API
Definition: macros.hpp:18
const std::string OPEN_POSE_NAME_AND_VERSION
Definition: macros.hpp:14
FullScreenMode
Definition: enumClasses.hpp:24