Detecting the medial axis of a moving object is done by extracting the frames from the video, a background subtraction, filtering, edge detection, line detection, contour detection. Each of the file below corrrespond to these operations.
You can directly use the "ObjectLocalization.py" to get the annotated output. It provides an easy mechanism to play with the parameters.