A machine readable and non-transitory medium having information recorded thereon for determining depth information in autonomous driving, wherein the information, when read by the machine, causes the machine to perform:
- obtaining stereo images from multiple stereo pairs selected from at least two stereo pairs, wherein the at least two stereo pairs have stereo cameras installed with a same baseline and in a same vertical plane, wherein one of the at least two stereo pairs is configured to acquire stereo images of a scene with a wider field of view and remaining of the at least two stereo pairs is configured to acquire stereo images of the scene with a narrow field of view, wherein the obtaining further comprises:
- receiving at least one image from the stereo pair capturing the scene with the wider field of view,
- detecting one or more relevant objects from the at least one image, and
- selecting the multiple stereo pairs from the at least two stereo pairs based on the one or more relevant objects, wherein each of the multiple stereo pairs with a narrow field of view is configured to capture a region in the at least one image where the object is observed;
- fusing left images from the multiple stereo pairs to generate a fused left image;
- fusing right images from the multiple stereo pairs to generate a fused right image;
- estimating disparity based on the fused left and right images;
- and
- computing depth information of a scene captured by the stereo images based on the stereo images and the disparity.