To retrieve the foreground object from a video can be used in many video processing problems . The foreground which is extracted can be composited together on a new background . However , the system is restricted . If the video is shaking badly , the motions of foreground and background will be unable to identify separately . And the quality of the output will be bad .