CN110263893A - A kind of anti-fake two-dimension code generation method and device being embedded in watermark - Google Patents

A kind of anti-fake two-dimension code generation method and device being embedded in watermark Download PDF

Info

Publication number
CN110263893A
CN110263893A CN201910511304.7A CN201910511304A CN110263893A CN 110263893 A CN110263893 A CN 110263893A CN 201910511304 A CN201910511304 A CN 201910511304A CN 110263893 A CN110263893 A CN 110263893A
Authority
CN
China
Prior art keywords
image
fake
dimensional code
watermark
stock
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.)
Pending
Application number
CN201910511304.7A
Other languages
Chinese (zh)
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.)
Shenzhen Jinjia Group Co Ltd
Original Assignee
Shenzhen Jinjia Group 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 Shenzhen Jinjia Group Co Ltd filed Critical Shenzhen Jinjia Group Co Ltd
Priority to CN201910511304.7A priority Critical patent/CN110263893A/en
Publication of CN110263893A publication Critical patent/CN110263893A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • G06K15/18Conditioning data for presenting it to the physical printing elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding

Abstract

The invention discloses a kind of anti-fake two-dimension code generation methods and device for being embedded in watermark, method includes: acquisition stock, magnetic ink is uniformly printed on the side of stock, after UV solidifies, generate the stock comprising magnetic ink pattern, according to pre-generated two dimensional code digital content data library, original two-dimensional code image is generated, is matched colors respectively to original two-dimensional code image and watermarking images;Original two-dimensional code image and watermarking images are decomposed into multiple dimensioned subset image respectively, complete the insertion of watermarking images;Sub- image in 2 D code after insertion watermarking images is completed into the inverse process operation of multi-resolution decomposition, and carries out image co-registration, generates target two dimensional code;Target two dimensional code spray printing is printed into magnetic ink region in stock, generates anti-fake two-dimension code.Planar bar code technology is applied to cigarette and contracted for fixed output quotas product by the embodiment of the present invention, realizes that image in 2 D code is not reproducible, realizes a product one yard, and product traceability is online anti-fake, is improved cigarette and is contracted for fixed output quotas the anti-counterfeiting performances of product.

Description

A kind of anti-fake two-dimension code generation method and device being embedded in watermark
Technical field
The present invention relates to anti-counterfeiting technology field more particularly to it is a kind of be embedded in watermark anti-fake two-dimension code generation method and Device.
Background technique
Two dimensional code is the barcode technology of new generation for recording data symbol information, has high density coding, and information capacity is big, compiles Code range is wide, and fault-tolerant ability is strong, compiles high reliablity, the multiple advantage such as at low cost, easy to manufacture.With development of Mobile Internet technology knot It closes, two dimensional code can be directed toward any network address, text, picture, video.
Two dimensional code Internet of Things, in terms of be generalizable.Product (such as tobacco) industry that disappears fastly into The construction of row Internet of Things is conducive to optimize products in circulation system, realizes logistic resources distributing rationally in the whole industry, and set up Whole unification, advanced practical Modern circulation network.
Existing two dimensional code is usually to identify use for scanning input product essential information coding in two dimensional code.Two Dimension code itself does not have antiforge function, it is easy to be replicated.As long as fake producer using general two-dimentional code coder, or directly Scan the two dimensional code on product, so that it may which puppet produces the two dimensional code that user can not distinguish truth from false, therefore simple two dimensional code is not It can be anti-fake.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of anti-fake two-dimension code for being embedded in watermark is raw At method and device, it is intended to solve the two dimensional code for being used for product false proof in the prior art, be easy to be forged by fake producer, antifalse effect The problem of difference.
Technical scheme is as follows:
A kind of anti-fake two-dimension code generation method being embedded in watermark, which comprises
Stock is obtained, magnetic ink is uniformly printed on the side of stock, solidifies through UV, generating includes magnetic oil The stock of black pattern;
Pre-generated two dimensional code digital content data library and watermark image data library;
According to two dimensional code digital content data library, original two-dimensional code image is generated, is matched colors to original two-dimensional code image;
The watermarking images for obtaining watermark image data library, match colors to watermarking images;
Original two-dimensional code image and watermarking images are decomposed into multiple dimensioned subset image respectively, select corresponding subset figure Picture completes the insertion of watermarking images;
Sub- image in 2 D code after insertion watermarking images is completed into the inverse process operation of multi-resolution decomposition, and carries out image and melts It closes, generates target two dimensional code;
Target two dimensional code spray printing is printed into magnetic ink region in stock, generates anti-fake two-dimension code.
Optionally, the acquisition stock, uniformly prints magnetic ink on the side of stock, after UV solidifies, Generate the stock comprising magnetic ink pattern, comprising:
Stock is obtained, uniformly prints magnetic ink on the side of stock;
It prints and lays magnet strip below inked areas, magnetic particle magnetizes by magnet strip in ink, rearrangement;
By the printing ink after rearrangement after UV solidifies, the stock comprising magnetic ink pattern is generated.
Optionally, the pre-generated watermark image data library, comprising:
Pre-generated watermark image data library, and the watermarking images in watermark image data library are named and are numbered.
Optionally, described according to two dimensional code digital content data library, generate original two-dimensional code image, comprising:
Original two-dimensional code and the one-to-one relationship of product are pre-established, and corresponding relationship is stored to two dimensional code number Hold database;
Original two-dimensional code image is generated according to product printing parameter.
It is optionally, described to match colors to original two-dimensional code image, comprising:
It is matched colors using black or spot color to original two-dimensional code image.
It is optionally, described to match colors to watermarking images, comprising:
It is matched colors using spot color or anti-forgery ink color to watermarking images.
Optionally, described that target two dimensional code spray printing is printed into magnetic ink region in stock, after generating anti-fake two-dimension code, Further include:
Anti-fake two-dimension code is printed using the variable data printing of digital printer or using Conventional printing process.
Further embodiment of this invention additionally provides a kind of anti-fake two-dimension code generating means for being embedded in watermark, and described device includes At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one A processor executes, so that at least one described processor is able to carry out the anti-fake two-dimension code generation side of above-mentioned insertion watermark Method.
Another embodiment of the present invention additionally provides a kind of non-volatile computer readable storage medium storing program for executing, described non-volatile Computer-readable recording medium storage has computer executable instructions, and the computer executable instructions are by one or more processors When execution, one or more of processors may make to execute the anti-fake two-dimension code generation method of above-mentioned insertion watermark.
Another embodiment of the invention provides a kind of computer program product, and the computer program product includes depositing The computer program on non-volatile computer readable storage medium storing program for executing is stored up, the computer program includes program instruction, works as institute When stating program instruction and being executed by processor, the processor is made to execute the anti-fake two-dimension code generation method of above-mentioned insertion watermark.
The utility model has the advantages that the invention discloses a kind of anti-fake generation methods of anti-fake two-dimension code for being embedded in watermark and image to generate dress It sets, compared with the prior art, planar bar code technology is applied to cigarette and contracted for fixed output quotas product by the embodiment of the present invention, is embedded in existing two dimensional code Watermarking images realize that image in 2 D code is not reproducible by the way of anti-counterfeit printing, realization a product one yard, product traceability, online It is anti-fake, it improves cigarette and contracts for fixed output quotas the anti-counterfeiting performances of product.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is a kind of flow chart for the anti-fake two-dimension code generation method preferred embodiment for being embedded in watermark of the present invention;
Fig. 2 is a kind of picture breakdown model for the anti-fake two-dimension code generation method preferred embodiment for being embedded in watermark of the present invention Schematic diagram;
Fig. 3 is a kind of hardware configuration signal of anti-fake two-dimension code generating means preferred embodiment for being embedded in watermark of the present invention Figure.
Specific embodiment
To make the purpose of the present invention, technical solution and effect clearer, clear and definite, below to the present invention further specifically It is bright.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.Below The embodiment of the present invention is introduced in conjunction with attached drawing.
Referring to Fig. 1, Fig. 1 is a kind of process for the anti-fake two-dimension code generation method preferred embodiment for being embedded in watermark of the present invention Figure.The anti-fake two-dimension code generation method that watermark is embedded in described in the embodiment of the present invention is applied to cigarette packet, anti-fake for realizing cigarette packet, As shown in Figure 1, itself comprising steps of
Step S100, stock is obtained, uniformly prints magnetic ink on the side of stock, it is raw after UV solidifies At the stock comprising magnetic ink pattern;
Step S200, pre-generated two dimensional code digital content data library and watermark image data library;
Step S300, according to two dimensional code digital content data library, original two-dimensional code image is generated, to original two-dimensional code image It matches colors;
Step S400, the watermarking images for obtaining watermark image data library, match colors to watermarking images;
Step S500, original two-dimensional code image and watermarking images are decomposed into multiple dimensioned subset image respectively, selection is opposite The subset image answered, completes the insertion of watermarking images;
Step S600, the sub- image in 2 D code after insertion watermarking images is completed to the inverse process operation of multi-resolution decomposition, and Image co-registration is carried out, target two dimensional code is generated;
Step S700, target two dimensional code spray printing is printed into magnetic ink region in stock, generates anti-fake two-dimension code.
When it is implemented, stock refers to magnetic ink printing in article above and subsequent embedding in step S100 Enter the article that the anti-fake two-dimension code of watermark needs to print.When printing, in stock tool, there are two surfaces, uniform in stock side Laying magnetic ink, wherein magnetic stripe is provided below in magnetic ink, after being laid with magnetic ink, solidified using UV, generate packet The stock of the pattern containing magnetic ink.Wherein UV solidification is ultra-violet curing, and UV is the english abbreviation of ultraviolet light, and solidification refers to substance It is changed into high molecular process from low molecule.UV solidifies coating (paint), the ink, glue for generally referring to need with ultraviolet curing The condition of cure or requirement of stick (glue) or other encapsulating sealants are different from heating cure, glue crosslinking agent (curing agent) admittedly Change, spontaneous curing etc..Magnetic ink (magnetic printing ink) selects magnetizable pigment, such as iron oxide black (Fe3O4), iron oxide brown (Fe2O3), these particles are mostly less than 1 μm of acicular crystal.Easily accomplish band through magnetic field processing Magnetic arrangement, obtains higher residual magnetic, and manufactured ink shows magnetism after being added in ink, becomes magnetic ink.It is in silver The classification of row ticket and postal service, retrieval, identification etc. application are quite wide.The step of being wherein laid with ink can pass through screen printing Brush or spraying are realized.The halftone of the wherein equipment that screen printing apparatus is same as common ink silk-screen printing, printing selects 200 mesh to arrive Stereoscopic effect can be significantly more embodied between 250 mesh.Spraying need to use structural establishment, can uniformly spray ink.Silk-screen is compared in spraying It is more the process of the precipitating of ink, stronger 3D stereoscopic effect can be embodied, but if can be used from production stability consideration Silk-screen printing.The material of stock can be transparent material (such as transparent PVC, glass, PMMA) or non-transparent material, magnetism effect Fruit will not because of it is transparent whether reduce effect.But it is preferably selected thin material, it will affect magnetic effect if material is too thick Fruit.The thickness of stock is preferably 1mm to 5mm.
Two dimensional code and product one-to-one two dimensional code digital content data library are pre-generated in step S200, and are used for It is embedded in the watermark image data library of the watermarking images of two dimensional code;
Cigarette packet obtains the corresponding digital content of cigarette packet, is generated according to digital content in printing process in step S300 Original two-dimensional code image, and match colors to original two-dimensional code image, such as can be carried out using colors such as black or spot colors Color matching printing;
The watermarking images that watermark image data library is obtained in step S400 require to match for watermarking images according to printing technology Color, such as the colors such as spot color or anti-forgery ink color can be used and carry out color matching printing;
Original two-dimensional code image and watermarking images are obtained in step S500 respectively, by original two-dimensional code image and watermarking images It is decomposed into multiple dimensioned subset image, selects corresponding subset image, completes insertion of the watermarking images in image in 2 D code.
The image in 2 D code and watermarking images of color mode will have been specified in step S600, has completed image co-registration, generate mesh Mark dimension code.The anti-fake two-dimension code for being embedded in watermark is wherein completed into color separation in RIP software before print, respectively obtains image in 2 D code point Color version and watermarking images color separation version;It is completed according to scheduled printing technology, chromatography.
Still further, step S600 can specifically: in view of the image in 2 D code size being imprinted on cigarette case is smaller, such as The size 236*236Pixels that this example provides, geometric scale decomposition scale here are no more than three-level, the picture size of the third level Only has 59*59Pixels for a quarter of original image, such as this example, complicated watermarking images are just beyond expression of words;Described this programme Suggest that lines class pattern can be used in watermarking images in embodiment, not use color hierarchy photo abundant, watermarking images size Equal in magnitude with image in 2 D code for 236*236Pixels, if it is desired to further increasing antifalse effect, watermarking images can also be adopted With the line image with anti-counterfeiting performance.
Step S700, target two dimensional code spray printing is printed to the side of magnetic ink in stock, generates anti-fake two-dimension code. The anti-fake two-dimension code realizes magnetic ink and the double anti-forge for being embedded in watermark, improves the anti-counterfeiting performance of product.
So far, this programme can be combined by four kinds of anti-counterfeiting technologies, and one, tracing to the source for two-dimensional barcode information is anti-fake, the two, and two It ties up code and is embedded in watermarking images, enhance the copy-resistant of two dimensional code, three, watermark recovery selection has the lines figure of anti-counterfeiting performance Original text, then set one of barrier;Four, it is printed using anti-forgery ink, incorporates material anti-counterfeiting performance.
In further carrying out example, the fusion process of watermarking images and image in 2 D code specifically:
According to human eye vision contrast sensitivity sampling model, completes image in 2 D code and watermarking images decompose, decomposition method As shown in Figure 2;
Image in 2 D code and preembedded watermarking images decompose given level information extraction state respectively, such as decompose 3 Grade information extraction state;
Image in 2 D code is completed in the information state of given level to synthesize with the information of watermarking images, and " weighting such as can be used With " calculate mode, the two is merged, weight can control watermarking images using image in 2 D code as the visible of background here Degree;
The inverse operation that decomposable process is carried out to image in 2 D code, the image in 2 D code after obtaining insertion watermark.
As shown in Fig. 2, CSF is for characterizing visual characteristic of the human eye under different space frequency, it is vision system to tool There is the characteristic function of different space frequency and the visual acuity degree of the observation object with small attribute difference;Here category Sex differernce can be the difference of spatial frequency, the difference of brightness or color difference etc.;The independent variable of CSF is spatial frequency, is used Periodicity comprising observation object in unit angular field of view indicates (CPD:CyclePer Degree);The dependent variable of CSF is observation The attribute differential threshold of object reflects the critical feelings of difference between the just distinguishable object of observation out of the vision under different space frequency Condition;The CSF of human eye is measured by the experiment of a large amount of visual observations, usually a series of with small by multiple observers observation The visual stimulus of attribute difference, as under different space frequency, the image of different perceptual property consecutive variations, finding vision can just divide Then the critical point distinguished is averaged out observer's as a result, CSF model is calculated;CSF model is representational Mannos With Sakrison model, S.daly model, Barten model etc..
Block curve in Fig. 2 is CSF function, the bandpass filter in similar Digital Image Processing;Here to image Isolation be that CSF model is decomposed into three wavelet basis bands first according to the CSF model of upper figure test, as empty in Fig. 2 Image is carried out geometric scale decomposition in two-dimensional space, is decomposed into three scales by line, as shown in Fig. 2, in order to realize decomposition and close At invertibity, three wavelet basis tape functions of CSF function and wavelet function are implemented in combination with image in 2 D code and watermark here The decomposition of image is to solve the multiple dimensioned decomposition of space geometry with the purpose of wavelet function, and CSF base band function is as wavelet function Low pass or high-pass filter;Visual information abstracting in Fig. 2, be through geometric scale decompose with the filtered image information of CSF, Such as 1 grade of information extraction of vision, original image is sampled as to original half, and it is bright through the filtering of CSF Low-frequency band function to remove vision Spend the result of information.
By in the embodiment it is found that contracted for fixed output quotas in product by the way that planar bar code technology is applied to cigarette, by digital image processing techniques, Human eye visual perception theory, planar bar code technology and printing technology fusion, realize image in 2 D code non-reproduction feature, Not only realize a product one yard on ordinary meaning, product traceability is online anti-fake etc., and can not be again there are also realize a product one yard Duplication requires, and the image in 2 D code being in other words imprinted on product has antifalsification, and terminal consumer can be simply by view Feel recognize whether the two dimensional code is true code, and the mobile devices barcode scanning such as mobile phone can be used obtains the information of two dimensional code and anti- Fake information.
Further, stock is obtained, uniformly prints magnetic ink on the side of stock, it is raw after UV solidifies At the stock comprising magnetic ink pattern, comprising:
Stock is obtained, uniformly prints magnetic ink on the side of stock;
It prints and lays magnet strip below inked areas, magnetic particle magnetizes by magnet strip in ink, rearrangement;
By the printing ink after rearrangement after UV solidifies, the stock comprising magnetic ink pattern is generated.
Specifically, stock is obtained, magnetic ink, printing inked areas lower section are uniformly printed on the side of stock Pre-designed magnet strip is laid, magnetic particle magnetizes by magnet strip in ink, after rearrangement, solidifies through UV, generates Stock comprising magnetic ink pattern.
Further, two dimensional code digital content data library is pre-generated, comprising:
Two dimensional code digital content data library is pre-established, and in the database in storage product attribute.
When it is implemented, establishing two dimensional code digital content data library, a product one yard is realized;I.e. a commodity are one two corresponding Code is tieed up, each two dimensional code is also corresponding unique commodity.It is specific that two-dimension code generator is developed using exploitation QR coding criterion, and With two dimensional code digital content data library AutoLink.Wherein " QR " of QR code is the abbreviation of Quick Response.This two dimension Code can quickly be read, and compared with bar code before, QR code can store richer information, including to text, the address URL and Other kinds of data encryption.
Further, watermark image data library is pre-generated, comprising:
Pre-generated watermark image data library, and the watermarking images in watermark image data library are named and are numbered.
When it is implemented, pre-establishing watermark image data library;It is named to watermarking images, according to certain rule to watermark Picture number, such as numbered using " random " algorithm;
The purpose numbered to watermarking images is one, establishes watermarking images library, needs to the watermarking images for that will be embedded in Name;The two realizes image and image in 2 D code random combine in watermarking images library;If watermarking images are with a series of Subject color needs a matched indexed mode to arrange in pairs or groups at random with the two dimensional code of a product one yard, according to Image Name into Line index is eaily mode.
In a further embodiment, the design of cigarette packet can carry out certain Theme activity accordingly, and terminal consumer participates in should Activity, when collecting the cigarette case of the neat theme, the reward that the movable side of holding will be obtained gives;First promote the interest of product sale in this way Taste, while the mode of watermarking images embedded by this random fit also secondarily increases the antiforge function of product.
Further, according to two dimensional code digital content data library, original two-dimensional code image is generated, comprising:
Original two-dimensional code and the one-to-one relationship of product are pre-established, and corresponding relationship is stored to two dimensional code number Hold database;
Original two-dimensional code image is generated according to product printing parameter.
When it is implemented, need to establish the one-to-one relationship of original two-dimensional code and product to realize a product one yard, and Corresponding relationship is also stored to two dimensional code digital content data library.To meet product printing parameter when generating original two-dimensional code image It is required that the product in the embodiment of the present invention refers to cigarette packet.
Specifically, generate image in 2 D code, product printing parameter include printing Product Process requirement, as size, resolution ratio, Color etc..Such as: when printing image in 2 D code on cigarette case, picture size is set as 2cm × 2cm, meets 175Lpi printing precision When, it is desirable that the resolution ratio of image in 2 D code is 300Lpi, then the pixel number of image in 2 D code is 236 × 236Pixels.
Further, it matches colors to original two-dimensional code image, comprising:
It is matched colors using black or spot color to original two-dimensional code image.
When it is implemented, the color of two dimensional code is usually black, also can specify as certain spot ink printing etc..Its special secondary school Color printing refers to using other color inks yellow, pinkish red, other than green and four color ink of tusche the printing technology for replicating original copy color. Through printing large area background color frequently with spot color printing technique in packages printing.
In some other embodiments, image in 2 D code color can be set as any of the same colour of printing color, as cyan, Magenta, yellow, black etc. also can be set as the specified spot color of technique, if certain in golden or Pan Tongseku is of the same colour, be Make image in 2 D code self color that there is antifalsification, it can be using anti-forgery ink printing etc..
Further, it matches colors to watermarking images, including
It is matched colors using spot color or anti-forgery ink color to watermarking images.
When it is implemented, watermarking images are set as spot color version if watermarking images are monochromes.If watermarking images are not Monochrome can also be used anti-forgery ink and match colors to watermarking images.
Further, target two dimensional code spray printing is printed into magnetic ink region in stock, after generating anti-fake two-dimension code, also Include:
Anti-fake two-dimension code is printed using the variable data printing of digital printer or using Conventional printing process.
When it is implemented, printing anti-fake two-dimension code image, or using the variable data printing of digital printer, such as use Traditional printing needs to increase spot color or anti-forgery ink printing color version;If Conventional printing process, image in 2 D code is extracted as one Color version, extraction watermarking images are a color version, and chromatography completion image in 2 D code merges printing with watermarking images.
By above method embodiment it is found that a kind of anti-fake two-dimension code generation side for being embedded in watermark provided in an embodiment of the present invention Method is different from existing technology, after printing magnetic ink on the substrate in advance, then using digital picture as watermark is embedded into two It ties up in code image, image in 2 D code is the main body of pre- insertion watermarking images, and image in 2 D code color is background colour;It is embedded in two dimensional code Watermarking images be visually visible, the purpose for being embedded in the watermarking images is that have the image in 2 D code itself of printing anti- Pseudo- function;To guarantee that the two dimensional image of insertion watermark has non-reproduction, changes original printing technology method, realize two dimension The commercial printing of the code spot color printing of image, watermarking images;Even can spot color match colors by way of or use anti-fake oil Ink, fluorescent ink, invisible printing ink etc. with material is anti-fake is organically combined.
Another embodiment of the present invention provides a kind of anti-fake two-dimension code generating means for being embedded in watermark, as shown in figure 3, device 10 Include:
One or more processors 110 and memory 120 are introduced in Fig. 3 by taking a processor 110 as an example, are located Reason device 110 can be connected with memory 120 by bus or other modes, in Fig. 3 for being connected by bus.
Processor 110 is used for the various control logics of finishing device 10, can be general processor, Digital Signal Processing Device (DSP), specific integrated circuit (ASIC), field programmable gate array (FPGA), single-chip microcontroller, ARM (Acorn RISC ) or other programmable logic device, discrete gate or transistor logic, discrete hardware component or these components Machine Any combination.In addition, processor 110 can also be any conventional processors, microprocessor or state machine.Processor 110 can also To be implemented as calculating the combination of equipment, for example, the combination of DSP and microprocessor, multi-microprocessor, one or more micro- places Manage device combination DSP core or any other this configuration.
Memory 120 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module, the anti-fake two-dimension code such as the insertion watermark in the embodiment of the present invention are raw At the corresponding program instruction of method.Processor 110 is by running the non-volatile software program being stored in memory 120, referring to It enables and unit is realized in above method embodiment thereby executing the various function application and data processing of device 10 It is embedded in the anti-fake two-dimension code generation method of watermark.
Memory 120 may include storing program area and storage data area, wherein storing program area can store operation dress It sets, application program required at least one function;Storage data area, which can be stored, uses created data etc. according to device 10. It can also include nonvolatile memory in addition, memory 120 may include high-speed random access memory, for example, at least one A disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments, memory 120 can Choosing includes the memory remotely located relative to processor 110, these remote memories can pass through network connection to device 10. The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more unit is stored in memory 120, when being executed by one or more processor 110, is held The anti-fake two-dimension code generation method of insertion watermark in the above-mentioned any means embodiment of row, for example, executing in Fig. 1 described above Method and step S100 to step S700.
The embodiment of the invention provides a kind of non-volatile computer readable storage medium storing program for executing, computer readable storage medium is deposited Computer executable instructions are contained, which is executed by one or more processors, for example, executing above retouch Method and step S100 to step S700 in the Fig. 1 stated.
As an example, non-volatile memory medium can include that read-only memory (ROM), programming ROM (PROM), electricity can Programming ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory can include as external high speed The random access memory (RAM) of buffer memory.By illustrate it is beautiful unrestricted, RAM can with such as synchronous random access memory (SRAM), Dynamic ram, (DRAM), synchronous dram (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Many forms of Synchlink DRAM (SLDRAM) and directly Rambus (Lan Basi) RAM (DRRAM) etc obtain.Herein Described in operating environment disclosed memory assembly or memory be intended to include these and/or any other be suitble to class One or more of memory of type.
Another embodiment of the invention provides a kind of computer program product, and computer program product includes being stored in Computer program on non-volatile computer readable storage medium storing program for executing, computer program include program instruction, when program instruction quilt When processor executes, the processor is made to execute the anti-fake two-dimension code generation method of the insertion watermark of above method embodiment.Example Such as, the method and step S100 to step S700 in Fig. 1 described above is executed.
Embodiments described above is only schematical, wherein as illustrated by the separation member unit can be or It may not be and be physically separated, component shown as a unit may or may not be physical unit, it can It is in one place, or may be distributed over multiple network units.Can select according to actual needs part therein or Person's whole module achieves the purpose of the solution of this embodiment.
By the description of above embodiment, those skilled in the art can be understood that each embodiment can be by Software adds the mode of general hardware platform to realize, naturally it is also possible to pass through hardware realization.Based on this understanding, above-mentioned technology Scheme substantially in other words can be embodied in the form of software products the part that the relevant technologies contribute, the computer Software product can reside in computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions to So that a computer electronic equipment (can be personal computer, server or network electronic devices etc.) executes each reality The method for applying certain parts of example or embodiment.
Among other things, such as " can ', " energy ", " possibility " or " can be with " etc conditional statement unless in addition specific Ground is stated or is otherwise understood in context as used, is otherwise generally intended to convey particular implementation energy Including (however other embodiments do not include) special characteristic, element and/or operation.Therefore, such conditional statement is generally It is not intended to imply that feature, element and/or operation are all needed one or more embodiments or one anyway Or multiple embodiments must include for determining these features, element in the case where being with or without student's input or prompt And/or the logic whether operation is included or will be performed in any particular implementation.
The content described in the present description and drawings herein includes be capable of providing insertion watermark anti-fake two Tie up the example of code generating method and device.Certainly, element can not be described for the purpose of the various features of the description disclosure And/or each of method it is envisioned that combination, it can be appreciated that, many other combinations of disclosed feature and set It is possible for changing., it will thus be apparent that can be done without departing from the scope or spirit of the present disclosure to the disclosure Various modifications out.In addition, or in alternative solution, the considerations of other embodiments of the disclosure are to the specification and drawings and It may be obvious in the practice of the disclosure as presented herein.It is intended that proposed in the specification and drawings Example be in all respects considered illustrative and not restrictive.Although using specific term herein, They are used and are not used in the purpose of limitation in general and descriptive sense.

Claims (10)

1. a kind of anti-fake two-dimension code generation method for being embedded in watermark, which is characterized in that be applied to cigarette packet, which comprises
Stock is obtained, uniformly prints magnetic ink on the side of stock, after UV solidifies, generating includes magnetic ink The stock of pattern;
Pre-generated two dimensional code digital content data library and watermark image data library;
According to two dimensional code digital content data library, original two-dimensional code image is generated, is matched colors to original two-dimensional code image;
The watermarking images for obtaining watermark image data library, match colors to watermarking images;
Original two-dimensional code image and watermarking images are decomposed into multiple dimensioned subset image respectively, select corresponding subset image, Complete the insertion of watermarking images;
Sub- image in 2 D code after insertion watermarking images is completed into the inverse process operation of multi-resolution decomposition, and carries out image co-registration, Generate target two dimensional code;
Target two dimensional code spray printing is printed into magnetic ink region in stock, generates anti-fake two-dimension code.
2. the anti-fake two-dimension code generation method of insertion watermark according to claim 1, which is characterized in that the acquisition printing Object uniformly prints magnetic ink on the side of stock, after UV solidifies, generates the printing comprising magnetic ink pattern Object, comprising:
Stock is obtained, uniformly prints magnetic ink on the side of stock;
It prints and lays magnet strip below inked areas, magnetic particle magnetizes by magnet strip in ink, rearrangement;
By the printing ink after rearrangement after UV solidifies, the stock comprising magnetic ink pattern is generated.
3. being embedded in the anti-fake two-dimension code generation method of watermark according to claim 1, which is characterized in that the pre-generated water Watermark image database, comprising:
Pre-generated watermark image data library, and the watermarking images in watermark image data library are named and are numbered.
4. according to right want 1 described in be embedded in watermark anti-fake two-dimension code generation method, which is characterized in that it is described according to two dimensional code Digital content data library generates original two-dimensional code image, comprising:
Original two-dimensional code and the one-to-one relationship of product are pre-established, and corresponding relationship is stored to two dimensional code digital content number According to library;
Original two-dimensional code image is generated according to product printing parameter.
5. the anti-fake two-dimension code generation method of insertion watermark according to claim 1, which is characterized in that described to initial two Dimension code image is matched colors, comprising:
It is matched colors using black or spot color to original two-dimensional code image.
6. the anti-fake two-dimension code generation method of insertion watermark according to claim 1, which is characterized in that described to watermark figure As matching colors, comprising:
It is matched colors using spot color or anti-forgery ink color to watermarking images.
7. the anti-fake two-dimension code generation method of insertion watermark according to claim 1, which is characterized in that the target two dimension Code spray printing prints magnetic ink region in stock, after generating anti-fake two-dimension code, further includes:
Anti-fake two-dimension code is printed using the variable data printing of digital printer or using Conventional printing process.
8. a kind of anti-fake two-dimension code generating means for being embedded in watermark, which is characterized in that be applied to cigarette packet, described device includes at least One processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out the anti-fake of the described in any item insertion watermarks of claim 1-7 Two-dimensional code generation method.
9. a kind of non-volatile computer readable storage medium storing program for executing, which is characterized in that the non-volatile computer readable storage medium Matter is stored with computer executable instructions, when which is executed by one or more processors, may make institute State the anti-fake two-dimension code generation method that one or more processors perform claim requires the described in any item insertion watermarks of 1-7.
10. a kind of computer program product, which is characterized in that the computer program product includes being stored in non-volatile calculating Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is processed When device executes, the processor perform claim is made to require the anti-fake two-dimension code generation method of the described in any item insertion watermarks of 1-7.
CN201910511304.7A 2019-06-13 2019-06-13 A kind of anti-fake two-dimension code generation method and device being embedded in watermark Pending CN110263893A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910511304.7A CN110263893A (en) 2019-06-13 2019-06-13 A kind of anti-fake two-dimension code generation method and device being embedded in watermark

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910511304.7A CN110263893A (en) 2019-06-13 2019-06-13 A kind of anti-fake two-dimension code generation method and device being embedded in watermark

Publications (1)

Publication Number Publication Date
CN110263893A true CN110263893A (en) 2019-09-20

Family

ID=67918088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910511304.7A Pending CN110263893A (en) 2019-06-13 2019-06-13 A kind of anti-fake two-dimension code generation method and device being embedded in watermark

Country Status (1)

Country Link
CN (1) CN110263893A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111445268A (en) * 2020-03-29 2020-07-24 武汉积墨包装印刷有限公司 Printing ink tracing method based on block chain and 5G communication
CN113469862A (en) * 2021-05-28 2021-10-01 安徽大学 Tamper-proof digital watermark embedding method and image restoration method for file scanning
CN114330621A (en) * 2021-11-23 2022-04-12 深圳市祯源科技有限公司 Two-dimensional code anti-counterfeiting method and device based on identification information and storage medium
CN116227524A (en) * 2023-05-05 2023-06-06 杭州蚂蚁酷爱科技有限公司 Anti-fake code generation and verification method and label-based anti-fake system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102461147A (en) * 2009-06-04 2012-05-16 国立大学法人鹿儿岛大学 Watermark information embedding apparatus, watermark information processing system, watermark information embedding method, and program
CN103559473A (en) * 2013-10-28 2014-02-05 汝思商务咨询(上海)有限公司 Method and system using feature images to achieve printing stock security
CN107194449A (en) * 2017-06-19 2017-09-22 南京林业大学 The antiforge and information source tracing method combined based on digital watermarking and Quick Response Code
CN108416414A (en) * 2018-03-26 2018-08-17 中国人民银行印制科学技术研究所 Self checking anti-fake two-dimension code and production method and device, self checking method and apparatus
CN109376832A (en) * 2018-12-21 2019-02-22 北京印刷学院 It is embedded in triple anti-fake two-dimension codes of anti-counterfeiting mark image and digital fluorescence images
CN109840875A (en) * 2019-03-06 2019-06-04 深圳市金天速科技有限公司 A kind of anti-counterfei waterprint generation method, device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102461147A (en) * 2009-06-04 2012-05-16 国立大学法人鹿儿岛大学 Watermark information embedding apparatus, watermark information processing system, watermark information embedding method, and program
CN103559473A (en) * 2013-10-28 2014-02-05 汝思商务咨询(上海)有限公司 Method and system using feature images to achieve printing stock security
CN107194449A (en) * 2017-06-19 2017-09-22 南京林业大学 The antiforge and information source tracing method combined based on digital watermarking and Quick Response Code
CN108416414A (en) * 2018-03-26 2018-08-17 中国人民银行印制科学技术研究所 Self checking anti-fake two-dimension code and production method and device, self checking method and apparatus
CN109376832A (en) * 2018-12-21 2019-02-22 北京印刷学院 It is embedded in triple anti-fake two-dimension codes of anti-counterfeiting mark image and digital fluorescence images
CN109840875A (en) * 2019-03-06 2019-06-04 深圳市金天速科技有限公司 A kind of anti-counterfei waterprint generation method, device, electronic equipment and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111445268A (en) * 2020-03-29 2020-07-24 武汉积墨包装印刷有限公司 Printing ink tracing method based on block chain and 5G communication
CN113469862A (en) * 2021-05-28 2021-10-01 安徽大学 Tamper-proof digital watermark embedding method and image restoration method for file scanning
CN113469862B (en) * 2021-05-28 2022-05-17 安徽大学 Tamper-proof digital watermark embedding method and image restoration method for file scanning
CN114330621A (en) * 2021-11-23 2022-04-12 深圳市祯源科技有限公司 Two-dimensional code anti-counterfeiting method and device based on identification information and storage medium
CN114330621B (en) * 2021-11-23 2024-04-09 深圳市祯源科技有限公司 Two-dimensional code anti-counterfeiting method, device and storage medium based on identification information
CN116227524A (en) * 2023-05-05 2023-06-06 杭州蚂蚁酷爱科技有限公司 Anti-fake code generation and verification method and label-based anti-fake system
CN116227524B (en) * 2023-05-05 2023-08-08 杭州蚂蚁酷爱科技有限公司 Anti-fake code generation and verification method and label-based anti-fake system

Similar Documents

Publication Publication Date Title
CN110263893A (en) A kind of anti-fake two-dimension code generation method and device being embedded in watermark
Jetchev et al. The conditional analogy gan: Swapping fashion articles on people images
CN101164083B (en) Album generating apparatus, album generating method
CN101529495B (en) Image mask generation
CN103718195B (en) readable matrix code
KR101887216B1 (en) Image Reorganization Server and Method
US20210110588A1 (en) Mobile application for object recognition, style transfer and image synthesis, and related systems, methods, and apparatuses
JP4915883B2 (en) Printed matter for preventing forgery, method for producing the same, and recording medium storing software for producing halftone data
US20100033739A1 (en) Customized credential and method and system of production
CN111133440A (en) Image processing technology based on machine learning
Berezhnoy et al. Computer analysis of van Gogh’s complementary colours
CN115511969B (en) Image processing and data rendering method, apparatus and medium
CN105354248A (en) Gray based distributed image bottom-layer feature identification method and system
DE102015212255A1 (en) EXPANDING BARCODES WITH SECONDARY CODING FOR FALTER SECURITY
CN205665721U (en) Present label that machine readable vision is showed
CN105718981A (en) Processing method for preparing novel 2D code image holographic anti-counterfeiting label
DE102018115146A1 (en) Process for producing security elements that are invisible to the human eye and cannot be copied in an image, and method for verifying the authenticity of products based on the comparison of unequal information and printed image
CN108345624A (en) Generate the method and device of the page
CN106056183A (en) A printed medium having a machine-readable image printed thereon, and system and method of scanning the machine-readable image
Yu et al. Artificial intelligence for Dunhuang cultural heritage protection: the project and the dataset
CN1962287A (en) Method for making multiple optical watermark
KR20180103835A (en) A method for authenticating and / or verifying the integrity of a subject
Mould et al. Developing and applying a benchmark for evaluating image stylization
CN102842140A (en) Image processing apparatus and image processing method
CN110428404A (en) A kind of formulation system that the auxiliary culture based on artificial intelligence is appreciated with auxiliary

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190920