From e4c9b5bfb1d9000c08d84f2f044cd0c3605a2945 Mon Sep 17 00:00:00 2001
From: miyanhui <dennismi1024@gmail.com>
Date: 星期三, 13 二月 2019 14:17:13 +0800
Subject: [PATCH] 修复检测结果ImgKey不对应的问题

---
 QiaoJiaSystem/StructureApp/PerimeterElement.h |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/QiaoJiaSystem/StructureApp/PerimeterElement.h b/QiaoJiaSystem/StructureApp/PerimeterElement.h
index 685677e..d0056b9 100644
--- a/QiaoJiaSystem/StructureApp/PerimeterElement.h
+++ b/QiaoJiaSystem/StructureApp/PerimeterElement.h
@@ -11,6 +11,7 @@
 #include <basic/util/fastdfs/FastFds.hpp>
 #include "DBStruct.h"
 #include <basic/db/Elasticsearch/EsDBTool.h>
+#include "IntAreaCalcUtil.h"
 class PerimeterElement : public basic::PipeElement
 {
 public:
@@ -61,7 +62,7 @@
 
     std::string uploadImgToFdfs(cv::Mat& image);
 
-    bool saveInfoToEs(const std::string& imgUrl,const std::string& time);
+    bool saveInfoToEs(const std::string& imgUrl,const std::string& time,const std::string& imgKey);
     void setMask(std::string mask);
     bool isInWeek(const std::vector<LActRuleWeekRecord>& ruleWeek);
     cv::Rect CutMask();
@@ -81,8 +82,14 @@
     EsDBTool* pManagerEsDB;
 
 
-   int npts;
-   vector<cv::Rect> m_recVec;
+    int npts;
+   std::vector<cv::Rect> m_recVec;
+
+   bool m_bIsMask;
+   std::vector<Point> poly1;
+   bool m_bSetWH;
+   cv::Point2i* pointArray;
+
 };
 
 #endif // PAELEMENT_H

--
Gitblit v1.8.0