| | |
| | | #include <QJsonObject> |
| | | #include <QJsonDocument> |
| | | #include <QtGui/QPolygon> |
| | | #include "DBStruct.h" |
| | | #include <basic/db/Elasticsearch/EsDBTool.h> |
| | | #include <jsoncpp/json/json.h> |
| | | |
| | | struct VectorPoint{ |
| | | cv::Point2f start_Point; |
| | |
| | | |
| | | class JudgmentRetrogradeTool :public TimerElement { |
| | | public: |
| | | JudgmentRetrogradeTool(); |
| | | JudgmentRetrogradeTool() : TimerElement(1000) {} |
| | | |
| | | JudgmentRetrogradeTool(const SdkRule &rule); |
| | | |
| | | virtual ~JudgmentRetrogradeTool(); |
| | | |
| | |
| | | |
| | | bool getTriggerState() const; |
| | | |
| | | void setFdfs(FastFdsWithLock *p_fdfsClient) { |
| | | fdfsClient = p_fdfsClient; |
| | | } |
| | | |
| | | void setImage(const cv::Mat &value); |
| | | |
| | | private: |
| | | void setPerPoint(const long&,cv::Point2f); |
| | | |
| | | void setPerRect(const long&,cv::Rect rect); |
| | | |
| | | //设置上行的运动基准线 |
| | |
| | | |
| | | QJsonArray getJsonArrayFromQString(const QString strJson); |
| | | |
| | | std::string uploadImgToFdfs(cv::Mat &image); |
| | | |
| | | bool saveInfoToEs(const std::string &imgUrl, const ScoredRect &obj); |
| | | |
| | | bool isInWeek(const std::vector<LActRuleWeekRecord> &ruleWeek); |
| | | |
| | | private: |
| | | // virtual void threadInitial() override; |
| | |
| | | TriggerElement m_triggerElement; |
| | | |
| | | std::vector<ScoredRect> mObjs; |
| | | |
| | | const SdkRule m_sdkRule; |
| | | |
| | | FastFdsWithLock *fdfsClient; |
| | | |
| | | cv::Mat image; |
| | | EsDBTool *pManagerEsDB; |
| | | }; |
| | | |
| | | |