A position of a tow ball of a tow vehicle is detected by: receiving an image from a rear camera and a size of the tow ball; identifying, a representation of the tow ball projected onto a camera plane of the rear camera; determining at least two rays each passing through a center of the rear camera…