From 0ac8a18ccb5b60e251954bb8901b4be47b52622e Mon Sep 17 00:00:00 2001 From: chenshijun <csj_sky@126.com> Date: 星期一, 18 二月 2019 09:54:34 +0800 Subject: [PATCH] 启动多个解码进程 --- QiaoJiaSystem/StructureApp/PerimeterElement.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/QiaoJiaSystem/StructureApp/PerimeterElement.h b/QiaoJiaSystem/StructureApp/PerimeterElement.h index d0056b9..b9d28a2 100644 --- a/QiaoJiaSystem/StructureApp/PerimeterElement.h +++ b/QiaoJiaSystem/StructureApp/PerimeterElement.h @@ -12,10 +12,11 @@ #include "DBStruct.h" #include <basic/db/Elasticsearch/EsDBTool.h> #include "IntAreaCalcUtil.h" +#include "SaveVideoRpc.h" class PerimeterElement : public basic::PipeElement { public: - PerimeterElement(){} + PerimeterElement():m_rpcClient("RtspAnalysServer", "127.0.0.1",10009,"tcp"){} PerimeterElement(const SdkRule& rule); public: ~PerimeterElement(); @@ -52,7 +53,7 @@ void setImage(const cv::Mat &value) const; private: - + //PerimeterElement(const SdkRule& rule); virtual void threadInitial()override; @@ -89,6 +90,7 @@ std::vector<Point> poly1; bool m_bSetWH; cv::Point2i* pointArray; + SaveVideoRpcClient_t m_rpcClient; }; -- Gitblit v1.8.0