OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
gui3D.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_GUI_GUI_3D_HPP
2 #define OPENPOSE_GUI_GUI_3D_HPP
3 
6 #include <openpose/gui/gui.hpp>
9 
10 namespace op
11 {
12  class OP_API Gui3D : public Gui
13  {
14  public:
15  Gui3D(const Point<int>& outputSize, const bool fullScreen,
16  const std::shared_ptr<std::atomic<bool>>& isRunningSharedPtr,
17  const std::shared_ptr<std::pair<std::atomic<bool>, std::atomic<int>>>& videoSeekSharedPtr = nullptr,
18  const std::vector<std::shared_ptr<PoseExtractorNet>>& poseExtractorNets = {},
19  const std::vector<std::shared_ptr<FaceExtractorNet>>& faceExtractorNets = {},
20  const std::vector<std::shared_ptr<HandExtractorNet>>& handExtractorNets = {},
21  const std::vector<std::shared_ptr<Renderer>>& renderers = {},
22  const PoseModel poseModel = PoseModel::BODY_25,
23  const DisplayMode displayMode = DisplayMode::DisplayAll,
24  const bool copyGlToCvMat = false);
25 
26  virtual ~Gui3D();
27 
28  virtual void initializationOnThread();
29 
30  void setKeypoints(const Array<float>& poseKeypoints3D, const Array<float>& faceKeypoints3D,
31  const Array<float>& leftHandKeypoints3D, const Array<float>& rightHandKeypoints3D);
32 
33  virtual void update();
34 
35  virtual Matrix readCvMat();
36 
37  private:
38  const bool mCopyGlToCvMat;
39  };
40 }
41 
42 #endif // OPENPOSE_GUI_GUI_3D_HPP
virtual Matrix readCvMat()
Gui3D(const Point< int > &outputSize, const bool fullScreen, const std::shared_ptr< std::atomic< bool >> &isRunningSharedPtr, const std::shared_ptr< std::pair< std::atomic< bool >, std::atomic< int >>> &videoSeekSharedPtr=nullptr, const std::vector< std::shared_ptr< PoseExtractorNet >> &poseExtractorNets={}, const std::vector< std::shared_ptr< FaceExtractorNet >> &faceExtractorNets={}, const std::vector< std::shared_ptr< HandExtractorNet >> &handExtractorNets={}, const std::vector< std::shared_ptr< Renderer >> &renderers={}, const PoseModel poseModel=PoseModel::BODY_25, const DisplayMode displayMode=DisplayMode::DisplayAll, const bool copyGlToCvMat=false)
virtual ~Gui3D()
virtual void initializationOnThread()
void setKeypoints(const Array< float > &poseKeypoints3D, const Array< float > &faceKeypoints3D, const Array< float > &leftHandKeypoints3D, const Array< float > &rightHandKeypoints3D)
virtual void update()
Definition: gui.hpp:15
#define OP_API
Definition: macros.hpp:18
DisplayMode
Definition: enumClasses.hpp:11
PoseModel
Definition: enumClasses.hpp:10