Close shadow detection on BackgroundSubtractorMOG2 in opencv.js [closed]
I want to close shadow detection on BackgroundSubtractorMOG2()(opencv.js ) I do some research on google and i find this C++ code:documentation
But I can't implement this code on my javascript code.basically following code doesn't work and get error
let fgbg = new cv.BackgroundSubtractorMOG2(500, 16, true,0);
BindingError: Tried to invoke ctor of BackgroundSubtractorMOG2 with invalid number of parameters (4) - expected (0,1,2,3) parameters instead