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

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

cv::BackgroundSubtractorMOG mog;

mog(frame, foreground, 0.03);

posted @ 2015-12-31 15:38  phlsheji  阅读(226)  评论(0编辑  收藏  举报