OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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
6 #include <openpose/core/common.hpp>
7
8 namespace op
9 {
10 class OP_API GuiInfoAdder
11 {
12 public:
13 GuiInfoAdder(const int numberGpus, const bool guiEnabled = false);
14
15 virtual ~GuiInfoAdder();
16
17 void addInfo(cv::Mat& cvOutputData, const int numberPeople, const unsigned long long id,
18 const std::string& elementRenderedName, const unsigned long long frameNumber,
19 const Array<long long>& poseIds = Array<long long>{},
20 const Array<float>& poseKeypoints = Array<float>{});
21
22 private:
23 // Const variables
24 const int mNumberGpus;
25 const bool mGuiEnabled;
26 // Other variables
27 std::queue<std::chrono::high_resolution_clock::time_point> mFpsQueue;
28 double mFps;
29 unsigned int mFpsCounter;
30 std::string mLastElementRenderedName;
31 int mLastElementRenderedCounter;
32 unsigned long long mLastId;
33 };
34 }
35
36 #endif // OPENPOSE_GUI_ADD_GUI_INFO_HPP
common.hpp
op::Array< long long >
OP_API
#define OP_API
Definition: macros.hpp:19
op::GuiInfoAdder
Definition: guiInfoAdder.hpp:10
cl::string
std::string string
Definition: cl2.hpp:574