A high dynamic range image synthesis method, wherein the method comprises: obtaining, based on an HDR photographing operation entered by a user, a plurality of images with different depths of field in a current photographing scene, wherein each image has an exposure value; synthesizing a plurality of images with a same exposure value, to generate a full depth-of-field image; synthesizing full depth-of-field images with a plurality of exposure values by using an HDR algorithm, to generate a high dynamic range image; wherein the obtaining a plurality of images with different depths of field in a current photographing scene, wherein each image has an exposure value comprises: obtaining an initial foreground image from a plurality of images of the current photographing scene, and generating at least one foreground depth-of-field image based on the initial foreground image; obtaining an initial background image from the plurality of images of the current photographing scene, and generating at least one background depth-of-field image based on the initial background image, wherein each foreground depth-of-field image has an exposure value and each background depth-of-field image has an exposure value; wherein the generating at least one foreground depth-of-field image based on the initial foreground image comprises: recognizing a quantity of objects from the initial foreground image; when the quantity of objects is greater than 1, determining first object depths of field corresponding to the plurality of objects; performing focusing on a plurality of objects with different first object depths of field, to obtain a plurality of first object focusing regions; and generating a plurality of foreground depth-of-field images based on the initial foreground image, the plurality of first object focusing regions, a plurality of first object depths of field, and corresponding exposure values. obtaining, based on an HDR photographing operation entered by a user, a plurality of images with different depths of field in a current photographing scene, wherein each image has an exposure value; synthesizing a plurality of images with a same exposure value, to generate a full depth-of-field image; synthesizing full depth-of-field images with a plurality of exposure values by using an HDR algorithm, to generate a high dynamic range image; wherein the obtaining a plurality of images with different depths of field in a current photographing scene, wherein each image has an exposure value comprises: obtaining an initial foreground image from a plurality of images of the current photographing scene, and generating at least one foreground depth-of-field image based on the initial foreground image; obtaining an initial background image from the plurality of images of the current photographing scene, and generating at least one background depth-of-field image based on the initial background image, wherein each foreground depth-of-field image has an exposure value and each background depth-of-field image has an exposure value; wherein the generating at least one foreground depth-of-field image based on the initial foreground image comprises: recognizing a quantity of objects from the initial foreground image; when the quantity of objects is greater than 1, determining first object depths of field corresponding to the plurality of objects; performing focusing on a plurality of objects with different first object depths of field, to obtain a plurality of first object focusing regions; and generating a plurality of foreground depth-of-field images based on the initial foreground image, the plurality of first object focusing regions, a plurality of first object depths of field, and corresponding exposure values. recognizing a quantity of objects from the initial foreground image; when the quantity of objects is greater than 1, determining first object depths of field corresponding to the plurality of objects; performing focusing on a plurality of objects with different first object depths of field, to obtain a plurality of first object focusing regions; and generating a plurality of foreground depth-of-field images based on the initial foreground image, the plurality of first object focusing regions, a plurality of first object depths of field, and corresponding exposure values.