The invention provides a multi-target person image face replacement and
skin color coordination method and
system, and relates to the technical field of
artificial intelligence image processing, and the method comprises the steps: receiving a source face image and a target
image sequence containing a plurality of target persons; performing character detection on each target image, and retaining a character detection frame of which the confidence is higher than a threshold value;
cutting the figure area based on the detection frame and expanding pixel redundancy to form an expanded
cut image including a head and an adjacent
skin area; zooming all the expanded and
cut images to a uniform resolution ratio and then splicing the expanded and
cut images into an optimized long image; and performing semantic segmentation on the optimized long graph, generating a multi-layer
mask comprising a core
mask layer, an extension
mask layer and a coordination
mask layer, and performing adaptive edge
processing. Through a preprocessing strategy, multi-layer mask control, a style guiding mechanism and a
skin color and illumination coordination technology, the quality, efficiency and practicability of a face changing result are improved.