| | #ifndef OPENPOSE_GUI_ADD_GUI_INFO_HPP |
| | #define OPENPOSE_GUI_ADD_GUI_INFO_HPP |
| |
|
| | #include <queue> |
| | #include <openpose/core/common.hpp> |
| |
|
| | namespace op |
| | { |
| | class OP_API GuiInfoAdder |
| | { |
| | public: |
| | GuiInfoAdder(const int numberGpus, const bool guiEnabled = false); |
| |
|
| | virtual ~GuiInfoAdder(); |
| |
|
| | 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>{}); |
| |
|
| | private: |
| | |
| | const int mNumberGpus; |
| | const bool mGuiEnabled; |
| | |
| | std::queue<std::chrono::high_resolution_clock::time_point> mFpsQueue; |
| | double mFps; |
| | unsigned int mFpsCounter; |
| | std::string mLastElementRenderedName; |
| | int mLastElementRenderedCounter; |
| | unsigned long long mLastId; |
| | }; |
| | } |
| |
|
| | #endif |
| |
|