The invention is suitable for the field of
digital watermarking, and provides an anti-compression coding robust video
watermark generation method based on an adversarial neural network, and the method comprises the steps: constructing an MSCA-GAN model; the model comprises an
encoder, a decoder, a
distortion layer, a
discriminator network and an opponent network, and the specific steps are as follows: step S1, the
encoder extracts different scale features of a video frame by using a multi-scale
convolution attention mechanism, calculates attention weights, efficiently hides and embeds binary
watermark information into the video, generates a
watermark-containing video, and transmits the watermark-containing video to the decoder; performing confrontation optimization on an embedding strategy with a
discriminator in training; according to the method, for H.264 compression layer special training, the multi-scale
convolution attention mechanism and the depth separable
convolution are combined, and the anti-compression robustness of the watermark under the H.264 standard is effectively improved; through common
attack training such as
noise layer
simulation cutting and zooming, the watermark can still keep high extraction accuracy and robustness in a complex environment.