An image processing method, comprising: obtaining N images, wherein the N images are taken based on a same photographing location and have different in-focus subjects, and the different in-focus subjects correspond to different focal lengths; determining a reference image in the N images, wherein the reference image is an image in which a target tilt-shift object has a sharpness greater than a preset threshold; obtaining tilt-shift parameters input by a user, wherein the tilt-shift parameters are used to indicate an azimuth of a target focal plane and a tilt-shift area range; determining, based on the tilt-shift parameters, to-be-composited image(s) in intersection with the target focal plane; and performing, based on focal lengths of the to-be-composited image(s) and the reference image, image composite with the N images to output a target tilt-shift image; characterized in that the performing, based on focal lengths of the to-be-composited image(s) and the reference image, image composite with the N images to output a target tilt-shift image comprises: in a case that in-focus subject(s) of the to-be-composited image(s) intersect the target focal plane, stacking and compositing the to-be-composited image(s) and the reference image; and in a case that the in-focus subject(s) of the to-be-composited image(s) do not intersect the target focal plane, performing, based on image(s) of the N images in which in-focus subject(s) intersect with the target focal plane, sharpness processing on the in-focus subject(s) of the to-be-composited image(s), and stacking and compositing the to-be-composited image(s) and the reference image. obtaining N images, wherein the N images are taken based on a same photographing location and have different in-focus subjects, and the different in-focus subjects correspond to different focal lengths; determining a reference image in the N images, wherein the reference image is an image in which a target tilt-shift object has a sharpness greater than a preset threshold; obtaining tilt-shift parameters input by a user, wherein the tilt-shift parameters are used to indicate an azimuth of a target focal plane and a tilt-shift area range; determining, based on the tilt-shift parameters, to-be-composited image(s) in intersection with the target focal plane; and performing, based on focal lengths of the to-be-composited image(s) and the reference image, image composite with the N images to output a target tilt-shift image; characterized in that the performing, based on focal lengths of the to-be-composited image(s) and the reference image, image composite with the N images to output a target tilt-shift image comprises: in a case that in-focus subject(s) of the to-be-composited image(s) intersect the target focal plane, stacking and compositing the to-be-composited image(s) and the reference image; and in a case that the in-focus subject(s) of the to-be-composited image(s) do not intersect the target focal plane, performing, based on image(s) of the N images in which in-focus subject(s) intersect with the target focal plane, sharpness processing on the in-focus subject(s) of the to-be-composited image(s), and stacking and compositing the to-be-composited image(s) and the reference image. in a case that in-focus subject(s) of the to-be-composited image(s) intersect the target focal plane, stacking and compositing the to-be-composited image(s) and the reference image; and in a case that the in-focus subject(s) of the to-be-composited image(s) do not intersect the target focal plane, performing, based on image(s) of the N images in which in-focus subject(s) intersect with the target focal plane, sharpness processing on the in-focus subject(s) of the to-be-composited image(s), and stacking and compositing the to-be-composited image(s) and the reference image.