From 9f08028f23d9e5cbfa159bec1e07d63b141a6809 Mon Sep 17 00:00:00 2001 From: zhangjixing <775834166@qq.com> Date: 星期五, 18 一月 2019 10:17:00 +0800 Subject: [PATCH] --- QiaoJiaSystem/YoloServer/YoloDetectServerI.h | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/QiaoJiaSystem/YoloServer/YoloDetectServerI.h b/QiaoJiaSystem/YoloServer/YoloDetectServerI.h index ed5203a..40b25a2 100644 --- a/QiaoJiaSystem/YoloServer/YoloDetectServerI.h +++ b/QiaoJiaSystem/YoloServer/YoloDetectServerI.h @@ -8,10 +8,10 @@ #include <opencv2/opencv.hpp> #include <basic/util/resource/ResourcesManager.h> -#include "DnDetect.h" -#include <atomic> +//#include "DnDetect.h" +//#include <atomic> -struct DnDetectRes { +/*struct DnDetectRes { public: DnDetectRes() : i(3) { } @@ -21,7 +21,7 @@ std::unordered_map<int, std::thread::id> map_pid; // 鎺ュ彈鐨勭嚎绋嬩釜鏁� int i; -}; +};*/ class YoloDetectServerI : public YoloDetect::YoloDetectServer { public: @@ -45,7 +45,7 @@ bool m_bInitThd; std::thread m_thdInit; - std::map<int, DnDetectRes> map_dnDetRes; +// std::map<int, DnDetectRes> map_dnDetRes; // ResourcesManager<int> resourcesManager; @@ -53,6 +53,8 @@ static int init(void *arg); + image matToImg(cv::Mat &RefImg); + cv::Mat bufferToMat(const int w, const int h, const int channels, const void *buffer); -- Gitblit v1.8.0