Detection, recognition and tracking of three-dimensional objects