From 55337c3876fa54863463ab7c30a7ed0fcb3c88e5 Mon Sep 17 00:00:00 2001 From: chenshijun <chenshijun@aiotlink.com> Date: 星期四, 21 三月 2019 14:43:15 +0800 Subject: [PATCH] facesearchserver出现段错误,map的operater[],疑似该处,加些调试信息。 --- 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