[背景分离] 识别移动物体基于高斯混合 MOG

使用很easy,  frame 就是当前帧,  foreground 是取得的, binary 型背景, 0.03是学习速率能够依据实际调整.

cv::BackgroundSubtractorMOG mog;

mog(frame, foreground, 0.03);

原文地址:https://www.cnblogs.com/bhlsheji/p/5091921.html