I have run the file and it shows me this warning
Warning:The following error was caught while executing 'cv.BackgroundSubtractorMOG' class destructor: Undefined function 'BackgroundSubtractorMOG_' for input arguments of type 'double'.
And this error was displayed;
Error in cv.BackgroundSubtractorMOG/delete (line 59) BackgroundSubtractorMOG_(this.id, 'delete');
Kindly guide me ASAP