Printed matter method for anti-counterfeit based on digital watermark technology
Technical field
The present invention relates to a kind of printed matter method for anti-counterfeit, can be used for the false proof of printed matter such as the packing of product, printed art ware etc., relate to technical fields such as image processing techniques, digital watermark technology and texture synthesize based on digital watermark technology.
Background technology
The counterfeit and shoddy goods problem is a thorny difficult problem that is perplexing China's economic development always.Country, enterprise still are that the consumer has suffered heavy losses for this reason.In order to address this problem, country and enterprise have also dropped into huge strength, and still, owing to hit counterfeit and shoddy goods the complex nature of the problem, it is very limited that obtained up to now effect remains.Problem that we can say counterfeit and shoddy goods will perplex the economic development of China in long time.
For the printing packaging of product, use many method for anti-counterfeit now and mainly contain two kinds: 1) in the packing of product, stick laser anti-false sign; 2) in the packing of product, print additional sequence number.Wherein there is the problem that cost is high and crack easily in first method, second method comparatively speaking, and confidentiality is better, but has a lot of problems equally.The user must buy product back home, could confirm whether the own thing of being bought is genuine piece by network or the mode by Help by Phone then.
Digital watermark technology is under current digitized overall background, an emerging technology of birth.Its thought is exactly to utilize the effect of setting off of vision, adds effectively faint noise in the insensitive part of human eye.Generally speaking, digital watermark technology is emphasized non-visible property feature, and the digital watermarking that embeds with the form of faint noise is sightless, that is to say that the embedding of digital watermarking will can visually not influence the visual effect of source images.Because having, this specific character of digital watermarking, also feasible anti-fake scheme based on this method be difficult for discovering and being difficult for counterfeit characteristic.
Aspect the digital watermark technology of printed matter, the achievement that some researchs have also been arranged, wherein Hagit has proposed printed matter digital watermarking scheme [Hagit Z.Helor " Copyright labeling ofprinted images " the Image Processing based on dither technique, 2000.Proceedings.2000 International Conferenceon, 2000 PP702-705], he thinks simultaneously, in printed matter, add extraneous information and need two kinds of embedded models at least, represent " 1 " and " 0 ", and in his scheme, successfully realized this point.Only, these technology all are based on FMS (Frequency Modulated Screening frequency-modulation halftone dot), so just mean to embed and the extra difficulty of testing process, and cost also is very high, therefore have influence on further actual applying.
Summary of the invention
The objective of the invention is to deficiency at existing anti-counterfeiting technology, a kind of printed matter method for anti-counterfeit based on digital watermark technology is proposed, embed extractible anti-counterfeiting information by non-in the packing of product obviously, can provide valid certificates for genuine piece, have stronger anti-forgery ability simultaneously, can't increase extra false proof cost.
For realizing such purpose, the present invention at first chooses a suitable look version and extracts it in the printing image of being made up of four look versions (CMYK) printing net-point is as the source halftone dot image, from the halftone dot image of source, choose the zone of a constant magnitude again, as the synthetic source images of texture.The blank image of one of initialization and the identical size of source images, and generate some points at random at the center of blank image as the synthetic seed of texture, utilize the texture synthetic technology then, and utilize source images to generate at least two kinds of printing mode that can represent " 0 " and " 1 " respectively as template, utilize the local search to realize that the texture of uneven process color version is synthetic, at last anti-counterfeiting information is made binary sequence and be embedded among the printing image.After the user buys product,, can confirm the true and false of product as long as by corresponding anti-counterfeiting information extraction element.
The printing image also is known as " halftoning (halftone) " image, and it is a principle of utilizing blend of colors, utilizes black, magenta, green grass or young crops and yellow four kinds of basic looks, mixes the different colours that finally reaches vision with different density.If watch printed matter, will see the printing ink point of the proper alignment of different densities at microscopically.Claim that in printing industry this printing ink point is a printing net-point.People's naked eyes can be watched color, and what mainly rely on is exactly each primary colours printing ink dot density within the specific limits.As long as dot density and granularity remain unchanged, just can guarantee the color that naked eyes are watched, just guaranteed the quality of printing.This also is a basic principle of the present invention.
Another problem is the problem of information representation among the present invention.By the synthetic method of texture, halftone dot image is handled, thereby under the situation that does not change dot density, generated the pattern that arrange two kinds of sites.Then, utilize this two kinds of pattern of rows and columns, represent binary " 0 " and " 1 " respectively.Utilize this method, form a binary sequence, just can be the quality information of some products, as the date of manufacture, manufacturer etc. are embedded in the printed matter, are used for anti-fake certificate.
The present invention has utilized " texture the is synthetic " technology in the image processing techniques, produces pattern of rows and columns of two kinds of sites." texture is synthetic " is a kind of on the basis of natural image, utilizes methods such as statistics, synthetic new similar image.This synthetic technology pays attention to generating image and source images is consistent on statistical nature, neither utilize natural image simply to splice, neither have no the synthetic of purpose, and this is required for the present invention just wants.
The inventive method is mainly the telescopiny of digital watermarking (private information), and this process embeds anti-counterfeiting information corresponding to production firm among the print product packing.Concrete steps are as follows:
1) at first former printing image being carried out rasterisation (RIP), continuous-tone image is changed into printable half tone image, similarly is binary halftone dot image at this half-tone picture of digital printed epoch.This half-tone picture similarly is to be made up of four look versions (CMYK), and the printing net-point of choosing a look version and extracting it is as the source halftone dot image.
2) in the halftone dot image of source, choose the zone of a constant magnitude, as the synthetic source images of texture.The blank image of one of initialization simultaneously and the identical size of source images, and, the seed that some points synthesize as texture generated at random at the center of blank image.
3) texture is synthetic from any seed that generates at random, choosing one is that the width at center is the square ω (p of W with this seed point p, W), then with ω (p, W) in source images, search the square of statistical nature unanimity for source, and form a set omega (p by these squares that find, ω), then, (p ω) extracts a central point p, and the p point in making this point and generating image is corresponding from Ω randomly, make the point that generates in the image corresponding one by one by this method, progressively generate needed synthetic texture image with point in the source images; By controlling different width W, synthetic obtain consistent with the source images statistical nature, but concrete two kinds of different patterns of spatial domain distribution mode are represented " 0 " and " 1 " in the mask with them respectively.
4) anti-counterfeiting information is made binary sequence, and this sequence rearranged the mask matrix that forms a m * n, look version with source images also is divided into m * n sub-piece equally, make binary number " 0 " or " 1 " in the corresponding mask matrix of each height piece, utilize the ω (p of step 3 then according to different size, W) resulting two kinds of patterns, respectively binary value is handled for the sub-piece of " 0 " for the sub-piece of " 1 " and binary value, the binary sequence of anti-counterfeiting information is embedded among the source images look version.
The present invention is applied to antiforge with the digital watermark technology principle, has good application prospects.At first, because watermark itself (anti-counterfeiting information) can not found by naked eyes, also be not easy to be discovered, so have very strong disguise.And just because of this disguise, making for cracking of this false proof means also is the comparison difficulty.And the cost of this anti-counterfeiting technology of the present invention is almost nil, because printing ink uses is common printing ink, paper is common paper, has just changed the mode that ink dot is arranged, and reaches hiding purpose.For the user, the affirmation process of authenticity of products does not need to intervene artificially basically, so can accomplish real-time detection.For producer,,, can save false proof cost greatly so there is not the problem of additional investment owing to be embedding information in printing packaging.Therefore, the inventive method is a kind of very potential method for anti-counterfeit, and is simple and easy to do, has popularizing application prospect.
Description of drawings
Fig. 1 is for utilizing the synthetic half tone image figure as a result that handles of texture.
Among Fig. 1, A is a source images, and B, C, D, E are respectively the printing mode image of handling by different stage.
Fig. 2 is for searching the schematic diagram of similar area in source images.
Wherein, A is for choosing template, and B is for searching signal.
Fig. 3 is for carrying out the synthetic example of handling of texture to half tone image heterogeneous.
Among Fig. 3, A is a source images, and B is the synthetic result of the texture of the wide W=13 of piece (pixel), and C is the synthetic result of the texture of W=17 (pixel).
Fig. 4 is the process schematic diagram that the printing image is added watermark.
The specific embodiment
Below in conjunction with drawings and Examples technical scheme of the present invention is further described.
In an embodiment of the present invention, the multiple image of gathering has been carried out the l-G simulation test that digital watermarking embeds.Can prove the hiding visual effect that can visually not influence source images of watermark information by experiment.Method of the present invention is carried out as follows:
1, at first in the process of printing, need carry out rasterisation (RIP) to the source images of continuous tone, continuous-tone image is changed into printable half tone image, this half-tone picture similarly is to be made up of four look versions (CMYK), and the printing net-point of choosing a suitable look version and extracting it is as the source halftone dot image.
Be that density by the site decides the depth in the printing industry,, need C (green grass or young crops) according to the principle of blend of colors, M (magenta), Y (Huang), four kinds of primary colours of K (deceiving), mix these four kinds of colors and can obtain infinite color effects, four look versions of printing that Here it is.But under not all situation, all look versions all are suitable for adding extraneous information.Generally speaking, preferably select those black shared ratio look version about 50% in entire image to carry out the interpolation of digital watermarking as source look version.In an embodiment, select cyan version (C-Cyan) as the look version that embeds.
2, in the halftone dot image of source, choose the zone of a constant magnitude, as the synthetic source halftone dot image of texture.The blank image of an identical size of initialization, and generate the seed of some points at random as " texture is synthetic " at the center of blank image.
In this case, selected source images should have the site of certain rule in the territory shown in A row among Fig. 1, under digital printed situation corresponding to a square zone.The width W of this square region can be different according to actual conditions.It is that 30%, 50%, 70% image is as experimental subjects that the present invention has chosen as shown in Figure 1 process color version ratio.
Center in the zone generates certain seed randomly, is meant at the center in zone to generate some pixels randomly.These pixels can not produce substantial influence to final result, but need them as initial data beginning most of calculating.
3, utilize the texture synthetic technology, and utilize source images to generate at least two kinds of printing mode as template.The texture synthetic technology is the key technology that the present invention adopts, once very noticeable in image processing field, this is a kind of " from the illustration of reality, catch feature, and utilize them to synthesize the super real world images of an illusion, rather than physics piece together out piece image " technology.
Generally, the texture synthetic technology needs two width of cloth figure, at first is a width of cloth illustration I
SMP, promptly former figure, corresponding in the present invention process color version of not carrying out any change; The synthetic purpose of texture generates another width of cloth figure I as a result exactly
PRO, I
PROAnd I
SMPHas identical feature.Figure almost is being blank at first as a result, and some points are at random just arranged at the center.Texture is synthetic to be exactly to utilize these random points among the figure as a result and the point that has synthesized, and seeks optimum Match in former figure, and the center of this matching area is filled up as a result among the figure as synthetic result.This process is a progressive process, a point is handled, so generation also is a point at every turn.What deserves to be explained is in the process of seeking optimum Match, owing to adopt different standards just can obtain different synthetic results.
Generate in the process of texture, texture is since a seed that generates at random.(p, W) one of expression is the center with seed point p point, is the square of width with W might as well to use ω.Then, at I
SMPIn utilize ω (p W) search for, and finds the set of more close piece.If with d (ω
1, ω
w) similarity degree of two pieces of expression, the result of this search procedure so, promptly this set omega (p, ω), can followingly describe:
Ω(p,ω)={ω′I
SMP∶d(ω′,ω)<T}
Here T is a thresholding.By this set, think that the probability distribution of Ω is consistent with the probability distribution value of p.Then, (p ω) extracts a central point p ', makes p=p ' from Ω randomly.Just can progressively generate needed synthetic texture image by this method.
Fig. 2 is a schematic diagram of searching similar area in source images.What need discussion here, is that (p is ω) with square ω (p, the relation between width W W) for set omega.Very obvious, when W diminishes, Ω (p, ω) middle element number increases thereupon, and the image of gained has more randomness.Like this, just can control the generation image by the width W of controll block.
In the present invention, importantly can generate two kinds of printing images.In fact can reach final purpose by the control width W, show for different printing mode the similarity difference that adopts different width W to produce, but the similar pattern of statistical nature among Fig. 1.Wherein A is a source images, and B, C, D, E are respectively and adopt W to equal 7,13,17,23 o'clock output result.Can be clearly seen that from Fig. 1 along with the increase of W, the effect of texture composograph more and more is similar to source images.Certainly the present invention only needs two kinds of patterns to get final product, but this has illustrated that also the present invention also has certain extending space, can make certain modification as required.
As mentioned above, can use the texture synthetic technology and go to generate two kinds of different texture patterns, can be used for representing " 0 " and " 1 " of binary sequence.But, when this technology is applied to printed matter, still have certain problem.
Because resulting illustration I
SMPNormally uneven (as Fig. 3) that is to say I
SMPIn the density of site in different zone and inconsistent.(p ω) is based on the averag density of entire image and with the resulting Ω of texture synthesis method.If the overall situation is searched for, will influence the dot density that generates image.In order to address this problem, in fact the present invention has adopted the method for local search, and the certain zone on every side that only needs search will generate a little is just passable.Do like this and can guarantee that the image that generates has identical partial statistics characteristic with source images.
For example among Fig. 3, A is a halftone image heterogeneous.Because its heterogeneity, if according to the texture composition algorithm of the overall situation, the result who is drawn is chaotic so, more can't satisfy the demands.So must specify a sizeable zone on the one hand, the position of this zone in former figure and the position of synthetic point in generating figure want corresponding in addition.Specific practice is to emphasize generation figure and former figure equal and opposite in direction in step 2, point among the former like this figure and the point among the generation figure are one to one, when needs generate certain when point with its corresponding points in former figure be the center get a side pixel block as the region of search, rather than entire image searched for.
Among Fig. 3, B and C are respectively the synthetic result of texture of W=13 and W=17, according to the generation result among the figure, can think that the result has guaranteed that not only statistical nature but also local striped also are held.
4, anti-counterfeiting information is made binary sequence, and this sequence is embedded among the process color version.In this scheme, digital watermarking is a string binary sequence that is comprising the information of some privates, and the purpose of digital watermarking scheme is exactly that this sequence is distributed among the whole printing image with the synthetic technology of texture.The process of hiding at first, rearranges this sequence in the mask matrix that forms a m * n just from this watermark.Utilize this matrix, the look version of same printing image also will be divided into m * n sub-piece, like this value (" 0 " or " 1 ") in the corresponding binary sequence of each height piece.
The hiding process of digital watermarking is exactly to utilize the ω of different size (p, W) resulting two kinds of patterns are handled different zones.As shown in Figure 4, get the zone of those corresponding binary values, utilize the square of 13 * 13 (W=13) to handle, simultaneously 23 * 23 (W=23) are then used in the zone of those correspondences " 0 " for " 1 ".Certainly, according to the needs of practical application, these sizes can be adjusted.According to this method, the binary sequence of " 0 " or " 1 " is embedded among the look version of printing image.