A distance measuring apparatus, comprising: a camera, adapted to capture image data in a predetermined field of view; a first light source, adapted to emit a first light beam towards the field of view of the camera; a second light source, adapted to emit a second light beam towards the field of view of the camera, the second light beam having a fixed orientation with respect to the first light beam, and the second light source being located at a predetermined distance from the first light source; and a processing unit adapted to - receive the image data captured by the camera, - identify a first image area in the received image data corresponding to an area illuminated by the first light beam and a second image area in the received image data corresponding to an area illuminated by the second light beam, - calculate a number of pixels between the first image area and the second image area, and - determine a distance between the camera and an object illuminated by the first light beam and the second light beam based on the calculated number of pixels between the first image area and the second image area, wherein the first light source and the second light source are adapted to emit light beams having a predetermined wavelength, characterized in that the wavelength of the first light beam is different from the wavelength of the second light beam. a camera, adapted to capture image data in a predetermined field of view; a first light source, adapted to emit a first light beam towards the field of view of the camera; a second light source, adapted to emit a second light beam towards the field of view of the camera, the second light beam having a fixed orientation with respect to the first light beam, and the second light source being located at a predetermined distance from the first light source; and a processing unit adapted to - receive the image data captured by the camera, - identify a first image area in the received image data corresponding to an area illuminated by the first light beam and a second image area in the received image data corresponding to an area illuminated by the second light beam, - calculate a number of pixels between the first image area and the second image area, and - determine a distance between the camera and an object illuminated by the first light beam and the second light beam based on the calculated number of pixels between the first image area and the second image area, - receive the image data captured by the camera, - identify a first image area in the received image data corresponding to an area illuminated by the first light beam and a second image area in the received image data corresponding to an area illuminated by the second light beam, - calculate a number of pixels between the first image area and the second image area, and - determine a distance between the camera and an object illuminated by the first light beam and the second light beam based on the calculated number of pixels between the first image area and the second image area, wherein the first light source and the second light source are adapted to emit light beams having a predetermined wavelength, characterized in that the wavelength of the first light beam is different from the wavelength of the second light beam.