image_framework_ymj/image_framework/plugins/PlguinPostgressing.cpp

35 lines
666 B
C++
Raw Normal View History

2024-12-06 16:25:16 +08:00
#include "PlguinPostgressing.h"
#include "MsgBase.h"
#include "Libapi.h"
#include <opencv2/opencv.hpp>
#include <string>
PlguinPostgressing::PlguinPostgressing()
{
}
PlguinPostgressing::~PlguinPostgressing()
{
}
void PlguinPostgressing::onMouse(int event, int x, int y, int, void*) {
if (event == cv::EVENT_LBUTTONDOWN) {
std::cout << "Mouse click at: " << x << ", " << y << std::endl;
}
};
int PlguinPostgressing::OnProcess(LibapiThread* pThisThread, void* pMsg)
{
MACRO_START_TIME(pThisThread->get_name());
return 0;
}
void PlguinPostgressing::OnEndProcess(LibapiThread* pThisThread, void* pMsg)
{
MACRO_RECORD_RUN_TIME(pThisThread->get_name());
}