The invention relates to a video face
replacement method based on illumination migration, and the method comprises the steps: 1,
face detection and recognition: carrying out the positioning of a replaced target face faceA in a face replacement video, recognizing a face feature value, positioning a plurality of key points of a face, and determining the angle deviation information of the face; positioning the replacement face faceB, identifying a face feature value, and detecting a plurality of key points of the face; step 2, determining a
transformation matrix, positioning and detecting face information of the face-changing video, extracting features, extracting features featureA, and finding out a matrix transferA which needs
distortion transformation and is obtained by converting the featureA into the featureA; step 3, face replacement: carrying out transferA-based transformation on the face B, restoring the face B to a shooting angle of a face changing video to form new face information face B, and replacing the feature A by using the feature B; and step 4, illumination migration: applying an illumination migration
algorithm to obtain a final result of video face replacement. Themethod can be widely applied and popularized to
computer vision, visual design,
digital entertainment, film production and the like.