A depth map generation method, comprising: obtaining a left two-dimensional, 2D, image and a right two-dimensional image, each having a first image resolution; scaling the left 2D image and the right 2D image to obtain a scaled left 2D image and a scaled right 2D image, each having a second image resolution; and generating an output depth map based on the scaled left 2D image and the scaled right 2D image, wherein the method further comprises: generating an intermediate depth map based on the left 2D image and the right 2D image; obtaining a depth of a target object; the method is characterized in that obtaining the depth of the target is based on the intermediate depth map; and in that the method further comprises: corresponding a plurality of image resolutions to a plurality of depth ranges in a resolution table showing correspondence between the plurality of image resolutions and the plurality of depth ranges, which are calculated under given hardware configurations including camera parameters and calculation scale, wherein the plurality of depth ranges include a short distance range, an intermediate distance range, and a long distance range; determining a depth range of the target object, among the plurality of depth ranges, to which the depth of the target object belongs; and determining the second image resolution as an image resolution corresponding to the depth range of the target object in the resolution table. obtaining a left two-dimensional, 2D, image and a right two-dimensional image, each having a first image resolution; scaling the left 2D image and the right 2D image to obtain a scaled left 2D image and a scaled right 2D image, each having a second image resolution; and generating an output depth map based on the scaled left 2D image and the scaled right 2D image, wherein the method further comprises: generating an intermediate depth map based on the left 2D image and the right 2D image; obtaining a depth of a target object; the method is characterized in that obtaining the depth of the target is based on the intermediate depth map; and in that the method further comprises: corresponding a plurality of image resolutions to a plurality of depth ranges in a resolution table showing correspondence between the plurality of image resolutions and the plurality of depth ranges, which are calculated under given hardware configurations including camera parameters and calculation scale, wherein the plurality of depth ranges include a short distance range, an intermediate distance range, and a long distance range; determining a depth range of the target object, among the plurality of depth ranges, to which the depth of the target object belongs; and determining the second image resolution as an image resolution corresponding to the depth range of the target object in the resolution table. generating an intermediate depth map based on the left 2D image and the right 2D image; obtaining a depth of a target object; the method is characterized in that obtaining the depth of the target is based on the intermediate depth map; and in that the method further comprises: corresponding a plurality of image resolutions to a plurality of depth ranges in a resolution table showing correspondence between the plurality of image resolutions and the plurality of depth ranges, which are calculated under given hardware configurations including camera parameters and calculation scale, wherein the plurality of depth ranges include a short distance range, an intermediate distance range, and a long distance range; determining a depth range of the target object, among the plurality of depth ranges, to which the depth of the target object belongs; and determining the second image resolution as an image resolution corresponding to the depth range of the target object in the resolution table. corresponding a plurality of image resolutions to a plurality of depth ranges in a resolution table showing correspondence between the plurality of image resolutions and the plurality of depth ranges, which are calculated under given hardware configurations including camera parameters and calculation scale, wherein the plurality of depth ranges include a short distance range, an intermediate distance range, and a long distance range; determining a depth range of the target object, among the plurality of depth ranges, to which the depth of the target object belongs; and determining the second image resolution as an image resolution corresponding to the depth range of the target object in the resolution table.