A video face privacy protection method based on image steganography

By building a binary classification model for carrier images and encrypted images, a generator model with a complex residual structure, and a password model, the problem of reduced video quality caused by face privacy protection in surveillance videos is solved, and efficient privacy protection and video restoration are achieved, which is suitable for For equipment such as surveillance cameras and driving recorders.

CN117313142BActive Publication Date: 2024-10-11CHONGQING RES INST OF HARBIN UNIV OF TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311179669.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-13
Publication Date
2024-10-11
Estimated Expiration
2043-09-13

AI Technical Summary

Technical Problem

Existing face privacy protection methods in surveillance videos usually reduce video quality irreversibly, affecting the accuracy of surveillance tasks and subsequent investigations.

Method used

Adopting a video face privacy protection method based on image steganography, by building a binary classification model of carrier pictures and encrypted pictures, a residual structure complex generator model and a password model, and using MSELoss and CrossEntropyLoss loss functions to train the model, the face information is achieved Steganography and restoration to ensure video quality is not degraded.

Benefits of technology

A high degree of privacy protection is achieved without reducing video quality, and the privacy-protected video can be highly restored after authorization. It is simple to operate and is suitable for equipment such as surveillance cameras and driving recorders.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117313142B_ABST
    Figure CN117313142B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for protecting the privacy of video faces based on image steganography. First, carrier images and face images are collected; then a carrier image and a carrier image binary classification model, a password model, a residual structure complex generator model A and a residual structure complex generator model B are correspondingly constructed; then the above models are trained to collect the carrier image data and restore the secret image data; the faces appearing in the original video are effectively protected and restored when necessary. The present invention can achieve a high degree of privacy protection without reducing the quality of the video, and can highly restore the privacy-protected video after obtaining password authorization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a privacy protection method, in particular to a video face privacy protection method based on image steganography, belonging to the field of video privacy protection. Background Art

[0002] With the continuous development and popularization of surveillance technology, surveillance cameras have become an essential component of security systems in many public places, commercial buildings, communities, and homes. The use of surveillance cameras provides real-time monitoring, event recording, and crime prevention functions, playing a vital role in maintaining social security and providing evidence.

[0003] However, with the widespread use of surveillance cameras, issues related to personal privacy protection have become increasingly prominent. Surveillance cameras may collect a large amount of personal information, such as personal identity, facial features, and behavior. This information can be misused or used without authorization. Furthermore, the images and videos captured by surveillance cameras within their surveillance range may contain sensitive information, such as bank card numbers, passwords, and device characteristics. If this information falls into the wrong hands, it can lead to risks such as identity theft and financial loss.

[0004] To address the privacy protection issues in surveillance videos, many methods have been proposed and applied. One common approach is to protect the privacy of sensitive information by masking, blurring, or pixelating the video. However, this approach has several inherent issues. First, these methods directly modify the video, resulting in a decrease in video quality, which affects the accurate analysis and capture of key details required for surveillance tasks. Second, these methods are often irreversible: once the video content is modified, the original information cannot be fully restored, complicating subsequent investigations and judgments. Summary of the Invention

[0005] The present invention aims to solve the problem of infringing on the privacy of others by videos shot by devices such as cameras or driving recorders, and to achieve a high degree of privacy protection without reducing the video quality. A video face privacy protection method based on image steganography is proposed.

[0006] The technical solution adopted by the present invention to solve the above problems is:

[0007] A video face privacy protection method based on image steganography is implemented by the following steps:

[0008] S1: Collect basic information; collect multiple carrier images that can cover human faces, capture the captured facial video data, perform face recognition, process the video data into image data, extract the facial image that appears in each image data and name it as a secret image;

[0009] S2: Build a binary classification model for carrier images and secret images;

[0010] S3: Build a password model, a residual structure complex generator model A, and a residual structure complex generator model B;

[0011] S4: Simultaneously train the residual structure complex generator model A, the residual structure complex generator model B, and the password model through the loss function to collect encrypted image data;

[0012] S5: Using loss function 2, a binary classification model for carrier and secret images is trained to determine whether the image belongs to a carrier image or a secret image.

[0013] S6: Input the secret image obtained in S4 into the carrier image and secret image binary classification model trained in S5, and train a residual structure complex generator model A, a residual structure complex generator model B and a password model again to collect and restore the secret image data;

[0014] S7: Input the secret image collected in S4 into the residual structure complex generator model A to obtain secret data, put the secret data into the carrier data, obtain temporary data, add the temporary data to the password data to obtain the secret image data, put the secret image data back into the image data, and then convert the image data into video data. The face appearing in the original video is effectively protected.

[0015] S8: Put the restored secret image data collected in S6 back into the image data, and then convert the image data into video data, so that the face appearing in the original video can be restored.

[0016] Furthermore, the face recognition in S1 specifically includes:

[0017] S11: Use the face detection method in OpenCV to detect faces in image data;

[0018] S12: Extract the detected face image data to obtain the face image data, the face image data after extraction, and the face coordinates;

[0019] S13: Record the location information of the detected face image data.

[0020] Furthermore, the simultaneous training of the residual structure complex generator model A, the residual structure complex generator model B and the password model in S4 specifically includes:

[0021] S41: Obtain cryptographic data of the same size as the secret image through the cryptographic model;

[0022] S42: The secret image data is input into the residual structure complex generator model A to obtain the secret data;

[0023] S43: The secret data is put into the carrier image data to obtain temporary data;

[0024] S44: Add the temporary data to the password data to obtain the encrypted image data;

[0025] S45: Subtract the password data from the encrypted image data to obtain temporary data;

[0026] S46: Temporary data is input into the residual structure complex generator model B to obtain the restored secret image data.

[0027] Furthermore, the loss function 1 uses the MSELoss loss function between the restored secret image data and the secret image data. The MSELoss loss function is as follows:

[0028] When reduction is set to None:

[0029] l(x,y)=L={l1...,l N} T ,l n =(x n -y n ) 2 (1)

[0030] When reduction is not None:

[0031]

[0032] In formula (1) and formula (2), N is the number of samples, l n is the loss value of the nth sample, x n is the neural network output of the nth sample, y n is the true score of the nth sample, and T is the transpose.

[0033] Furthermore, the second loss function is the CrossEntropyLoss loss function, and the CrossEntropyLoss loss function formula is as follows:

[0034] H(p,q)=-∑ x (p(x)logq(x)) (3)

[0035] In formula (3), p is the expected output, q is the actual output, and x is the sample.

[0036] Furthermore, the facial video data is one of facial video data taken by a supermarket surveillance camera, facial video data taken by a road surveillance camera, and facial video data taken by a driving recorder.

[0037] Furthermore, the carrier image is a mosaic image.

[0038] The beneficial effects of the present invention are:

[0039] The video face privacy protection method based on image steganography of the present invention can achieve a high degree of privacy protection without reducing the video quality, and can highly restore the privacy-protected video after obtaining password authorization. At the same time, the operation of this method is very simple, and it only requires connecting the trained model to the device where the video needs to be hidden. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic diagram of the overall framework flow of the present invention.

[0041] Figure 2 It is a flow chart of the training model of the present invention.

[0042] Figure 3 It is a schematic diagram of the face recognition process of the present invention.

[0043] Figure 4 It is a schematic diagram of the binary classification model of carrier images and secret images of the present invention.

[0044] Figure 5 It is a schematic diagram of the cryptographic model structure of the present invention.

[0045] Figure 6 This is a schematic diagram of the residual structure complex generator model structure A of the present invention.

[0046] Figure 7 It is a schematic diagram of the residual structure complex generator model structure B of the present invention. DETAILED DESCRIPTION

[0047] Below, the present invention is further described with reference to the accompanying drawings:

[0048] Specific implementation method 1: Combination Figure 1-7 This embodiment is described as follows. Figure 1-7 As shown, the video face privacy protection method based on image steganography described in this embodiment is implemented by the following steps:

[0049] S1: Collect basic information; collect multiple carrier images that can cover human faces. Specifically, create a folder one, collect multiple carrier images that can cover human faces and put them into folder one. The carrier images can be mosaic images.

[0050] Collect and capture facial video data, which can be one of the facial video data captured by supermarket surveillance cameras, road surveillance cameras, and driving recorders. Perform face recognition, process the video data into image data, extract the facial image that appears in each image data and name it a secret image. The face recognition process is as follows: Figure 3 As shown, the face recognition is achieved by the following steps:

[0051] S11: Use the face detection method in OpenCV to detect faces in image data;

[0052] S12: Extract the detected face image data to obtain the face image data, the face image data after extraction, and the face coordinates;

[0053] S13: Record the location information of the detected face image data.

[0054] Specifically, collect face video data, write Python code to process the video data frame by frame into image data, use the face detection method in OpenCV to detect faces in the image data, write Python code to extract the detected face image data, and set the RGB value of the face position in the image data after extracting the face image data to (0, 0, 0), create a folder 2, put the face image data into folder 2, write Python code to create a txt file, and record the location information of the detected face image data in the txt file.

[0055] S2: Build a binary classification model for carrier images and secret images. Figure 4 As shown in the figure, the structure of the binary classification model for carrier images and secret images is as follows:

[0056] Convolution layer: 32 channels, 5*5 convolution kernel, batch normalization layer, maximum pooling layer,

[0057] Convolution layer: 64 channels, 5*5 convolution kernel, batch normalization layer, maximum pooling layer,

[0058] Convolution layer: 128 channels, 5*5 convolution kernel, batch normalization layer, maximum pooling layer,

[0059] Convolution layer: 256 channels, 5*5 convolution kernel, batch normalization layer, maximum pooling layer,

[0060] Flatten layer, linear layer, linear layer, linear layer.

[0061] S3: Build a password model, a residual structure complex generator model A and a residual structure complex generator model B. Figure 5As shown in the figure, the password model structure is as follows:

[0062] Linear layer, linear layer, linear layer.

[0063] like Figure 6 As shown, the residual structure complex generator model A is specifically:

[0064] Convolutional layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer,

[0065] Convolutional layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer,

[0066] Convolutional layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer,

[0067] Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel 3, LeakReLU layer, instance normalization layer, convolution layer: number of channels 256, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: number of channels 256, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: number of channels 256, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: number of channels 256, convolution kernel 3*3, LeakReLU layer, instance normalization Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 64 channels, 64 convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: number of channels 64, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: number of channels 64, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: number of channels 64, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: number of channels 3, convolution kernel 3*3, LeakReLU layer, instance normalization layer. Figure 7 As shown, the residual structure complex generator model B is specifically:

[0068] Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer Layer: Channel number 128, convolution kernel 3*3, LeakReLU layer, instance normalization layer, Convolution layer: Channel number 128, convolution kernel 3*3, LeakReLU layer, instance normalization layer, Convolution layer: Channel number 256, convolution kernel 3*3, LeakReLU layer, instance normalization layer, Convolution layer: Channel number 256, convolution kernel 3*3, LeakReLU layer, instance normalization layer, Convolution layer: Channel number 256, convolution kernel 3*3, LeakReLU layer, instance normalization layer, Convolution layer: Channel number 256, convolution kernel 3*3, LeakReLU layer, instance normalization layer,

[0069] Convolutional layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer,

[0070] Convolutional layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer,

[0071] Convolutional layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer,

[0072] Convolutional layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer,

[0073] Convolutional layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer,

[0074] Convolutional layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer,

[0075] Convolutional layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer,

[0076] Convolutional layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer,

[0077] Convolutional layer: 3 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer.

[0078] S4: Use loss function 1 to train the residual structure complex generator model A, residual structure complex generator model B and password model simultaneously to collect encrypted image data.

[0079] like Figure 5-7 As shown, the present invention uses a residual neural network when using network layers to build residual structure complex generator model A and residual structure complex generator model B, which greatly eliminates the difficulty in training neural network models with excessive depth.

[0080] Through step S3, the construction of the residual structure complex generator model A, the residual structure complex generator model B and the password model has been completed.

[0081] At the same time, a residual structure complex generator model A, a residual structure complex generator model B and a password model are trained. The loss function is to restore the secret image data and use the MSELoss loss function between the secret image data. The MSELoss loss function is as follows:

[0082] When reduction is set to None:

[0083] l(x,y)=L={l1...,l N} T ,l n =(x n -y n ) 2 (1)

[0084] When reduction is not None:

[0085]

[0086] In formula (1) and formula (2), N is the number of samples, l n is the loss value of the nth sample, x n is the neural network output of the nth sample, y n is the true score of the nth sample, and T is the transpose.

[0087] Simultaneously training the residual structure complex generator model A, the residual structure complex generator model B, and the password model is achieved through the following steps:

[0088] S41: Obtain cryptographic data of the same size as the secret image through the cryptographic model;

[0089] S42: The secret image data is input into the residual structure complex generator model A to obtain the secret data;

[0090] S43: The secret data is put into the carrier image data to obtain temporary data;

[0091] S44: Add the temporary data to the password data to obtain the encrypted image data;

[0092] S45: Subtract the password data from the encrypted image data to obtain temporary data;

[0093] S46: Temporary data is input into the residual structure complex generator model B to obtain the restored secret image data.

[0094] Use the secret image data to train the model, and select Adam as the optimizer until the total loss function value of the model reaches a small value.

[0095] Collect the encrypted image data, create a folder zero, and put the encrypted data into folder zero.

[0096] S5: A binary classification model of carrier images and secret images is trained using loss function 2 to determine whether the image belongs to a carrier image or a secret image. Figure 4 shown.

[0097] Through step S2, the construction of the binary classification model of carrier images and secret images has been completed.

[0098] The second loss function of the binary classification model of carrier images and secret images is the CrossEntropyLoss loss function. The formula of the CrossEntropyLoss loss function is as follows:

[0099] H(p,q)=-∑ x (p(x)logq(x)) (3)

[0100] In formula (3), p is the expected output, q is the actual output, and x is the sample.

[0101] The model is trained using the carrier image data and the encrypted image data, and the optimizer selects Adam until the model loss function value reaches a smaller value.

[0102] S6: Input the secret image obtained in S4 into the carrier image and secret image binary classification model trained in S5, and train a residual structure complex generator model A, a residual structure complex generator model B and a password model again to collect and restore the secret image data;

[0103] Through the previous steps, the construction of the residual structure complex generator model A, the residual structure complex generator model B and the password model, the reading of facial data, and the selection of carrier images have been completed. Next, you only need to add the carrier image and secret image binary classification model when training the residual structure complex generator model A, the residual structure complex generator model B and the password model, and increase the loss function.

[0104] Input the secret image obtained in step S4 into the carrier image and secret image binary classification model trained in step S5. If the carrier image and secret image binary classification model determines that the secret image is a secret image, the loss function becomes larger. If the carrier image and secret image binary classification model determines that the secret image is a carrier image, the loss function becomes smaller. This step can reduce the variation of the carrier image and effectively reduce the probability of the face image being discovered.

[0105] Again, there are two loss functions in training a residual structure complex generator model A, a residual structure complex generator model B and a password model at the same time:

[0106] The first loss function is to use the MSELoss loss function between the restored secret image and the secret image. The MSELoss loss function is as follows:

[0107] When reduction is set to None:

[0108] l(x,y)=L={l1...,l N} T ,l n =(x n -y n ) 2 (1)

[0109] When reduction is not None:

[0110]

[0111] In formula (1) and formula (2), N is the number of samples, l n is the loss value of the nth sample, x n is the neural network output of the nth sample, y n is the true score of the nth sample, and T is the transpose.

[0112] The second loss function is to put the secret image into the carrier image and the secret image binary classification model to obtain the classification label. The CrossEntropyLoss loss function is used between the classification label and 1. The formula of the CrossEntropyLoss loss function is as follows:

[0113] H(p,q)=-∑ x (p(x)logq(x)) (3)

[0114] In formula (3), p is the expected output, q is the actual output, and x is the sample.

[0115] Use the secret image data to train the model, and select Adam as the optimizer until the total loss function value of the model reaches a small value.

[0116] S7: Input the secret image collected by S4 into the residual structure complex generator model A to obtain secret data, put the secret data into the carrier data, obtain temporary data, add the temporary data to the password data, obtain the secret image data, put the secret image data back into each image data according to the face extraction position recorded in the txt file, and then convert the image data into video data. The face appearing in the original video is effectively protected, such as Figure 1 and Figure 2 shown.

[0117] S8: Put the restored secret image data collected in S6 back into the image data, and then convert the image data into video data. Specifically, convert the video data into image data, extract the secret image according to the face extraction position recorded in the txt file, subtract the secret image from the password data to obtain temporary data, input the temporary data into the residual structure complex generator model B, and obtain the restored secret image data, that is, the restored face image data. Put the restored secret image data back into the image data according to the face extraction position recorded in the txt file, and then convert the image data into video data. The face appearing in the original video can be restored, such as Figure 1 and Figure 2 shown.

[0118] like Figure 1 and Figure 2 As shown, when used specifically:

[0119] We only need to connect the captured facial video data to the residual structure complex generator model A to directly obtain the video surveillance video with the hidden face. When an accident occurs and the supermarket surveillance video needs to be retrieved, the authorized person can input the password and the video surveillance video with the hidden face into the password model and the residual structure complex generator model B to directly obtain the video with the restored face. The captured video is converted into image data, and facial image data is extracted from the image data. The extraction position of the facial image in the image data is recorded in a txt file. All facial images are input into the residual structure complex generator model A to obtain secret data. The secret data is placed into the carrier image data to obtain temporary data. The temporary data is added to the password data to obtain the secret image data. The secret image data is placed back into the image data according to the face extraction position recorded in the txt file. The image data is converted into video data with the hidden face. The captured facial video data is finally saved as the video data with the hidden face. When an accident occurs and the surveillance video needs to be retrieved, an authorized person can enter the password into the password model to obtain the password data. The video data with the hidden face is converted into image data. The secret image data is extracted according to the face extraction position recorded in the txt file. The password data is subtracted from the secret image data to obtain temporary data. The temporary data is input into the residual structure complex generator model B to obtain the restored secret image data. The restored secret image data is placed back into the image data according to the face extraction position recorded in the txt file. The image data is then converted into restored face video data to obtain the restored face video.

[0120] To prevent the unauthorized restoration of blurred videos, the present invention incorporates a double safeguard. Because the present invention incorporates a password model during the training process, if the blurred facial video data and the complex residual structure generator B are in the hands of someone else, but they do not have the password, the blurred facial video data cannot be restored. Similarly, if the blurred facial video data and the password are in the hands of someone else, but they do not have the complex residual structure generator B, the blurred facial video data cannot be restored.

[0121] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical content disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent replacement and improvement of the above embodiments made according to the technical essence of the present invention, within the spirit and principles of the present invention, such as changing face recognition to vehicle recognition or person recognition, still falls within the scope of protection of the technical solution of the present invention.

Claims

1. A video face privacy protection method based on image steganography, characterized by: The method is implemented by the following steps: S1: Collect basic information; collect multiple carrier images that can cover the face, collect the captured face video data, process the video data into image data, perform face recognition, extract the face image that appears in each image data and name it as a secret image, Face recognition specifically includes: S11: Use the face detection method in OpenCV to detect faces in image data. S12: extracting the detected face image data, obtaining the face image data, the face extracted image data and the face coordinate data; S13: Recording the location information of the detected face image data; S2: Build a binary classification model for carrier images and secret images. The structure of the binary classification model for carrier images and secret images is as follows: Convolution layer: 32 channels, 5*5 convolution kernel, batch normalization layer, maximum pooling layer, Convolution layer: 64 channels, 5*5 convolution kernel, batch normalization layer, maximum pooling layer, Convolution layer: 128 channels, 5*5 convolution kernel, batch normalization layer, maximum pooling layer, Convolution layer: 256 channels, 5*5 convolution kernel, batch normalization layer, maximum pooling layer, Flatten layer, linear layer, linear layer, linear layer; S3: Build a password model, a residual structure complex generator model A and a residual structure complex generator model B, The cryptographic model structure is as follows: linear layer, linear layer, linear layer, The residual structure complex generator model A is specifically: Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 256 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 256 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 256 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 256 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: Channel number 128, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: channel number 64, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: channel number 64, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: channel number 64, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: channel number 64, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: channel number 3, convolution kernel 3*3, LeakReLU layer, instance normalization layer, residual structure complex generator model B is specifically: Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, Leak LeakReLU layer, instance normalization layer, convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, convolution layer: 256 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, convolution layer Convolution layer: 256 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 256 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 256 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 128 channels, 3*3 convolution kernel , LeakReLU layer, instance normalization layer, convolution layer: number of channels 128, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: number of channels 128, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: number of channels 64, convolution kernel 3*3, LeakReLU layer, instance normalization layer, convolution layer: number of channels 64, convolution kernel 3*3, LeakReLU layer, instance normalization layer, Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolution layer: 64 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer, Convolutional layer: 3 channels, 3*3 convolution kernel, LeakReLU layer, instance normalization layer; S4: The residual structure complex generator model A, the residual structure complex generator model B and the password model are trained simultaneously through the loss function 1, specifically including: S41: Obtain cryptographic data having the same size as the secret image through the cryptographic model; S42: secret image data is input into the residual structure complex generator model A to obtain secret data; S43: putting secret data into carrier image data to obtain temporary data; S44: adding the password data to the temporary data to obtain the secret picture data, extracting the secret picture data according to the recorded face extraction position, creating a folder zero, putting the secret picture data into the folder zero, and collecting the secret picture data; S45: Subtract the password data from the encrypted image data to obtain temporary data; S46: temporary data is input into the residual structure complex generator model B to obtain restored secret image data; S5: train a binary classification model of carrier images and secret images through loss function 2 to determine whether the image belongs to a carrier image or a secret image; S6: Input the secret image data obtained in S4 into the carrier image and secret image binary classification model trained in S5, and train a residual structure complex generator model A, a residual structure complex generator model B and a password model at the same time, specifically including: S61: Obtain cryptographic data having the same size as the secret image through the cryptographic model; S62: secret image data is input into residual structure complex generator model A to obtain secret data; S63: The secret data is put into the carrier image data to obtain temporary data; S64: Add the temporary data to the password data to obtain the encrypted image data; S65: Subtract the password data from the encrypted image data to obtain temporary data; S66: temporary data is input into the residual structure complex generator model B to obtain the restored secret image data, and the restored secret image data is collected; S7: putting the confidential image data collected in S4 back into the image data according to the recorded face extraction position, and then converting the image data into video data, so that the face appearing in the original video is effectively protected; S8: Put the restored secret image data collected in S6 back into the image data according to the recorded face extraction position, and then convert the image data into video data, so that the face appearing in the original video can be restored.

2. According to claim 1, a video face privacy protection method based on image steganography is characterized in that: The loss function 1 is the MSELoss loss function, and the MSELoss loss function is as follows: When reduction is set to None: l(x,y)=L={l1...,l N } T ,l n (x) n -and n ) 2 (1) When reduction is not None: In formula (1) and formula (2), N is the number of samples, l n is the loss value of the nth sample, x n is the neural network output of the nth sample, y n is the true score of the nth sample, and T is the transpose.

3. According to claim 1, a video face privacy protection method based on image steganography is characterized in that: The second loss function is the CrossEntropyLoss loss function, and the CrossEntropyLoss loss function formula is as follows: H(p,q)=-∑ x (p(x)logq(x)) (3) In formula (3), p is the expected output, q is the actual output, and x is the sample.

4. According to claim 1, a video face privacy protection method based on image steganography is characterized in that: The face video data is one of face video data taken by a supermarket surveillance camera, face video data taken by a road surveillance camera, and face video data taken by a driving recorder.

5. According to claim 1, a method for protecting the privacy of video faces based on image steganography is characterized in that: The carrier image is a mosaic image.