The goal of this project is to take a short video of a walking person, stabilize the video, cut the background, replace the background and track the moving person.
We use Lucas-Kanade optical flow for stabilization. Then we use a combination of median filter, borders removal, image eroding and image dilatation.