1. An image processing method, comprising: collecting a video image and a depth map of an object; segmenting, using the depth map, a video image frame corresponding to the video image at a same moment to obtain a contour of a foreground image in the video image frame; performing, according to the contour of the foreground image, first encoding on pixels of a video image inside the contour of the foreground image in the video image frame and second encoding on pixels of a video image outside the contour in the video image frame, to obtain encoded data corresponding to the video image frame, wherein an encoding rate of the first encoding is higher than an encoding rate of the second encoding; and outputting the encoded data corresponding to the video image frame and depth data corresponding to the contour of the foreground image.