Ask Your Question

Revision history [back]

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

BackgroundSubsr

Hello, I can´t seem to be able to use the BackgroundSubstractor class. I tried to follow the tutorial like this: this:

     Ptr<backgroundsubstractor> Ptr<BackgroundSubstractor> bg;
 ...
  bg= createBackgroundSubstractor();

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