派生自 development/c++

zhangjixing
2019-01-18 9f08028f23d9e5cbfa159bec1e07d63b141a6809
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);