A kind of printing method of inspection of merchandise news and device
Technical field
The invention belongs to merchandise news field of anti-counterfeit technology, it is related to the printing method of inspection and the device of a kind of merchandise news.
Background technology
Printed article false proof, condensed the anti-counterfeiting technology of the top level of this state taking bank note as a example.
Such as: miniature word, specialty inks/invisible printing ink, watermark, hologram etc..Such as watermark, changes paper during filter paper
Thickness, to embed the technology of apperance, by the light at the back side, to can confirm that the watermark apperance being embedded into.Specialty inks are then
It is observed that different colors using angle is different, or only sees that apperance occurs from an angle, using special luminous
Make apperance light after ink, or irradiation ultraviolet radiation to occur.Hologram is that laser will interfere apperance to be irradiated to record on film
Image, can be with the change of shorthand with viewing angle.And miniature word and miniature apperance are using very trickle word, lines
Deng, it is possible to use a part for apperance is designed as trickle word and lines etc., or draws Xiao with very trickle line
To realize as picture etc..Comprehensively utilize these technology and can greatly improve printing and the cost of identification.
In general general merchandise, by high-grade drinks false proof as a example, mainly make an effort on the packaging.Using special bottle
With the antifalsification label of packing box etc..And fake wine maker, then using reclaiming legal genuine bottle, easily break through most important one
Road defence line, and antifalsification label, as described in anti-counterfeiting technology in above-mentioned bank note, hologram etc. with the development of printing technology,
Relatively easy forgery.For another example in general general merchandise, suitcase/leather shoes etc. false proof, also mainly make an effort on the packaging, have electricity
Subtab, identifying code, one-dimension code, Quick Response Code etc..Common it is a key issue that only making an issue of on the packaging it is difficult to real rise
To false proof effect.
With the development of the information processing technology, signal averaging technique and digital watermark technology are protected in very counterfeit identification, copyright
Attracted attention in the fields such as shield.Digital watermark technology then can not change existing printing-flow, does not increase other printing costs
Under the conditions of, invisible information is added in printing image, by digitalizers such as scanning or photographing units, by printed article
Image or the digitized such as logo after, confirm that watermark inspection carrys out the very counterfeit of printed article.
Content of the invention
For solving the above-mentioned problems in the prior art, the invention provides a kind of both can be effectively to merchandise news
Test, the safety of the merchandise news of examined commodity can be greatly enhanced again, antifalse effect is splendid, anti-counterfeiting information is answered
Difficulty processed is very high, on the basis of not changing printing-flow, can effectively reduce the print of the merchandise news of printing cost simultaneously
The brush method of inspection, and structure is simple, low manufacture cost, safeguard in the future easily, expense few, combination application, flexible configuration, function
Print test device that is perfect, realizing merchandise news that is easy, having wide range of applications.
For solving above-mentioned technical problem, the present invention adopts the following technical scheme that
A kind of printing method of inspection of merchandise news, includes following steps:
First, merchandise news is encrypted, splits, form uniquely corresponding two and half yards;
Then, one and half yards are stored in data base, another half yard is printed onto on label as anti-counterfeiting information, simultaneously
Merchandise news is calculated using one-way function and is printed onto on commodity as mark after merchandise news offer value;
Then, the label image information being examined on commodity and labelling image information are obtained in inspection, and in this label
Half yard of the merchandise news comprising and merchandise news offer value is extracted respectively out in image information and labelling image information;
Finally, by half yard of the merchandise news of extraction with data base uniquely corresponding half yard of synthesis, calculate merchandise news,
And this merchandise news is calculated merchandise news offer value according to above-mentioned one-way function, and will this calculated merchandise news
About value and the merchandise news offer value extracted out are contrasted, thus confirming whether examined commodity are uniquely right with labelling image information
Should, to realize the inspection of merchandise news.
Further, described " merchandise news be encrypted, split, forming uniquely corresponding two and half yards ", particularly as follows:
First with data transformation algorithms, merchandise news is encrypted, then the merchandise news after encryption is entered according to specific rule, form
Row extracts, and is divided into two and half yards;Or first according to specific rule, form, merchandise news is extracted, be divided into two and half
Code, recycles data transformation algorithms that this two and half yards are encrypted.
Further, described " data transformation algorithms " are symmetrically or non-symmetrically key algorithms, described " specific rule, form "
Method half-and-half or set form before and after being.
Further, the label of described " another half yard is printed onto on label as anti-counterfeiting information " is also printed with numeral
Watermark is as antifalsification label;Correspondingly, also will take out while described " extracting half yard of merchandise news in this label image information out "
Go out this digital watermarking, and contrasted with the digital watermarking of genuine piece in data base, determine the very counterfeit of commodity.
Further, described " being also printed with digital watermarking on label as antifalsification label ", comprises the following steps:
Another the half yard anti-counterfeiting information that comprises obtaining is encoded, and is added to concentration information i;
The concentration information i ' that with the addition of anti-counterfeiting information is reduced to coloured image;
Wherein, described " another the half yard anti-counterfeiting information that comprises obtaining encoded, and is added to concentration information
I ", particularly as follows: described concentration information i is carried out discrete Fourier transform, obtains its amplitude image amp and phase diagram p;To comprise another
One and half yards of anti-counterfeiting information wm carries out encoding, encrypt after information w be inserted in the intermediate frequency domain section in amplitude image amp, obtain
Amplitude image amp ' to after insertion anti-counterfeiting information, by the amplitude image amp ' after insertion anti-counterfeiting information and phase diagram p not having change,
Synthesize the concentration information i ' after insertion anti-counterfeiting information;
Correspondingly, described " in this label image information extract out half yard of merchandise news ", includes following steps:
Obtain the rgb image of the label being examined commodity;
Extract anti-counterfeiting information out from the rgb image obtaining, obtain half yard of merchandise news;
Wherein, described " extracting anti-counterfeiting information from the rgb image obtaining out ", particularly as follows: calculate from the rgb image of commodity
The composition of its shading image g and Fourier transformation dft, amplitude gamp, and take its frequency domain intermediate field, as gamp > amp when, insertion
Anti-counterfeiting information bit is 1, otherwise for 0, obtains the sequence of anti-counterfeiting information successively, that is, obtains half yard of merchandise news;Described from rgb figure
The approximate expression calculating shading image g in picture is: 0.1r+0.6g+0.3b.
Further, described " by comprise another half yard anti-counterfeiting information wm carry out encoding, encrypt after the insertion of information w
In intermediate frequency domain section in amplitude image amp, obtain the amplitude image amp ' after inserting anti-counterfeiting information ", specifically press following rule and insert
Enter in the intermediate frequency domain section in amplitude image amp:
As w=0, amp '=amp × (1+a);
As w=1, amp '=amp × (1-a);
Or,
As w=0, amp '=amp+power;
As w=1, amp '=amp-power.
Further, also digital watermarking is made while described " another half yard is printed onto on label as anti-counterfeiting information "
Ingredient and another half yard for antifalsification label are printed onto on label in the lump;Correspondingly, described " in this label image information
Also this digital watermarking will be extracted out while middle half yard of merchandise news of extraction ", and carry out with the digital watermarking of genuine piece in data base
Contrast, determines the very counterfeit of commodity.
A kind of print test device of merchandise news, includes:
For obtaining the label image information of examined commodity and the image acquisition units of labelling image information;
Complete to extract out half yard of merchandise news, merchandise news in label image information and labelling image information for common cooperation
Offer value and digital watermark information, to complete merchandise news inspection and the very counterfeit performance element distinguishing of commodity and control unit;
Display unit for display of commodity information assay and the very counterfeit discrimination results of commodity;
And the service platform system based on b/s or c/s framework;
And described image collecting unit, control unit, display unit and service platform system all led with described performance element
Lead to and connect.
Further, described performance element is mainly connect by central processing unit, memorizer, input and output control and a/d conversion
Mouth composition;Described control unit includes image pre-processing module, half yard of pump-and-treat system module of merchandise news, merchandise news offer
Value extracts module, merchandise news offer value contrast module, digital watermarking extraction module and digital watermarking contrast module out;Described business
Plateform system includes data information management module, merchandise news encryption segmentation module, anti-counterfeiting information laminating module and commodity letter
Breath offer value generation module, described merchandise news encryption segmentation module, anti-counterfeiting information laminating module and the life of merchandise news offer value
Become module input all with data information management module conducting be connected, and merchandise news encrypt split module outfan also with
Input conducting connection, described anti-counterfeiting information laminating module and the merchandise news offer value generation module of anti-counterfeiting information laminating module
Outfan be connected with outside printing equipment.
Further, the outfan of described performance element is additionally provided with the first communication unit, and described service platform system also wraps
Include the second communication unit, described second communication unit and the data information management mould being connected with described first communication unit conducting
The input conducting of block connects.
The invention has the beneficial effects as follows:
The present invention passes through technique scheme, by merchandise news is encrypted, is split to form uniquely corresponding two
In half yard, one is printed onto on label, and another is stored in several storehouses, to contrast when merchandise news is checked, profit simultaneously
Generate merchandise news offer value it is difficult to counter push away prime information with one-way function, both can effectively merchandise news be tested, and
The safety of the merchandise news of examined commodity can be greatly enhanced, antifalse effect is splendid;And, on label, printing is false proof
Information can obtain the decomposition visually basically identical with original image under standard visible light source, and it is non-that anti-counterfeiting information is replicated difficulty
Chang Gao, can prevent unauthorized copying to a great extent, also improve the extraction robustness of insertion anti-counterfeiting information simultaneously;And,
Because printing image typically adopts cmy colour mixture, anti-counterfeiting information is inserted in cmy, obtains image using standard light source, verify it
While middle anti-counterfeiting information, by concealed anti-false information superposition in k, on the basis of not changing printing-flow, effectively reduce
Printing cost.
In addition, print test device structure based on this printing method of inspection is simple, low manufacture cost, safeguards in the future and hold
Easily, expense is few, and combination application, flexible configuration, perfect in shape and function, realize easily, have wide range of applications.
Brief description
Fig. 1 is a kind of schematic flow sheet of the printing method of inspection of merchandise news described in the embodiment of the present invention;
Fig. 2 be a kind of merchandise news described in the embodiment of the present invention the printing method of inspection in merchandise news encryption, segmentation
One of which schematic diagram;
Fig. 3 be a kind of merchandise news described in the embodiment of the present invention the printing method of inspection in " using another half yard as anti-
Fake information is printed onto on label " schematic flow sheet;
Fig. 4 be a kind of merchandise news described in the embodiment of the present invention the printing method of inspection in " in this label image information
The schematic flow sheet of half yard of merchandise news of extraction ";
Fig. 5 is a kind of structural principle schematic block diagram of the print test device of merchandise news described in the embodiment of the present invention.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, not
For limiting the present invention.
Shown in as shown in Figure 1 to Figure 4:
A kind of printing process of the merchandise news described in the embodiment of the present invention, includes following steps:
Step a1. is encrypted to merchandise news, splits, and forms uniquely corresponding two and half yards;
One and half yards are stored in data base step a2., and another half yard is printed onto on label as anti-counterfeiting information, with
When merchandise news is adopted one-way function to calculate after merchandise news offer value with one-dimension code (as bar code) or Quick Response Code (qr code
Deng) or the form of minutia be printed onto on commodity as mark;
Step a3. obtains the label image information being examined on commodity and labelling image information in inspection, and in this mark
Sign and in image information and labelling image information, extract half yard of the merchandise news comprising and merchandise news offer value respectively out;
Step a4. by half yard of the merchandise news of extraction with data base uniquely corresponding half yard of synthesis, calculate commodity letter
Breath, and this merchandise news is calculated merchandise news offer value according to above-mentioned one-way function, and this calculated commodity letter
With labelling image information whether only breath offer value and the merchandise news offer value extracted out are contrasted, thus confirming to be examined commodity
One is corresponding, to realize the inspection of merchandise news.
Wherein, described " merchandise news be encrypted, split, forming uniquely corresponding two and half yards ", is specifically as follows:
First with data transformation algorithms, merchandise news is encrypted, then the merchandise news after encryption is entered according to specific rule, form
Row extracts, and is divided into two and half yards.As Fig. 2, merchandise news is 12345678, and encryption merchandise news is $%78@* * x, with strange
Sequence is split and added to even number, forms half yard of 1:$7@* 001 and half yard of 2:%8*x001.
Described " data transformation algorithms " are symmetrically or non-symmetrically key algorithms, and described " specific rule, form " is right before and after being
Half method or set form.Described " merchandise news is calculated merchandise news offer value using using one-way function " and " will
This merchandise news calculates merchandise news offer value according to above-mentioned using one-way function " in hash letter is using one-way function
Number (as md5).
Certainly, described " merchandise news is encrypted, splits, formed uniquely corresponding two and half yards " can also first according to
Specific rule, form extract to merchandise news, are divided into two and half yards, recycle data transformation algorithms to this two and half yards
It is encrypted;And two and half yards be divided into according to specific rule, form different in size fixed identical, as long as ensure that two
Half yard of unique correspondence.
During execution step a3, " extracting, in this label image information and labelling image information, the business comprising respectively out
Before half yard of product information and merchandise news offer value ", also can carry out pre- place to the label image information obtaining and labelling image information
Reason, is corrected including to its angle and vertical-horizontal proportion.
So, the printing method of inspection of the present invention is uniquely corresponded to by being encrypted merchandise news, being split to form
Two and half yards in one be printed onto on label, another is stored in several storehouses to contrast when merchandise news is checked,
Generate merchandise news offer value it is difficult to counter push away prime information using one-way function simultaneously, both can effectively merchandise news be examined
Test, the safety of the merchandise news of examined commodity can be greatly enhanced again, antifalse effect is splendid.
As the present invention one preferred embodiment, the mark of described " another half yard is printed onto on label as anti-counterfeiting information "
Sign and be also printed with digital watermarking as antifalsification label;Correspondingly, described " extract merchandise news half in this label image information out
Also this digital watermarking will be extracted out while code ", and be contrasted with the digital watermarking of genuine piece in data base, determine the true of commodity
Counterfeit, you can to improve safety and the anti-counterfeit capability of merchandise news further.Wherein, described " digital watermarking is also printed with label
As antifalsification label ", specifically include following steps:
Step b1. is encoded (as scrambled) to another the half yard anti-counterfeiting information that comprises obtaining, and is added to
Concentration information i;
The concentration information i ' that with the addition of anti-counterfeiting information is reduced to coloured image by step b2..
Wherein, described " another the half yard anti-counterfeiting information that comprises obtaining encoded, and is added to concentration information
I ", is specifically as follows: described concentration information i is carried out discrete Fourier transform, obtains its amplitude image amp and phase diagram p;To wrap
Information w after carrying out encoding, encrypt containing another half yard anti-counterfeiting information wm is inserted into the intermediate frequency domain section in amplitude image amp
Interior, obtain the amplitude image amp ' after inserting anti-counterfeiting information, by the amplitude image amp ' after insertion anti-counterfeiting information and the phase not having change
Bitmap p, synthesizes the concentration information i ' after insertion anti-counterfeiting information;
Certainly, described " being printed onto another half yard on label as anti-counterfeiting information " can also be: acquisition is comprised
Another half yard anti-counterfeiting information is encoded, to be directly printed onto on label as Quick Response Code (as qr code).
Correspondingly, described " extracting half yard of merchandise news in this label image information out " is described " work another half yard
Be printed onto on label for anti-counterfeiting information " reverse procedure, include following steps:
Step c1. obtains the rgb image of the label being examined commodity;
Step c2. extracts anti-counterfeiting information out from the rgb image obtaining, and obtains half yard of merchandise news.
Wherein, described " extracting anti-counterfeiting information from the rgb image obtaining out ", is specifically as follows: from the rgb image of commodity
Calculate composition, the amplitude gamp of its shading image g and Fourier transformation dft, and take its frequency domain intermediate field, as gamp > amp when,
Insertion anti-counterfeiting information bit is 1, otherwise for 0, obtains the sequence of anti-counterfeiting information successively, that is, obtains half yard of merchandise news;Described from
The approximate expression calculating shading image g in rgb image is: 0.1r+0.6g+0.3b, calculates Fourier transformation in described rgb image
Dft and its composition and amplitude gamp are existing General Transformations, dft=∑ ∑ f (x, y) exp (... .), dft composition includes reality
Portion and i imaginary part, dft amplitude gamp=evolution (real part square+imaginary part square).Described " another half yard of false proof letter will be comprised
Breath wm carries out encoding, encrypt after information w be inserted in the intermediate frequency domain section in amplitude image amp, after obtaining inserting anti-counterfeiting information
Amplitude image amp ' ", be specifically inserted in the intermediate frequency domain section in amplitude image amp by following rule:
As w=0, amp '=amp × (1+a);
As w=1, amp '=amp × (1-a);
Or,
As w=0, amp '=amp+power;
As w=1, amp '=amp-power.
Wherein, concentration information i is obtained by formula i=0.3 × (1-c)+0.6 × (1-m)+0.1 × (1-y);Described " a " and
" power " is the intensity of insertion anti-counterfeiting information;Described amplitude image amp ' and the synthesis of phase diagram p, and described will with the addition of anti-
The concentration information i ' of fake information is reduced to cmy image, is art methods, will not be described here.
So, the anti-counterfeiting information printing on label can obtain visually basic with original image under standard visible light source
Consistent decomposition, it is very high that anti-counterfeiting information is replicated difficulty, can prevent unauthorized copying to a great extent, also improve simultaneously
The extraction robustness of insertion anti-counterfeiting information;It is additionally, since printing image and typically adopts cmy colour mixture, anti-counterfeiting information is inserted into cmy
In, using standard light source obtain image, checking wherein anti-counterfeiting information while, by concealed anti-false information superposition in k, do not changing
On the basis of becoming printing-flow, effectively reduce printing cost.
As shown in Figure 5:
A kind of print test device of the merchandise news described in the embodiment of the present invention, includes image acquisition units 1, execution
Unit 2, control unit 3 and display unit 4, and a service platform system 5 based on b/s or c/s framework, and image acquisition list
Unit 1, control unit 3, display unit 4 and service platform system 5 are all connected with performance element 2 conducting.Wherein, described image collection
Unit 1 is the CCD camera assembly or scan components possessing and irradiating black light and visible ray, is mainly used in obtaining examined commodity
Label image information and labelling image information, complete the digitized (a/d conversion) of commodity image;Described performance element 2 and control
Unit 3 processed be mainly used in jointly coordinating complete in label image information and labelling image information extract out half yard of merchandise news, commodity
Information offer value and digital watermark information, to complete merchandise news inspection and commodity are very counterfeit distinguishes, and performance element 2 main by
Central processing unit, memorizer, input and output control and a/d translation interface composition (in figure does not all show), and described control is single
Unit 3 includes image pre-processing module 31, half yard of pump-and-treat system module 32 of merchandise news, merchandise news offer value extraction module
33rd, module 35 and digital watermarking contrast module 36 are extracted in merchandise news offer value contrast module 34, digital watermarking out;Described display is single
Unit 4 is a display screen, is mainly used in display of commodity information assay and the very counterfeit discrimination results of commodity;Described service platform system
5 include data information management module 51, merchandise news encryption segmentation module 52, anti-counterfeiting information laminating module 53 and merchandise news
Offer value generation module 54, described merchandise news encryption segmentation module 52, anti-counterfeiting information laminating module 53 and merchandise news offer
The input of value generation module 54 is all connected with data information management module 51 conducting, and merchandise news encryption segmentation module 52
Outfan is also connected with the conducting of the input of anti-counterfeiting information laminating module 53, described anti-counterfeiting information laminating module 53 and merchandise news
The outfan of offer value generation module 54 is connected with outside printing equipment;And the outfan of performance element 2 is additionally provided with first and leads to
Letter unit 21, described service platform system 5 also includes the second communication unit 55 being connected with the first communication unit 21 conducting, institute
State the second communication unit 55 to be connected with the input conducting of data information management module 51, realize the transmission of data.
Print test device operation principle of the present invention is:
When checking merchandise news, first, image acquisition units 1 gather, obtain label image information and labelling image letter
Breath, and it is converted into digitized, it is transferred to performance element 2;Then, the image that performance element 2 is transferred in control unit 3 successively is located in advance
Reason module 31, half yard of pump-and-treat system module 32 of merchandise news, merchandise news offer value extract module 33, merchandise news offer value pair out
Extract module 35 and digital watermarking contrast module 36 than module 34, digital watermarking out, common cooperation completes label image information and mark
Anti-counterfeiting information in note image information and extraction, identification and the contrast of merchandise news offer value, to complete merchandise news is entered
Performing check and the very counterfeit discriminating of commodity;Finally, merchandise news assay and the very counterfeit discrimination results of commodity are transported to display single
Unit 4 shows.
When printing merchandise news, first, merchandise news encryption segmentation module 52 and merchandise news offer value generation module
54 transfer the merchandise news of correlation from data information management module 51 respectively and are processed, and respectively obtain two and half yards and commodity
Information offer value;Then, anti-counterfeiting information laminating module 53 is encrypted segmentation module 52 from merchandise news respectively and is extracted one of them
Half yard and from data information management module 51 transfer correlation digital watermark information superposition synthesis anti-counterfeiting information after export outside
Printing equipment (typesetting and printing) is printed onto on label;In the same manner, the merchandise news that merchandise news offer value generation module 54 generates
Offer value is also output to outside printing equipment (typesetting and printing) and is printed onto on commodity.
The print test device structure of the present invention is simple, low manufacture cost, safeguards that easy, expense is few in the future, and combines
Application, flexible configuration, perfect in shape and function, realize easily, have wide range of applications.
The above is the preferred embodiment of the present invention it is noted that for those skilled in the art
For, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as
Protection scope of the present invention.