A hybrid domain vector map watermark embedding method and extraction method

By combining the hybrid domain method of Fourier transform and singular value decomposition in the vector map, the watermark information is embedded, which solves the problem of being unable to resist geometric attacks at the same time in the existing technology, and improves the robustness of the watermark and the accuracy of the vector map.

CN117830068BActive Publication Date: 2024-08-27SUZHOU UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311558252.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-21
Publication Date
2024-08-27
Estimated Expiration
2043-11-21

AI Technical Summary

Technical Problem

Existing frequency domain vector map digital watermarking algorithms cannot resist geometric attacks of translation, rotation, and scaling at the same time, and watermark embedding causes great interference to vector maps, affecting invisibility.

Method used

Using a mixed domain method, the amplitude coefficients and phase coefficients are obtained through discrete Fourier transform, combined with singular value decomposition, and the quantized index modulation strategy is used to embed the watermark information into the singular vector, and the watermark is restored through inverse singular value decomposition and inverse Fourier transform. Vector map.

Benefits of technology

It improves the robustness against translation, rotation and scaling attacks, reduces errors caused by watermark embedding, and enhances the accuracy and invisibility of vector maps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117830068B
    Figure CN117830068B
Patent Text Reader

Abstract

The present invention relates to a hybrid domain vector map watermark embedding method and extraction method. The embedding method includes: extracting the original feature point sequence of the original vector map, constructing the original complex number sequence; using discrete Fourier transform to obtain the original amplitude coefficient sequence and the original phase coefficient sequence; performing singular value decomposition on the original amplitude coefficient sequence to obtain the original singular vector and the original singular value; using the Arnold algorithm to encrypt the binary watermark image to be embedded, and obtain the encrypted binary watermark image; using the quantization index modulation strategy, embedding the encrypted binary watermark image into the original singular vector after amplification by a preset multiple, and obtaining the embedded vector; after reducing the embedded vector by a preset multiple, performing inverse singular value decomposition with the original singular value, obtaining the amplitude coefficient sequence containing the watermark, performing inverse discrete Fourier transform with the original phase coefficient sequence, obtaining the embedded feature point sequence, replacing the original feature point sequence in the original vector map, and obtaining the vector map embedded with the watermark.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of vector map watermarking, and in particular to a mixed domain vector map watermark embedding method and an extraction method. Background Art

[0002] Vector maps are important basic data in geographic information systems and are widely used in various industries such as traffic navigation, urban planning, and military applications. With the rapid development of computer technology, the development of many GIS applications has provided ordinary users with convenient access to vector maps. However, this also brings some security issues, such as leakage and piracy. Therefore, vector maps are in urgent need of technical protection measures. Digital watermarking is a copyright protection method that is widely used in multimedia data forms such as images, audio, and video, and has a very efficient effect. In recent years, more and more vector maps have begun to use digital watermarks to protect data, and digital watermarks have become an important technical means for copyright protection of vector maps.

[0003] At present, one of the important research directions for digital watermarking of vector maps is to find a suitable watermark embedding domain by comprehensively considering the invisibility of watermark information and the robustness of watermarking algorithms. Generally, according to the location of watermark embedding, vector map digital watermarking algorithms can be divided into spatial domain and frequency domain digital watermarking algorithms. The spatial domain digital watermarking algorithm embeds watermark information by directly modifying the coordinate value, while the frequency domain digital watermarking algorithm first performs a reversible mathematical transformation on the vector map coordinate sequence, then embeds the watermark by modifying the transformation coefficient, and obtains the vector map embedded with the watermark through the inverse transformation. For the spatial domain digital watermarking algorithm, the watermark information is directly hidden at the coordinate level, so the security is low and it is easy to be erased by targeted attacks. The frequency domain digital watermarking algorithm embeds the watermark information in the frequency domain coefficients, which is more secure and practical. However, it is difficult to control the error of the frequency domain digital watermarking algorithm, and the robustness of the algorithm is often limited by the stability of the frequency domain coefficients under various attack transformations.

[0004] Most of the existing frequency-domain-based digital watermarking algorithms use DFT transform to convert vector maps from the spatial domain to the frequency domain; in the comparative document 1 "Xi Xu, Zhang Xinchang, Bao Jianteng, Zhang Yazhou, 2022. A vector map digital watermarking algorithm based on improved DFT and QR code. Surveying and Mapping Science 47, 190-197", the watermark embedding process includes: extracting the coordinate points of the vector map, and then constructing a complex sequence from the coordinate point sequence; performing DFT transform on the obtained complex sequence to obtain DFT coefficients, and then calculating the amplitude coefficients of the DFT coefficients; embedding watermark information by modulating the parity of the element values ​​in the amplitude coefficients; performing inverse discrete Fourier transform IDFT (inverse discrete Fourier transform) to obtain the vector map after embedding the watermark. In the comparative document 2 "Zhang Liming, Yan Haowen, Qi Jianxun, Zhang Yongzhong, 2015. Blind watermarking algorithm for controllable error vector space data based on DFT. Journal of Wuhan University (Information Science Edition) 40, 990-994", the watermark embedding process includes: extracting the coordinate points of the vector map, and then constructing a complex sequence from the coordinate point sequence; applying DFT to convert the vector map to the frequency domain to obtain the DFT coefficients; calculating the phase coefficient and amplitude coefficient of the DFT, and embedding the watermark information in the phase coefficient and amplitude coefficient at the same time through quantization index modulation; performing IDFT transformation on the vector map, and finally obtaining a vector map embedded with watermark information. Among them, the watermark information is embedded in both the amplitude coefficient and phase coefficient of the vector map DFT. When authenticating copyright, only one of the watermark images is required to prove the copyright ownership.

[0005] The above two methods have been well applied in the copyright protection of vector maps. However, after experimental verification, both of them still have obvious defects. The algorithm of reference 1 mainly uses the invariance of translation and rotation of DFT amplitude coefficients to obtain the robustness of watermark algorithm against geometric attacks. However, DFT amplitude coefficients cannot maintain their stability under scaling transformation, so they are not robust against scaling attacks. The algorithm of reference 2 combines the phase coefficient and amplitude coefficient of DFT, and then embeds multiple watermarks. Different watermarks are responsible for resisting different types of attacks. For example, embedding watermarks in phase coefficients can effectively resist scaling, and embedding watermarks in amplitude coefficients can effectively resist rotation attacks. However, the defects of this approach are also very obvious, mainly divided into the following two aspects: 1) The attacker's attack on the vector map is often multi-step. If the attacker simultaneously performs translation, rotation, scaling, and adding and deleting point attacks on the vector map, this method cannot extract a valid watermark map; 2) The embedding of watermark information will cause greater interference to the vector map, and the invisibility is poor.

[0006] In summary, the existing frequency domain vector map digital watermarking algorithm, because it uses the amplitude coefficient affected by scaling transformation and the phase coefficient affected by translation and rotation to obtain the watermark, is unable to resist geometric attacks of translation, rotation and scaling at the same time, has poor robustness to combined attacks, and the watermark embedding has a greater interference on the vector map. Summary of the invention

[0007] Therefore, the technical problem to be solved by the present invention is to overcome the problem in the prior art of directly using amplitude coefficients and phase coefficients to obtain watermarks, which results in the vector map being unable to resist geometric attacks of translation, rotation and scaling at the same time.

[0008] In order to solve the above technical problems, the present invention provides a hybrid domain vector map watermark embedding method, comprising:

[0009] Extracting an original feature point sequence of the original vector map, constructing an original complex number sequence according to the original feature point sequence; based on the original complex number sequence, using discrete Fourier transform, obtaining an original amplitude coefficient sequence and an original phase coefficient sequence;

[0010] Performing singular value decomposition on the original amplitude coefficient sequence to obtain original singular vectors and original singular values;

[0011] Acquire a binary watermark image to be embedded, and encrypt the binary watermark image to be embedded using the Arnold algorithm to obtain an encrypted binary watermark image;

[0012] The original singular vector is magnified by a preset multiple, and the encrypted binary watermark image is embedded into the magnified original singular vector using a quantization index modulation strategy to obtain an embedded vector;

[0013] After reducing the embedding vector by a preset multiple, inverse singular value decomposition is performed with the original singular value to obtain an amplitude coefficient sequence containing a watermark, and then inverse discrete Fourier transform is performed with the original phase coefficient sequence to obtain an embedded feature point sequence;

[0014] The embedded feature point sequence is used to replace the original feature point sequence in the original vector map to obtain a vector map embedded with a watermark.

[0015] In one embodiment of the present invention, extracting an original feature point sequence of the original vector map and constructing an original complex number sequence according to the original feature point sequence includes:

[0016] Extracting the original feature point sequence of the original vector map;

[0017] The original feature point sequence is input into the Douglas-Peucker algorithm, a compression threshold is preset, and the original feature point sequence F of the original vector map is calculated. e ;

[0018] The original complex sequence C is constructed according to the original feature point sequence, which is expressed as:

[0019] C={c0,c1,…,c j ,...,c N-1};

[0020] Among them, c j is the complex form of the jth feature point in the original complex sequence, denoted by c j =x j +y j *i, j = 0, 1, 2, ..., N-1, N represents the total number of feature points in the original complex sequence; (x j ,y j ) represents the coordinates of the jth feature point in the original complex sequence, and i represents the imaginary unit.

[0021] In one embodiment of the present invention, the method of obtaining an original amplitude coefficient sequence and an original phase coefficient sequence based on the original complex sequence by using discrete Fourier transform includes:

[0022] For each element c in the original complex sequence C j Perform coupled discrete Fourier transform to obtain the Fourier coefficient sequence D, let n represent the original complex sequence index, m represent the Fourier coefficient index, m and n correspond one to one, and the value range is [0,1,2,…,N-1];

[0023] Get the Fourier coefficient D(m) at the mth index position in the Fourier coefficient sequence, expressed as:

[0024]

[0025] Based on the Fourier coefficient sequence D, the modulus length of each Fourier coefficient in the sequence is obtained to obtain the original amplitude coefficient sequence Mag. The amplitude coefficient Mag(m) at the mth index position in the original amplitude coefficient sequence is expressed as:

[0026]

[0027] Based on the Fourier coefficient sequence D, the phase of each Fourier coefficient in the sequence is obtained to obtain the original phase coefficient sequence Pha. The phase coefficient Pha(m) at the mth index position in the original phase coefficient sequence is expressed as:

[0028]

[0029] Where C(n) represents the element c at the nth index position in the original complex sequence. j ;D real(m) represents the real part of the Fourier coefficient at the mth index position, D imag (m) represents the imaginary part of the Fourier coefficient at the m-th index position.

[0030] In one embodiment of the present invention, the acquisition of the original singular vectors includes:

[0031] Based on the original amplitude coefficient sequence, the original singular vector DS(m) is obtained by singular value decomposition, which is expressed as:

[0032]

[0033] In one embodiment of the present invention, the step of obtaining a binary watermark image to be embedded, encrypting the binary watermark image to be embedded using an Arnold algorithm, and obtaining an encrypted binary watermark image includes:

[0034] Obtain the binary watermark image W to be embedded, and use the Arnold algorithm to replace the coordinates of each pixel in the binary watermark image to be embedded according to a preset rule to obtain the corresponding encrypted pixel, which is expressed as:

[0035]

[0036] All encrypted pixels constitute the encrypted binary watermark image W e ;

[0037] Where (b', d') represents the encrypted binary watermark image W e The pixel coordinates in (b, d) represent the pixel coordinates in the binary watermark image W to be embedded; Z represents the total number of pixels in the binary watermark image; key α ,key β is a preset positive integer, representing the key information of the Arnold algorithm. mod means remainder.

[0038] In one embodiment of the present invention, the method of amplifying the original singular vector by a preset multiple, and embedding the encrypted binary watermark image into the amplified singular vector using a quantization index modulation strategy to obtain an embedded vector includes:

[0039] Amplify the original singular vector by a preset multiple K, expressed as DS(m)×K;

[0040] Initialize the step size q of the quantization index modulation strategy and convert the encrypted binary watermark image W e Embedded in the enlarged singular vector, get the embedding vector DS'(m), expressed as:

[0041]

[0042] Where mod means remainder, wid is the index value of the embedded watermark bit, expressed as wid = mod[key h ×DS(j),q],key h Preset key for watermark.

[0043] The embodiment of the present invention also provides a mixed domain vector map watermark extraction method, comprising:

[0044] Acquire a vector map embedded with a watermark obtained based on the hybrid domain vector map watermark embedding method as described above, as the vector map to be detected;

[0045] Extracting a current feature point sequence of the vector map to be detected, constructing a current complex number sequence according to the current feature point sequence; obtaining a current amplitude coefficient sequence based on the current complex number sequence by using discrete Fourier transform;

[0046] Performing singular value decomposition on the current amplitude coefficient sequence to obtain a current singular vector;

[0047] The voting mechanism is used to obtain the watermark bit value and index value of the current singular vector to generate the current encrypted watermark image;

[0048] The current encrypted watermark image is decrypted using the inverse Arnold algorithm to obtain a vector map after the watermark is extracted.

[0049] In one embodiment of the present invention, the step of obtaining the watermark bit value and index value of the current singular vector by using a voting mechanism includes:

[0050] Initialize the watermark bit set to an empty set, expressed as:

[0051]

[0052] Initialize the index value set to an empty set, expressed as: VR = IR = {r p |r p =0,p=0,1,…,W len -1};

[0053] Among them, IR(ird)=IR(ird)+1, index information ird=mod[key h ×K×DS"(j),q]; DS"(j) represents the current singular vector; W len Indicates the total number of feature points occupied by the watermark; q indicates the step size of the quantization index modulation strategy, and K indicates the preset multiple of the amplification; key his the preset key; AR(ird) represents the watermark bit value, AR(m) represents the watermark bit value ird=m, IR(ird) represents the watermark index value, and IR′(m) represents the number of watermarks with the watermark index value m.

[0054] In one embodiment of the present invention, the current encrypted watermark image W' e , expressed as:

[0055]

[0056] Wherein, IR′(m) represents the number of watermarks with watermark index value m.

[0057] In one embodiment of the present invention, the decrypting the current encrypted watermark image by using the inverse Arnold algorithm to obtain the vector map after the watermark is extracted includes:

[0058]

[0059] Among them, (b', d')' represents the current encrypted watermark image W' e The pixel coordinates in (b, d)′ represent the pixel coordinates in the vector map W′ after the watermark is extracted; Z represents the total number of pixels in the current encrypted watermark map; key α ,key β is a positive integer, indicating the key information of the Arnold algorithm. mod means remainder.

[0060] The above technical solution of the present invention has the following advantages compared with the prior art:

[0061] The vector map watermark embedding method described in the present invention couples the translation and rotation invariance advantages of the amplitude coefficient obtained by Fourier transform with the scaling invariance advantages of the singular vectors of singular value decomposition, and uses the quantization index modulation strategy to use the singular vectors of the embedded amplitude coefficients as embedding vectors to obtain embedded feature points, thereby restoring the vector map embedded with the watermark; the present invention uses Fourier transform and singular value decomposition to obtain embedding vectors, which can simultaneously resist geometric attacks of translation, rotation and scaling, and improve the robustness of combined attacks. The present invention amplifies the singular vectors by a preset multiple to ensure that there is enough space for the watermark to be embedded in the singular vectors, while ensuring that the characteristics of the original feature points will not be significantly changed, reducing the error caused by watermark embedding and improving the accuracy of the vector map. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein

[0063] Figure 1 It is a flow chart of the steps of the hybrid domain vector map embedding method provided by the present invention;

[0064] Figure 2 (a) is the road map test vector data, Figure 2 (b) is the river map test vector data, Figure 2 (c) is the residential area map test vector data;

[0065] Figure 3 It is a flowchart of the specific steps of the hybrid domain embedding of the vector map provided by the present invention;

[0066] Figure 4 It is a flowchart of the steps of the hybrid domain vector map extraction method provided by the present invention;

[0067] Figure 5 It is a flowchart of the specific steps of the vector map mixed domain extraction provided by the present invention;

[0068] Figure 6 It is a comparison chart of NC values ​​of the method provided by the present invention and the existing method under various attack modes. DETAILED DESCRIPTION

[0069] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0070] Embodiment 1:

[0071] Reference Figure 1 As shown, the step flow chart of the vector map watermark embedding method of the present invention includes the following steps:

[0072] S101: extracting an original feature point sequence of an original vector map, constructing an original complex number sequence according to the original feature point sequence; based on the original complex number sequence, using discrete Fourier transform, obtaining an original amplitude coefficient sequence and an original phase coefficient sequence;

[0073] S102: performing singular value decomposition on the original amplitude coefficient sequence to obtain original singular vectors and original singular values;

[0074] S103: obtaining a binary watermark image to be embedded, and encrypting the binary watermark image to be embedded using an Arnold algorithm to obtain an encrypted binary watermark image;

[0075] S104: amplifying the original singular vector by a preset multiple, and using a quantization index modulation strategy to embed the encrypted binary watermark image into the amplified original singular vector to obtain an embedded vector;

[0076] S105: After reducing the embedding vector by a preset multiple, inverse singular value decomposition is performed on the original singular value to obtain an amplitude coefficient sequence containing a watermark, and then inverse discrete Fourier transform is performed on the original phase coefficient sequence to obtain an embedded feature point sequence;

[0077] S106: Using the embedded feature point sequence to replace the original feature point sequence in the original vector map, to obtain a vector map embedded with a watermark.

[0078] Specifically, in step S101, an original complex sequence is constructed to obtain an original amplitude coefficient sequence and an original phase coefficient sequence, including:

[0079] S101-1: extracting the original feature point sequence of the original vector map; inputting the original feature point sequence into the Douglas-Peucker algorithm, presetting the compression threshold, and calculating the original feature point sequence F of the original vector map e ;

[0080] S101-2: construct an original complex sequence C according to the original feature point sequence, expressed as:

[0081] C={c0,c1,…,c j ,...,c N-1};

[0082] Among them, c j is the complex form of the jth feature point in the original complex sequence, denoted by c j =x j +y j *i, j = 0, 1, 2, ..., N-1, N represents the total number of feature points in the original complex sequence; (x j ,y j ) represents the coordinates of the jth feature point in the original complex sequence, and i represents the imaginary unit.

[0083] S101-3: for each element c in the original complex number sequence C j Perform discrete Fourier transform to obtain the Fourier coefficient sequence D. Let n represent the original complex sequence index, m represent the Fourier coefficient index, m and n correspond one to one, and the value range is [0,1,2,…,N-1]; obtain the Fourier coefficient D(m) at the mth index position in the Fourier coefficient sequence, expressed as:

[0084]

[0085] S101-4: Based on the Fourier coefficient sequence D, the modulus length of each Fourier coefficient in the sequence is obtained to obtain the original amplitude coefficient sequence Mag. The amplitude coefficient Mag(m) at the mth index position in the original amplitude coefficient sequence is expressed as:

[0086]

[0087] S101-5: Based on the Fourier coefficient sequence D, the phase of each Fourier coefficient in the sequence is obtained to obtain an original phase coefficient sequence Pha. The phase coefficient Pha(m) at the mth index position in the original phase coefficient sequence is expressed as:

[0088]

[0089] Where C(n) represents the element c at the nth index position in the original complex sequence. j ;D real (m) represents the real part of the Fourier coefficient at the mth index position, D imag (m) represents the imaginary part of the Fourier coefficient at the m-th index position.

[0090] Specifically, in step S102, singular value decomposition is used to obtain the original singular vector DS(m), which is expressed as:

[0091]

[0092] Specifically, in step S103, obtaining the encrypted binary watermark image includes:

[0093] Obtain the binary watermark image W to be embedded, and use the Arnold algorithm to replace the coordinates of each pixel in the binary watermark image to be embedded according to a preset rule to obtain the corresponding encrypted pixel, which is expressed as:

[0094]

[0095] All encrypted pixels constitute the encrypted binary watermark image W e ;

[0096] Where (b', d') represents the encrypted binary watermark image W e The pixel coordinates in (b, d) represent the pixel coordinates in the binary watermark image W to be embedded; Z represents the total number of pixels in the binary watermark image; key α ,key β is a preset positive integer, representing the key information of the Arnold algorithm. mod means remainder.

[0097] Specifically, in step S104, the embedded vector is obtained by using the quantization index modulation strategy, which specifically includes:

[0098] Amplify the original singular vector by a preset multiple K, expressed as DS(m)×K;

[0099] Initialize the step size q of the quantization index modulation strategy and convert the encrypted binary watermark image W e Embedded in the enlarged singular vector, get the embedding vector DS'(m), expressed as:

[0100]

[0101] Where mod means remainder, wid is the index value of the embedded watermark bit, expressed as wid = mod[key h ×DS(j),q],key h Preset key for watermark;

[0102] Specifically, the coefficient value DS(m) is amplified and quantized to embed the watermark. Taking the first line as an example, K represents the amplification by K times, the purpose is to reduce the error caused by watermark embedding. The following is the condition, which means that if the watermark value to be embedded is 0, and the modulus of DS(m)×K to q is greater than Then subtract DS(m)×K from If the watermark value to be embedded is 1, and the modulo q of DS(m)×K is not less than Then add DS(m)×K to The third row indicates that the first element in DS(m) is not watermarked because it is not translation invariant.

[0103] Based on the discrete Fourier transform DFT algorithm, the present invention introduces singular value decomposition SVD, and utilizes the complementary advantages of the inherent geometric properties of DFT and SVD to obtain a new frequency domain transformation method, namely DFT-SVD. The coefficients obtained after the DFT-SVD transformation are characteristic invariants with translation, rotation and scaling invariance. Based on this characteristic invariant, the present invention designs a vector map digital watermark algorithm in order to comprehensively improve the robustness of the watermark algorithm against geometric attacks. In order to enhance the robustness of the watermark algorithm against vertex addition, vertex deletion, compression attacks, etc., the present invention also adopts a feature point embedding strategy to further improve the effectiveness of the algorithm. Finally, the present invention proposes a hybrid domain vector map watermark extraction and embedding method that couples the advantages of DFT and SVD, which has more comprehensive robustness and excellent invisibility.

[0104] Based on the above embodiment, in this embodiment, in a computer with configuration parameters of Windows 10, AMD 4800U GPU and 16GB RAM, the invisibility and robustness of the vector map index embedding method provided by the present invention are verified; the step size q of the initialization quantization index modulation is set to 10, and the amplification factor K is set to 10 9 .like Figure 2As shown in the figure, the test data downloaded from the national geographic information resource directory service system in this embodiment is selected Figure 2 (a) road map, Figure 2 (b) river maps and Figure 2 (c) Residential area map is used as test vector data. Figure 3 As shown, the steps of watermark embedding specifically include:

[0105] S201: Taking the line or area element in the vector map as the unit, using the improved Douglas algorithm, set the compression threshold T r , calculate the feature point sequence of the vector map, denoted as F e .

[0106] S202: Construct the feature point sequence into a complex sequence: C = {c0, c1, ..., cj, ..., c N-1};

[0107] Among them, c j =x j +y j *i,j=0,1,2,…,N-1,(x j ,y j ) represents the coordinates of the jth feature point, c j represents a complex value, and N represents the number of feature points.

[0108] S203: Perform DFT transformation on the complex sequence C to obtain DFT coefficients D, and then calculate the amplitude coefficients Mag.

[0109] The calculation formula of DFT transform is:

[0110]

[0111] The calculation formula of the amplitude coefficient is:

[0112]

[0113] Where n represents the spatial domain index value, that is, the index value of C, and m represents the frequency domain index value, that is, the index value of the DFT coefficient D. real (m) and D imag (m) represent the real part and imaginary part of D respectively.

[0114] S204: Perform singular value decomposition on Mag to obtain the DFT-SVD mixing coefficient DS(m). The value of DS(m) is expressed as:

[0115]

[0116] S205: Define the binary watermark image as W. In order to enhance the security of the watermark, the Arnold algorithm is used to encrypt W to obtain W e The Arnold scrambling algorithm achieves encryption by scrambling the pixel positions of the W coordinates. Its calculation method is expressed as:

[0117]

[0118] Where (b, d) and (b', d') represent W and W respectively. e The pixel position of Z represents the number of watermark pixels. Parameter key α ,key β and Z is the key information of the algorithm.

[0119] S206: In order to reduce the error caused by watermark embedding, DS(m) is first amplified by K times, and then the watermark information is embedded using the quantization index modulation strategy. The specific embedding process is expressed as:

[0120]

[0121] Where DS(m)×K represents the singular vector after amplification and watermark embedding, q is the step size of quantization index modulation, which is also the watermark embedding strength of the algorithm, mod represents remainder, and wid represents the index value of the embedded watermark position, which is calculated as follows: wid=mod[key h ×DS(j),q], where key h is the key.

[0122] S207: DS'(m) is reduced by K times to obtain the singular vector of the embedded watermark, and then inverse singular value decomposition and inverse discrete Fourier transform are performed to obtain the feature points of the embedded watermark.

[0123] S208: Replace the original feature points with the feature points embedded with the watermark to obtain a vector map embedded with the watermark.

[0124] The embedding of watermark information will inevitably cause distortion of the host vector map. In order to evaluate the invisibility of the present invention, the maximum error Max.Error, average error Mean.Error and root mean square error RMSE between the vector maps before and after watermark embedding are calculated. The calculation methods are respectively expressed as follows:

[0125]

[0126]

[0127]

[0128] Among them, (x i,y i ) and (x i ',y i ') respectively represent the coordinates of the original vector map and the vector map after embedding the watermark;

[0129] The smaller the error value, the better the invisibility of the watermark algorithm. The invisibility experiment results are shown in Table 1:

[0130] Table 1 Invisibility experiment results

[0131]

[0132] According to Table 1, after embedding the watermark information, the maximum error, average error and root mean square error of the present invention are all close to 0 and the minimum value compared with the comparison algorithm, which has very excellent invisibility.

[0133] In summary, the present invention adopts a strategy of complementary algorithm advantages, couples the invariance advantages of discrete Fourier transform DFT (discreteFourier transform) and singular value decomposition SVD (singular value decomposition) under geometric transformation, and proposes a hybrid domain vector map watermark embedding and extraction method; it can not only comprehensively improve the performance of the vector map watermark algorithm, but also effectively control the error caused by watermark embedding to the vector map, and has excellent invisibility.

[0134] Embodiment 2:

[0135] Reference Figure 4 As shown, the step flow chart of the vector map watermark extraction method of the present invention includes the following steps:

[0136] S301: Acquire a vector map embedded with a watermark obtained based on the hybrid domain vector map watermark embedding method as described in Example 1, which is a vector map to be detected;

[0137] S302: extracting a current feature point sequence of the vector map to be detected, constructing a current complex number sequence according to the current feature point sequence; based on the current complex number sequence, using discrete Fourier transform, obtaining a current amplitude coefficient sequence;

[0138] S303: performing singular value decomposition on the current amplitude coefficient sequence to obtain a current singular vector;

[0139] S304: using a voting mechanism to obtain the watermark bit value and index value of the current singular vector, and generate a current encrypted watermark image;

[0140] Initialize the watermark bit set to an empty set, expressed as:

[0141]

[0142] Initialize the index value set to an empty set, expressed as: VR = IR = {r p |r p =0,p=0,1,…,W len -1};

[0143] IR(ird)=IR(ird)+1, index information ird=mod[key h ×K×DS"(j),q];

[0144] Current encrypted watermark image W' e , expressed as:

[0145] Where DS"(j) represents the current singular vector; W len Indicates the total number of feature points occupied by the watermark; q indicates the step size of the quantization index modulation strategy, and K indicates the preset multiple of the amplification; key h is the preset key; AR(ird) represents the watermark bit value, AR(m) represents the watermark bit value is ird=m, IR(ird) represents the watermark index value, IR′(m) represents the number of watermarks with watermark index value m, and IR′(m) represents the number of watermarks with watermark index value m.

[0146] S305: Decrypt the current encrypted watermark image using the inverse Arnold algorithm to obtain a vector map after the watermark is extracted, which is expressed as:

[0147]

[0148] Among them, (b', d')' represents the current encrypted watermark image W' e The pixel coordinates in (b, d)′ represent the pixel coordinates in the vector map W′ after the watermark is extracted; Z represents the total number of pixels in the current encrypted watermark map; key α ,key β is a positive integer, indicating the key information of the Arnold algorithm. mod means remainder.

[0149] Based on the above embodiments, in this embodiment, the robustness of the vector map index embedding method provided by the present invention is verified in a computer with configuration parameters of Windows 10, AMD 4800U GPU and 16GB RAM. This embodiment extracts the watermark image after a series of attacks on the vector map embedded with the watermark, and calculates the normalized correlation NC (normalized correlation) between the extracted watermark image and the original watermark image to evaluate the robustness of the algorithm; refer to Figure 5As shown, the above-mentioned vector map with embedded watermark is used as the vector map to be detected, and watermark extraction is performed. The specific steps include:

[0150] S401: Taking the line or area element of the vector map to be detected as a unit, executing the improved Douglas Peucker algorithm, wherein a threshold T is set for the improved Douglas Peucker algorithm. r , the extracted feature point sequence is recorded as F e ;

[0151] S402: Construct a feature point sequence of the vector map to be detected by using the method in step S302, and then use the DFT transform and the calculation formula of the amplitude coefficient in turn to calculate the amplitude coefficient, and use singular value decomposition to obtain the DFT-SVD hybrid transform coefficient, which is recorded as DS"(j).

[0152] S403: Since the watermark and the element values ​​in DS"(j) are in a one-to-many relationship, in order to improve the robustness of the algorithm, a voting mechanism is used to determine the final watermark value. Two sets, VR and AR, are defined. The number of elements in the sets is consistent with the number of pixels in the watermark image, and the initial values ​​are both 0. VR and AR are defined as follows:

[0153] VR=IR={r p |r p =0,p=0,1,…,W len -1};

[0154] Among them, W len Indicates the watermark length, that is, the number of pixels.

[0155] S404: Extract the watermark bit value and index from DS"(j), and update and record them in VR and AR. The update formulas of VR and AR are:

[0156]

[0157] IR(ird)=IR(ird)+1;

[0158] Where N represents the number of elements in DS"(j), K is the magnification, q is the step size of quantization index modulation, K and q values ​​are consistent with those when watermark is embedded, ird ​​is the extracted index information, and the calculation method of ird is expressed as: ird = mod[key h ×K×DS"(j),q]; where key h is the key.

[0159] S405: Determine the watermark image W' before decryption using the "more wins" voting mechanism e , the calculation formula is as follows:

[0160]

[0161] S406: Using the inverse Arnold algorithm to process the watermark image W' e Decryption is performed to obtain the final watermark image W′. The inverse Arnold definition formula is as follows:

[0162]

[0163] where (b, d)′ and (b', d')′ represent W′ and W' respectively. e The pixel index, parameter For key information.

[0164] The calculation formula of normalized correlation NC is expressed as:

[0165]

[0166] Where W i and W' i Represents the pixel values ​​of the extracted watermark and the original watermark respectively. The larger the NC value, the higher the similarity between the extracted watermark image and the original watermark image. Table 2 shows the attack methods conducted in the experiment. Figure 6 The average NC values ​​of the watermark images extracted from the three groups of test vector maps of the present invention, comparative documents 1 and comparative documents 2 under different attacks are shown.

[0167] Table 2 Robustness experiment attack methods

[0168]

[0169]

[0170] Reference Figure 6 It can be seen that, using the watermark embedding and extraction method provided by the present invention, in the 11 attack modes listed in Table 2, watermark images with NC close to 1 can be extracted, indicating that the present invention has very strong robustness against common attacks and their combined attacks. In addition, the NC value of the watermark image extracted by the present invention is generally higher than that of the algorithms of Comparative Documents 1 and 2, indicating that the robustness performance of the present invention is also better than that of the comparative algorithms.

[0171] The vector map watermark embedding method described in the present invention couples the translation and rotation invariance advantages of the amplitude coefficient obtained by Fourier transform with the scaling invariance advantages of the singular vectors of singular value decomposition, and uses the quantization index modulation strategy to use the singular vectors of the embedded amplitude coefficients as embedding vectors to obtain embedded feature points, thereby restoring the vector map embedded with the watermark; the present invention uses Fourier transform and singular value decomposition to obtain embedding vectors, which can simultaneously resist geometric attacks of translation, rotation and scaling, and improve the robustness of combined attacks. The present invention amplifies the singular vectors by a preset multiple to ensure that there is enough space for the watermark to be embedded in the singular vectors, while ensuring that the characteristics of the original feature points will not be significantly changed, reducing the error caused by watermark embedding and improving the accuracy of the vector map.

[0172] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0173] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0174] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0175] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0176] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A hybrid domain vector map watermark embedding method, characterized in that: include: Extracting an original feature point sequence of the original vector map, constructing an original complex number sequence according to the original feature point sequence; based on the original complex number sequence, using discrete Fourier transform, obtaining an original amplitude coefficient sequence and an original phase coefficient sequence; Performing singular value decomposition on the original amplitude coefficient sequence to obtain original singular vectors and original singular values; Acquire a binary watermark image to be embedded, and encrypt the binary watermark image to be embedded using the Arnold algorithm to obtain an encrypted binary watermark image; The original singular vector is magnified by a preset multiple, and the encrypted binary watermark image is embedded into the magnified original singular vector using a quantization index modulation strategy to obtain an embedded vector; After reducing the embedding vector by a preset multiple, inverse singular value decomposition is performed with the original singular value to obtain an amplitude coefficient sequence containing a watermark, and then inverse discrete Fourier transform is performed with the original phase coefficient sequence to obtain an embedded feature point sequence; The embedded feature point sequence is used to replace the original feature point sequence in the original vector map to obtain a vector map embedded with a watermark.

2. The hybrid domain vector map watermark embedding method according to claim 1 is characterized in that: The extracting of the original feature point sequence of the original vector map and constructing the original complex number sequence according to the original feature point sequence include: Taking the line or surface elements of the original vector map as units, the Douglas-Peucker algorithm is executed, the compression threshold is preset, and the original feature point sequence F of the original vector map is calculated. e ; The original complex sequence C is constructed according to the original feature point sequence, which is expressed as: C={c0,c1,…,c j ,…,c N-1 }; Among them, c j is the complex form of the jth feature point in the original complex sequence, denoted by c j =x j +y j *i, j = 0, 1, 2, ..., N-1, N represents the total number of feature points in the original complex sequence; (x j ,y j ) represents the coordinates of the jth feature point in the original complex sequence, and i represents the imaginary unit.

3. The hybrid domain vector map watermark embedding method according to claim 2 is characterized in that: The method of obtaining an original amplitude coefficient sequence and an original phase coefficient sequence based on the original complex number sequence by using discrete Fourier transform includes: For each element c in the original complex sequence C j Perform coupled discrete Fourier transform to obtain the Fourier coefficient sequence D, let n represent the original complex sequence index, m represent the Fourier coefficient index, m and n correspond one to one, and the value range is [0,1,2,…,N-1]; Get the Fourier coefficient D(m) at the mth index position in the Fourier coefficient sequence, expressed as: Based on the Fourier coefficient sequence D, the modulus length of each Fourier coefficient in the sequence is obtained to obtain the original amplitude coefficient sequence Mag. The amplitude coefficient Mag(m) at the mth index position in the original amplitude coefficient sequence is expressed as: Based on the Fourier coefficient sequence D, the phase of each Fourier coefficient in the sequence is obtained to obtain the original phase coefficient sequence Pha. The phase coefficient Pha(m) at the mth index position in the original phase coefficient sequence is expressed as: Where C(n) represents the element at the nth index position in the original complex sequence; D real (m) represents the real part of the Fourier coefficient at the mth index position, D imag (m) represents the imaginary part of the Fourier coefficient at the m-th index position.

4. The hybrid domain vector map watermark embedding method according to claim 3 is characterized in that: The acquisition of the original singular vectors includes: Based on the original amplitude coefficient sequence, the original singular vector DS(m) is obtained by singular value decomposition, which is expressed as:

5. The hybrid domain vector map watermark embedding method according to claim 4 is characterized in that: The step of obtaining a binary watermark image to be embedded, encrypting the binary watermark image to be embedded using an Arnold algorithm, and obtaining an encrypted binary watermark image includes: Obtain the binary watermark image W to be embedded, and use the Arnold algorithm to replace the coordinates of each pixel in the binary watermark image to be embedded according to a preset rule to obtain the corresponding encrypted pixel, which is expressed as: All encrypted pixels constitute the encrypted binary watermark image W e ; Where (b', d') represents the encrypted binary watermark image W e The pixel coordinates in (b, d) represent the pixel coordinates in the binary watermark image W to be embedded; Z represents the total number of pixels in the binary watermark image; key α ,key β is a preset positive integer, representing the key information of the Arnold algorithm. mod means remainder.

6. The hybrid domain vector map watermark embedding method according to claim 5 is characterized in that: The method of amplifying the original singular vector by a preset multiple, and embedding the encrypted binary watermark image into the amplified original singular vector by using a quantization index modulation strategy to obtain an embedded vector includes: Amplify the original singular vector by a preset multiple K, expressed as DS(m)×K; Initialize the step size q of the quantization index modulation strategy and convert the encrypted binary watermark image W e Embed the original singular vector after enlargement to obtain the embedded vector DS'(m), which is expressed as: Where mod means remainder, wid is the index value of the embedded watermark bit, expressed as wid = mod[key h ×DS(j),q],key h Preset key for watermark.

7. A mixed domain vector map watermark extraction method, characterized in that: include: Acquire a vector map embedded with a watermark obtained by the hybrid domain vector map watermark embedding method according to any one of claims 1 to 6, as the vector map to be detected; Extracting a current feature point sequence of the vector map to be detected, constructing a current complex number sequence according to the current feature point sequence; obtaining a current amplitude coefficient sequence based on the current complex number sequence by using discrete Fourier transform; Performing singular value decomposition on the current amplitude coefficient sequence to obtain a current singular vector; The voting mechanism is used to obtain the watermark bit value and index value of the current singular vector to generate the current encrypted watermark image; The current encrypted watermark image is decrypted using the inverse Arnold algorithm to obtain a vector map after the watermark is extracted.