I am getting an error when I am trying to execute the below-mentioned code of line by using OpenCV 3 version.
bg.set("nmixtures", 10);
Error bg object does not have any member name .set
Can anybody tell me how to use the same function in OpenCV 3 version