From f946a62d3921e86b44ff8e2973138304b9cd53cd Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期二, 16 四月 2019 16:36:32 +0800
Subject: [PATCH] 解决修改参数和推流画面跳跃问题

---
 QiaoJiaSystem/StructureApp/JudgmentRetrogradeTool.cpp |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/QiaoJiaSystem/StructureApp/JudgmentRetrogradeTool.cpp b/QiaoJiaSystem/StructureApp/JudgmentRetrogradeTool.cpp
index 17ebf33..4742672 100644
--- a/QiaoJiaSystem/StructureApp/JudgmentRetrogradeTool.cpp
+++ b/QiaoJiaSystem/StructureApp/JudgmentRetrogradeTool.cpp
@@ -15,14 +15,10 @@
     pManagerEsDB(nullptr),
     m_bSetWH(false),
     pointArray(nullptr),
-    npts(0)
+    npts(0),
+    m_rpcClient("RtspAnalysServer", "127.0.0.1",appPref.getIntData("RpcVTIMPort"),"tcp")
 {
     pManagerEsDB = new EsDBTool(appPref.getStringData("ipAdd"), appPref.getIntData("ipPort"));
-}
-
-JudgmentRetrogradeTool::JudgmentRetrogradeTool(const SdkRule &rule, SaveVideoRpcClient_t &rpcClient):JudgmentRetrogradeTool(rule)
-{
-    m_rpcClient = rpcClient;
 }
 
 JudgmentRetrogradeTool::~JudgmentRetrogradeTool() {
@@ -186,7 +182,6 @@
             cv::arrowedLine(image,m_UpBaseLine.start_Point,m_UpBaseLine.end_Point,cv::Scalar(0,0,255));
 
             cv::rectangle(image, scoredRect.rect,  cv::Scalar(0, 0, 255), 2);
-
             std::string imgUrl = uploadImgToFdfs(image);
             saveInfoToEs(imgUrl, scoredRect);
             state=true;
@@ -317,7 +312,7 @@
         if (!server)
         {
             ERR("server is null");
-            return false;
+            //return false;
         }
         INFO("Record Video "<<imgKey);
         server->recordVideo(imgKey);
@@ -325,7 +320,7 @@
     catch (std::exception &e)
     {
         ERR("Record Video Err: "<<imgKey <<"   Message: "<<e.what());
-        return false;
+        //return false;
     }
 
     bool retface = false;

--
Gitblit v1.8.0