All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
guiInfoAdder.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_GUI_ADD_GUI_INFO_HPP
#define OPENPOSE_GUI_ADD_GUI_INFO_HPP
#include <queue>
#include <opencv2/core/core.hpp> // cv::Mat
#include <openpose/core/common.hpp>
namespace op
{
class OP_API GuiInfoAdder
{
public:
GuiInfoAdder(const int numberGpus, const bool guiEnabled = false);
virtual ~GuiInfoAdder();
void addInfo(cv::Mat& cvOutputData, 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 variables
const int mNumberGpus;
const bool mGuiEnabled;
// Other variables
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 // 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