Hi,
I have a problem subtracting background of the scene (image file taken from a video) from the next frames of the video. I provide code snippet:
cv::absdiff(currentFrame, background, foregrounds);
cv::threshold(foreground, foreground, 25, 255, cv::THRESH_BINARY);
I tried adjusting some parameters but the result is always something like this:
How error like this could be possibly fixed?