| CPC G06T 7/593 (2017.01) [G06T 2207/10028 (2013.01); G06T 2207/20081 (2013.01); G06T 2207/20221 (2013.01); G06T 2207/30252 (2013.01)] | 15 Claims |

|
1. An electronic device comprising:
at least one processor; and
a storage device coupled to the at least one processor and that stores instructions, which when executed by the at least one processor, cause the at least one processor to:
obtain a stereoscopic image as a vehicle is in motion, the stereoscopic image comprising a left image and a right image;
generate a stereo disparity map according to the left image;
generate a predicted right image according to the left image and the stereo disparity map;
calculate a first mean square error (MSE) between the predicted right image and the right image;
determine whether the first MSE is less than a first MSE threshold;
in response that the first MSE is less than the first MSE threshold, determine that training of an autoencoder for generating a depth image is completed;
input an image obtained by a monocular camera to the autoencoder, and generate a stereo disparity map and a temporal disparity map corresponding to the image obtained by the monocular camera; and
generate a fusion disparity map by fusing the stereo disparity map and the temporal disparity map corresponding to the image obtained by the monocular camera, and generate a depth image corresponding to the image obtained by the monocular camera according to the fusion disparity map.
|