The invention relates to the technical field of
image processing, in particular to a material expanding,
cutting and beautifying method and
system. The method comprises the following steps: inputting a
background image into a preset image external expansion model to obtain a target
background image; inputting the main body element information of the target
background image and the main body image into a preset
layout generation model to obtain a first
layout result; according to the first
layout result, combining the main body image with the target background image to obtain a combined image;
cutting the combined picture according to the target size to obtain a
cut picture; inputting decoration element information of the
cutting picture and the decoration picture layer into a layout generation model to obtain a second layout result; optimizing the second layout result by adopting a preset refined
network on the basis of the cutting graph to obtain a third layout result; and according to the third layout result, combining the decorative
image layer with the
cut image to generate a target image. According to the method, the
semantic consistency and aesthetic feeling of the composition can be ensured.