| | |
| | | // |
| | | // |
| | | // Created by basic on 18-8-24. |
| | | // |
| | | |
| | | #ifndef JUDGINGRETROGRADE_JUDGMENTRETROGRADETOOL_H |
| | | #define JUDGINGRETROGRADE_JUDGMENTRETROGRADETOOL_H |
| | | |
| | | #include "SaveVideoRpc.h" |
| | | #include <iostream> |
| | | #include <map> |
| | | #include <list> |
| | |
| | | #include <jsoncpp/json/json.h> |
| | | #include <basic/pipe/PipeElement.h> |
| | | struct VectorPoint { |
| | | cv::Point2f start_Point; |
| | | cv::Point2f end_Point; |
| | | cv::Point2i start_Point; |
| | | cv::Point2i end_Point; |
| | | }; |
| | | |
| | | typedef VectorPoint BaseLine; |
| | |
| | | public: |
| | | JudgmentRetrogradeTool() {} |
| | | |
| | | JudgmentRetrogradeTool(const SdkRule &rule); |
| | | |
| | | JudgmentRetrogradeTool(const SdkRule &rule,SaveVideoRpcClient_t& rpcClient); |
| | | |
| | | virtual ~JudgmentRetrogradeTool(); |
| | | |
| | |
| | | void setImage(const cv::Mat &value); |
| | | |
| | | private: |
| | | JudgmentRetrogradeTool(const SdkRule &rule); |
| | | bool setMask(QString area, QString line); |
| | | |
| | | void setPerPoint(const long &, cv::Point2f); |
| | | |
| | | void setPerRect(const long &, cv::Rect rect); |
| | |
| | | |
| | | cv::Mat image; |
| | | EsDBTool *pManagerEsDB; |
| | | cv::Point2i* pointArray; |
| | | |
| | | int npts; |
| | | QString m_area; |
| | | QString m_line; |
| | | bool m_bSetWH; |
| | | SaveVideoRpcClient_t& m_rpcClient; |
| | | }; |
| | | |
| | | |