| | |
| | | #ifndef PERIMETERELEMENT |
| | | #define PERIMETERELEMENT |
| | | |
| | | #include <basic/pipe/PipeElement.h> |
| | | #include <basic/event/EventHandler.hpp> |
| | | //#include <basic/event/EventHandler.hpp> |
| | | #include <opencv2/opencv.hpp> |
| | | #include <Ice/Ice.h> |
| | | #include <YoloServer.h> |
| | |
| | | #include <QJsonArray> |
| | | #include <RapidStructureApp/TriggerElement.h> |
| | | #include <basic/util/fastdfs/FastFds.hpp> |
| | | class PerimeterElement : public basic::PipeElement |
| | | { |
| | | |
| | | class PerimeterElement : public basic::PipeElement { |
| | | public: |
| | | PerimeterElement(int alarm_people_num=1); |
| | | |
| | | public: |
| | | ~PerimeterElement(); |
| | | |
| | | //是否有矩形 |
| | | bool hasRects(); |
| | | |
| | | //设置ROI区域 |
| | | void setMask(std::string mask); |
| | | |
| | |
| | | std::string uploadImgToFdfs(cv::Mat& image); |
| | | |
| | | bool saveInfoToEs(const std::string& imgUrl,const ::YoloDetect::ObjInfo& obj); |
| | | |
| | | |
| | | |
| | | private: |