I tried to use function BackgroundSubstractorMOG2, but it didn't work
this is my code:
Ptr<BackgroundSubtractorMOG2>cv::createBackgroundSubtractorMOG2
(int history = 500, double varThreshold=16, bool detectShadows=true);
but the system showed that
error C2572: “cv::createBackgroundSubtractorMOG2”:
I don't know how to fix it
thanks
which opencv version are you trying to use ?
it's opencv310