Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What's stopping you subtract the background independently

cv::Mat temp;
cv::subtract(camFrame,foreground,temp);
cv::threshold(temp,temp,25,255,cv::THRESH_BINARY);