A depth image obtaining method, wherein the method is applied to a camera and the camera comprises a visible light sensor, a phase sensor, and a processor; and the method comprises: collecting, by the visible light sensor, a visible light image of a shooting scene, and collecting, by the phase sensor, a phase image of the shooting scene, wherein the phase image is obtained by the phase sensor by imaging infrared light in the shooting scene; obtaining, by the processor, depth information based on the phase image; and superimposing, by the processor, the depth information on the visible light image to obtain a depth image, wherein the camera further comprises an infrared illuminator and the method further comprises: when a gain of the visible light sensor is not greater than a first threshold, and a gain of the phase sensor is not greater than a second threshold, controlling, by the processor, the infrared illuminator to be in an off state, and wherein the obtaining, by the processor, depth information based on the phase image comprises: segmenting, by the processor, each of the N direction sub-images into m pixel regions based on the visible light image, wherein m ≥ 1 and m is an integer; calculating, by the processor, a coordinate difference between pixels in a first pixel region in a first direction sub-image and a second pixel region in a second direction sub-image, wherein the first direction sub-image and the second direction sub-image are different direction sub-images in the N direction sub-images; the first pixel region is any one of m pixel regions in the first direction sub-image; and the second pixel region is a pixel region, corresponding to the first pixel region, in m pixel regions in the second direction sub-image; and performing, by the processor, calculation based on the coordinate difference to obtain the depth information. collecting, by the visible light sensor, a visible light image of a shooting scene, and collecting, by the phase sensor, a phase image of the shooting scene, wherein the phase image is obtained by the phase sensor by imaging infrared light in the shooting scene; obtaining, by the processor, depth information based on the phase image; and superimposing, by the processor, the depth information on the visible light image to obtain a depth image, wherein the camera further comprises an infrared illuminator and the method further comprises: when a gain of the visible light sensor is not greater than a first threshold, and a gain of the phase sensor is not greater than a second threshold, controlling, by the processor, the infrared illuminator to be in an off state, and wherein the obtaining, by the processor, depth information based on the phase image comprises: segmenting, by the processor, each of the N direction sub-images into m pixel regions based on the visible light image, wherein m ≥ 1 and m is an integer; calculating, by the processor, a coordinate difference between pixels in a first pixel region in a first direction sub-image and a second pixel region in a second direction sub-image, wherein the first direction sub-image and the second direction sub-image are different direction sub-images in the N direction sub-images; the first pixel region is any one of m pixel regions in the first direction sub-image; and the second pixel region is a pixel region, corresponding to the first pixel region, in m pixel regions in the second direction sub-image; and performing, by the processor, calculation based on the coordinate difference to obtain the depth information. when a gain of the visible light sensor is not greater than a first threshold, and a gain of the phase sensor is not greater than a second threshold, controlling, by the processor, the infrared illuminator to be in an off state, and wherein the obtaining, by the processor, depth information based on the phase image comprises: segmenting, by the processor, each of the N direction sub-images into m pixel regions based on the visible light image, wherein m ≥ 1 and m is an integer; calculating, by the processor, a coordinate difference between pixels in a first pixel region in a first direction sub-image and a second pixel region in a second direction sub-image, wherein the first direction sub-image and the second direction sub-image are different direction sub-images in the N direction sub-images; the first pixel region is any one of m pixel regions in the first direction sub-image; and the second pixel region is a pixel region, corresponding to the first pixel region, in m pixel regions in the second direction sub-image; and performing, by the processor, calculation based on the coordinate difference to obtain the depth information. segmenting, by the processor, each of the N direction sub-images into m pixel regions based on the visible light image, wherein m ≥ 1 and m is an integer; calculating, by the processor, a coordinate difference between pixels in a first pixel region in a first direction sub-image and a second pixel region in a second direction sub-image, wherein the first direction sub-image and the second direction sub-image are different direction sub-images in the N direction sub-images; the first pixel region is any one of m pixel regions in the first direction sub-image; and the second pixel region is a pixel region, corresponding to the first pixel region, in m pixel regions in the second direction sub-image; and performing, by the processor, calculation based on the coordinate difference to obtain the depth information.