diff --git a/modules/video/src/bgfg_KNN.cpp b/modules/video/src/bgfg_KNN.cpp index 1ddf1b7d51..5ec2266921 100644 --- a/modules/video/src/bgfg_KNN.cpp +++ b/modules/video/src/bgfg_KNN.cpp @@ -214,6 +214,8 @@ public: } } + virtual String getDefaultName() const CV_OVERRIDE { return "BackgroundSubtractor_KNN"; } + virtual int getHistory() const CV_OVERRIDE { return history; } virtual void setHistory(int _nframes) CV_OVERRIDE { history = _nframes; } diff --git a/modules/video/src/bgfg_gaussmix2.cpp b/modules/video/src/bgfg_gaussmix2.cpp index 69e4baf657..f7b26ef06b 100644 --- a/modules/video/src/bgfg_gaussmix2.cpp +++ b/modules/video/src/bgfg_gaussmix2.cpp @@ -236,6 +236,8 @@ public: } } + virtual String getDefaultName() const CV_OVERRIDE { return "BackgroundSubtractor_MOG2"; } + virtual int getHistory() const CV_OVERRIDE { return history; } virtual void setHistory(int _nframes) CV_OVERRIDE { history = _nframes; }