OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends 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 int numberPeople, const unsigned long long id,
16  const std::string& elementRenderedName);
17 
18  private:
19  // Const variables
20  const int mNumberGpus;
21  const bool mGuiEnabled;
22  // Other variables
23  std::queue<std::chrono::high_resolution_clock::time_point> mFpsQueue;
24  double mFps;
25  unsigned int mFpsCounter;
26  std::string mLastElementRenderedName;
27  int mLastElementRenderedCounter;
28  unsigned long long mLastId;
29  };
30 }
31 
32 #endif // OPENPOSE_GUI_ADD_GUI_INFO_HPP
#define OP_API
Definition: macros.hpp:15
Definition: guiInfoAdder.hpp:10
std::string string
Definition: cl2.hpp:574