An image processing method comprising: acquiring consecutive frame images; generating a depth map of a current frame image of the consecutive frame images and a grayscale histogram of the current frame image of the consecutive frame images; determining whether the grayscale histogram of the current frame image satisfies a first condition, the current frame image being classified as a dark image if the first condition is satisfied; outputting, in a case where it has been determined that the grayscale histogram of the current frame image does not satisfy the first condition, the depth map of the current frame image; determining, in a case where it has been determined that the grayscale histogram of the current frame image satisfies the first condition, whether the grayscale histogram of the current frame image satisfies a second condition, the current frame image being classified as an image affected by strong light if the second condition is satisfied; outputting, in a case where it has been determined that the grayscale histogram of the current frame image does not satisfy the second condition, the depth map of the current frame image; and correcting, in a case where the grayscale histogram of the current frame image satisfies the second condition, the depth map of the current frame image, and outputting the corrected depth map of the current frame image, wherein the depth map is corrected by: identifying at least one target region in the current frame image; and substituting corrected depth values in the at least one target region. acquiring consecutive frame images; generating a depth map of a current frame image of the consecutive frame images and a grayscale histogram of the current frame image of the consecutive frame images; determining whether the grayscale histogram of the current frame image satisfies a first condition, the current frame image being classified as a dark image if the first condition is satisfied; outputting, in a case where it has been determined that the grayscale histogram of the current frame image does not satisfy the first condition, the depth map of the current frame image; determining, in a case where it has been determined that the grayscale histogram of the current frame image satisfies the first condition, whether the grayscale histogram of the current frame image satisfies a second condition, the current frame image being classified as an image affected by strong light if the second condition is satisfied; outputting, in a case where it has been determined that the grayscale histogram of the current frame image does not satisfy the second condition, the depth map of the current frame image; and correcting, in a case where the grayscale histogram of the current frame image satisfies the second condition, the depth map of the current frame image, and outputting the corrected depth map of the current frame image, wherein the depth map is corrected by: identifying at least one target region in the current frame image; and substituting corrected depth values in the at least one target region. identifying at least one target region in the current frame image; and substituting corrected depth values in the at least one target region. <EOS>