this file finds the centroid in a sequence of image taking a video as input