The invention provides a real-time face blind
restoration method and device based on identity constraint and
frequency domain enhancement, and relates to the technical field of
image processing, and the method comprises the steps: S1, generating an identity code through the fusion of CLIP and ArcFace, extracting
spatial structure features in combination with
ControlNet, and obtaining a high-frequency component through the
decomposition of learnable wavelets; s2, an input image is mapped to a
potential space, and identity, space and high-frequency features are fused to construct a condition vector; s3, performing iterative denoising based on the
consistency model, and superposing lightweight
wavelet residual correction to enhance high-frequency details; s4, according to the high-frequency energy dynamic distribution weight, reconstructing a multi-scale
fusion image through inverse
wavelet transform; according to the method, the problems of identity
distortion, detail loss and low calculation efficiency of a low-quality face image in restoration are solved, and
semantic consistency, detail fidelity and real-time performance of a restoration result are improved through identity-space-
frequency domain ternary constraint, lightweight residual correction and degradation
perception enhancement.