派生自 development/c++

miyanhui
2019-02-15 ae5899dc884d8d7e1427e45c35e865d7ca51c34b
QiaoJiaSystem/StructureApp/PerimeterElement.h
@@ -11,11 +11,13 @@
#include <basic/util/fastdfs/FastFds.hpp>
#include "DBStruct.h"
#include <basic/db/Elasticsearch/EsDBTool.h>
#include "IntAreaCalcUtil.h"
#include "SaveVideoRpc.h"
class PerimeterElement : public basic::PipeElement
{
public:
    PerimeterElement(){}
    PerimeterElement(const SdkRule& rule);
    PerimeterElement(const SdkRule& rule,SaveVideoRpcClient_t& rpcClient);
public:
    ~PerimeterElement();
@@ -51,7 +53,7 @@
    void setImage(const cv::Mat &value) const;
private:
    PerimeterElement(const SdkRule& rule);
    virtual void threadInitial()override;
@@ -61,11 +63,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 +83,15 @@
    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;
   SaveVideoRpcClient_t& m_rpcClient;
};
#endif // PAELEMENT_H