CPC G06T 7/50 (2017.01) [G06N 3/04 (2013.01); G06T 7/70 (2017.01); G06T 11/00 (2013.01)] | 20 Claims |
1. A computer comprising a processor and a memory storing instructions executable by the processor to:
receive image data from a camera;
generate a depth map from the image data;
detect an object in the image data;
apply a bounding box circumscribing the object to the depth map;
determine a depth value of a closest pixel in the bounding box from among the pixels of the depth map in the bounding box, the closest pixel being closest to the camera of the pixels in the bounding box;
mask the depth map by setting depth values for the pixels in the bounding box in the depth map to the depth value of the closest pixel in the bounding box; and
determine a distance to the object based on the masked depth map.
|