[go: up one dir, main page]

CN1710610A - A digital watermark anti-counterfeiting method against digital-to-analog conversion process - Google Patents

A digital watermark anti-counterfeiting method against digital-to-analog conversion process Download PDF

Info

Publication number
CN1710610A
CN1710610A CN 200510050545 CN200510050545A CN1710610A CN 1710610 A CN1710610 A CN 1710610A CN 200510050545 CN200510050545 CN 200510050545 CN 200510050545 A CN200510050545 A CN 200510050545A CN 1710610 A CN1710610 A CN 1710610A
Authority
CN
China
Prior art keywords
watermark
digital
image
foreground image
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200510050545
Other languages
Chinese (zh)
Other versions
CN1322470C (en
Inventor
裘正定
章春娥
何一兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Tiangu Information Technology Co ltd
Original Assignee
Hangzhou Tiangu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Tiangu Information Technology Co ltd filed Critical Hangzhou Tiangu Information Technology Co ltd
Priority to CNB2005100505454A priority Critical patent/CN1322470C/en
Publication of CN1710610A publication Critical patent/CN1710610A/en
Application granted granted Critical
Publication of CN1322470C publication Critical patent/CN1322470C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

本发明涉及一种抗数模模数变换过程的数字水印防伪方法,包括以下步骤:a)水印嵌入过程,采用二值数字水印算法,在选定的保护对象特定区域嵌入一种包含特殊信息的二值数字水印;b)水印提取判决过程其特征在于:选定的特定区域包括前景图像和背景图像,对选定的特定区域前景图像边缘进行加晕处理,对前景图像进行块划分,并在水印嵌入前对前景图像设置反映前景图像几何特征的同步信号,定义两种不同的图像块模式代表水印信息,进行水印嵌入,在水印提取判决时用图像块像素值方差对图像块像素的分布进行描述,根据一个确定的阈值和图像块像素值方差相比较提取水印;利用提取出水印序列与原始水印序列的相关性判决水印信息是否可信。本发明有利于在提取水印预处理时准确分割前景图像和背景区域,最大限度防止原始图像的失真,能更好地抵抗打印扫描攻击,实现模拟域的防伪保护功能。

Figure 200510050545

The present invention relates to a digital watermark anti-counterfeiting method against digital-analog-to-analog conversion process, which comprises the following steps: a) the watermark embedding process uses a binary digital watermark algorithm to embed a special information-containing watermark in a specific area of a selected protected object Binary digital watermark; b) the watermark extraction decision process is characterized in that: the selected specific area includes a foreground image and a background image, the edge of the selected specific area foreground image is haloed, the foreground image is divided into blocks, and Before embedding the watermark, set the synchronization signal reflecting the geometric characteristics of the foreground image on the foreground image, define two different image block modes to represent the watermark information, carry out the watermark embedding, and use the pixel value variance of the image block to analyze the distribution of the image block pixels when the watermark is extracted and judged. Description, extract the watermark according to a determined threshold and compare the variance of the pixel value of the image block; use the correlation between the extracted watermark sequence and the original watermark sequence to judge whether the watermark information is credible. The invention is beneficial to accurately segment the foreground image and the background area during the preprocessing of extracting the watermark, prevent the original image from being distorted to the greatest extent, better resist printing and scanning attacks, and realize the anti-counterfeiting protection function of the simulation domain.

Figure 200510050545

Description

一种抗数模模数变换过程的数字水印防伪方法A digital watermark anti-counterfeiting method against digital-to-analog conversion process

                          技术领域Technical field

本发明涉及一种水印防伪方法,尤其涉及一种抗数模模数变换过程的数字水印防伪方法。The invention relates to a watermark anti-counterfeiting method, in particular to a digital watermark anti-counterfeiting method resistant to digital-analog-analog conversion process.

                          背景技术 Background technique

数字水印作为一种新颖的信息隐藏技术,为解决开放性网络上的版权保护、来源认证、篡改认证、网上发行、用户跟踪和身份认证等一系列问题提供了崭新的解决思路。但现在人们大多把注意力集中到了针对数字图像、音频和视频的数字水印技术的研究,涉及到以文档和二值图像作为载体的数字水印算法的研究却很少,以文档和二值图像作为载体的数字水印算法的设计难点在于文档或二值图像仅仅用两个不同的灰度值就能表示整个图像,几乎没有什么纹理和细节可言,有的仅仅是不同的几何形状,利用这样的载体很难设计出符合数字水印要求的算法来。但是文档和二值图像的应用十分广泛,包括数字签章和手写签名、文字等,其保护问题的研究从实际到理论都具有重要意义,而现在既能提供数字域的验证功能,也能提供数模和模数变换处理后以文档和二值图像作为载体的防伪功能的实例很少,一般的电子加密技术或数字水印算法仅仅对文档提供数字域的防伪功能,不能抵抗几何攻击和类似打印扫描的模数数模攻击,在模拟域不能起到防伪的功能。As a novel information hiding technology, digital watermarking provides a new solution to solve a series of problems such as copyright protection, source authentication, tampering authentication, online distribution, user tracking and identity authentication on the open network. But now people mostly focus on the research of digital watermarking technology for digital images, audio and video, and there are few researches on digital watermarking algorithms that use documents and binary images as carriers. The difficulty in the design of the digital watermarking algorithm of the carrier is that the document or binary image can represent the entire image with only two different gray values. There are almost no textures and details, and some are just different geometric shapes. Using such It is difficult for the carrier to design an algorithm that meets the requirements of digital watermarking. However, documents and binary images are widely used, including digital signatures, handwritten signatures, text, etc. The research on its protection issues is of great significance from practice to theory, and now it can provide both the verification function of the digital domain and the There are few examples of anti-counterfeiting functions using documents and binary images as carriers after digital-to-analog and analog-to-digital conversion processing. General electronic encryption technology or digital watermarking algorithms only provide anti-counterfeiting functions in the digital domain for documents, and cannot resist geometric attacks and similar printing. Scanned modulo-digital-analog attacks cannot play an anti-counterfeiting function in the analog domain.

                          发明内容Contents of Invention

本发明的目的在于提供一种抗数模模数变换过程的数字水印防伪方法,通过采用一种二值数字水印算法,在选定的保护对象的特定区域嵌入一种包含了特殊信息的二值数字水印的办法,使这个特定区域具有数字域和模拟域双重防伪的功能,既能提供数字域的验证功能,也能提供数模模数处理后的防伪功能;不仅能保护数字域文档,也能保护经数模变换后的纸质文档;既能实现在线验证也能实现离线防伪;通过该方法生成的数字签章能够逼近传统签章功能,不The object of the present invention is to provide a digital watermark anti-counterfeiting method that is resistant to digital-analog-analog conversion process. By adopting a binary digital watermark algorithm, a binary value containing special information is embedded in a specific area of the selected protected object. The method of digital watermark makes this specific area have double anti-counterfeiting functions in digital domain and analog domain, which can not only provide verification function in digital domain, but also provide anti-counterfeiting function after digital-analog modulus processing; it can not only protect digital domain documents, but also It can protect paper documents after digital-to-analog conversion; it can realize both online verification and offline anti-counterfeiting; the digital signature generated by this method can approach the traditional signature function, without

仅能盖在合同等文档的空白处,也能加盖在有文字、图案的复杂背景处。It can only be stamped on the blank space of contracts and other documents, and it can also be stamped on complex backgrounds with text and patterns.

一种抗数模模数变换过程的数字水印防伪方法,包括以下步骤:A digital watermark anti-counterfeiting method against digital-to-analog conversion process, comprising the following steps:

a)水印嵌入过程,采用二值数字水印算法,在选定的保护对象特定区域嵌入一种包含特殊信息的二值数字水印;a) The watermark embedding process uses a binary digital watermark algorithm to embed a binary digital watermark containing special information in a specific area of the selected protected object;

b)水印提取判决过程b) Watermark extraction and judgment process

其特征在于:It is characterized by:

选定的特定区域包括前景图像和背景图像,Selected specific areas include foreground and background images,

在水印嵌入前先对前景图像进行加晕处理,加入与背景相区别的光晕,将前景图像与背景区域区别开来,对前景图像进行分块划分,块的所有像素都在前景图像内部时才嵌入水印信息。分块划分后,在前景图像设置反映前景图像几何特征的同步信号,以保证在提取水印时能达到同步,克服在类似打印扫描的数模/模数转换过程中可能引入的失同步。对前景图像以栅格扫描顺序逐块按照两种块模式嵌入水印,块模式与1/0相对应分为两类:第一类对图像块不作处理,第二类按照预定义的值修改图像块中心部分的像素值;反之亦可;也可通过将第一类图像块中心像素变暗,第二类图像块中心像素增亮来实现。水印信息为需要保护的重要信息的二值化序列。所述图像块中心部分的范围取决于前景分块的大小;修改后图像块中心部分的像素值向外呈环形逐渐变化至接近前景图像的像素值。水印提取判决时对需要验证或鉴定真伪的文档首先将前景图像从背景中提取出来,进行同步处理;用与嵌入前相同的块划分方法对选择的特定区域进行划分;计算图像块像素值方差,与一个给定的阈值进行比较提取水印,如当方差大于给定阈值时,判决该块嵌入的水印信息为1,当方差小于等于该给定的阈值时,判决该块嵌入的水印信息为0,使用相关性判决来判断所有提取出来的水印序列的有效性。Before the watermark is embedded, the foreground image is haloed, and the halo that is different from the background is added to distinguish the foreground image from the background area, and the foreground image is divided into blocks. When all the pixels of the block are inside the foreground image Embed the watermark information. After block division, a synchronization signal reflecting the geometric characteristics of the foreground image is set in the foreground image to ensure that synchronization can be achieved when extracting the watermark, and to overcome the possible desynchronization introduced in the digital-to-analog/analog-to-digital conversion process similar to printing and scanning. The foreground image is embedded with watermark block by block in raster scanning order according to two block modes. The block mode is divided into two types corresponding to 1/0: the first type does not process the image block, and the second type modifies the image according to the predefined value The pixel value of the central part of the block; vice versa; it can also be realized by darkening the central pixel of the first type of image block and brightening the central pixel of the second type of image block. Watermark information is a binary sequence of important information that needs to be protected. The range of the central portion of the image block depends on the size of the foreground block; after modification, the pixel values of the central portion of the image block gradually change outwards in a circular manner until they are close to the pixel values of the foreground image. In watermark extraction and judgment, for documents that need to be verified or authenticated, the foreground image is first extracted from the background and processed synchronously; the selected specific area is divided by the same block division method as before embedding; the variance of the pixel value of the image block is calculated , compare with a given threshold to extract the watermark, for example, when the variance is greater than the given threshold, the watermark information embedded in the block is judged to be 1, and when the variance is less than or equal to the given threshold, the watermark information embedded in the block is judged to be 0, use correlation judgment to judge the validity of all extracted watermark sequences.

本发明提供的抗数模模数变换过程的数字水印防伪方法在数字域为半易损算法,在模拟域是能抵抗数模(打印、印刷等)、模数(扫描、数码拍摄等)过程出现的几何攻击的鲁棒算法。The digital watermark anti-counterfeiting method provided by the present invention is a semi-fragile algorithm in the digital domain, and can resist digital-to-analog (printing, printing, etc.) and modulo-to-digital (scanning, digital photography, etc.) processes in the analog domain. A robust algorithm for emerging geometric attacks.

本发明的有益效果:Beneficial effects of the present invention:

1.通过增设了加晕处理,将前景图像与背景区域区别开来,有利于在提取水印预处理时准确分割前景图像和背景区域。1. By adding halo processing, the foreground image is distinguished from the background area, which is beneficial to accurately segment the foreground image and the background area when extracting the watermark preprocessing.

2.通过增设块的划分,保证仅在块的所有像素都在前景图像内部时块才可以作为水印的载体嵌入水印信息,最大限度防止原始图像的失真。2. By adding block division, it is guaranteed that the block can be used as a watermark carrier to embed watermark information only when all pixels of the block are inside the foreground image, so as to prevent the distortion of the original image to the greatest extent.

3.通过同步信号的设置克服了类似打印扫描的数模模数转换过程中引入的几何形变问题。3. Through the setting of the synchronous signal, the problem of geometric deformation introduced in the analog-to-analog conversion process similar to printing and scanning is overcome.

4.通过在选定的保护对象的特定区域嵌入一种包含了特殊信息的二值水印的办法,防止失真的同时巧妙地嵌入大量的水印信息。4. By embedding a binary watermark containing special information in a specific area of the selected protected object, a large amount of watermark information can be skillfully embedded while preventing distortion.

5.采用图像块像素值方差对块的像素分布进行描述,并据此作出水印判决,科学有效而简洁地完成了水印信息提取和判决,对于像素值的扰乱具备更高的鲁棒性,能更好地抵抗数模模数过程的信号衰减,实现数字文档在模拟域的防伪保护功能。5. Use the variance of the pixel value of the image block to describe the pixel distribution of the block, and make a watermark judgment based on this, scientifically, effectively and concisely complete the watermark information extraction and judgment, and have higher robustness to the disturbance of the pixel value, and can Better resist the signal attenuation of the digital-to-analog process, and realize the anti-counterfeiting protection function of digital documents in the analog domain.

                          附图说明Description of drawings

图1是本发明实施例1的水印嵌入的流程图;Fig. 1 is the flow chart of the watermark embedding of embodiment 1 of the present invention;

图2是本发明实施例1受抗数模模数变换过程的数字水印防伪方法保护的文档传输过程;Fig. 2 is the document transmission process protected by the digital watermark anti-counterfeiting method against digital-to-analog conversion process in Embodiment 1 of the present invention;

图3是本发明实施例1的水印提取判决流程图;Fig. 3 is a flow chart of watermark extraction and judgment in Embodiment 1 of the present invention;

图4是本发明实施例1中未嵌入水印信息的企业公章的示意图;Fig. 4 is a schematic diagram of an enterprise official seal not embedded with watermark information in Embodiment 1 of the present invention;

图5是本发明实施例1嵌入水印信息企业公章的示意图;Fig. 5 is a schematic diagram of embedding watermark information enterprise official seal in Embodiment 1 of the present invention;

图6是本发明实施例1有文字背景的嵌入水印信息的企业公章的示意图;6 is a schematic diagram of an enterprise official seal embedded with watermark information in a text background in Embodiment 1 of the present invention;

图7是本发明实施例1对前景图像中可嵌入水印信息图像块的示意图;7 is a schematic diagram of an image block that can embed watermark information in a foreground image according to Embodiment 1 of the present invention;

图8是本发明实施例1中水印比特1或0对应的两种图像块模式;Fig. 8 shows two image block modes corresponding to watermark bit 1 or 0 in Embodiment 1 of the present invention;

图9是本发明实施例2中未嵌入水印信息的企业公章的示意图;Fig. 9 is a schematic diagram of an enterprise official seal not embedded with watermark information in Embodiment 2 of the present invention;

图10是本发明实施例2中嵌入水印信息企业公章的示意图;Fig. 10 is a schematic diagram of an enterprise official seal embedded with watermark information in Embodiment 2 of the present invention;

图11是本发明实施例2的水印嵌入的流程图;FIG. 11 is a flow chart of watermark embedding in Embodiment 2 of the present invention;

图12是本发明实施例2中水印比特1或0对应的两种图像块模式;Fig. 12 shows two image block modes corresponding to watermark bit 1 or 0 in Embodiment 2 of the present invention;

图13是本发明实施例2中受抗数模模数变换过程的数字水印防伪方法保护的文档传输过程。Fig. 13 is a document transmission process protected by a digital watermark anti-counterfeiting method against digital-to-analog conversion process in Embodiment 2 of the present invention.

                         具体实施方式 Detailed ways

下面结合企业公章的水印嵌入和水印提取判决过程,通过实施例对本发明作进一步阐述;Below in conjunction with the watermark embedding and watermark extraction judgment process of the company's official seal, the present invention will be further elaborated through the embodiments;

实施例1:Example 1:

抗数模模数变换过程的数字水印防伪方法的整个嵌入和检测过程可细分为如下步骤进行描述:a)水印嵌入前预处理;b)水印嵌入;c)加水印文档可能经历的传输过程;d)水印提取前预处理;e)水印提取判决。图1示出a)水印嵌入前预处理和b)水印嵌入过程;图2示出受抗数模模数变换过程的数字水印防伪方法保护的文档传输过程;图3包含d)水印提取前预处理和e)水印提取判决;图4示出未嵌入水印信息的企业公章,它是按照国家要求几何尺寸定制的企业公章,称为原始图像;其背景为白色,前景图像(即中间的五角星、“天印签章测试专用章”字、圆环)为红色,r为该红色的象素值。实际应用中前景图像也可以是其他单一颜色和形状的印章、签章图案。图5示出嵌入水印信息后的企业公章。图6示出嵌入水印后的印章加盖在复杂背景上的情形。设定分辨率为每英寸P像素,普通的企业公章大小为D×D,五角星的外接圆半径宽度不小于l个像素,本例中设定D为496,l为93。The entire embedding and detection process of the digital watermark anti-counterfeiting method against the digital-to-analog conversion process can be subdivided into the following steps for description: a) preprocessing before watermark embedding; b) watermark embedding; c) possible transmission process of watermarked documents ; d) Preprocessing before watermark extraction; e) Watermark extraction judgment. Fig. 1 shows a) preprocessing before watermark embedding and b) watermark embedding process; Fig. 2 shows the document transmission process protected by the digital watermark anti-counterfeiting method against digital-to-analog conversion process; Fig. 3 contains d) pre-processing before watermark extraction Processing and e) watermark extraction judgment; Figure 4 shows the official seal of the enterprise that does not embed the watermark information, it is the official seal of the enterprise customized according to the geometric size required by the country, and is called the original image; its background is white, and the foreground image (that is, the five-pointed star in the middle , "Tianyin Signature Test Special Seal", words, ring) are red, and r is the pixel value of the red color. In practical applications, the foreground image can also be other single color and shape seals and signature patterns. Fig. 5 shows the official seal of the enterprise after embedding the watermark information. Figure 6 shows the situation where the watermarked stamp is stamped on a complex background. Set the resolution to P pixels per inch, the size of an ordinary corporate seal is D×D, and the radius width of the circumscribed circle of the five-pointed star is not less than l pixels. In this example, set D to 496 and l to 93.

原始水印信息5为需要保护的重要信息的二值化序列W={wj,j=1,2,...,M},wj∈{0,1},M为序列长度,这个重要信息可以包括文档真实性信息、证书信息和纠错码,视不同的应用而定,为了提高安全性利用私钥将水印信息置乱后再进行嵌入,私钥的形式多样,要求使用方或授权方独有。The original watermark information 5 is the binary sequence of important information to be protected W={w j , j=1, 2,..., M}, w j ∈ {0, 1}, M is the sequence length, this important The information can include document authenticity information, certificate information, and error correction codes, depending on different applications. In order to improve security, the watermark information is scrambled by the private key and then embedded. The private key has various forms and requires the user or authorization Unique to Fang.

a)水印嵌入前预处理:a) Preprocessing before watermark embedding:

如图1示出,选定区域前景图像1在本例中即为上述的企业公章,在前景图像的边缘添加浅色的、不同于背景和前景颜色的、不易察觉的光晕,称为加晕处理2,意在将前景图像与背景区域区别开来,有利于在提取水印预处理时准确分割前景图像和背景区域。这样在前景图像与文档背景叠加时,二值化后二者之间是不连通的,我们就可以利用如求区域生长的算法来提取前景图像。As shown in Figure 1, the foreground image 1 of the selected area is the above-mentioned corporate seal in this example, adding a light-colored, imperceptible halo different from the background and foreground colors to the edge of the foreground image, called adding Halo processing 2 is intended to distinguish the foreground image from the background area, which is beneficial to accurately segment the foreground image and the background area when extracting the watermark preprocessing. In this way, when the foreground image is superimposed on the document background, the two are disconnected after binarization, and we can use an algorithm such as seeking region growth to extract the foreground image.

首先在企业公章五角星和圆圈的外侧加上宽度为width个像素的光晕2,这些像素值为接近背景色r的像素值s。First, add a halo 2 with a width of width pixels on the outside of the five-pointed star and circle on the corporate seal. These pixel values are close to the pixel value s of the background color r.

然后进行块划分处理3,本发明仅仅对前景图像进行分块划分,意在前景图像内部嵌入水印,不破坏前景图像边缘;块的所有像素都在前景图像内部时才能进行水印嵌入。如图7示出,对有色圆环进行分块划分,对划分所得到块19而言,所有像素都在前景图像内部,标志此块为可嵌入水印区域;对划分所得块20而言,它的部分像素已经不属于圆环这个前景图像,不能作为可嵌入水印的块,否则将有可能破坏圆环边缘。块划分的数目根据二值化水印序列的长度确定和同步信号长度决定;同步信号长度在下面进行描述。本例中对选定区域的前景图像进行块划分3,分块大小设定为d×d,当某个块的像素都在前景图像内部时,标记此块为可嵌入水印区域。Then perform block division processing 3, the present invention only divides the foreground image into blocks, intending to embed the watermark inside the foreground image without destroying the edge of the foreground image; the watermark can only be embedded when all pixels of the block are inside the foreground image. As shown in Figure 7, the colored ring is divided into blocks, for the block 19 obtained by the division, all pixels are inside the foreground image, and this block is marked as an area that can be embedded with a watermark; for the block 20 obtained by the division, it Part of the pixels do not belong to the foreground image of the ring, and cannot be used as a block that can be embedded with a watermark, otherwise the edge of the ring may be damaged. The number of block divisions is determined according to the length of the binary watermark sequence and the length of the synchronization signal; the length of the synchronization signal is described below. In this example, the foreground image of the selected area is divided into blocks 3, and the block size is set to d×d. When the pixels of a certain block are all inside the foreground image, this block is marked as an area that can be embedded with a watermark.

分块完成后选择能代表前景图像几何特征的n(n>=3)个图像块设置同步信号4,以保证在提取水印时能达到同步,克服在打印扫描过程中可能引入的同步攻击,即几何形变;设置同步信号的同时也牺牲了n个比特的水印容量。所以在上述块划分3时要求可嵌入水印块至少为M+n块,M为原始水印信息5的序列长度。本例中通过增加块中心区域的亮度把上下左右四边中间的块设置为同步信号4。After the block is completed, select n (n>=3) image blocks that can represent the geometric characteristics of the foreground image to set the synchronization signal 4 to ensure that the synchronization can be achieved when extracting the watermark, and overcome the synchronization attack that may be introduced during the printing and scanning process, that is, Geometric deformation; while setting the synchronization signal, the watermark capacity of n bits is also sacrificed. Therefore, when the above block is divided into 3, it is required that the embeddable watermark block is at least M+n blocks, and M is the sequence length of the original watermark information 5 . In this example, the blocks in the middle of the upper, lower, left, and right sides are set as sync signal 4 by increasing the brightness of the central area of the block.

在数字域,背景区域可能是完全空白的文档空隙,也有可能是边缘清晰的各种文字;在模拟域,经过打印和扫描两个复杂过程的信号衰减,背景区域可能是对应于数字域的空白区带有均匀或不均匀的噪声,也有可能是带有噪声的文字背景,如图6。本发明在图像预处理时加入的前景图像边缘光晕使我们在水印提取前将前景图像与背景分离开来变得简单和容易了,同步信号的设置是正确提取水印信息的前提之一。In the digital domain, the background area may be a completely blank document gap, or it may be a variety of text with clear edges; in the analog domain, after the signal attenuation of the two complicated processes of printing and scanning, the background area may be a blank corresponding to the digital domain The area has uniform or uneven noise, and it may also be a text background with noise, as shown in Figure 6. The edge halo of the foreground image added in the image preprocessing of the present invention makes it simple and easy for us to separate the foreground image from the background before extracting the watermark. The setting of the synchronous signal is one of the prerequisites for correctly extracting the watermark information.

b)水印嵌入过程:b) Watermark embedding process:

水印嵌入过程7为图1示出的水印嵌入流程图的重要组成部分。本发明按照栅格扫描方式逐块嵌入原始水印信息5。如上所述,仅仅在块的所有像素都在前景图像内部时块才可以作为水印的载体嵌入水印信息。The watermark embedding process 7 is an important part of the watermark embedding flowchart shown in FIG. 1 . The present invention embeds the original watermark information 5 block by block in a raster scanning manner. As mentioned above, only when all the pixels of the block are inside the foreground image, the block can be used as the carrier of the watermark to embed watermark information.

水印的嵌入通过对不同的水印信息设置不同的块模式来体现,这种块模式在如图3示出的水印提取里应该容易分辨。图8示出块模式的划分实例。块模式分为两类,第一类保持图像块原状不作修改21,第二类采用预定义的像素值取代图像块中心部分像素值22。例当wj为0时不对图像块进行改动,当wj为1时将图像块中心部分的像素的像素值设置为接近r但不同于r的值g,反之亦可。The embedding of the watermark is reflected by setting different block patterns for different watermark information. This block pattern should be easy to distinguish in the watermark extraction as shown in Figure 3. Fig. 8 shows an example of division of block patterns. There are two types of block modes. The first type keeps the image block as it is without modification21, and the second type uses predefined pixel values to replace the pixel values in the center of the image block22. For example, when w j is 0, the image block is not changed, and when w j is 1, the pixel value of the pixel in the center of the image block is set to a value g close to r but different from r, and vice versa.

图像块中心部分的范围依赖于前景图像分块的大小。当需要修改图像块中心部分的像素值时,一般是使整个中心部分的像素值都为g;考虑到视觉可接受度时修改中心部分的像素值呈环形向外使g逐渐接近前景图像颜色r,这样得到的前景图像质量非常好,易于让人接受。The extent of the central part of the image block depends on the size of the foreground image block. When it is necessary to modify the pixel value of the central part of the image block, generally the pixel value of the entire central part is g; considering the visual acceptability, the pixel value of the central part is modified in a circular manner so that g gradually approaches the foreground image color r , the quality of the foreground image obtained in this way is very good and easy to accept.

实施例中按照栅格扫描方式扫描标记为可嵌入水印信息的区域,根据私钥6将原始水印信息5置乱后嵌入其中。本实施例中两种不同的块模式设为:水印信息为比特1时对应块中心像素值由内到外逐渐减小接近前景图像像素值,水印信息为比特0时对应块不做改变。In the embodiment, the region marked as embedding watermark information is scanned in a raster scanning manner, and the original watermark information 5 is scrambled according to the private key 6 and then embedded therein. In this embodiment, two different block modes are set: when the watermark information is bit 1, the corresponding block center pixel value gradually decreases from the inside to the outside and approaches the foreground image pixel value; when the watermark information is bit 0, the corresponding block does not change.

c)加水印文档可能经历的传输过程c) The transmission process that the watermarked document may undergo

如上所述,图4示出文档选定区域即本例中的企业公章,嵌入水印后成为如图5示出图像,视觉可接受度高。如图2示出,在文档选定区域嵌入水印后得到具有防伪功能的文档8,整个文档可能经过打印9后以纸质文档的模拟形式传递;在需要对文档真实性进行验证时将纸质文档通过扫描过程10重新转换为数字形式的待鉴定文档12。具有防伪功能的文档8也可能直接在数字域存储传递11,成为待鉴定文档12。As mentioned above, Fig. 4 shows the selected area of the document, that is, the corporate official seal in this example. After embedding the watermark, it becomes the image shown in Fig. 5, which has a high visual acceptability. As shown in Figure 2, after the watermark is embedded in the selected area of the document, a document 8 with anti-counterfeiting function is obtained, and the entire document may be printed 9 and delivered in a simulated form of a paper document; when the authenticity of the document needs to be verified, the paper document The document is reconverted through the scanning process 10 into a document 12 to be authenticated in digital form. The document 8 with anti-counterfeiting function may also be directly stored and delivered 11 in the digital domain, and becomes the document 12 to be authenticated.

d)水印提取前预处理:d) Preprocessing before watermark extraction:

包含水印信息企业公章,即防伪文档8,经打印9,以纸质文档的形式表现,经扫描10变成数字域的待鉴定文档12,或包含水印信息企业公章经数字传输过程11,仍为数字域的待鉴定文档12。这种经过模拟域或数字域传输得到的待鉴定文档12进入水印提取判决前的预处理。如图3示出,这个步骤主要包括前景图像的提取13和同步恢复14。首先利用求区域生长的算法和加入的光晕来提取企业公章前景图像13,然后采用snake爬虫算法找到面积最大的4个空穴点,计算其形心,可以认为得到的四个形心坐标就是步骤a)水印嵌入前预处理中设置的同步信号坐标;由此进行同步恢复14;根据检测到的同步信号将前景图像进行与步骤a)水印嵌入前预处理相同的块划分15,标志可能嵌入水印信息的块,前景图像内部的块进入水印提取判决步骤。The official seal of the enterprise containing the watermark information, that is, the anti-counterfeit document 8, is printed 9, expressed in the form of a paper document, and scanned 10 to become a document to be authenticated in the digital domain 12, or the official seal of the enterprise containing the watermark information is still in the digital transmission process 11. Documents to be authenticated 12 in the digital domain. The document 12 to be authenticated obtained through the transmission in the analog domain or the digital domain enters the preprocessing before watermark extraction and decision. As shown in FIG. 3 , this step mainly includes foreground image extraction 13 and synchronization recovery 14 . Firstly, use the region growing algorithm and added halo to extract the corporate official seal foreground image 13, and then use the snake crawler algorithm to find the 4 holes with the largest area, and calculate their centroids. It can be considered that the obtained four centroid coordinates are Step a) synchronous signal coordinates set in the preprocessing before watermark embedding; thus perform synchronous recovery 14; perform the same block division 15 on the foreground image as in step a) preprocessing before watermark embedding according to the detected synchronous signal, and the logo may be embedded The block of watermark information, the block inside the foreground image enters the watermark extraction decision step.

e)水印提取判决e) Watermark Extraction Judgment

如图3示出,由块划分15,标志可能嵌入水印信息的块,进行水印信息提取16,并通过私钥17(即图1中6)对提取出的水印进行反置乱。As shown in FIG. 3 , by block division 15 , mark the blocks that may embed watermark information, perform watermark information extraction 16 , and descramble the extracted watermark through the private key 17 (ie, 6 in FIG. 1 ).

前景图像经过打印/扫描过程后即使是没有经过像素修改的图像块区域的像素值也不再与原始像素值一致,而是引入了各种噪声。为了克服打印/扫描这两个数模/模数过程带来的像素值扰动等噪声,本发明采用图像块标准方差σ对图像块像素的分布进行描述,并根据一个给定或者自适应确定的阈值T对每个块嵌入的水印是0还是1进行判决。After the printing/scanning process of the foreground image, even the pixel values of the image block area without pixel modification are no longer consistent with the original pixel values, but various noises are introduced. In order to overcome noise such as pixel value disturbance brought by the two digital-analog/modulus processes of printing/scanning, the present invention uses the image block standard deviation σ to describe the distribution of image block pixels, and according to a given or adaptively determined The threshold T decides whether the watermark embedded in each block is 0 or 1.

水印信息提取16的具体过程如下:计算c)水印提取前预处理中标志为可嵌入水印信息块的像素值的标准方差sj,σj≥T时判决该块嵌入的水印信息wj为1,当σj<T时判决该块嵌入的水印信息wj为0。自适应确定阈值T时,需要计算选定区域所有嵌入水印图像块的方差σjThe specific process of watermark information extraction 16 is as follows: c) Calculate the standard deviation s j of the pixel values marked as embedded watermark information blocks in the preprocessing before watermark extraction. When σ j ≥ T, it is judged that the watermark information w j embedded in this block is 1 , when σ j <T, it is judged that the watermark information w j embedded in this block is 0. When adaptively determining the threshold T, it is necessary to calculate the variance σ j of all embedded watermark image blocks in the selected area:

&sigma;&sigma; jj == 11 LL &times;&times; NN &Sigma;&Sigma; mm &Sigma;&Sigma; nno (( xx mm ,, nno -- xx &OverBar;&OverBar; )) 22

其中第j块图像块的大小为L×N,m/n分别为像素的行/列序号。设α为一个根据大量实验经验确定的常数,阈值T自适应确定为The size of the jth image block is L×N, and m/n are row/column numbers of pixels respectively. Let α be a constant determined based on a large number of experimental experiences, and the threshold T adaptively determined as

TT == &alpha;&alpha; &Sigma;&Sigma; jj Mm &sigma;&sigma; jj // Mm

从每个块中提取出来的水印比特形成一个水印序列信息。The watermark bits extracted from each block form a watermark sequence information.

本发明采用相关判决法判断提取出来的水印序列是否有效:设提取出来的水印序列为w′,计算w′与原始水印序列5W之间的相关系数ρ=W·W′/M(·表示两个向量之间的内积),并根据大量的试验数据和一个应用要求的漏警概率Pe0推断出的阈值ρthr进行判决。The present invention uses the correlation judgment method to judge whether the extracted watermark sequence is valid: suppose the extracted watermark sequence is w', calculate the correlation coefficient ρ=W·W'/M between w' and the original watermark sequence 5W (denotes two vectors), and make a decision based on a large amount of test data and a threshold value ρ thr deduced from an application-required false alarm probability P e0 .

&rho; thr = 2 &sigma; &CenterDot; erf c - 1 ( 2 P e 0 ) , 其中erfc-1是误差互补函数 erfc ( x ) = 2 &pi; &Integral; x &infin; e - t 2 dt 的逆函数,σ是前景图像的标准方差,在实际中由上面计算出来的方差阈值T表示: &rho; thr = 2 &sigma; &Center Dot; erf c - 1 ( 2 P e 0 ) , where erfc -1 is the error complement function erfc ( x ) = 2 &pi; &Integral; x &infin; e - t 2 dt The inverse function of , σ is the standard deviation of the foreground image, which is represented by the variance threshold T calculated above in practice:

&rho;&rho; thrthr == 22 TT &CenterDot;&CenterDot; erferf cc -- 11 (( 22 PP ee 00 ))

由于经过不同传输途径得到的前景图像计算出的方差阈值T不一样,ρthr的取值并不恒定,是自适应于被测试图像的。当ρ≥ρthr时w′与W一致,判断水印W存在;当ρ<ρthr时w′与W不一致,判断水印W不存在,最终得到可置信的判决结果18。Since the variance threshold T calculated from the foreground images obtained through different transmission channels is different, the value of ρ thr is not constant and is adaptive to the image under test. When ρ≥ρ thr , w' is consistent with W, and it is judged that the watermark W exists; when ρ<ρ thr , w' is not consistent with W, it is judged that the watermark W does not exist, and finally a credible judgment result is obtained18.

实施例2:Example 2:

抗数模模数变换过程的数字水印防伪方法的整个嵌入和检测过程可细分为如下步骤进行描述:f)水印嵌入前预处理;g)水印嵌入;h)加水印文档可能经历的传输过程;i)水印提取前预处理;j)水印提取判决。图11示出f)水印嵌入前预处理和g)水印嵌入过程;图13示出受抗数模模数变换过程的数字水印防伪方法保护的文档可能经历的传输过程;i)水印提取前预处理和j)水印提取判决过程与实施例1中相同,如图3所示。图9示出未嵌入水印信息的企业公章,它是按照国家要求几何尺寸定制的企业公章,称为原始图像;其背景为白色,前景图像(即中间的五角星、“天印签章测试专用章”字、圆环)区别于实施例1为蓝色,r为该蓝色的象素值。实际应用中前景图像也可以是其他单一颜色和形状印章、签章图案。图10示出嵌入水印信息后的企业公章。设定分辨率为每英寸P像素,普通的企业公章大小为D×D,五角星的外接圆半径宽度不小于l个像素,本例中设定D为496,l为93。The entire embedding and detection process of the digital watermark anti-counterfeiting method against the digital-to-analog conversion process can be subdivided into the following steps for description: f) preprocessing before watermark embedding; g) watermark embedding; h) possible transmission process of watermarked documents ; i) Preprocessing before watermark extraction; j) Watermark extraction judgment. Fig. 11 shows f) preprocessing before watermark embedding and g) watermark embedding process; Fig. 13 shows the possible transmission process that the document protected by the digital watermark anti-counterfeiting method of anti-DAC process; i) preprocessing before watermark extraction The processing and j) watermark extraction and judgment process are the same as those in Embodiment 1, as shown in FIG. 3 . Figure 9 shows the corporate official seal without watermark information, which is a corporate official seal customized according to the geometric size required by the country, called the original image; its background is white, and the foreground image (that is, the five-pointed star in the middle, "Tianyin signature test special Chapter " word, circle) is different from embodiment 1 and is blue, and r is the pixel value of this blue. In practical applications, the foreground image can also be other single color and shape stamps and signature patterns. Fig. 10 shows the corporate official seal after embedding watermark information. Set the resolution to P pixels per inch, the size of an ordinary corporate seal is D×D, and the radius width of the circumscribed circle of the five-pointed star is not less than l pixels. In this example, set D to 496 and l to 93.

原始水印信息27为需要保护的重要信息的二值化序列W={wj,j=1,2,...,M},wj∈{0,1},M为序列长度。这个重要信息可以包括文档真实性信息、文档签署者身份信息和纠错码,视不同的应用而定。为了提高安全性利用私钥28将水印信息置乱后再进行嵌入。私钥的形式多样,要求使用方或授权方独有。The original watermark information 27 is a binary sequence W = {w j , j=1, 2, . This important information can include document authenticity information, document signer identity information and error correction codes, depending on different applications. In order to improve security, the watermark information is scrambled by using the private key 28 and then embedded. The private key comes in various forms, and requires the user or the authorizing party to be unique.

f)水印嵌入前预处理:f) Preprocessing before watermark embedding:

如图11示出,选定区域前景图像23在本例中即为上述的企业公章。As shown in FIG. 11 , the foreground image 23 of the selected area is the above-mentioned official seal of the company in this example.

如图11示出,首先进行块划分处理24。本发明仅仅对前景图像进行分块划分,意在前景图像内部嵌入水印,不破坏前景图像边缘;块的所有像素都在前景图像内部时才能进行水印嵌入。与实施例1中相同,对有色圆环进行分块划分,如图7示出,对划分所得到块19而言,所有像素都在前景图像内部,标志此块为可嵌入水印区域;对划分所得块20而言,它的部分像素已经不属于圆环这个前景图像,不能作为可嵌入水印的块,否则将可能破坏圆环边缘。块划分的数目根据二值化水印序列的长度确定和同步信号长度决定;同步信号长度在下面进行描述。本例中对选定区域的前景图像进行块划分24,分块大小设定为d×d,当某个块的像素都在前景图像内部时,标记此块为可嵌入水印区域。As shown in FIG. 11, block division processing 24 is performed first. The invention only divides the foreground image into blocks, and intends to embed the watermark inside the foreground image without destroying the edge of the foreground image; only when all the pixels of the block are inside the foreground image can the watermark be embedded. Same as in Embodiment 1, the colored ring is divided into blocks, as shown in Figure 7, for the block 19 obtained by the division, all pixels are inside the foreground image, and this block is marked as an area that can be embedded with a watermark; As far as the obtained block 20 is concerned, some of its pixels do not belong to the foreground image of the ring, and cannot be used as a block that can be embedded with a watermark, otherwise the edge of the ring may be destroyed. The number of block divisions is determined according to the length of the binary watermark sequence and the length of the synchronization signal; the length of the synchronization signal is described below. In this example, the foreground image of the selected area is divided into blocks 24, and the block size is set to d×d. When the pixels of a certain block are all inside the foreground image, this block is marked as a watermark-embeddable area.

分块完成后选择能代表前景图像几何特征的n(n>=3)个图像块设置同步信号25,以保证在提取水印时能达到同步,克服在打印扫描过程中可能引入的同步攻击,即几何形变;设置同步信号的同时也牺牲了n个比特的水印容量。所以在上述块划分24时要求可嵌入水印块至少为M+n块,M为原始水印信息27的序列长度。本例中通过增加块中心区域的亮度把上下左右四边中间的块设置为同步信号25。After the block is completed, select n (n>=3) image blocks that can represent the geometric features of the foreground image to set the synchronization signal 25, so as to ensure that synchronization can be achieved when extracting the watermark, and overcome the synchronization attack that may be introduced during the printing and scanning process, namely Geometric deformation; while setting the synchronization signal, the watermark capacity of n bits is also sacrificed. Therefore, when the above-mentioned block division 24 is required, the embeddable watermark block is required to be at least M+n blocks, and M is the sequence length of the original watermark information 27 . In this example, the blocks in the middle of the upper, lower, left, and right sides are set as the synchronous signal 25 by increasing the brightness of the central area of the block.

然后,在前景图像的边缘添加浅色的、不同于背景和前景颜色的、不易察觉的光晕,称为加晕处理26,意在将前景图像与背景区域区别开来,有利于在提取水印预处理时准确分割前景图像和背景区域。这样在前景图像与文档背景叠加时,二值化后二者之间是不连通的,我们就可以利用如求区域生长的算法来提取前景图像。首先在企业公章五角星和圆圈的外侧加上宽度为width个像素的光晕26,这些像素值为接近背景色r的像素值s。Then, add a light-colored, imperceptible halo on the edge of the foreground image, which is different from the background and foreground colors, which is called halo processing 26. Accurately segment foreground image and background regions during preprocessing. In this way, when the foreground image is superimposed on the document background, the two are disconnected after binarization, and we can use an algorithm such as seeking region growth to extract the foreground image. First, a halo 26 with a width of width pixels is added to the outside of the five-pointed star and the circle of the corporate seal, and these pixel values are close to the pixel value s of the background color r.

在数字域,背景区域可能是完全空白的文档空隙,也有可能是边缘清晰的各种文字;在模拟域,经过打印/印刷和数码拍摄两个复杂过程的信号衰减,背景区域可能是对应于数字域的空白区带有均匀或不均匀的噪声,也有可能是带有噪声的文字背景,如实施例1中的图6示出。本发明在图像预处理时加入的前景图像边缘光晕使我们在水印提取前将前景图像与背景分离开来变得简单和容易了。同步信号的设置是正确提取水印信息的前提之一。In the digital domain, the background area may be a completely blank document gap, or various texts with clear edges; in the analog domain, after the signal attenuation of the two complex processes of printing/printing and digital shooting, the background area may be corresponding to the digital The blank area of the domain has uniform or non-uniform noise, and may also be a text background with noise, as shown in FIG. 6 in Embodiment 1. The edge halo of the foreground image added in the image preprocessing of the present invention makes it simple and easy for us to separate the foreground image from the background before extracting the watermark. The setting of the synchronous signal is one of the prerequisites for correctly extracting the watermark information.

g)水印嵌入过程29:g) Watermark embedding process 29:

水印嵌入过程29为图11示出的水印嵌入流程图的重要组成部分。本发明按照栅格扫描方式逐块嵌入原始水印信息27。如上所述,仅仅在块的所有像素都在前景图像内部时块才可以作为水印的载体嵌入水印信息。The watermark embedding process 29 is an important part of the watermark embedding flowchart shown in FIG. 11 . The present invention embeds the original watermark information 27 block by block according to the raster scanning method. As mentioned above, only when all the pixels of the block are inside the foreground image, the block can be used as the carrier of the watermark to embed watermark information.

水印的嵌入通过对不同的水印信息设置不同的块模式来体现,这种块模式在如图3示出的水印提取里应该容易分辨。图12示出块模式的划分实例。块模式分为两类,第一类图像块中心部分像素变暗31,第二类采用预定义的像素值增亮图像块中心部分32。例当wj为0时将图像块中心部分变暗,当wj为1时将图像块中心部分的像素的像素值设置为接近r但不同于r的值g,反之亦可。与实施例1不同的是第一类图像块中心部分像素变暗31,这是因为在打印/印刷和数码拍摄扫描过程中引入的噪声在颜色较暗的部分表现不明显,此举可进一步克服实例中数模模数转换过程的影响。The embedding of the watermark is reflected by setting different block patterns for different watermark information. This block pattern should be easy to distinguish in the watermark extraction as shown in Figure 3. Fig. 12 shows an example of division of block patterns. The block modes are divided into two types, the first type darkens 31 pixels in the central part of the image block, and the second type brightens 32 the central part of the image block with predefined pixel values. For example, when w j is 0, the central part of the image block is darkened; when w j is 1, the pixel value of the pixel in the central part of the image block is set to a value g close to r but different from r, and vice versa. The difference from Embodiment 1 is that the pixels in the central part of the first type of image block are darkened 31, because the noise introduced in the process of printing/printing and digital photography and scanning is not obvious in the darker part, which can be further overcome Influence of the analog-to-analog conversion process in the example.

图像块中心部分的范围依赖于前景图像分块的大小。当需要修改图像块中心部分的像素值时,一般是使整个中心部分的像素值都为g;考虑到视觉可接受度时修改中心部分的像素值呈环形向外使g逐渐接近前景图像颜色r,这样得到的前景图像质量非常好,易于让人接受。The extent of the central part of the image block depends on the size of the foreground image block. When it is necessary to modify the pixel value of the central part of the image block, generally the pixel value of the entire central part is g; considering the visual acceptability, the pixel value of the central part is modified in a circular manner so that g gradually approaches the foreground image color r , the quality of the foreground image obtained in this way is very good and easy to accept.

实施例中按照栅格扫描方式扫描标记为可嵌入水印信息的区域,根据私钥28将原始水印信息23置乱后嵌入其中。本实施例中两种不同的块模式设为:水印信息为比特1时对应块中心像素值由内到外逐渐减小接近前景图像像素值,水印信息为比特0时对应块中心像素值由内到外逐渐增大接近前景图像像素值。In the embodiment, the region marked as embedding watermark information is scanned in a raster scanning manner, and the original watermark information 23 is scrambled according to the private key 28 and then embedded therein. In this embodiment, two different block modes are set: when the watermark information is bit 1, the corresponding block center pixel value gradually decreases from the inside to the outside to approach the foreground image pixel value; when the watermark information is bit 0, the corresponding block center pixel value is Gradually increases towards the outside to the foreground image pixel value.

h)加水印文档可能经历的传输过程h) The transmission process that the watermarked document may undergo

如上所述,图9示出文档选定区域即本例中的企业公章,嵌入水印后成为如图10示出图像,视觉可接受度高。如图13示出,在文档选定区域嵌入水印后成为具有防伪功能的文档33,整个文档可能经过打印或印刷34后以纸质文档的模拟形式传递;在需要对文档真实性进行验证时,将纸质文档通过数码拍摄过程35重新转换为数字形式的待鉴定文档37。具有防伪功能的文档33,整个文档也可能直接在数字域存储传递36,成为待鉴定文档37。防伪功能的文档33和待鉴定文档37As mentioned above, Fig. 9 shows the selected area of the document, that is, the corporate official seal in this example. After embedding the watermark, it becomes the image shown in Fig. 10 , which has a high visual acceptability. As shown in Figure 13, after the watermark is embedded in the selected area of the document, it becomes a document 33 with anti-counterfeiting function, and the entire document may be passed through the analog form of the paper document after printing or printing 34; when the authenticity of the document needs to be verified, The paper document is converted back into a digital form of the document to be authenticated 37 through a digital photographing process 35 . For the document 33 with anti-counterfeiting function, the entire document may also be directly stored and passed 36 in the digital domain, and become the document 37 to be authenticated. Anti-counterfeiting documents 33 and documents to be authenticated 37

i)水印提取前预处理:i) Preprocessing before watermark extraction:

包含水印信息企业公章,即防伪文档8(图13中33),经打印/印刷34,以纸质文档的形式表现,经数码拍摄35变成数字域的待鉴定文档37,或包含水印信息企业公章经数字存储传输过程36,仍为数字域的待鉴定文档37,即图3中待鉴定文档12。这种经过模拟域或数字域传输得到的待鉴定文档12进入水印提取判决前的预处理。如图3示出,这个步骤主要包括前景图像的提取13和同步恢复14。首先利用求区域生长的算法和加入的光晕来提取企业公章前景图像13,然后采用snake爬虫算法找到面积最大的4个空穴点,计算其形心,可以认为得到的四个形心坐标就是步骤f)水印嵌入前预处理中设置的同步信号坐标;由此进行恢复同步的处理14;根据检测到的同步信号将前景图像进行与步骤f)水印嵌入前预处理相同的块划分15,标志可能嵌入水印信息的块,前景图像内部的块进入水印提取判决步骤。The official seal of the company containing the watermark information, that is, the anti-counterfeit document 8 (33 in Figure 13), is represented in the form of a paper document through printing/printing 34, and becomes a document 37 to be authenticated in the digital domain through digital photography 35, or contains the watermark information enterprise After the digital storage and transmission process 36, the official seal is still a document to be certified 37 in the digital domain, that is, the document to be certified 12 in FIG. 3 . The document 12 to be authenticated obtained through the transmission in the analog domain or the digital domain enters the preprocessing before watermark extraction and decision. As shown in FIG. 3 , this step mainly includes foreground image extraction 13 and synchronization recovery 14 . Firstly, use the region growing algorithm and added halo to extract the corporate official seal foreground image 13, and then use the snake crawler algorithm to find the 4 holes with the largest area, and calculate their centroids. It can be considered that the obtained four centroid coordinates are Step f) synchronous signal coordinates set in the preprocessing before watermark embedding; thus carry out the processing of restoring synchronization 14; according to the detected synchronous signal, the foreground image is divided into blocks 15 identical to step f) preprocessing before watermark embedding, marking Blocks that may embed watermark information, and blocks inside the foreground image enter the watermark extraction decision step.

j)水印提取判决j) Watermark extraction judgment

由块划分15,标志可能嵌入水印信息的块,进行水印信息提取16,并通过私钥17(即图11中28)对提取出的水印反置乱。前景图像经过数模/模数过程后,即使是没有经过像素修改的图像块区域的像素值也不再与原始像素值一致,而是引入了各种噪声。为了克服模数/数模这两个过程带来的像素值扰动等噪声,本发明采用图像块标准方差σ对图像块像素的分布进行描述,并根据一个给定或者自适应确定的阈值T对每个块嵌入的水印是0还是1进行判决。Divide by block 15, mark the block that may embed watermark information, perform watermark information extraction 16, and descramble the extracted watermark through private key 17 (ie 28 in Figure 11). After the foreground image undergoes a digital-to-analog/modulus process, even the pixel values of the image block area that have not undergone pixel modification are no longer consistent with the original pixel values, but various noises are introduced. In order to overcome noise such as pixel value disturbance brought by the two processes of modulus/digital-analog, the present invention uses the standard variance σ of the image block to describe the distribution of the pixels of the image block, and according to a given or adaptively determined threshold T Whether the watermark embedded in each block is 0 or 1 is judged.

水印信息提取16具体过程如下:计算c)水印提取前预处理中标志为可嵌入水印信息块的像素值的标准方差sj,σj≥T时判决该块嵌入的水印信息wj为1,当σj<T时判决该块嵌入的水印信息wj为0。自适应确定阈值T时,需要计算选定区域所有嵌入水印图像块的的方差σjThe specific process of watermark information extraction 16 is as follows: c) the standard deviation s j of the pixel values marked as embedded watermark information blocks in the preprocessing before watermark extraction, when σ j ≥ T, the watermark information w j embedded in the block is judged to be 1, When σ j <T, it is judged that the watermark information w j embedded in this block is 0. When adaptively determining the threshold T, it is necessary to calculate the variance σ j of all embedded watermark image blocks in the selected area:

&sigma;&sigma; jj == 11 LL &times;&times; NN &Sigma;&Sigma; mm &Sigma;&Sigma; nno (( xx mm ,, nno -- xx &OverBar;&OverBar; )) 22

其中第j块图像块的大小为L×N,m/n分别为像素的行/列序号。设α为一个根据大量实验经验确定的常数,阈值T自适应确定为The size of the jth image block is L×N, and m/n are row/column numbers of pixels respectively. Let α be a constant determined based on a large number of experimental experiences, and the threshold T adaptively determined as

TT == &alpha;&alpha; &Sigma;&Sigma; jj Mm &sigma;&sigma; jj // Mm

从每个块中提取出来的水印比特形成一个水印序列信息。The watermark bits extracted from each block form a watermark sequence information.

本发明采用相关判决法判断提取出来的水印序列是否有效:设提取出来的水印序列为w′,计算w′与原始水印序列W之间的相关系数ρ=W·W′/M(·表示两个向量之间的内积),并根据大量的试验数据和一个应用要求的漏警概率Pe0推断出的阈值ρthr进行判决。The present invention uses the correlation judgment method to judge whether the extracted watermark sequence is valid: suppose the extracted watermark sequence is w', and calculate the correlation coefficient ρ=W·W'/M between w' and the original watermark sequence W (denotes two vectors), and make a decision based on a large amount of test data and a threshold value ρ thr deduced from an application-required false alarm probability P e0 .

&rho; thr = 2 &sigma; &CenterDot; erf c - 1 ( 2 P e 0 ) , 其中erfc-1是误差互补函数 erfc ( x ) = 2 &pi; &Integral; x &infin; e - t 2 dt 的逆函数,σ是前景图像的标准方差,在实际中由上面计算出来的方差阈值T表示: &rho; thr = 2 &sigma; &Center Dot; erf c - 1 ( 2 P e 0 ) , where erfc -1 is the error complement function erfc ( x ) = 2 &pi; &Integral; x &infin; e - t 2 dt The inverse function of , σ is the standard deviation of the foreground image, which is represented by the variance threshold T calculated above in practice:

&rho;&rho; thrthr == 22 TT &CenterDot;&Center Dot; erferf cc -- 11 (( 22 PP ee 00 ))

由于经过不同传输途径得到的前景图像计算出的方差阈值T不一样,ρthr的取值并不恒定,是自适应于被测试图像的。当ρ≥ρthr时w′与W一致,判断水印W存在;当ρ<ρthr时w′与W不一致,判断水印W不存在。最终得到可置信的判决结果18。Since the variance threshold T calculated from the foreground images obtained through different transmission channels is different, the value of ρ thr is not constant and is adaptive to the image under test. When ρ≥ρ thr , w' is consistent with W, and it is judged that the watermark W exists; when ρ<ρ thr , w' is not consistent with W, and it is judged that the watermark W does not exist. Finally, a convincing verdict was obtained18.

Claims (9)

1. the digital watermark anti-fake method of an anti-digital-to-analog conversion process may further comprise the steps:
A) watermark embed process adopts the bi-level digital watermarking algorithm, embeds a kind of bi-level digital watermark that comprises specific information in selected object of protection specific region;
B) watermark extracting judging process
It is characterized in that:
Selected specific region comprises foreground image and background image,
Selected foreground image edge, specific region is added dizzy the processing,
Foreground image is carried out piece divides, and before watermark embeds, foreground image is provided with the synchronizing signal of reflection foreground image geometric properties, define two kinds of different image block patterns and represent watermark information, carry out watermark and embed,
When adjudicating, watermark extracting is described, according to the extraction watermark of comparing of a definite threshold value and image block pixel value variance with of the distribution of image block pixel value variance to the image block pixel; Whether utilization extracts the correlativity judgement watermark information of watermark sequence and original watermark sequence credible.
2. the digital watermark anti-fake method of anti-digital-to-analog conversion process according to claim 1 is characterized in that, earlier foreground image is added dizzy the processing before watermark embeds, and adds and other halation of background phase region, and it is distinguished mutually with the background area.
3. digital watermark anti-fake method according to claim 1 is characterized in that, foreground image is carried out piecemeal divide, and all pixels of piece are ability embed watermark information when foreground image is inner all.
4. the digital watermark anti-fake method of anti-digital-to-analog conversion process according to claim 1 is characterized in that, after piecemeal is divided, the synchronizing signal of reflection foreground image geometric properties is set at foreground image.
5. the digital watermark anti-fake method of anti-digital-to-analog conversion process according to claim 3, it is characterized in that, to foreground image with the raster scanning sequence block-by-block according to two kinds of block mode embed watermarks, corresponding two classes that are divided into 1/0 of block mode: the first kind does not deal with image block, and second class is revised the pixel value of image block core according to predefined value; Vice versa; Also can pass through the deepening of first kind image block center pixel, the second class image block center pixel blast realizes.
6. the digital watermark anti-fake method of anti-digital-to-analog conversion process according to claim 5 is characterized in that, watermark information is the binaryzation sequence of the important information that needs protection.
7. the digital watermark anti-fake method of anti-digital-to-analog conversion process according to claim 5 is characterized in that, the scope of described image block core depends on the size of prospect piecemeal; The pixel value of revising back image block core outwards gradually changes ringwise to the pixel value near foreground image.
8. the digital watermark anti-fake method of anti-digital-to-analog conversion process according to claim 1 is characterized in that, the document to the needs checking or the evaluation true and false during watermark extracting judgement at first extracts foreground image from background, carry out synchronous processing; With the specific region of selecting being divided with the preceding identical piece division methods of embedding; Computed image piece variance, when variance during greater than this given threshold value, adjudicating the watermark information that this piece embeds is 1, when variance during smaller or equal to this given threshold value, adjudicating the watermark information that this piece embeds is 0.
9. the digital watermark anti-fake method of anti-digital-to-analog conversion process according to claim 8 is characterized in that, uses correlativity to adjudicate the validity of the watermark sequence of judging that all extract.
CNB2005100505454A 2005-07-04 2005-07-04 Digital watermark anti fake method in anti-digital-to-analog conversion process Expired - Lifetime CN1322470C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100505454A CN1322470C (en) 2005-07-04 2005-07-04 Digital watermark anti fake method in anti-digital-to-analog conversion process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100505454A CN1322470C (en) 2005-07-04 2005-07-04 Digital watermark anti fake method in anti-digital-to-analog conversion process

Publications (2)

Publication Number Publication Date
CN1710610A true CN1710610A (en) 2005-12-21
CN1322470C CN1322470C (en) 2007-06-20

Family

ID=35706849

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100505454A Expired - Lifetime CN1322470C (en) 2005-07-04 2005-07-04 Digital watermark anti fake method in anti-digital-to-analog conversion process

Country Status (1)

Country Link
CN (1) CN1322470C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122995B (en) * 2007-09-11 2010-10-13 北京大学 Binary image digit water mark embedding, extraction method and device
US8130419B2 (en) * 2008-08-29 2012-03-06 International Business Machines Corporation Embedding authentication data to create a secure identity document using combined identity-linked images
US8160294B2 (en) 2006-09-28 2012-04-17 Fujitsu Limited Electronic watermark embedment apparatus and electronic watermark detection apparatus
CN103208018A (en) * 2013-04-01 2013-07-17 浙江华人数码印刷有限公司 Internet-of-Things-oriented manufacturing technique for intelligent packages
CN107995525A (en) * 2017-11-27 2018-05-04 合肥亚慕信息科技有限公司 One kind encrypts online video watermark analysis process system based on safety
CN112613003A (en) * 2020-12-28 2021-04-06 中国农业银行股份有限公司 Text processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1229228A (en) * 1998-03-16 1999-09-22 日本胜利株式会社 Processing device and method for embedded digital watermark information and processing device and method for reading
US6785401B2 (en) * 2001-04-09 2004-08-31 Tektronix, Inc. Temporal synchronization of video watermark decoding
CN1241389C (en) * 2003-09-18 2006-02-08 上海交通大学 Object-oriented self-synchronizing water mark detecting method for multimedia product

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8160294B2 (en) 2006-09-28 2012-04-17 Fujitsu Limited Electronic watermark embedment apparatus and electronic watermark detection apparatus
CN101155239B (en) * 2006-09-28 2012-11-28 富士通株式会社 Electronic watermark embedment apparatus and electronic watermark detection apparatus
CN101122995B (en) * 2007-09-11 2010-10-13 北京大学 Binary image digit water mark embedding, extraction method and device
US8130419B2 (en) * 2008-08-29 2012-03-06 International Business Machines Corporation Embedding authentication data to create a secure identity document using combined identity-linked images
CN103208018A (en) * 2013-04-01 2013-07-17 浙江华人数码印刷有限公司 Internet-of-Things-oriented manufacturing technique for intelligent packages
CN107995525A (en) * 2017-11-27 2018-05-04 合肥亚慕信息科技有限公司 One kind encrypts online video watermark analysis process system based on safety
CN112613003A (en) * 2020-12-28 2021-04-06 中国农业银行股份有限公司 Text processing method and device
CN112613003B (en) * 2020-12-28 2023-12-08 中国农业银行股份有限公司 Text processing method and device

Also Published As

Publication number Publication date
CN1322470C (en) 2007-06-20

Similar Documents

Publication Publication Date Title
Chen et al. A fuzzy c-means clustering-based fragile watermarking scheme for image authentication
Lee et al. A secret-sharing-based method for authentication of grayscale document images via the use of the PNG image with a data repair capability
CN1209730C (en) Digital anti-fake method
CN1290047C (en) File anti-fake method and its device based on digital water print
Ernawan et al. Three layer authentications with a spiral block mapping to prove authenticity in medical images
Kumar et al. A novel spatial domain technique for digital image watermarking using block entropy
CN100346353C (en) Generating and vertification method for electronic seal based on vulnerable water mark
CN100338549C (en) An anti-copy method for documents
He et al. Self-recovery fragile watermarking using block-neighborhood tampering characterization
CN113393363B (en) Watermark embedding and extracting method, storage medium and electronic device
CN1710610A (en) A digital watermark anti-counterfeiting method against digital-to-analog conversion process
KR101654564B1 (en) Method for embedding and extracting a watermark at printed document using hysteresis and minimal inverse quantization
CN1297938C (en) Method and apparatus for inserting and detecting watermark in picture derived from source picture
JP6937010B2 (en) Digital watermarking device and method
Elnajjar et al. Optimization digital image watermarking technique for patent protection
CN1691087A (en) System and method for decoding digitally encoded images
Uliyan et al. Detection of scaled region duplication image forgery using color based segmentation with LSB signature
CN1801707A (en) Text numerical watermark method for resisting analog domain attack
Suganya et al. Tamper detection using watermarking scheme and k-mean clustering for bio medical images
Tuncer et al. A watermarking application for authentication of Holy Quran
Chang et al. An image authentication scheme using magic square
CN117436907B (en) Anti-fake information tracing method based on combination of mobile phone scanning dot matrix code and digital watermark
Puhan et al. Erasable authentication watermarking in binary document images
Méndez-Polanco et al. Digital watermarking based on image centroid resistant to rotation and scaling
Sharma Image Watermarking for Identity Protection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20070620