Add function that uses the function of opencv to detect the object and returns the center point of object