A system includes an illumination source, a camera arranged to detect illumination from the illumination source, and a computer communicatively coupled to the illumination source and the camera. The computer is programmed to detect an object in image data from the camera, identify landmarks of the object in the image data, determine a distance from the camera to the object based on a pixel distance between the landmarks in the image data, and adjust a brightness of the illumination source based on the distance.