CN106295761B - Anti-counterfeiting mark generation method and device - Google Patents
Anti-counterfeiting mark generation method and device Download PDFInfo
- Publication number
- CN106295761B CN106295761B CN201610707374.6A CN201610707374A CN106295761B CN 106295761 B CN106295761 B CN 106295761B CN 201610707374 A CN201610707374 A CN 201610707374A CN 106295761 B CN106295761 B CN 106295761B
- Authority
- CN
- China
- Prior art keywords
- identification code
- component part
- texture
- counterfeiting mark
- characteristic value
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/06009—Record 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/06037—Record 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/06009—Record 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/06018—Record 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 one-dimensional coding
- G06K19/06028—Record 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 one-dimensional coding using bar codes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/06009—Record 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/06046—Constructional details
Abstract
The embodiment of the present invention proposes a kind of anti-counterfeiting mark generation method and device.The described method includes: obtaining the texture for being located at product or identification code and the identification code overlay area in packaging;Using the texture of the identification code and the identification code overlay area, the anti-counterfeiting mark is generated.Technical solution provided in an embodiment of the present invention can effectively prevent other people from obtaining product information by way of simple copy identification code.
Description
Technical field
The present invention relates to anti-counterfeiting mark fields, in particular to a kind of anti-counterfeiting mark generation method and device.
Background technique
In the prior art, it includes the message identification code of product information that the common method for anti-counterfeit of product, which is in product surface printing,
(for example, two dimensional code, bar code etc.).In verifying, user verifies the information of product by way of scanning recognition code.
However, message identification code is easy to be replicated by people in reality, and illegal activity is carried out (for example, manufacturing or selling fake and inferior puppet
Emit commodity), seriously affect the vital interests of consumer and the corporate image of manufacturer.
Summary of the invention
In view of this, being designed to provide for a preferred embodiment of the present invention a kind of can be answered according to preventing message identification code
The anti-counterfeiting mark generation method that false making emits, the generation method include:
Obtain the texture for being located at product or identification code and the identification code overlay area in packaging;
Using the texture of the identification code and the identification code overlay area, the anti-counterfeiting mark is generated.
Further, above-mentioned acquisition is located at the texture of product or identification code and the identification code overlay area in packaging
Step includes: the image information for controlling image capture device and obtaining the identification code Yu the texture.
Further, the above-mentioned texture according to the identification code and the identification code overlay area, generates the anti-counterfeiting label
The step of knowledge includes: that the image information that described image acquisition equipment obtains the identification code and the texture is carried out image procossing
The anti-counterfeiting mark is obtained, sends the anti-counterfeiting mark in the false proof mark data library of a server and stores.
Further, the above-mentioned texture according to the identification code and the identification code overlay area, generates the anti-counterfeiting label
The step of knowledge includes: the position from each component part and the identification code for identifying the identification code in described image information
Texture between each adjacent component part;According to each component part of the identification code and it is located in the identification code
Texture between each adjacent component part carries out that the anti-counterfeiting mark is calculated;A service is sent by the anti-counterfeiting mark
It is stored in the false proof mark data library of device.
Further, above-mentioned according to each component part of the identification code and positioned at each of the adjacent identification code
The step of anti-counterfeiting mark is calculated in texture between component part includes: to obtain each component part of the identification code in institute
State the characteristic value indicated in identification code;Texture between each component part of the adjacent identification code is carried out that line is calculated
Manage characteristic value;
According to the positional relationship of the identification code and texture, by each component part of the identification code in the identification code
The characteristic value of middle expression is combined with the texture eigenvalue, obtains the anti-counterfeiting mark.
Further, the step of characteristic value of each component part of the above-mentioned acquisition identification code in the identification code
It include: to inquire each group that whether database is stored with the identification code according to the image of each component part of the identification code
At part, wherein prestored in the database various identification codes each component part and corresponding characteristic value;When the number
When containing each component part of the identification code according to inventory, each component part pair of the identification code is obtained from the database
The characteristic value answered;It, will be described in the imparting of default characteristic value when the not stored each component part for having the identification code of the database
Each component part.
Another preferred embodiment of the present invention also provides a kind of anti-counterfeiting mark generating means, the anti-counterfeiting mark generating means packet
It includes:
Module is obtained, for obtaining the texture of the identification code and the identification code overlay area that are located in product or packaging;
And
Generation module generates the anti-counterfeiting label for using the texture of the identification code Yu the identification code overlay area
Know.
Further, the acquisition module controls an image capture device and carries out image to the identification code and the texture
Acquisition, the generation module carry out image procossing to the image capture device acquired image information and obtain the anti-counterfeiting label
Know;The anti-counterfeiting mark generating means further include a sending module, for sending the anti-of a server for the anti-counterfeiting mark
Pseudo- identification database is stored.
Further, above-mentioned generation module includes:
Submodule is identified, for identifying each group of the identification code from the image information that the acquisition module obtains
At the texture in part and the identification code between each adjacent component part;
Computational submodule according to each component part of the identification code and is located at each adjacent sets in the identification code
It carries out that the anti-counterfeiting mark is calculated at the texture between part.
Further, the anti-counterfeiting mark is calculated in above-mentioned computational submodule in the following manner:
Obtain the characteristic value that each component part of the identification code indicates in the identification code;
Texture between each component part of the adjacent identification code is carried out that texture eigenvalue is calculated;
According to the positional relationship of the identification code and texture, by each component part of the identification code in the identification code
The characteristic value of middle expression is combined with the texture eigenvalue, obtains the anti-counterfeiting mark.
Further, which includes a database, prestores various identification codes in the database
The characteristic value is calculated in each component part and corresponding characteristic value, the computational submodule in the following manner:
According to the image of each component part of the identification code, inquire whether the database is stored with the identification code
Each component part;
When the database purchase has each component part of the identification code, the identification code is obtained from the database
The corresponding characteristic value of each component part;
When the not stored each component part for having the identification code of the database, default characteristic value is assigned described each
Component part.
Compared with prior art, anti-counterfeiting mark generation method provided in an embodiment of the present invention and device, by by identification code
And the texture of the identification code overlay area is combined as new anti-counterfeiting mark.New anti-counterfeiting mark not only has former mark
The unique information unique information also with texture of code can be prevented effectively so that the security feature of new anti-counterfeiting mark is stronger
Other people obtain product information by way of simple copy identification code.The cost for greatly improving fraud, which plays, prevents fraud
Purpose.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is that the server that present pre-ferred embodiments provide interacts signal with what an at least user terminal was communicated
Figure.
Fig. 2 is the block diagram of user terminal shown in FIG. 1.
Fig. 3 is a kind of functional module for the anti-counterfeiting mark process units shown in Fig. 2 that present pre-ferred embodiments provide
Block diagram.
It includes the image of identification code that Fig. 4, which is the one of the image acquisition device that present pre-ferred embodiments provide,.
Fig. 5 is to extract in the image shown in fig. 5 of present pre-ferred embodiments offer including identification code image-region
Schematic diagram.
Fig. 6 is the bar code schematic diagram that a kind of prior art that present pre-ferred embodiments provide is encoded.
Fig. 7 is that the bar code encoded using this Shen application technical solution that present pre-ferred embodiments provide is illustrated
Figure.
Fig. 8 is a kind of specific flow chart for anti-counterfeiting mark generation method that present pre-ferred embodiments provide.
Fig. 9 is the seed step flow diagram that step S112 includes in Fig. 8.
Figure 10 is another seed step flow diagram that step S112 includes in Fig. 8.
Main element symbol description
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Fig. 1 is please referred to, is that the server 100 that present pre-ferred embodiments provide is led to an at least user terminal 200
The interaction schematic diagram of letter.The user terminal 200 can access server 100 by network 300, the anti-counterfeiting mark hair that will be generated
It is sent in the false proof mark data library 110 of the server 100.In the present embodiment, the server 100 be can be, but unlimited
In web (website) server.The user terminal 200 may be, but not limited to, smart phone, PC (personal
Computer, PC), tablet computer, personal digital assistant (personal digital assistant, PDA), mobile Internet access set
Standby (mobile Internet device, MID) etc..The network 300 may be, but not limited to, cable network or wireless network
Network.
It referring to figure 2., is the block diagram of user terminal 200 shown in Fig. 2.The user terminal 200 includes anti-fake
Identification generation apparatus 210, memory 211, storage control 212, processor 213, Peripheral Interface 214, input-output unit
215, display unit 217 and radio frequency unit 218.In the present embodiment, the user terminal 200 includes, but are not limited to intelligent hand
Machine, tablet computer, laptop, PC, personal digital assistant, mobile internet surfing equipment etc..
The memory 211, processor 213, Peripheral Interface 214, input-output unit 215, is shown storage control 212
Show that unit 217 and each element of radio frequency unit 218 are directly or indirectly electrically connected between each other, with realize data transmission or
Interaction.It is electrically connected for example, these elements can be realized between each other by one or more communication bus or signal wire.It is described anti-
Pseudo- identification generation apparatus 210 includes that at least one can be stored in the memory in the form of software or firmware (firmware)
In 211 or the software function module that is solidificated in the operating system (operating system, OS) of the user terminal 200.
The processor 213 is for executing the executable module stored in the memory 211, such as the anti-counterfeiting mark generating means
Software function module included by 210 and computer program etc..
Wherein, the memory 211 may be, but not limited to, random access memory (Random Access
Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable
Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only
Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only
Memory, EEPROM) etc..Wherein, memory 211 is for storing program, the processor 213 after receiving and executing instruction,
Execute described program.The processor 213 and other possible components can control the access of memory 211 in the storage
It is carried out under the control of device 212.
The processor 213 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor
213 can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit
(Network Processor, NP) etc.;Can also be digital signal processor (DSP)), it is specific integrated circuit (ASIC), ready-made
Programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware group
Part.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be with
It is that microprocessor or the processor are also possible to any conventional processor etc..
Various input/output devices are couple the processor 213 and the memory by the Peripheral Interface 214
211.In some embodiments, Peripheral Interface 214, processor 213 and storage control 212 can be real in one single chip
It is existing.In some other example, they can be realized by independent chip respectively.
The input-output unit 215 is used to be supplied to user input data and realizes user and the user terminal 200
Interaction.The input-output unit 215 may be, but not limited to, mouse, keyboard and the Image Acquisition with Image Acquisition ability
Device (for example, camera) etc..
The display unit 217 provided between the user terminal 200 and user an interactive interface (such as user behaviour
Make interface) or for display image data.In the present embodiment, the display unit 217 can be liquid crystal display or touch-control
Display.It can be the capacitance type touch control screen or electric resistance touch-control of support single-point and multi-point touch operation if touch control display
Screen etc..It is one or more on the touch control display to support that single-point and multi-point touch operation refer to that touch control display can be sensed
The touch control operation generated at position, and the touch control operation that this is sensed transfers to processor to be calculated and handled.
The radio frequency unit 118 for receiving and transmitting radio wave signal (such as electromagnetic wave), realize radio wave with
The mutual conversion of electric signal, thus realize the user terminal 200 by the anti-counterfeiting mark of generation upload onto the server 100 it is anti-fake
In identification database 110.
Referring to figure 3., be present pre-ferred embodiments provide Fig. 2 shown in anti-counterfeiting mark generating means 210 function mould
Block block diagram.The anti-counterfeiting mark generating means 210 include obtaining module 2101 and generation module 2102.
The acquisition module 2101, for obtaining the identification code and the identification code area of coverage that are located in product or packaging
The texture in domain.
In the present embodiment, the identification code, which may be, but not limited to, two dimensional code, bar code and other forms, has and can know
The pattern or number of other function.The identification code can be printed on the product or production by staff before product export
In the packaging of product.
The texture refers to that the identification code prints the lines information at position on product or packaging, generally,
The texture that product is perhaps packed has the randomness identification code when the different location of product or packaging is printed,
The texture of the identification code overlay area is also different.
In the present embodiment, user can obtain the identification code by the camera of user terminal 200 (such as: mobile phone)
With the texture of identification code overlay area.
It obtains one image capture device of control of module 2101 and Image Acquisition is carried out to the identification code and the texture, it is described
Generation module 2102 carries out image procossing to the image capture device acquired image information and obtains the anti-counterfeiting mark.
In the present embodiment, the generation module 2102 obtains described image acquisition equipment (for example, mobile phone) described
The image information of identification code and the texture is as the anti-counterfeiting mark.
Referring once again to Fig. 3, the anti-counterfeiting mark generating means can also include a sending module 2103, the transmission mould
Block 2103 is for storing the false proof mark data library 110 that the anti-counterfeiting mark is sent to a server 100.
Referring to figure 4., described image acquisition equipment obtains the image including the identification code.
Referring to figure 5., identification code described in above-mentioned image is obtained using image processing techniques (such as: edge detection algorithm)
The image-region at place, specifically, in order to guarantee that the image-region where obtaining the identification code is with uniformity, the present embodiment
The image-region where the identification code is obtained using same image processing techniques.By the image-region where the identification code into
New anti-counterfeiting mark is obtained after row processing.
The following are it is provided in this embodiment it is a kind of handled by image-region after obtain the specific of new anti-counterfeiting mark
Step.
The generation module 2102 adjusts the corresponding anti-counterfeiting mark of different identification code (for example, bar code, two dimensional code etc.)
Size, by the size of the different corresponding anti-counterfeiting marks of identification code carry out unification, to solve different shooting distances, shooting angle
Caused by image-region different problems where the identification code.
Simultaneously, the generation module 2102 also carries out image procossing to the image-region after uniform sizes, specific to scheme
As treatment process are as follows: image-region is first converted to gray level image, then the gray level image after conversion is converted bianry image, by institute
Bianry image is stated as anti-counterfeiting mark new in the present embodiment.Bianry image is converted by the image-region where the identification code
It can reduce the calculation amount in subsequent match calculating, reduce the occupancy to system resource.The two-value obtained after image procossing
Image not only includes the information of former identification code, further includes the information of texture in former identification code overlay area.
The anti-counterfeiting mark can also be marked in the generation module 2102, specifically, different identification codes (ratio
Such as, bar code, two dimensional code etc.) label of corresponding anti-counterfeiting mark is different.
New anti-counterfeiting mark is uploaded onto the server 100 false proof mark data library 110 in store.When client is buying
The region where identification code take pictures by client terminal 200 after to the product and obtains the image including identification code, is passed through
The image-region including the identification code is generated by the way of same as described above, and by the image-region including the identification code
Bianry image is generated as authentication image.
It sends the authentication image in the false proof mark data library 110 and carries out images match.In the matching process,
It is first excluded to mark different anti-counterfeiting mark according to the label of authentication image, by authentication image and with the anti-counterfeiting label of same tag
Knowledge compares.When authentication image is matched with any one anti-counterfeiting mark in false proof mark data library 110, the server 100
It is the information of certified products to user terminal 200 that product, which can be fed back,.Anti-counterfeiting mark in authentication image and false proof mark data library 110
Mismatch when, the server 100 can feed back product be fake and poor products information to user terminal 200.Above-mentioned verification mode because
Using not isolabeling carry out anti-counterfeiting mark rejecting by the way of, it is possible to reduce authentication image in verification process with the anti-counterfeiting mark
The number that anti-counterfeiting mark compares in database 110.On the one hand resource occupation amount is reduced, matched speed is on the other hand improved
Degree.
Since identification code itself has uniqueness, along with the texture on product or packaging with randomness and uniquely
Property, so that superimposed product antiforgerg identification has very strong antiforge function.Even if illegal apprentice can obtain product producer
The production method of the setting principle of identification code, shape of product or packaging.Illegal can not easily produce on foot can make to take
Business device 100 is judged as the anti-counterfeiting mark of certified products.
Referring once again to Fig. 3, in the present embodiment, the generation module 2102 can also include: identification submodule 21021
And computational submodule 21022.
The identification submodule 21021, for identifying the mark from the image information that the acquisition module obtains
Texture in each component part and the identification code of code between each adjacent component part.
It is illustrated below by bar code of identification code, bar code is to use width not equal multiple secret notes and blank
Composition will represent group of the combination of one or more secret note of each number or character as the bar code in bar code
At part.
In the present embodiment, each to obtain bar code by the general image progress image procossing of the bar code to acquisition
Existing texture image between the image of component part and each component part.
The computational submodule 21022, for each component part according to the identification code and positioned at the mark
Texture in code between each adjacent component part carries out that the anti-counterfeiting mark is calculated.
In the present embodiment, anti-counterfeiting mark can be calculated in the computational submodule 21022 in the following manner.
Firstly, the characteristic value that each component part for obtaining the identification code indicates in the identification code.
According to the available mark for obtaining module 2101 and obtaining of the coding rule of the identification code (for example, bar code)
Know the corresponding characteristic value of each component part in code.When the identification code is bar code, each composition portion of the identification code
Dividing corresponding characteristic value is number or character.
In the present embodiment, the anti-counterfeiting mark generating means 210 include a database, are prestored in the database various
Each component part of identification code and corresponding characteristic value, the specific method for obtaining the characteristic value can be with are as follows:
According to the image of each component part of the identification code, inquire whether the database is stored with the identification code
Each component part.
When the database purchase has each component part of the identification code, the identification code is obtained from the database
The corresponding characteristic value of each component part.
When the not stored each component part for having the identification code of the database, default characteristic value is assigned described each
Component part.
In the present embodiment, since the component part of the identification code may be influenced by the texture of its bottom, lead to it
It can not complete to match with component part corresponding in coding rule, each component part can be stored in advance thus to be completed
Corresponding default characteristic value when matching.Wherein for different component parts, its default characteristic value can be different, for example, bar shaped
When the corresponding component part of number " 2 " in code can not identify, its corresponding default characteristic value can be set (for example, letter
"a");When the corresponding component part of number " 5 " in bar code can not identify, its corresponding default characteristic value (ratio can be set
Such as, alphabetical " t ").
Certainly, the component part of the identification code is influenced by the texture of its bottom in order to prevent, in the present embodiment,
First the texture that image procossing removes its bottom can be carried out by the component part to the identification code, image carries out again by treated
Matching.
Then, the texture between each component part of the adjacent identification code is carried out that texture eigenvalue is calculated.
In the present embodiment, the computational submodule 21022 is according to each component part of identification code (for example, bar code)
Between texture the mode of texture eigenvalue is calculated may is that
The texture between adjacent component part is extracted by image procossing, when texture is lines, calculates the item of lines
Number specifically counts the lines that line length is more than preset length, obtains meeting the requirements between adjacent component part
The item number of texture obtains texture eigenvalue according to the item number of the texture.The texture eigenvalue can be the item number of texture
It can be according to the calculated number of item number of texture or corresponding character, for example, when the item number of texture is less than 10,
It can be indicated using 0~9 number, when the item number of texture is greater than 10, can be indicated using letter.
When texture is series of points, texture eigenvalue is calculated according to the density put between adjacent component part, wherein point
Its different corresponding texture eigenvalue of density it is also different.
When texture is pattern, it can be distinguished according to the color information of pattern and generate different texture eigenvalues.
Of course, it should be understood that the computational submodule 21022 of the present embodiment may be used also in addition to the above-mentioned texture type enumerated
To obtain corresponding texture eigenvalue according to other kinds of texture.
Finally, according to the positional relationship of the identification code and texture, by each component part of the identification code described
The characteristic value indicated in identification code is combined with the texture eigenvalue, obtains the anti-counterfeiting mark.
In the present embodiment, the mode that the characteristic value and texture eigenvalue are combined are as follows: by adjacent component part it
Between the corresponding texture eigenvalue of texture be added between the corresponding characteristic value of adjacent component part, form the anti-counterfeiting mark.
Please with reference to Fig. 6~7, below in conjunction with the generation for the anti-counterfeiting mark that figure provides a kind of embodiment of the present embodiment
Mode is illustrated.Please also refer to Fig. 4, it is assumed that bar code 300 is encoded to 978624586.Bar code 300 is printed on product
Or the situation after packaging is referring to figure 5., wherein the white space line between the code clerk 7 and code clerk 8 of bar code 300
Property texture 400 quantity be 2;The linear texture 400 of white space between the code clerk 8 and code clerk 6 of bar code 300
Quantity is 1;The quantity of the linear texture 400 of white space between the code clerk 6 and code clerk 2 of bar code 300 is 3;
The quantity of the linear texture 400 of white space between the code clerk 4 and code clerk 5 of bar code 300 is 4;In bar code 300
Code clerk 5 and code clerk 8 between the linear texture 400 of white space quantity be 2.Using the item number of linear texture as line
The characteristic value of reason and the coded combination of bar code 300, obtaining new anti-counterfeiting mark is 97281632445286.It should be understood that
It is that bar code shown in Fig. 4~Fig. 5 is only illustrated to be illustrated so as to the technical solution to the present embodiment, coding mode
Not necessarily meet the relevant design standard of bar code.
Fig. 8 is please referred to, is the anti-counterfeiting mark for being applied to user terminal 200 shown in Fig. 2 that present pre-ferred embodiments provide
The flow chart of generation method.The method and step of the relevant flow definition of the method can be realized by the processor 113.Below
Detailed process shown in fig. 5 is described in detail.
Step S111 obtains the texture for being located at product or identification code and the identification code overlay area in packaging.
In the present embodiment, the user terminal 200 obtains the mark by control image capture device (camera)
The image information of code and the texture.
Step S112 generates the anti-counterfeiting mark using the texture of the identification code and the identification code overlay area.
Fig. 9 is please referred to, in an embodiment of the present embodiment, the step S112 may include sub-step S1121
And sub-step S1122.
Sub-step S1121 carries out the image information that described image acquisition equipment obtains the identification code and the texture
Image procossing obtains the anti-counterfeiting mark.
Sub-step S1122 sends the anti-counterfeiting mark in the false proof mark data library of a server and stores.
Figure 10 is please referred to, in the another embodiment of the present embodiment, the step S112 may include sub-step
S1123, sub-step S1124 and sub-step S1125.
Sub-step S1123, identified from described image information the identification code each component part and the mark
Texture in code between each adjacent component part.
Sub-step S1124 according to each component part of the identification code and is located at each adjacent in the identification code
Texture between component part carries out that the anti-counterfeiting mark is calculated.
Sub-step S1125 sends the anti-counterfeiting mark in the false proof mark data library of a server and stores.
The concrete mode that the sub-step S1124 obtains anti-counterfeiting mark may is that
Firstly, the characteristic value that each component part for obtaining the identification code indicates in the identification code.
Specifically, according to the image of each component part of the identification code, the image with each component part is searched
The component part of the matched identification code;Upon a match, by the corresponding characteristic value of the component part of the identification code assign with
Matched component part;When mismatching, default characteristic value is assigned to the component part.
Then, the texture between each component part of the adjacent identification code is carried out that texture eigenvalue is calculated.
Finally, according to the positional relationship of the identification code and texture, by each component part of the identification code described
The characteristic value indicated in identification code is combined with the texture eigenvalue, obtains the anti-counterfeiting mark.
In conclusion anti-counterfeiting mark generation method provided in an embodiment of the present invention and device, by by identification code and described
The texture of identification code overlay area is combined as new anti-counterfeiting mark.New anti-counterfeiting mark not only has former identification code only
One information unique information also with texture can effectively prevent other people logical so that new anti-counterfeiting mark security feature is stronger
The mode for crossing simple copy identification code obtains product information.The cost for greatly improving fraud plays the purpose for preventing to fake.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.Apparatus embodiments described above are merely indicative, for example, flow chart and block diagram in attached drawing
Show the apparatus, method, and computer program product of multiple embodiments according to the present invention architectural framework in the cards,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (4)
1. a kind of anti-counterfeiting mark generation method, it is characterised in that:
It controls image capture device and obtains the texture for being located at product or identification code and the identification code overlay area in packaging;
It is located at each adjacent composition from each component part and the identification code for identify in image information the identification code
Texture between part;
Obtain the characteristic value that each component part of the identification code indicates in the identification code;
Texture between each component part of the adjacent identification code is carried out that texture eigenvalue is calculated;
According to the positional relationship of the identification code and texture, by each component part of the identification code in the identification code table
The characteristic value shown is combined with the texture eigenvalue, obtains the anti-counterfeiting mark;
The anti-counterfeiting mark is sent in the false proof mark data library of a server and is stored.
2. anti-counterfeiting mark generation method as described in claim 1, which is characterized in that each group for obtaining the identification code
Include: at the step of characteristic value of the part in the identification code
According to the image of each component part of the identification code, each composition whether database is stored with the identification code is inquired
Part, wherein prestored in the database various identification codes each component part and corresponding characteristic value;
When the database purchase has each component part of the identification code, each of the identification code is obtained from the database
The corresponding characteristic value of a component part;
When the not stored each component part for having the identification code of the database, default characteristic value is assigned to each composition
Part.
3. a kind of anti-counterfeiting mark generating means, which is characterized in that the anti-counterfeiting mark generating means include:
Module is obtained, obtains the identification code being located in product or packaging and identification code covering for controlling image capture device
The texture in region;
Generation module, for the position from each component part and the identification code for identify in image information the identification code
Texture between each adjacent component part;
The generation module includes:
Submodule is identified, for identifying each composition portion of the identification code from the image information that the acquisition module obtains
Point and the identification code in texture between each adjacent component part;
Computational submodule according to each component part of the identification code and is located at each adjacent composition portion in the identification code
/ texture carry out that the anti-counterfeiting mark is calculated;
The anti-counterfeiting mark is calculated in the computational submodule in the following manner:
Obtain the characteristic value that each component part of the identification code indicates in the identification code;
Texture between each component part of the adjacent identification code is carried out that texture eigenvalue is calculated;
According to the positional relationship of the identification code and texture, by each component part of the identification code in the identification code table
The characteristic value shown is combined with the texture eigenvalue, obtains the anti-counterfeiting mark;
Sending module, the false proof mark data library for sending the anti-counterfeiting mark to a server store.
4. anti-counterfeiting mark generating means as claimed in claim 3, which is characterized in that the anti-counterfeiting mark generating means include a number
According to library, each component part and corresponding characteristic value, the computational submodule that various identification codes are prestored in the database are logical
It crosses following manner and the characteristic value is calculated:
According to the image of each component part of the identification code, inquire whether the database is stored with each of the identification code
Component part;
When the database purchase has each component part of the identification code, each of the identification code is obtained from the database
The corresponding characteristic value of a component part;
When the not stored each component part for having the identification code of the database, default characteristic value is assigned to each composition
Part.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610707374.6A CN106295761B (en) | 2016-08-22 | 2016-08-22 | Anti-counterfeiting mark generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610707374.6A CN106295761B (en) | 2016-08-22 | 2016-08-22 | Anti-counterfeiting mark generation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106295761A CN106295761A (en) | 2017-01-04 |
CN106295761B true CN106295761B (en) | 2019-06-18 |
Family
ID=57615523
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610707374.6A Active CN106295761B (en) | 2016-08-22 | 2016-08-22 | Anti-counterfeiting mark generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106295761B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107403216A (en) * | 2017-05-25 | 2017-11-28 | 阿里巴巴集团控股有限公司 | A kind of identification code generation and verification method and device |
CN109635886A (en) * | 2018-11-02 | 2019-04-16 | 立旃(上海)科技有限公司 | Trade mark method and device based on block chain |
CN110060567A (en) * | 2019-03-11 | 2019-07-26 | 王娅雯 | A kind of random structure texture method for anti-counterfeit |
CN110119796B (en) * | 2019-05-07 | 2022-04-05 | Tcl华星光电技术有限公司 | Identification code checking method, checking equipment and device with storage function |
CN113761962B (en) * | 2021-09-13 | 2022-09-16 | 武汉先同科技有限公司 | Visual detection method, system and storage medium for code-giving product |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006252053A (en) * | 2005-03-09 | 2006-09-21 | Nec Commun Syst Ltd | Qr code generation device and generation method, and qr code generation system |
CN103065545A (en) * | 2009-09-27 | 2013-04-24 | 天津黑马行云物联网科技有限公司 | Bar code hiding computer data structure texture anti-fake method |
CN103646333A (en) * | 2013-12-25 | 2014-03-19 | 北京慧眼智行科技有限公司 | Anti-fake detection method, device and system |
JP2015195022A (en) * | 2014-03-24 | 2015-11-05 | 株式会社デンソー | Information code generation device and information code generation program |
CN105224976A (en) * | 2015-08-31 | 2016-01-06 | 杨骏 | A kind of making of anti-counterfeiting mark and recognition methods, Apparatus and system |
-
2016
- 2016-08-22 CN CN201610707374.6A patent/CN106295761B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006252053A (en) * | 2005-03-09 | 2006-09-21 | Nec Commun Syst Ltd | Qr code generation device and generation method, and qr code generation system |
CN103065545A (en) * | 2009-09-27 | 2013-04-24 | 天津黑马行云物联网科技有限公司 | Bar code hiding computer data structure texture anti-fake method |
CN103646333A (en) * | 2013-12-25 | 2014-03-19 | 北京慧眼智行科技有限公司 | Anti-fake detection method, device and system |
JP2015195022A (en) * | 2014-03-24 | 2015-11-05 | 株式会社デンソー | Information code generation device and information code generation program |
CN105224976A (en) * | 2015-08-31 | 2016-01-06 | 杨骏 | A kind of making of anti-counterfeiting mark and recognition methods, Apparatus and system |
Also Published As
Publication number | Publication date |
---|---|
CN106295761A (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106295761B (en) | Anti-counterfeiting mark generation method and device | |
US11429826B2 (en) | Matrix barcode having a plurality of colors, an ultraviolet layer, and infrared layer for conveying spatial information | |
US11798194B2 (en) | System and method using a histogram and colorspaces to generate a matrix barcode having a plurality of colors and an infrared layer | |
US11487960B2 (en) | Matrix barcode having a plurality of colors and an ultraviolet layer for conveying spatial information | |
US11954545B2 (en) | System and method using a histogram and colorspaces to create a matrix barcode | |
US20220130159A1 (en) | System and method for detecting the authenticity of products | |
US10529300B1 (en) | Adaptive image display based on colorspace conversions | |
US10762371B1 (en) | Object detection techniques using colorspace conversions | |
US11816807B2 (en) | Augmented reality system with color-based fiducial marker | |
US11551047B2 (en) | Programmable logic array and colorspace conversions | |
US10068237B2 (en) | Transmit an authentication mark | |
CN107292636A (en) | A kind of commodity counterfeit prevention checking system based on natural biological information | |
CN104766111A (en) | Combined-type anti-counterfeiting mark based on same ID, generating method and device | |
CN102708391A (en) | Anti-counterfeiting label on basis of fractal image and anti-counterfeiting verification method | |
US20150076219A1 (en) | Tactile anti-forgery method using random emboss | |
CN105590227A (en) | Dynamic verification method, apparatus, and system of authenticity of commodity | |
CN104376280B (en) | A kind of image code generation method towards Google glass |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211014 Address after: 610000 No. 2, floor 12, unit 1, building 1, No. 8, Jitai Third Road, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan Patentee after: Chengdu zero one matrix Technology Co.,Ltd. Address before: 610000 room 2, floor 14, unit 3, building 1, No. 119, Jinli West Road, Qingyang District, Chengdu, Sichuan Patentee before: Pi Yongcai |
|
TR01 | Transfer of patent right |