1. A method comprising: raster scanning light over an object in a field of view of a camera; receiving a reflected image of the light from the object at a detector; determining a distance to the object based on the reflected image; and dynamically modifying the field of view by varying a range over which the raster scanning is performed based on whether the object has been fully scanned.