Download libvideo_compensator/src/sequence_compensator_imp.h from niobures/VideoCompensator: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/niobures/VideoCompensator/resolve/main/libvideo_compensator/src/sequence_compensator_imp.h
- Command line
-
hf download hf://niobures/VideoCompensator/libvideo_compensator/src/sequence_compensator_imp.h
-
curl -L -o sequence_compensator_imp.h https://huggingface.co/niobures/VideoCompensator/resolve/main/libvideo_compensator/src/sequence_compensator_imp.h
703 Bytes
| namespace Ivs | |
| { | |
| class CSequenceCompensator: public ISequenceCompensator | |
| { | |
| public: | |
| CSequenceCompensator() = default; | |
| ~CSequenceCompensator(); | |
| void SetInputMeta(const TInputImageMeta& tInput) override; | |
| void Process() override; | |
| bool IsBackgroundRecover() override; | |
| cv::Mat GetBackgroundImage() override; | |
| private: | |
| void InitBackground(); | |
| void UpdateBackgroundMask(); | |
| cv::Mat m_matBackground; | |
| cv::Mat m_matBackgroundMask; | |
| cv::Mat m_matCurFrame; | |
| std::vector<cv::Rect> m_vecRectObjRegion; | |
| std::vector<cv::Rect> m_vecRectObjRegionPrev; | |
| }; | |
| } | |