From d3b7bbe7102cd089680a828f5d8f6402c8cf6342 Mon Sep 17 00:00:00 2001 From: pansen <pansen626@sina.com> Date: 星期四, 07 三月 2019 14:43:28 +0800 Subject: [PATCH] GB28181集成完成,集成推流模块 --- QiaoJiaSystem/StructureApp/AppPipeController.cpp | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/QiaoJiaSystem/StructureApp/AppPipeController.cpp b/QiaoJiaSystem/StructureApp/AppPipeController.cpp index 880a7c9..710118b 100644 --- a/QiaoJiaSystem/StructureApp/AppPipeController.cpp +++ b/QiaoJiaSystem/StructureApp/AppPipeController.cpp @@ -19,7 +19,7 @@ //} AppPipeController::AppPipeController(std::string folderPath, const SdkRuleMap &ruleMap) : - m_rpcClient("RtspAnalysServer", "127.0.0.1",10009,"tcp"), + m_rpcClient("RtspAnalysServer", "127.0.0.1",appPref.getIntData("RpcServerPort"),"tcp"), videoCaptureElement("filePath", 25, -1, appPref.getLongData("gpu.index")), // videoCaptureElement(40), m_index(0), @@ -28,9 +28,9 @@ fdfsClient(nullptr), yoloRpcElement(folderPath + "yoloRpc"), faceRpcElement(folderPath + "faceRpc", ruleMap[FaceSdk]), - faceExtractElement(folderPath + "faceExtract", ruleMap[FaceSdk],m_rpcClient), + faceExtractElement(folderPath + "faceExtract", ruleMap[FaceSdk]), triggerElement(25, 10), - recordVideoElement(-1, ""), +// recordVideoElement(-1, ""), bRecordVideoEnable(false), m_bSetWH(false) @@ -70,7 +70,7 @@ // intKeepRight(); //} AppPipeController::AppPipeController(std::string camId, const SdkRuleMap &ruleMap, bool RecordVideoEnable) : - m_rpcClient("RtspAnalysServer", "127.0.0.1",10009,"tcp"), + m_rpcClient("RtspAnalysServer", "127.0.0.1",appPref.getIntData("RpcServerPort"),"tcp"), videoCaptureElement(appPref.getStringData(camId + "rtsp"), 25, 3000, appPref.getLongData("gpu.index")), // videoCaptureElement(40), m_index(0), @@ -78,16 +78,16 @@ fdfsClient(nullptr), yoloRpcElement(camId + "yoloRpc"), faceRpcElement(camId + "faceRpc", ruleMap[FaceSdk]), - faceExtractElement(camId + "faceExtract", ruleMap[FaceSdk],m_rpcClient), + faceExtractElement(camId + "faceExtract", ruleMap[FaceSdk]), triggerElement(25, 4), - recordVideoElement(camId, appPref.getStringData(camId + "rtsp")), - newRecordVideoElement(camId), - perimeterElement(ruleMap[PerimeterSdk],m_rpcClient), - crowdElement(ruleMap[CrowdSdk],m_rpcClient), +// recordVideoElement(camId, appPref.getStringData(camId + "rtsp")), +// newRecordVideoElement(camId), + perimeterElement(ruleMap[PerimeterSdk]), + crowdElement(ruleMap[CrowdSdk]), perStaticElement(ruleMap[PerStaticSdk]), - perHubElement(ruleMap[PerHubSdk],m_rpcClient), - leftJudgment(ruleMap[KeepRightSdk],m_rpcClient), - rightJudgment(ruleMap[KeepRightSdk],m_rpcClient), + perHubElement(ruleMap[PerHubSdk]), + leftJudgment(ruleMap[KeepRightSdk]), + rightJudgment(ruleMap[KeepRightSdk]), bRecordVideoEnable(RecordVideoEnable), m_sdkRuleMap(ruleMap), m_bSetWH(false) -- Gitblit v1.8.0