A digital image watermark embedding and extraction method
Through discrete wavelet transform and singular value decomposition technology, watermarks are embedded and extracted from digital images, which solves the problem of digital media content copyright protection, achieves robustness and invisibility under attacks, and ensures effective protection of digital copyright.
Patent Information
- Application Number
- CN202210432306.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-23
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-04-23
AI Technical Summary
The problem of illegal copying and piracy of digital media content makes digital copyright protection difficult to achieve. Existing digital watermarking technology is not robust enough under attacks and cannot effectively protect copyright information.
Discrete stationary wavelet transform (SWT) and discrete wavelet transform (DWT) combined with singular value decomposition (SVD) and inverse SVD decomposition are used to embed and extract the original carrier image and watermark image, and the embedding rules and reverse rules are used for watermarking Information embedding and extraction ensures robustness and invisibility under different types of attacks.
It achieves high robustness and invisibility during the image watermark extraction process after suffering various attacks, ensuring effective protection of digital copyright.
Smart Images

Figure CN114897657B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a digital image watermark embedding and extraction method, belonging to the technical field of digital image watermark. Background Art
[0002] With the rapid development of Internet technology, digital media has gradually replaced traditional paper media and has gradually become one of the important channels for people to obtain information in their daily lives. The way to obtain digital media content is simple and efficient, but the widespread dissemination of digital media content also brings many problems, such as illegal copying, forgery, piracy and other digital copyright protection issues, which seriously infringe the legitimate rights and interests of digital content publishers. In order to ensure the legal dissemination and use of digital media content, digital copyright protection becomes particularly important.
[0003] Digital watermarking technology can effectively protect digital copyright information. Digital watermarking technology can achieve the purpose of protecting digital copyright by invisibly embedding information that can be used to identify copyright into audio, images, and videos. It has been widely used. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a digital image watermark embedding and extraction method to solve the above-mentioned problem.
[0005] The technical solution of the present invention is: a digital image watermark embedding and extraction method, firstly, the original carrier image is subjected to discrete stationary wavelet transform (SWT), and the intermediate frequency subband LH is extracted. I , HL I , extract the intermediate frequency subband LH I , HL I Perform SVD decomposition. Perform discrete wavelet transform (DWT) on the watermark image and extract the intermediate frequency subband LH W , HL W , extract the intermediate frequency subband LH W , HL W Perform SVD decomposition. Use the embedding rule to embed the watermark image into the original carrier image. When extracting the watermark image, perform discrete stationary wavelet transform (SWT) on the carrier image after embedding the watermark to extract the intermediate frequency subband LH M , HL M , for the extracted intermediate frequency subband LH M , HL M Perform SVD decomposition, and use the inverse rule of the embedding rule to extract the two singular value matrices of the watermark respectively. Then perform inverse SVD decomposition on the singular value matrix to obtain two intermediate frequency subbands of the watermark image. Perform inverse discrete wavelet transform (IDWT) on the intermediate frequency subband to obtain the extracted watermark image.
[0006] The specific steps are:
[0007] Step 1: Watermark embedding process:
[0008] Step 1.1: Perform discrete stationary wavelet transform (SWT) on the original carrier image I to obtain LL I , LH I , HL I , HH I Four subbands. The carrier image I has a size of M×M. The subband size is M×M.
[0009] Step 1.2: Extract the intermediate frequency subband LH I , perform SVD decomposition and obtain the singular value matrix
[0010]
[0011] Step 1.3: Extract the intermediate frequency subband HL I , perform SVD decomposition and obtain the singular value matrix
[0012]
[0013] Step 1.4: The size of the watermark image W is N×N. The relationship between M and N in the original carrier image and the watermark image is:
[0014] M=N / 2
[0015] Step 1.5: Perform discrete wavelet transform (DWT) on the watermark image W to obtain LL W , LH W , HL W , HH W Four sub-bands. The size of watermark image I is N×N. The sub-band size is
[0016] Step 1.6: Extract the intermediate frequency subband LH W , perform SVD decomposition and obtain the singular value matrix
[0017]
[0018] Step 1.7: Extract the intermediate frequency subband HL W , perform SVD decomposition and obtain the singular value matrix
[0019]
[0020] Step 1.8: Use the following formula for embedding.
[0021]
[0022] Step 1.9: Use the following formula for embedding.
[0023]
[0024] Step 1.10: Matrix Perform inverse SVD decomposition to obtain the matrix LH M .
[0025]
[0026] Step 1.11: Matrix Perform inverse SVD decomposition to obtain the matrix HL M .
[0027]
[0028] Step 1.12: After embedding the watermark information, the intermediate frequency subband LH M , HL M Perform inverse discrete stationary wavelet transform (ISWT) to obtain the carrier image I* after embedding the watermark image.
[0029] Step 2: Watermark extraction process:
[0030] Step 2.1: Perform discrete stationary wavelet transform (SWT) on the carrier image I* after embedding the watermark to obtain LL I* , LH I* , HL I* , HH I* Four sub-bands.
[0031] Step 2.2: LH for the intermediate frequency sub-band I* Perform SVD decomposition to obtain the singular value matrix
[0032]
[0033] Step 2.3: HL of the intermediate frequency sub-band I* Perform SVD decomposition to obtain the singular value matrix
[0034]
[0035] Step 2.4: Use the following formula to get a singular value matrix of the watermark image
[0036]
[0037] Step 2.5: Use the following formula to get another singular value matrix of the watermark image
[0038]
[0039] Step 2.6: Singular value matrix Perform inverse SVD decomposition to obtain the matrix LH W* .
[0040]
[0041] Step 2.7: Singular value matrix Perform inverse SVD decomposition to obtain the matrix HL W* .
[0042]
[0043] Step 2.8: Matrix LH W* , HL W* Perform inverse discrete stationary wavelet transform (ISWT) to obtain the extracted watermark image W*.
[0044] The beneficial effects of the present invention are as follows: the present invention performs different types of attacks on the watermarked image and extracts the watermarked image. Simulation results show that the watermarked carrier image has good invisibility and also exhibits good robustness after being subjected to various attacks. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 is a diagram of the watermark embedding process of the present invention;
[0046] Figure 2 It is a diagram of the watermark extraction process of the present invention;
[0047] Figure 3 It is the carrier image after the watermark is embedded in the three-no attack of the present invention and the extracted watermark image;
[0048] Figure 4 It is the carrier image after the watermark is embedded by the four-pepper-salt noise attack of the present invention and the extracted watermark image;
[0049] Figure 5 It is the carrier image after the JPEG compression attack of the present invention embeds the watermark and the extracted watermark image;
[0050] Figure 6 It is the carrier image after the watermark is embedded by the median filtering attack of the present invention and the extracted watermark image. DETAILED DESCRIPTION
[0051] The present invention will be further described below in conjunction with the accompanying drawings and specific implementation methods.
[0052] Example 1: Figure 1-6 As shown, a digital image watermark embedding and extraction method, the specific steps are:
[0053] Step 1: Perform SWT on the original carrier image and extract the intermediate frequency subband LH I , HL I Perform SVD decomposition, perform DWT on the watermark image, and extract the intermediate frequency subband LH W , HL W SVD decomposition is performed respectively, and the watermark image is embedded into the original carrier image using the embedding rule.
[0054] Step 2: Perform SWT on the carrier image after embedding the watermark and extract the intermediate frequency subband LH M , HL M SVD decomposition is performed respectively, and the singular value matrix of the watermark is extracted respectively using the inverse rule of the embedding rule. Then, the singular value matrix is decomposed by inverse SVD to obtain two intermediate frequency subbands of the watermark image. IDWT is performed on the intermediate frequency subbands to obtain the extracted watermark image.
[0055] In Step 1, use Rules are embedded, where is the singular value matrix of the original carrier image, is the singular value matrix of the watermark image, is the singular value matrix of the carrier image after embedding the watermark, and a is the embedding strength.
[0056] In Step 2, use The watermark image is extracted by the rule, where is the singular value matrix of the carrier image after embedding the watermark, is the singular value matrix of the watermark image, and a is the embedding strength.
[0057] The Step 1 is specifically as follows:
[0058] Perform discrete stationary wavelet transform (SWT) on the carrier image I to obtain LL I , LH I , HL I , HH I Four sub-bands. Original carrier image size 256×256. Sub-band size 256×256.
[0059] Extract the intermediate frequency subband LH I , perform SVD decomposition and obtain the singular value matrix
[0060]
[0061] Extract IF subband HL I , perform SVD decomposition and obtain the singular value matrix
[0062]
[0063] Perform discrete wavelet transform (DWT) on the watermark image W and get LL W , LH W , HL W , HH W Four sub-bands. The watermark image W size is 512×512. The sub-band size is 256×256.
[0064] Extract the intermediate frequency subband LH W , perform SVD decomposition and obtain the singular value matrix
[0065]
[0066] Extract IF subband HL W , perform SVD decomposition and obtain the singular value matrix
[0067]
[0068] right The embedding is performed using the following formula, where a is the embedding strength and its value is 0.04.
[0069]
[0070] right The embedding is performed using the following formula, where a is the embedding strength and its value is 0.04.
[0071]
[0072] Pair Matrix Perform inverse SVD decomposition to obtain the matrix LH M .
[0073]
[0074] Pair Matrix Perform inverse SVD decomposition to obtain the matrix HL M .
[0075]
[0076] After embedding the watermark information, the intermediate frequency subband LH M , HLM Perform inverse discrete stationary wavelet transform (ISWT) to obtain the carrier image I* after embedding the watermark image.
[0077] The Step 1 is specifically as follows:
[0078] Perform discrete stationary wavelet transform (SWT) on the carrier image I* after embedding the watermark, and get LL I* , LH I* , HL I* , HH I* Four sub-bands. The size of the carrier image I* after embedding the watermark is 256×256.
[0079] For IF sub-band Perform SVD decomposition and get matrix.
[0080]
[0081] For IF sub-band Perform SVD decomposition and get matrix.
[0082]
[0083] Using the following formula, we can get a singular value matrix of the watermark image: a is the embedding strength, which is 0.04.
[0084]
[0085] Using the following formula, we can get another singular value matrix of the watermark image: a is the embedding strength, which is 0.04.
[0086]
[0087] For the singular value matrix Perform inverse SVD decomposition to obtain the matrix
[0088]
[0089] For the singular value matrix Perform inverse SVD decomposition to obtain the matrix
[0090]
[0091] For the matrix LH W* , HL W* Perform inverse discrete stationary wavelet transform (ISWT) to obtain the extracted watermark image W*.
[0092] In order to verify the effectiveness of the present invention, MATLAB is used as an experimental simulation platform. The original carrier image uses a lena grayscale image with an image size of 256*256. The watermark image is a 512*512 QR code image. The discrete stationary wavelet (SWT) scheme uses the Symlets wavelet basis function, and the discrete wavelet (DWT) scheme uses the Haar wavelet basis function. The embedding strength a is 0.04.
[0093] like Figure 3 As shown in the figure, Host image is the grayscale image of the original carrier image lena, Watermark logo is the watermark image, Watermarkedimage is the carrier image after the watermark is embedded when there is no attack, and Extractedwatermark is the watermark image extracted when there is no attack.
[0094] The present invention uses the peak signal-to-noise ratio (PSNR) to reflect imperceptibility. The higher the peak signal-to-noise ratio (PSNR), the better the visual quality of the carrier image after the watermark is embedded. Combined with relevant references, when the peak signal-to-noise ratio (PSNR) of the carrier image after the watermark image is embedded reaches 30dB or higher, human vision will not perceive obvious changes in the carrier image after the watermark is embedded.
[0095] The present invention uses the correlation coefficient (NC) to reflect the robustness. The correlation coefficient (NC) means the similarity between the extracted watermark image and the original watermark.
[0096] Table 1 is the experimental data of different attacks. The peak signal-to-noise ratio (PSNR) of the carrier image after embedding the watermark when it is subjected to different types of attacks, and the correlation coefficient (NC) between the extracted watermark and the original watermark after being subjected to different types of attacks.
[0097]
[0098] Table 1
[0099] Through experiments, it is found that the algorithm proposed in the present invention shows good robustness against common attacks, and also shows good peak signal-to-noise ratio when there is no attack, and has good invisibility.
[0100] The specific implementation modes of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
Claims
1. A digital image watermark embedding and extraction method, characterized in that: Step 1: Perform SWT on the original carrier image and extract the intermediate frequency subband LH I , HL I Perform SVD decomposition, perform DWT on the watermark image, and extract the intermediate frequency subband LH W , HL W Perform SVD decomposition respectively and use embedding rules to embed the watermark image into the original carrier image; Step 2: Perform SWT on the carrier image after embedding the watermark and extract the intermediate frequency subband LH M , HL M Perform SVD decomposition respectively, use the inverse rule of the embedding rule to extract the singular value matrix of the watermark respectively, then perform inverse SVD decomposition on the singular value matrix to obtain two intermediate frequency subbands of the watermark image, perform IDWT on the intermediate frequency subbands to obtain the extracted watermark image; In Step 1, use Rules are embedded, where is the singular value matrix of the original carrier image, is the singular value matrix of the watermark image, is the singular value matrix of the carrier image after embedding the watermark, and a is the embedding strength; In Step 2, use The watermark image is extracted by the rule, where is the singular value matrix of the carrier image after embedding the watermark, is the singular value matrix of the watermark image, and a is the embedding strength.
Citation Information
Patent Citations
DWT-SVD robust blind watermark method based on Zernike moments
CN103955880A
Method for embedding and extracting strong robustness hologram watermark on the basis of DWT-SVD (Discrete Wavelet Transform-Singular Value Decomposition)
CN104680470A
Digital watermarking method based on double-watermark embedding
CN110264390A
DWT-SVD domain self-adaptive robust watermarking algorithm adopting preset PSNR
CN112132731A
Watermark embedding and extracting method and device, computer equipment and storage medium
CN112801846A
