| | |
| | | #include "TrackingTrigger.h" |
| | | #include <QJsonArray> |
| | | #include <RapidStructureApp/TriggerElement.h> |
| | | #include <basic/util/app/AppPreference.hpp> |
| | | #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():m_rpcClient("RtspAnalysServer", "127.0.0.1",appPref.getIntData("RpcServerPort"),"tcp"){} |
| | | PerimeterElement(const SdkRule& rule); |
| | | public: |
| | | ~PerimeterElement(); |
| | |
| | | void setImage(const cv::Mat &value) const; |
| | | |
| | | private: |
| | | |
| | | //PerimeterElement(const SdkRule& rule); |
| | | |
| | | virtual void threadInitial()override; |
| | | |
| | |
| | | |
| | | 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(); |
| | |
| | | std::vector<Point> poly1; |
| | | bool m_bSetWH; |
| | | cv::Point2i* pointArray; |
| | | SaveVideoRpcClient_t m_rpcClient; |
| | | |
| | | }; |
| | | |