From a2ea58c567a078bb97a9e45a56fe50df41438d22 Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期一, 15 四月 2019 10:37:31 +0800
Subject: [PATCH] 整合c++ver1.3的修改代码进入该分支

---
 QiaoJiaSystem/StructureApp/AppPipeController.cpp |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/QiaoJiaSystem/StructureApp/AppPipeController.cpp b/QiaoJiaSystem/StructureApp/AppPipeController.cpp
index 68383b4..320f461 100644
--- a/QiaoJiaSystem/StructureApp/AppPipeController.cpp
+++ b/QiaoJiaSystem/StructureApp/AppPipeController.cpp
@@ -9,7 +9,7 @@
 
 #include <basic/pipe_element/ffmpeg/basic_struct_for_video_image.h>
 //AppPipeController::AppPipeController(std::string folderPath, const Json::Value &json) :
-//    videoCaptureElement("filePath", 25, -1, appPref.getLongData("gpu.index")), m_index(0),
+//    videoCaptureElement("filePath", 25, -1, appPref.getIntData("gpu.index")), m_index(0),
 //    m_folderPath(folderPath),
 //    m_json(json), fdfsClient(nullptr), yoloRpcElement(folderPath + "yoloRpc"), faceRpcElement(folderPath + "faceRpc"),
 //    faceExtractElement(folderPath + "faceExtract"), triggerElement(25, 10),
@@ -19,8 +19,8 @@
 
 //}
 AppPipeController::AppPipeController(std::string folderPath, const SdkRuleMap &ruleMap) :
-    m_rpcClient("RtspAnalysServer", "127.0.0.1", appPref.getIntData("RpcServerPort"), "tcp"),
-    videoCaptureElement("filePath", 25, -1, appPref.getLongData("gpu.index")),
+    m_rpcClient("RtspAnalysServer", "127.0.0.1",appPref.getIntData("RpcVTIMPort"),"tcp"),
+    videoCaptureElement("filePath", 25, -1, appPref.getIntData("gpu.index")),
 //    videoCaptureElement(40),
     m_index(0),
     m_folderPath(folderPath),
@@ -39,7 +39,7 @@
 
 }
 //AppPipeController::AppPipeController(int index, const Json::Value &json, bool RecordVideoEnable) :
-//    videoCaptureElement(json["rtsp"].asString(), 25, 3000, appPref.getLongData("gpu.index"), RecordVideoEnable),
+//    videoCaptureElement(json["rtsp"].asString(), 25, 3000, appPref.getIntData("gpu.index"), RecordVideoEnable),
 //    m_index(index), fdfsClient(nullptr), yoloRpcElement(to_string(index) + "yoloRpc"),
 //    faceRpcElement(to_string(index) + "faceRpc"), m_json(json), faceExtractElement(to_string(index) + "faceExtract"),
 //    triggerElement(25, 4), recordVideoElement(index, json["rtsp"].asString()), bRecordVideoEnable(RecordVideoEnable) {
@@ -48,7 +48,7 @@
 
 
 //AppPipeController::AppPipeController(std::string camId, const Json::Value &json, bool RecordVideoEnable) :
-//    videoCaptureElement(json["rtsp"].asString(), 25, 3000, appPref.getLongData("gpu.index")),
+//    videoCaptureElement(json["rtsp"].asString(), 25, 3000, appPref.getIntData("gpu.index")),
 //    m_index(0),
 //    m_camId(camId),
 //    fdfsClient(nullptr),
@@ -69,8 +69,8 @@
 //    intKeepRight();
 //}
 AppPipeController::AppPipeController(std::string camId, const SdkRuleMap &ruleMap, bool RecordVideoEnable) :
-    m_rpcClient("RtspAnalysServer", "127.0.0.1", appPref.getIntData("RpcServerPort"), "tcp"),
-    videoCaptureElement(appPref.getStringData(camId + "rtsp"), 25, 3000, appPref.getLongData("gpu.index")),
+    m_rpcClient("RtspAnalysServer", "127.0.0.1",appPref.getIntData("RpcVTIMPort"),"tcp"),
+    videoCaptureElement(appPref.getStringData(camId + "rtsp"), 25, 3000, appPref.getIntData("gpu.index")),
 //    videoCaptureElement(40),
     m_index(0),
     m_camId(camId),
@@ -256,9 +256,10 @@
     videoCaptureElement.registerConnector([&] {
 
         std::string imgKey;
-        m_hiredisTool.listRpop(m_camId, imgKey);
-        if (imgKey.empty()) {
-            ERR("CamId  " << m_camId << " No ImgKey");
+        m_hiredisTool.listRpop(m_camId,imgKey);
+        if(imgKey.empty())
+        {
+//            ERR("CamId  "<<m_camId<<" No ImgKey");
             return;
         }
 
@@ -285,7 +286,7 @@
                 //#todo
                 faceRpcElement.setProperty("time", strNewTime);
                 faceRpcElement.setProperty("imgKey", imgKey);
-                INFO("Write To FaceRPC  ES time:" << strNewTime << "    ImgKey: " << imgKey);
+//                INFO("Write To FaceRPC  ES time:" << strNewTime << "    ImgKey: " << imgKey);
                 faceRpcElement.setImage(imageTemp);
                 faceRpcElement.submit();
             }
@@ -294,7 +295,7 @@
                 //#todo
                 yoloRpcElement.setProperty("time", strNewTime);
                 yoloRpcElement.setProperty("imgKey", imgKey);
-                INFO("Write To YoloES time:" << strNewTime << "    ImgKey: " << imgKey);
+//                INFO("Write To YoloES time:" << strNewTime << "    ImgKey: " << imgKey);
                 yoloRpcElement.setImage(imageTemp);
                 yoloRpcElement.submit();
             }

--
Gitblit v1.8.0