From fa6cd4892d2841f7237a125f4c2ae96f9f49f520 Mon Sep 17 00:00:00 2001
From: miyanhui <dennismi1024@gmail.com>
Date: 星期五, 15 二月 2019 15:49:20 +0800
Subject: [PATCH] 解决新的方式程序崩溃的问题

---
 QiaoJiaSystem/StructureApp/JudgmentRetrogradeTool.h |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/QiaoJiaSystem/StructureApp/JudgmentRetrogradeTool.h b/QiaoJiaSystem/StructureApp/JudgmentRetrogradeTool.h
index d69df24..3d6cd76 100644
--- a/QiaoJiaSystem/StructureApp/JudgmentRetrogradeTool.h
+++ b/QiaoJiaSystem/StructureApp/JudgmentRetrogradeTool.h
@@ -1,10 +1,11 @@
-//
+锘�//
 // Created by basic on 18-8-24.
 //
 
 #ifndef JUDGINGRETROGRADE_JUDGMENTRETROGRADETOOL_H
 #define JUDGINGRETROGRADE_JUDGMENTRETROGRADETOOL_H
 
+#include "SaveVideoRpc.h"
 #include <iostream>
 #include <map>
 #include <list>
@@ -53,9 +54,10 @@
 
 class JudgmentRetrogradeTool  : public basic::PipeElement{
 public:
-    JudgmentRetrogradeTool() {}
+    JudgmentRetrogradeTool():m_rpcClient("RtspAnalysServer", "127.0.0.1",10009,"tcp") {}
 
     JudgmentRetrogradeTool(const SdkRule &rule);
+    //JudgmentRetrogradeTool(const SdkRule &rule,SaveVideoRpcClient_t& rpcClient);
 
     virtual ~JudgmentRetrogradeTool();
 
@@ -74,6 +76,9 @@
     void setImage(const cv::Mat &value);
 
 private:
+
+    bool setMask(QString area, QString line);
+
     void setPerPoint(const long &, cv::Point2f);
 
     void setPerRect(const long &, cv::Rect rect);
@@ -141,6 +146,10 @@
     cv::Point2i* pointArray;
 
     int npts;
+    QString m_area;
+    QString m_line;
+    bool m_bSetWH;
+    SaveVideoRpcClient_t m_rpcClient;
 };
 
 

--
Gitblit v1.8.0