OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
guiInfoAdder.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_GUI_ADD_GUI_INFO_HPP
2 #define OPENPOSE_GUI_ADD_GUI_INFO_HPP
3 
4 #include <queue>
6 
7 namespace op
8 {
10  {
11  public:
12  GuiInfoAdder(const int numberGpus, const bool guiEnabled = false);
13 
14  virtual ~GuiInfoAdder();
15 
16  void addInfo(Matrix& outputData, const int numberPeople, const unsigned long long id,
17  const std::string& elementRenderedName, const unsigned long long frameNumber,
18  const Array<long long>& poseIds = Array<long long>{},
19  const Array<float>& poseKeypoints = Array<float>{});
20 
21  private:
22  // Const variables
23  const int mNumberGpus;
24  const bool mGuiEnabled;
25  // Other variables
26  std::queue<std::chrono::high_resolution_clock::time_point> mFpsQueue;
27  double mFps;
28  unsigned int mFpsCounter;
29  std::string mLastElementRenderedName;
30  int mLastElementRenderedCounter;
31  unsigned long long mLastId;
32  };
33 }
34 
35 #endif // OPENPOSE_GUI_ADD_GUI_INFO_HPP
void addInfo(Matrix &outputData, const int numberPeople, const unsigned long long id, const std::string &elementRenderedName, const unsigned long long frameNumber, const Array< long long > &poseIds=Array< long long >{}, const Array< float > &poseKeypoints=Array< float >{})
virtual ~GuiInfoAdder()
GuiInfoAdder(const int numberGpus, const bool guiEnabled=false)
#define OP_API
Definition: macros.hpp:18