BackgroundSubsr
Hello, I can´t seem to be able to use the BackgroundSubstractor class. I tried to follow the tutorial like this:
Ptr<BackgroundSubstractor> bg;
...
bg= createBackgroundSubstractor();
the compiler tells me that create BackgroundSubstractor() is not defined.
I have also tried this:
BackgroundSubstractor bg;
bg=new BackgroundSubstractor();
but I get the error
undefined reference to cv::BackgroundSubstractorMOG::BackgroundSubstractorMOG()
Any help will be much appreciated