| | |
| | | #ifndef JUDGINGRETROGRADE_JUDGMENTRETROGRADETOOL_H |
| | | #define JUDGINGRETROGRADE_JUDGMENTRETROGRADETOOL_H |
| | | |
| | | #include "SaveVideoRpc.h" |
| | | #include <iostream> |
| | | #include <map> |
| | | #include <list> |
| | | #include <opencv2/opencv.hpp> |
| | | #include <basic/util/app/AppPreference.hpp> |
| | | //#include <basic/pipe/TimerElement.h> |
| | | #include "YoloRpcElement.h" |
| | | #include <QSharedMemory> |
| | |
| | | |
| | | class JudgmentRetrogradeTool : public basic::PipeElement{ |
| | | public: |
| | | JudgmentRetrogradeTool() {} |
| | | JudgmentRetrogradeTool():m_rpcClient("RtspAnalysServer", "127.0.0.1",appPref.getIntData("RpcServerPort"),"tcp") {} |
| | | |
| | | JudgmentRetrogradeTool(const SdkRule &rule); |
| | | //JudgmentRetrogradeTool(const SdkRule &rule,SaveVideoRpcClient_t& rpcClient); |
| | | |
| | | virtual ~JudgmentRetrogradeTool(); |
| | | |
| | |
| | | void setImage(const cv::Mat &value); |
| | | |
| | | private: |
| | | |
| | | bool setMask(QString area, QString line); |
| | | |
| | | void setPerPoint(const long &, cv::Point2f); |
| | |
| | | QString m_area; |
| | | QString m_line; |
| | | bool m_bSetWH; |
| | | SaveVideoRpcClient_t m_rpcClient; |
| | | }; |
| | | |
| | | |