| | |
| | | #include <jsoncpp/json/json.h> |
| | | #include "DBStruct.h" |
| | | #include "SaveVideoRpc.h" |
| | | |
| | | class VideoCaptureElementNotDecoder : public ffmpeg::VideoCaptureElement { |
| | | using ffmpeg::VideoCaptureElement::VideoCaptureElement; |
| | | private: |
| | | virtual void timerFunc() override { |
| | | fireConnectors(); |
| | | } |
| | | |
| | | virtual void threadInitial() override {} |
| | | |
| | | virtual void threadClosing() override {} |
| | | |
| | | private: |
| | | bool m_decoderRet = {false}; |
| | | }; |
| | | |
| | | class AppPipeController : public PipeController { |
| | | public: |
| | | /*** |
| | |
| | | void setfdfsClient(FastFdsWithLock *p_fdfsClient); |
| | | |
| | | void setWeekRule(const std::map<int, std::vector<LActRuleWeekRecord>>& weekRuleMap); |
| | | |
| | | private: |
| | | void init(); |
| | | |
| | | private://Perimete |
| | | PerimeterElement perimeterElement; |
| | | // TriggerElement peTriggerElement; |
| | |
| | | //TriggerElement crowdTriggerElement; |
| | | |
| | | void initCrowd(); |
| | | |
| | | void RecordVideo(); |
| | | |
| | | private://KeepRight |
| | | JudgmentRetrogradeTool leftJudgment; |
| | | JudgmentRetrogradeTool rightJudgment; |
| | |
| | | |
| | | private: |
| | | PerStaticElement perStaticElement; |
| | | |
| | | void initPerStatic(); |
| | | |
| | | private://Perimete |
| | | PerimeterElement perHubElement; |
| | | // TriggerElement peTriggerElement; |
| | | |
| | | void initPerHub(); |
| | | |
| | | private: |
| | | SaveVideoRpcClient_t m_rpcClient; |
| | | ffmpeg::VideoCaptureElement videoCaptureElement; |
| | | VideoCaptureElementNotDecoder videoCaptureElement; |
| | | // ffmpeg::VideoCaptureElement videoCaptureElement; |
| | | YoloRpcElement yoloRpcElement; |
| | | FaceRpcElement faceRpcElement; |
| | | FaceExtractElement faceExtractElement; |
| | |
| | | std::map<int, std::vector<LActRuleWeekRecord>> m_weekRuleMap; |
| | | SdkRuleMap m_sdkRuleMap; |
| | | std::string m_localIp; |
| | | |
| | | std::string getFullFileName(); |
| | | |
| | | std::mutex mutex; |
| | | bool m_bSetWH; |
| | | HiredisTool m_hiredisTool; |