派生自 development/c++

miyanhui
2019-02-13 e4c9b5bfb1d9000c08d84f2f044cd0c3605a2945
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,11 +62,10 @@
    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();
    bool isAnd();
private:
    cv::Mat image;
    //cv::Mat mask;
@@ -82,10 +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