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