OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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>
5 #include <opencv2/core/core.hpp> // cv::Mat
7 
8 namespace op
9 {
11  {
12  public:
13  GuiInfoAdder(const int numberGpus, const bool guiEnabled = false);
14 
15  void addInfo(cv::Mat& cvOutputData, const Array<float>& poseKeypoints, const unsigned long long id, const std::string& elementRenderedName);
16 
17  private:
18  // Const variables
19  const int mNumberGpus;
20  const bool mGuiEnabled;
21  // Other variables
22  std::queue<std::chrono::high_resolution_clock::time_point> mFpsQueue;
23  double mFps;
24  unsigned int mFpsCounter;
25  std::string mLastElementRenderedName;
26  int mLastElementRenderedCounter;
27  unsigned long long mLastId;
28  };
29 }
30 
31 #endif // OPENPOSE_GUI_ADD_GUI_INFO_HPP
#define OP_API
Definition: macros.hpp:5
Definition: guiInfoAdder.hpp:10