Detect bounding boxes and save their centroids