US 12,462,413 B2
Method for training autoencoder, electronic device, and storage medium
Chin-Pin Kuo, New Taipei (TW); Chih-Te Lu, New Taipei (TW); Tzu-Chen Lin, New Taipei (TW); and Jung-Hao Yang, New Taipei (TW)
Assigned to HON HAI PRECISION INDUSTRY CO., LTD., New Taipei (TW)
Filed by HON HAI PRECISION INDUSTRY CO., LTD., New Taipei (TW)
Filed on Nov. 30, 2022, as Appl. No. 18/072,513.
Claims priority of application No. 202210654050.6 (CN), filed on Jun. 9, 2022.
Prior Publication US 2023/0401733 A1, Dec. 14, 2023
Int. Cl. G06K 9/00 (2022.01); G06T 7/593 (2017.01)
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
OG exemplary drawing
 
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.