1. An image processing method, being carried out by an image processing device having a processor executing computer-executable instructions, the 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, which comprises: performing pixel alignment on the depth map and the video image of the video image frame; calculating depth differences between each pixel and adjacent pixels on the depth map to determine a pixel from pixels as a segmentation point, wherein a variance of depth differences between the pixel and all adjacent pixels is greater than a preset threshold; traversing all pixels of the depth map to determine all segmentation points; and obtaining, according to all the segmentation points, the contour of the 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.