Video watermark generation method and device based on Fourier transform, equipment and medium

By using Fourier transform and Cronek product technology in the video watermark generation method, the problem of insufficient geometric attack resistance of the existing video watermark algorithm is solved, and higher robustness and visual quality are achieved.

CN119893131AInactive Publication Date: 2025-04-25SICHUAN SHUDUN TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510386238.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-04-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing video watermark algorithms have poor robustness in resisting geometric attacks, resulting in poor robustness of generated video watermarks.

Method used

The video watermark generation method based on Fourier transform is adopted to generate a multi-dimensional watermark matrix through Cronec product, and the video frame image is transferred to the frequency domain image using discrete Fourier transform. The watermark is hiddenly embedded into the frequency component of the frequency domain image based on the optimized embedding radius and embedding factors.

Benefits of technology

Improves the resistance of video watermarks to geometric attacks, while maintaining high visual quality, enhancing the anti-loss performance of watermarks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119893131A_ABST
    Figure CN119893131A_ABST
Patent Text Reader

Abstract

The invention discloses a video watermark generation method and device based on Fourier transform, equipment and a medium, and relates to the field of image processing, and the key points of the technical scheme are that discrete Fourier transform is adopted to transform a brightness channel of a video frame image into a frequency domain image; determining the optimal embedding radius of the embedded watermark according to the image size of the video frame image; determining a watermark embedding point and an embedding area of the watermark in the frequency domain image according to the optimal embedding radius, and embedding the multi-dimensional watermark matrix into a local neighborhood of the watermark embedding point based on a pre-configured embedding factor to obtain a frequency domain image embedded with the multi-dimensional watermark matrix; sampling inverse discrete Fourier transform to restore the frequency domain image embedded with the multi-dimensional watermark matrix to a brightness channel to obtain a spatial domain image containing watermark information, and replacing the spatial domain image to a corresponding video frame image to obtain a video frame image containing watermark information; and splicing the video frame images containing the watermark information according to a time sequence to generate a video containing the watermark information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and more specifically, to a method, device, equipment and medium for generating video watermark based on Fourier transform. Background Art

[0002] With the rapid development of video coding and network communication technologies, various digital video services have emerged, and the demand for protecting digital video copyrights through video watermarking technology has become increasingly urgent.

[0003] Video watermarks are often significantly affected by geometric attacks. However, due to the huge amount of video data and the need for compression encoding, the watermarks embedded by current common video watermarking algorithms have weak resistance to geometric attacks, resulting in poor robustness of the generated video watermarks. Summary of the invention

[0004] The purpose of the present invention is to provide a method, device, equipment and medium for generating a video watermark based on Fourier transform, which solves the problem that the watermark has a weak ability to resist geometric attacks and improves the ability of the video watermark to resist geometric attacks.

[0005] A first aspect of the present invention provides a method for generating a video watermark based on Fourier transform, the method comprising: Obtain a watermark sequence carrying watermark information, and perform dimension upgrading on the watermark sequence to obtain a multi-dimensional watermark matrix; The brightness channel of the video frame image is transformed into a frequency domain image using discrete Fourier transform; Determine the optimal embedding radius of the embedded watermark according to the image size of the video frame image; Determine the watermark embedding point and embedding area of ​​the watermark in the frequency domain image according to the optimal embedding radius, embed the multidimensional watermark matrix into the local neighborhood of the watermark embedding point based on the pre-configured embedding factor, and obtain the frequency domain image embedded with the multidimensional watermark matrix; The sampling inverse discrete Fourier transform restores the frequency domain image embedded with the multi-dimensional watermark matrix to the brightness channel to obtain the spatial domain image containing the watermark information, and replaces the spatial domain image with the corresponding video frame image to obtain the video frame image containing the watermark information; The video frame images containing watermark information are spliced ​​in time sequence to generate a video containing watermark information.

[0006] In one implementation, the watermark sequence is dimensionally upgraded to obtain a multi-dimensional watermark matrix, specifically: Convert the watermark sequence into a one-dimensional array, and generate a two-dimensional template matrix from the one-dimensional array; The one-dimensional array and the two-dimensional template matrix are calculated by the Kronecker product to obtain a multi-dimensional watermark matrix.

[0007] In one implementation, before transforming the brightness channel of the video frame image into a frequency domain image using discrete Fourier transform, the method further includes: Select a region image of any size and any position in the video frame image, and convert the BGR format of the region image into the YUV format; Extract the Y channel in YUV format to obtain the brightness channel of the video frame image.

[0008] In one implementation, determining the optimal embedding radius of the embedded watermark according to the image size of the video frame image includes: Determine a numerical range of the embedding radius according to the image size of the video frame image; In the numerical range of the embedding radius, the peak signal-to-noise ratio of the watermark embedded in each embedding radius is calculated from the maximum value to the minimum value, and the embedding radius corresponding to the maximum peak signal-to-noise ratio is selected as the optimal embedding radius.

[0009] In one implementation, the watermark embedding point in the frequency domain image is determined according to the optimal embedding radius, specifically: the distribution range of the watermark embedding point is determined according to the optimal embedding radius, and the watermark embedding point is calculated from the distribution range using the angle of the circle.

[0010] In one implementation, the local neighborhood is a 3x3 neighborhood around the coordinates of the embedding point.

[0011] In one implementation, after generating a video containing watermark information, the method further includes: Extracting a first feature vector of a video frame image containing watermark information and a second feature vector of a video frame image not containing watermark information; calculating a mutual correlation coefficient between the first eigenvector and the second eigenvector; A mutual correlation coefficient threshold is preset. If the mutual correlation coefficient is greater than the mutual correlation coefficient threshold, the video frame image is embedded with a watermark, otherwise the video frame image is not embedded with a watermark.

[0012] A second aspect of the present invention provides a video watermark generation device based on Fourier transform, the device comprising: A watermark determination module is used to obtain a watermark sequence carrying watermark information, and perform dimension upgrading on the watermark sequence to obtain a multi-dimensional watermark matrix; A discrete transformation module, used for transforming the brightness channel of the video frame image into a frequency domain image by using discrete Fourier transform; An embedding radius determination module is used to determine an optimal embedding radius for embedding a watermark according to the image size of a video frame image; A watermark embedding module is used to determine the watermark embedding point and embedding area of ​​the watermark in the frequency domain image according to the optimal embedding radius, and embed the multidimensional watermark matrix into the local neighborhood of the watermark embedding point based on a pre-configured embedding factor to obtain a frequency domain image embedded with the multidimensional watermark matrix; A discrete restoration module is used to restore the frequency domain image embedded with the multi-dimensional watermark matrix to the brightness channel by sampling inverse discrete Fourier transform, obtain a spatial domain image containing watermark information, replace the spatial domain image with the corresponding video frame image, and obtain a video frame image containing watermark information; The video generation module is used to splice the video frame images containing watermark information in time sequence to generate a video containing watermark information.

[0013] The third aspect of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of a video watermark generation method based on Fourier transform as provided in the first aspect of the present invention are implemented.

[0014] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of a video watermark generation method based on Fourier transform as provided in the first aspect of the present invention are implemented.

[0015] Compared with the prior art, the present invention has the following beneficial effects: In a video watermark generation method based on Fourier transform provided by the present invention, firstly, based on a given binary watermark sequence, a multidimensional watermark matrix is ​​generated by the Kronecker product to ensure that the information integrity is maintained when embedded in the frequency domain. Secondly, the video frame image is converted to a frequency domain image using a discrete Fourier transform (DFT), and the watermark is covertly embedded in the frequency component of the frequency domain image through an embedding factor and an optimized embedding radius to improve the anti-loss performance of the watermark. Specifically, the peak signal-to-noise ratio (PSNR) is used to optimize the embedding radius to obtain the optimal embedding radius, and based on the optimal embedding radius, it is ensured that the video watermark can maintain a high visual quality while enhancing the resistance to geometric attacks. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings: Figure 1 A flowchart of a method for generating a video watermark based on Fourier transform provided by an embodiment of the present invention; Figure 2A principle block diagram of a video watermark generation device based on Fourier transform provided by an embodiment of the present invention; Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0017] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.

[0018] It should be noted that the terms "include" or "may include" used in various embodiments of the present application indicate the presence of the function, operation or element applied for, and do not limit the addition of one or more functions, operations or elements. In addition, as used in various embodiments of the present application, the terms "include", "have" and their cognates are only intended to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the presence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or the possibility of adding one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items.

[0019] In addition, terms such as "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0020] Video watermarks are often significantly affected by geometric attacks. However, due to the huge amount of video data and the need for compression encoding, the watermarks embedded by current common video watermarking algorithms have weak resistance to geometric attacks, resulting in poor robustness of the generated video watermarks.

[0021] In response to the problems existing in the related art, an embodiment of the present invention provides a video watermark generation method based on Fourier transform. First, based on a given binary watermark sequence, a multidimensional watermark matrix is ​​generated through the Kronecker product to ensure that the information integrity is maintained when embedded in the frequency domain. Secondly, the discrete Fourier transform (DFT) is used to convert the video frame image to a frequency domain image, and the watermark is covertly embedded in the frequency component of the frequency domain image through the embedding factor and the optimized embedding radius, thereby improving the watermark's anti-loss performance. Specifically, the peak signal-to-noise ratio (PSNR) is used to optimize the embedding radius to obtain the optimal embedding radius. Based on the optimal embedding radius, it is ensured that the video watermark can maintain a high visual quality while enhancing its resistance to geometric attacks.

[0022] The method provided in this embodiment will be described in detail below in conjunction with specific implementation methods. Figure 1 , Figure 1 A flowchart of a method for generating a video watermark based on Fourier transform is provided in an embodiment of the present invention, as shown in FIG. Figure 1 As shown, the method includes: S101, obtaining a watermark sequence carrying watermark information, and performing dimension upgrading on the watermark sequence to obtain a multi-dimensional watermark matrix.

[0023] In this embodiment, the watermark sequence is dimensionally upgraded to obtain a multidimensional watermark matrix, specifically: the watermark sequence is converted into a one-dimensional array, and a two-dimensional template matrix is ​​generated from the one-dimensional array; the one-dimensional array and the two-dimensional template matrix are calculated by the Kronecker product to obtain a multidimensional watermark matrix.

[0024] Specifically, a one-dimensional array is a one-dimensional matrix, and the one-dimensional array can be converted into a two-dimensional template matrix through the template size. The method of calculating the Kronecker product of two matrices is to multiply each element in the first matrix by the entire second matrix, and then arrange these product matrices in the order of the elements in the first matrix to form a large matrix. This large matrix is ​​the multidimensional watermark matrix. This embodiment ensures the flexibility of the generated multidimensional watermark matrix through the Kronecker product method, and the watermark size and resolution can be adjusted according to the needs of the watermark. Secondly, the multidimensional watermark matrix generated by the Kronecker product can also prevent the problem of information dissipation due to compression after being embedded.

[0025] S102, transforming the brightness channel of the video frame image into a frequency domain image by using discrete Fourier transform.

[0026] In this embodiment, FFmpeg can be used to decode video data from a specified time period to obtain a video frame image. DFT (Discrete Fourier Transform) can convert a signal from its original time or space domain to the frequency domain. Before using discrete Fourier transform to transform the brightness channel of the video frame image into a frequency domain image, a regional image of any size and any position of the video frame image is selected, and the BGR format of the regional image is converted into a YUV format; the Y channel of the YUV format is extracted to obtain the brightness channel of the video frame image.

[0027] Specifically, an arbitrary position of the image is taken, and the image size of the arbitrary position is 240*240, the image at the arbitrary position is converted into a YUV format, the brightness channel of the YUV format is extracted, and then a discrete Fourier transform is applied to the brightness channel, so that a frequency domain image of the brightness channel can be obtained. This embodiment can ensure that the watermark is embedded in the frequency domain, thereby increasing the robustness and concealment of the watermark.

[0028] S103, determining an optimal embedding radius for embedding the watermark according to the image size of the video frame image.

[0029] In this embodiment, the optimal embedding radius for embedding the watermark is determined, including: determining the numerical range of the embedding radius according to the image size of the video frame image; calculating the peak signal-to-noise ratio of the watermark embedded in each embedding radius from the maximum value to the minimum value within the numerical range of the embedding radius, and selecting the embedding radius corresponding to the maximum peak signal-to-noise ratio as the optimal embedding radius.

[0030] Specifically, the numerical range of the corresponding embedding radius is determined based on the image size. For example, if the image size is 512*512, the numerical range is 30-50. With 1 as the step unit, there are 20 embedding radii from the maximum value of 50 to the minimum value of 30, which are 50, 49, ..., 30. The peak signal-to-noise ratio of the watermark embedded by these embedding radii is calculated, and the impact of embedding radii of different sizes on the peak signal-to-noise ratio (PSNR) is evaluated. The embedding radius that can maximize the PSNR is found as the optimal embedding radius. The embedding factor is optimized using the peak signal-to-noise ratio (PSNR) to ensure that the watermark maintains a high visual quality while enhancing its resistance to geometric attacks.

[0031] S104, determining the watermark embedding point and embedding area of ​​the watermark in the frequency domain image according to the optimal embedding radius, embedding the multidimensional watermark matrix into the local neighborhood of the watermark embedding point based on a pre-configured embedding factor, and obtaining the frequency domain image embedded with the multidimensional watermark matrix.

[0032] In this embodiment, the center position of the frequency domain image is determined, and the corresponding embedding area can be determined based on the center position. The pre-configured embedding factor is used to control the embedding strength of the embedded watermark, and a suitable value can be selected according to actual conditions. In this embodiment, the value is 20, and of course other values ​​can be selected, which is not specifically limited in this embodiment.

[0033] Second, the local neighborhood is the 3x3 neighborhood around the coordinates of the embedded point.

[0034] S105, sampling inverse discrete Fourier transform restores the frequency domain image embedded with the multi-dimensional watermark matrix to the brightness channel, obtains the spatial domain image containing the watermark information, replaces the spatial domain image with the corresponding video frame image, and obtains the video frame image containing the watermark information.

[0035] In this embodiment, in order to convert the frequency domain image back into the space domain image, an inverse discrete Fourier transform is required. The inverse discrete Fourier transform method is a conventional technical means and is not specifically described in this embodiment.

[0036] S106, splicing the video frame images containing the watermark information in time sequence to generate a video containing the watermark information.

[0037] In this embodiment, all video frame images embedded with watermarks are spliced ​​together to obtain a video containing watermark information.

[0038] In one embodiment, the watermark embedding point in the frequency domain image is determined according to the optimal embedding radius, specifically: the distribution range of the watermark embedding point is determined according to the optimal embedding radius, and the watermark embedding point is calculated from the distribution range using the angle of the circle.

[0039] In some embodiments, after generating a video containing watermark information, the method further includes: extracting a first feature vector of the video frame image containing the watermark information and a second feature vector of the video frame image not containing the watermark information; calculating a mutual correlation coefficient between the first feature vector and the second feature vector; and presetting a mutual correlation coefficient threshold. If the mutual correlation coefficient is greater than the mutual correlation coefficient threshold, the video frame image is embedded with a watermark, otherwise the video frame image is not embedded with a watermark.

[0040] In this embodiment, the watermark information extracted by frequency domain processing and cross-correlation coefficient analysis is converted into the frequency domain using Fourier transform and combined with autocorrelation and cross-correlation analysis methods to detect the existence and integrity of the watermark.

[0041] Please refer to Figure 2 , Figure 2 A schematic block diagram of a video watermark generation device based on Fourier transform provided in an embodiment of the present invention is shown in FIG. Figure 2 As shown, the device comprises: The watermark determination module 210 is used to obtain a watermark sequence carrying watermark information, and perform dimension upgrading on the watermark sequence to obtain a multi-dimensional watermark matrix; A discrete transformation module 220, configured to transform the brightness channel of the video frame image into a frequency domain image using discrete Fourier transform; The embedding radius determination module 230 is used to determine the optimal embedding radius for embedding the watermark according to the image size of the video frame image; The watermark embedding module 240 is used to determine the watermark embedding point and embedding area of ​​the watermark in the frequency domain image according to the optimal embedding radius, and embed the multi-dimensional watermark matrix into the local neighborhood of the watermark embedding point based on the pre-configured embedding factor to obtain the frequency domain image embedded with the multi-dimensional watermark matrix; Discrete restoration module 250, used for sampling inverse discrete Fourier transform to restore the frequency domain image embedded with the multi-dimensional watermark matrix to the brightness channel, obtain the space domain image containing the watermark information, replace the space domain image with the corresponding video frame image, and obtain the video frame image containing the watermark information; The video generation module 260 is used to splice the video frame images containing watermark information in time sequence to generate a video containing watermark information.

[0042] In a video watermark generation device based on Fourier transform provided in an embodiment of the present invention, firstly, based on a given binary watermark sequence, a multidimensional watermark matrix is ​​generated by the Kronecker product to ensure that the information integrity is maintained when embedded in the frequency domain. Secondly, the discrete Fourier transform (DFT) is used to convert the video frame image into a frequency domain image, and the watermark is covertly embedded in the frequency component of the frequency domain image through the embedding factor and the optimized embedding radius, thereby improving the anti-loss performance of the watermark. Specifically, the peak signal-to-noise ratio (PSNR) is used to optimize the embedding radius to obtain the optimal embedding radius, and based on the optimal embedding radius, it is ensured that the video watermark can maintain a high visual quality while enhancing the resistance to geometric attacks.

[0043] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 300 includes a processor 310, a memory 320, a communication interface 330, and at least one communication bus for connecting the processor 310, the memory 320, and the communication interface 330. The memory 320 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (PROM), or a portable CD-ROM, and the memory 320 is used for related instructions and data.

[0044] The communication interface 330 is used to receive and send data. The processor 310 may be one or more CPUs. When the processor 310 is a CPU, the CPU may be a single-core CPU or a multi-core CPU. The processor 310 in the electronic device 300 is used to read one or more programs 321 stored in the memory 320, and perform the following operations: obtain a watermark sequence carrying watermark information, and perform dimension upgrading on the watermark sequence to obtain a multi-dimensional watermark matrix; use discrete Fourier transform to transform the brightness channel of the video frame image into a frequency domain image; determine the optimal embedding radius for embedding the watermark according to the image size of the video frame image; determine the watermark embedding point and embedding area of ​​the watermark in the frequency domain image according to the optimal embedding radius, and embed the multi-dimensional watermark matrix into the local neighborhood of the watermark embedding point based on a pre-configured embedding factor to obtain a frequency domain image embedded with the multi-dimensional watermark matrix; use a sampled inverse discrete Fourier transform to restore the frequency domain image embedded with the multi-dimensional watermark matrix to the brightness channel to obtain a spatial domain image containing the watermark information, and replace the spatial domain image with the corresponding video frame image to obtain a video frame image containing the watermark information; splice the video frame images containing the watermark information in time sequence to generate a video containing the watermark information.

[0045] It should be noted that the specific implementation of each operation can be Figure 1 The corresponding description of the method embodiment shown in the figure shows that the electronic device 300 can be used to execute a video watermark generation method based on Fourier transform in the above method embodiment of the present application, which will not be described in detail here.

[0046] In the embodiments of the present disclosure, a computer-readable storage medium is also provided, and the computer-readable storage medium is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both the built-in storage medium in the computer device and the extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, and the storage space stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of a video watermark generation method based on Fourier transform in the above embodiment. Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0047] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A video watermark generation method based on Fourier transform, characterized in that the method include: Obtain a watermark sequence carrying watermark information, and perform dimension upgrading on the watermark sequence to obtain a multi-dimensional watermark matrix; The brightness channel of the video frame image is transformed into a frequency domain image using discrete Fourier transform; Determine the optimal embedding radius of the embedded watermark according to the image size of the video frame image; Determine the watermark embedding point and embedding area of ​​the watermark in the frequency domain image according to the optimal embedding radius, embed the multidimensional watermark matrix into the local neighborhood of the watermark embedding point based on the pre-configured embedding factor, and obtain the frequency domain image embedded with the multidimensional watermark matrix; The sampling inverse discrete Fourier transform restores the frequency domain image embedded with the multi-dimensional watermark matrix to the brightness channel to obtain the spatial domain image containing the watermark information, and replaces the spatial domain image with the corresponding video frame image to obtain the video frame image containing the watermark information; The video frame images containing watermark information are spliced ​​in time sequence to generate a video containing watermark information.

2. The method for generating a video watermark based on Fourier transform according to claim 1, characterized in that: The watermark sequence is dimensioned to obtain a multi-dimensional watermark matrix, which is: Convert the watermark sequence into a one-dimensional array, and generate a two-dimensional template matrix from the one-dimensional array; The one-dimensional array and the two-dimensional template matrix are calculated by the Kronecker product to obtain a multi-dimensional watermark matrix.

3. The method for generating a video watermark based on Fourier transform according to claim 1, characterized in that: Before transforming the brightness channel of the video frame image into a frequency domain image using discrete Fourier transform, the method further includes: Select a region image of any size and any position in the video frame image, and convert the BGR format of the region image into the YUV format; Extract the Y channel in YUV format to obtain the brightness channel of the video frame image.

4. The method for generating a video watermark based on Fourier transform according to claim 1, characterized in that: The optimal embedding radius of the embedded watermark is determined according to the image size of the video frame image, including: Determine a numerical range of the embedding radius according to the image size of the video frame image; In the numerical range of the embedding radius, the peak signal-to-noise ratio of the watermark embedded in each embedding radius is calculated from the maximum value to the minimum value, and the embedding radius corresponding to the maximum peak signal-to-noise ratio is selected as the optimal embedding radius.

5. The method for generating a video watermark based on Fourier transform according to claim 4, characterized in that: The watermark embedding point of the watermark in the frequency domain image is determined according to the optimal embedding radius, specifically: the distribution range of the watermark embedding point is determined according to the optimal embedding radius, and the watermark embedding point is calculated from the distribution range using the angle of the circumference.

6. The method for generating a video watermark based on Fourier transform according to claim 1, characterized in that: The local neighborhood is a 3x3 neighborhood around the coordinates of the embedded point.

7. The method for generating a video watermark based on Fourier transform according to claim 1, characterized in that: After generating the video containing the watermark information, the method further includes: Extracting a first feature vector of a video frame image containing watermark information and a second feature vector of a video frame image not containing watermark information; calculating a mutual correlation coefficient between the first eigenvector and the second eigenvector; A mutual correlation coefficient threshold is preset. If the mutual correlation coefficient is greater than the mutual correlation coefficient threshold, the video frame image is embedded with a watermark, otherwise the video frame image is not embedded with a watermark.

8. A video watermark generation device based on Fourier transform, characterized in that: The device includes: A watermark determination module is used to obtain a watermark sequence carrying watermark information, and perform dimension upgrading on the watermark sequence to obtain a multi-dimensional watermark matrix; A discrete transformation module, used for transforming the brightness channel of the video frame image into a frequency domain image by using discrete Fourier transform; An embedding radius determination module is used to determine an optimal embedding radius for embedding a watermark according to the image size of a video frame image; A watermark embedding module is used to determine the watermark embedding point and embedding area of ​​the watermark in the frequency domain image according to the optimal embedding radius, and embed the multidimensional watermark matrix into the local neighborhood of the watermark embedding point based on a pre-configured embedding factor to obtain a frequency domain image embedded with the multidimensional watermark matrix; A discrete restoration module is used to restore the frequency domain image embedded with the multi-dimensional watermark matrix to the brightness channel by sampling inverse discrete Fourier transform, obtain a spatial domain image containing watermark information, replace the spatial domain image with the corresponding video frame image, and obtain a video frame image containing watermark information; The video generation module is used to splice the video frame images containing watermark information in time sequence to generate a video containing watermark information.

9. An electronic device, characterized in that: The electronic device comprises a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of a video watermark generation method based on Fourier transform are implemented as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of a video watermark generation method based on Fourier transform as claimed in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Anti-printing digital watermarking method and device based on combination of U-Net network and DFT optimal mass radius

    CN114862645A

  • Digital watermark embedding method, system and equipment based on Fourier transform and medium

    CN117745509A

  • Discrete fourier transform (DFT) watermark

    US20050036613A1

  • Watermark generator, watermark decoder, method for providing a watermark signal in dependence on binary message data, method for providing binary message data in dependence on a watermarked signal and computer program using a two-dimensional bit spreading

    US20130211564A1