Foreground Background detection from video