CN110428264A - Fake method, device, equipment and medium are tested in identification based on dot matrix screen antifalsification label - Google Patents
Fake method, device, equipment and medium are tested in identification based on dot matrix screen antifalsification label Download PDFInfo
- Publication number
- CN110428264A CN110428264A CN201910663920.4A CN201910663920A CN110428264A CN 110428264 A CN110428264 A CN 110428264A CN 201910663920 A CN201910663920 A CN 201910663920A CN 110428264 A CN110428264 A CN 110428264A
- Authority
- CN
- China
- Prior art keywords
- dot matrix
- matrix screen
- antifalsification label
- fake
- pseudo
- 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
Links
- 239000011159 matrix material Substances 0.000 title claims abstract description 154
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000012360 testing method Methods 0.000 claims abstract description 87
- 238000003860 storage Methods 0.000 claims abstract description 15
- 230000009466 transformation Effects 0.000 claims description 14
- 238000010200 validation analysis Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 10
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 claims description 9
- 238000012937 correction Methods 0.000 claims description 4
- 238000012216 screening Methods 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 6
- 230000015654 memory Effects 0.000 description 16
- 230000008859 change Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000003708 edge detection Methods 0.000 description 4
- 241000271566 Aves Species 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 238000003709 image segmentation Methods 0.000 description 2
- 241000287828 Gallus gallus Species 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000013095 identification testing Methods 0.000 description 1
- 238000003475 lamination Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0022—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
- G06K17/0025—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/018—Certifying business or products
- G06Q30/0185—Product, service or business identity fraud
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- General Engineering & Computer Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Computer Networks & Wireless Communication (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Finance (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
The invention discloses a kind of identifications based on dot matrix screen antifalsification label to test fake method, it is related to field of anti-counterfeit technology, dynamic for solving dot matrix screen antifalsification label tests puppet, method includes the following steps: obtaining dot matrix screen antifalsification label image, identifies and upload the bar code information in the dot matrix screen antifalsification label image;It identifies that the dot matrix screen antifalsification label image obtains target sequence code, uploads the target sequence code and carry out testing pseudo- comparison;It receives and shows and test pseudo- comparison result.The invention also discloses a kind of identifications based on dot matrix screen antifalsification label to test pseudo-device, electronic equipment and computer storage medium.The present invention is identified to obtain sequence code by the random figure for showing dot matrix screen antifalsification label, and carries out testing pseudo- comparison using sequence code, and then puppet is tested in the identification for completing dot matrix screen antifalsification label.
Description
Technical field
The present invention relates to a kind of field of anti-counterfeit technology more particularly to a kind of identification based on dot matrix screen antifalsification label to test puppet side
Method, device, equipment and medium.
Background technique
Existing anti-counterfeiting technology mostly uses printing mark, the form of pattern to carry out anti-fake, the anti-fake mark or anti-fake provided
Code reproducibility is higher, and antifalse effect is poor, and consumer is caused to be very difficult to the true and false of verifying product.And criminal is using existing
The defect of anti-counterfeiting technology goes production fake products to seek private interests, and endangers consumer's interests, causes seriously to social economic order
Adverse effect.In such a case, the reproducibility defect of existing anti-counterfeiting technology can be overcome using the anti-counterfeiting technology of dynamically changeable,
Have the advantages that antifalse effect is good, high reliablity, therefore the anti-fake mark of dynamically changeable is identified and verified and is able to verify that
The true and false of product, or even can also further trace to the source product after the completion of verifying, there is realistic meaning, therefore for dynamic
Variable antifalsification label needs to propose to test fake method with the identification that antifalsification label matches.
Summary of the invention
For overcome the deficiencies in the prior art, one of the objects of the present invention is to provide one kind to be based on dot matrix screen antifalsification label
Identification test fake method, by the dynamic random figure shown on dot matrix screen antifalsification label identified and compared completion produce
Product test pseudoprocess, so as to preferably safeguard consumer's interests.
An object of the present invention is implemented with the following technical solutions:
Fake method is tested in a kind of identification based on dot matrix screen antifalsification label, comprising the following steps:
Dot matrix screen antifalsification label image is obtained, identifies and uploads the bar code information in the dot matrix screen antifalsification label image;
It identifies that the dot matrix screen antifalsification label image obtains target sequence code, uploads the target sequence code and carry out testing pseudo- ratio
It is right;
It receives and shows and test pseudo- comparison result.
Further, the seed information of dot matrix screen antifalsification label is defined by server, the seed information includes: dot matrix
Shield antifalsification label ID and the associated dynamic password algorithm of the dot matrix screen antifalsification label ID;The dot matrix screen antifalsification label ID makees
It is stored in bar code for the bar code information, after server receives the bar code information, institute is inquired by the bar code information
Dynamic password algorithm associated by bar code information is stated, and corresponding dynamic using dynamic password algorithm calculating present system time
The dynamic password is tested the validation template of pseudo- comparison by state password as described in.
Further, it is compared successfully if testing puppet, tests puppet and pass through, do not passed through conversely, testing puppet;
If test it is pseudo- compares successfully, test puppet and pass through, and shown according to bar code information inquiry product information,
Do not pass through conversely, testing puppet.
Further, the target sequence code in the dot matrix screen antifalsification label image is identified according to sequence code recognizer,
The sequence code recognizer the following steps are included:
Dot matrix screen antifalsification label image is obtained, the dot matrix screen antifalsification label image is pre-processed;
From the pretreated anti-fake region of dot matrix screen antifalsification label extracting target from images;
Thresholding is carried out to the anti-fake region of the target to handle to obtain binary image, and the binary image is divided into
Several piecemeals calculate the accounting of foreground pixel in each piecemeal, if the accounting is greater than or equal to threshold value, the value of piecemeal is set
It is 0, otherwise is set to 1;The value of several piecemeals is combined into binary number in order, binary number is the target sequence
Code.
Further, specific from the pretreated anti-fake region of dot matrix screen antifalsification label extracting target from images
Step are as follows:
The anchor point for detecting bar code determines preliminary anti-fake region according to the anchor point of the bar code;
The preliminary anti-fake region is corrected by affine transformation;
Contours extract is carried out to the preliminary anti-fake region after correction, and is screened according to the size characteristic of standard dot matrix screen
The preliminary anti-fake region, obtains dot matrix screen region, is corrected by projective transformation to the dot matrix screen region, obtains target
Anti-fake region.
Further, it is determined that the step of preliminary anti-fake region are as follows: utilize bar code graphics feature, detect the doubtful of bar code
Anchor point obtains doubtful anti-fake area by doubtful anchor point described in permutation and combination according to the positional relationship of bar code and anti-fake region
Domain, and preliminary anti-fake region is extracted from the doubtful anti-fake region according to label characteristics, it is corrected by affine transformation described first
Walk anti-fake region.
Further, it after dividing the anti-fake region of target using FCN model, then carries out thresholding and handles to obtain binaryzation
Image.
The second object of the present invention is to provide a kind of identification based on dot matrix screen antifalsification label and tests pseudo-device, to dot matrix
The random figure that generates is identified and is compared in screen antifalsification label, and then that completes dot matrix screen antifalsification label tests puppet.
The second object of the present invention is implemented with the following technical solutions:
Pseudo-device is tested in a kind of identification based on dot matrix screen antifalsification label comprising:
Image collection module, for obtaining dot matrix screen antifalsification label image, identifying and uploading the dot matrix screen antifalsification label
Bar code information in image;
Sequence code identification module, the dot matrix screen antifalsification label image obtains target sequence code for identification, described in upload
Target sequence code carries out testing pseudo- comparison;
Result display module tests pseudo- comparison result for receiving and showing.
The third object of the present invention is to provide the electronic equipment for executing one of goal of the invention comprising processor, storage
Medium and computer program, the computer program are stored in storage medium, and the computer program is executed by processor
Fake method is tested in the above-mentioned identification based on dot matrix screen antifalsification label of Shi Shixian.
The fourth object of the present invention is to provide the computer readable storage medium of one of storage goal of the invention, store thereon
There is computer program, the computer program realizes that the above-mentioned identification based on dot matrix screen antifalsification label is tested when being executed by processor
Fake method.
Compared with prior art, the beneficial effects of the present invention are:
The present invention is identified by the dynamic random figure to dot matrix screen antifalsification label, obtains characterizing the dynamic random figure
The sequence code of shape test pseudo- comparison using the sequence code, and that completes dot matrix screen antifalsification label tests puppet, to realize to using this
The commodity of dot matrix screen antifalsification label carry out testing puppet, to the comparison of sequence code using dynamic password algorithm generate dynamic authentication template into
Row tests pseudo- comparison, i.e., is that sequence code carries out testing pseudo- comparison by the dynamic authentication template switch, compared with static antifalsification label, the point
Battle array screen antifalsification label has stronger non-reproduction, to have better antifalse effect.
Detailed description of the invention
Fig. 1 is that the present invention is based on the flow charts that fake method is tested in the identification of dot matrix screen antifalsification label;
Fig. 2 is to test pseudo- schematic diagram based on dot matrix screen antifalsification label in embodiment 1;
Fig. 3 is the flow chart of sequence code recognizer in embodiment 2;
Fig. 4 is that the structural block diagram of pseudo-device is tested in the identification based on dot matrix screen antifalsification label of embodiment 3;
Fig. 5 is the structural block diagram of the electronic equipment of embodiment 4.
Specific embodiment
Below with reference to attached drawing, the present invention is described in more detail, it should be noted that lower reference attached drawing is to this
The description that invention carries out is only illustrative, and not restrictive.It can be combined with each other between each difference embodiment, with
Constitute the other embodiments not shown in the following description.
Embodiment 1
Embodiment 1 provides a kind of identification based on dot matrix screen antifalsification label and tests fake method, including image recognition and tests puppet
Two parts are compared, the anti-fake region of dot matrix screen antifalsification label are identified to obtain the sequence code of characterization random figure, after being
The pseudoprocess of testing of continuous dot matrix screen antifalsification label provides comparison data, tests in pseudo- comparison process, is carried out using dynamic authentication template
Synchronised clock compares, and realizes that dynamic tests puppet;Random figure carries out dynamic change under different clocks data, has randomness, because
This has better antifalse effect with non-reproduction, using the dot matrix screen antifalsification label of Dynamically Announce random figure, is based on
Such dot matrix screen antifalsification label introduces one kind and tests fake method, with for users to use.
As shown in Figure 1, fake method is tested in the identification based on dot matrix screen antifalsification label, step includes:
Dot matrix screen antifalsification label image is obtained, identifies and uploads the bar code information in the dot matrix screen antifalsification label image;
It identifies that the dot matrix screen antifalsification label image obtains target sequence code, uploads the target sequence code and carry out testing pseudo- ratio
It is right;
It receives and shows and test pseudo- comparison result.
This is tested fake method and is applied to test pseudo- end, this is tested pseudo- end and is supplied to user's use, when user needs to test commodity
When pseudo-, pseudo- end is tested by this and acquires dot matrix screen antifalsification label image, it is anti-to dot matrix screen by testing such as ZBAR sdk in pseudo- end
Bar code in pseudo label image is identified, bar code information is obtained, which includes but is not limited to that two dimensional code or bar code are (one-dimensional
Code), as long as can store information and can by the pattern identification code that terminal SDK is identified, the present embodiment by taking two dimensional code as an example, lead to
It crosses and tests the ZBar Sdk at pseudo- end two dimensional code is identified, obtain the data stored in the two dimensional code, i.e. two-dimensional barcode information, upload
To server, server calls corresponding sequence code recognizer to be sent to and tests puppet two-dimensional barcode information according to two-dimensional barcode information
End, the sequence code recognizer are pre-defined and are stored in the server, are tested pseudo- end and are identified using the sequence code recognizer and are prevented
The target sequence code recognized is sent to server and carries out true and false judgement by the target sequence code in pseudo label image, thus real
The true and false judgement of existing dot matrix screen antifalsification label is tested pseudo- end and is received and tests pseudo- result and shown, above-mentioned to test pseudo- end can be to test puppet
Small routine, public platform test pseudo- APP, this tests pseudo- end can be schemed in mobile phone, tablet computer, laptop etc. by camera realization
It is used on the intelligent terminal of picture acquisition, puppet is tested to dot matrix screen antifalsification label to realize, using small routine as the dot matrix for testing pseudo- end
It is as shown in Figure 2 that pseudo- principle is tested in the identification of screen antifalsification label.
Preferably, the seed information of dot matrix screen antifalsification label is defined by server, the seed information includes: dot matrix screen
Antifalsification label ID and the associated dynamic password algorithm of the dot matrix screen antifalsification label ID;The dot matrix screen antifalsification label ID conduct
The bar code information is stored in bar code, after server receives the bar code information, by described in bar code information inquiry
Dynamic password algorithm associated by bar code information, and utilize the dynamic mouth of dynamic password algorithm calculating present system time
It enables, which is tested to the validation template of pseudo- comparison as described in.
Wherein, dynamic password algorithm can using national secret algorithm, voluntarily write or any dynamic password generating algorithm, and
Dynamic password algorithm can be one kind, be also possible to a variety of be combined.The dynamic password algorithm and dot matrix screen antifalsification label ID
After association, with dot matrix screen antifalsification label ID together as seed information, download in corresponding dot matrix screen antifalsification label, while on
It passes in server and is saved, the present invention is it is emphasised that the dynamic password algorithm that dot matrix screen antifalsification label uses is deposited with server
The dynamic password algorithm of storage is consistent, and when downloading and uploading seed information, server and dot matrix screen antifalsification label when
Clock data be it is synchronous, i.e., dot matrix screen antifalsification label and server under the same time according to dynamic password algorithm generate dynamic
Password is consistent.The dynamic password of dynamic password algorithm is that random dynamic mouth is generated by Random class in the present embodiment
It enables, preferably 6 bit digital passwords, the dynamic password are shown as the random figure being made of pixel on dot matrix screen, therefore, tool
It is (raw according to dynamic password algorithm to the random figure shown on the dot matrix screen antifalsification label under the same time when body is implemented
At 6 bit digital passwords obtain) identified, i.e., the random figure is identified using sequence code recognizer and is characterized
The target sequence code of the random figure, and the target sequence code is converted into 6 bit digital passwords by encoding, by 6 bit digital
Password is compared with server in the 6 bit digital passwords (validation template) that the same time generates, available to test pseudo- result.
In dynamic password algorithm, clock data is as calculating the factor, the corresponding dynamic of each dot matrix screen antifalsification label ID
For password algorithm when clock data constantly changes, the corresponding dot matrix screen antifalsification label of dot matrix screen antifalsification label ID and server are equal
Dynamic password different and with one-time validity is generated, under the same clock data, dot matrix screen antifalsification label is generated
The dynamic password that generates of corresponding with the dot matrix screen antifalsification label ID of the server by utilizing dynamic password algorithm of dynamic password be
It is consistent, there is synchronism, therefore in the present embodiment, dynamic password algorithm described in server by utilizing calculates present system time
Corresponding dynamic password, using the dynamic password as validation template, which obtains with identification dot matrix screen antifalsification label image
To target sequence code be dynamic change, the dynamic password obtained after the target sequence code real-time coding with and verify mould
The pseudo- comparison process of testing of plate as dynamically tests puppet.Wherein, the dynamic mouth that dot matrix screen antifalsification label is generated according to dynamic password algorithm
Enable on dot matrix screen that display pixel point is to constitute random figure, therefore to the target sequence code that the random figure is identified
Also according to time dynamic.
Preferably, it if the sequence code of the target sequence code and validation template that recognize compares success, tests puppet and passes through, instead
It, tests puppet and does not pass through;
Alternatively, testing puppet if comparing successfully and passing through, and product information is inquired according to the bar code information and is shown, instead
It, tests puppet and does not pass through.
It tests the pseudo- comparison result passed through or tests pseudo- unacceptable comparison result and shown testing pseudo- end, so that user slaps
It holds the identification based on dot matrix screen antifalsification label and tests pseudo- as a result, so that the true and false of commodity is judged, when the pseudo- result passed through is tested in display
At the same time it can also show the product information inquired together, the merchandise news for grasping commodity is enabled a user to, realizes commodity
It traces to the source.
The dot matrix screen antifalsification label that the present embodiment refers to can be used for birds, the built-in pedometer in dot matrix screen antifalsification label,
Exercise data in birds developmental process can be recorded, be tested using the identification of the invention based on dot matrix screen antifalsification label
Fake method carries out dot matrix screen antifalsification label to test puppet, then inquires the exercise data of dot matrix screen antifalsification label record,
It traces to the source to realize the puppet of testing of birds, especially suitable for the chicken put in a suitable place to breed.
Embodiment 2
The difference of the present embodiment and above-described embodiment is, identifies the dot matrix screen antifalsification label figure according to sequence code algorithm
As in target sequence code, the sequence code recognizer is introduced, as shown in figure 3, itself the following steps are included:
Dot matrix screen antifalsification label image is obtained, the dot matrix screen antifalsification label image is pre-processed;
From the pretreated anti-fake region of dot matrix screen antifalsification label extracting target from images;
Thresholding is carried out to the anti-fake region of the target to handle to obtain binary image, and the binary image is divided into
8 × 8 piecemeal, these piecemeals it is equal in magnitude, these 8 × 8 piecemeals can not also wait in other embodiments certainly, calculate
The value of piecemeal is set to 0 if the accounting is greater than or equal to threshold value by the accounting of foreground pixel in each piecemeal, otherwise is set to
1;The value of 8 × 8 piecemeal is combined into binary number in order, the binary number is sequence code to get to 64 0-1 words
This 64 0-1 characters are formed 6 bit digitals by coding by symbol, the server that this 6 bit digital and above-described embodiment are referred to according to
The dynamic password (i.e. validation template, the dynamic password are also 6 bit digitals) that dynamic password algorithm generates carries out testing pseudo- comparison.
8 × 8 dot matrix screen that the present embodiment uses, so there is 64 pixels, so binary image is divided into 8 ×
8 piecemeal.If in other embodiments, the dot matrix screen of selection is other sizes, that is just divided into the piecemeal of dimension.
In the present embodiment, the dot matrix screen antifalsification label image is subjected to pretreated operation are as follows: by dot matrix screen anti-counterfeiting label
Label image is converted to gray level image using MATLAB function rgb2gray ().To the pretreated dot matrix screen antifalsification label
Image is handled to extract the anti-fake region of target, and the anti-fake region of target is the region for including dot matrix screen.
Preferably, specific to walk from the pretreated anti-fake region of dot matrix screen antifalsification label extracting target from images
Suddenly are as follows:
The anchor point for detecting bar code determines preliminary anti-fake region according to the anchor point of the bar code;
The preliminary anti-fake region is corrected by affine transformation;
Contours extract is carried out to the preliminary anti-fake region after correction, and is screened according to the size characteristic of standard dot matrix screen
The preliminary anti-fake region, obtains dot matrix screen region, is corrected by projective transformation to the dot matrix screen region, obtains target
Anti-fake region.
And determine the specific steps in the preliminary anti-fake region are as follows: utilize bar code graphics feature, detect the doubtful fixed of bar code
Site obtains doubtful anti-fake region by doubtful anchor point described in permutation and combination according to the positional relationship of bar code and anti-fake region,
And preliminary anti-fake region is extracted from the doubtful anti-fake region according to label characteristics, it is corrected by affine transformation described preliminary anti-
Pseudo- region.
The present embodiment is because of the principle of 3 points of composition isosceles right triangles, and defining Bar code positioning point is three, but basis
The doubtful anchor point that bar code graphics feature detects possibly more than three, therefore by these doubtful anchor points with three points be one group
All possible situation combination is obtained by permutation and combination, further according to the positional relationship of bar code and dot matrix screen antifalsification label, is obtained
It is doubtful anti-fake region that these, which combine corresponding anti-fake region, further according to dot matrix screen label characteristics from above-mentioned doubtful anti-fake region
Extract preliminary anti-fake region.
The preliminary anti-fake region is corrected by affine transformation, i.e., by preliminary anti-fake region interception at the rectangle of standard.
Preferably, contours extract is carried out to the preliminary anti-fake region after correction, using MATLAB edge detection operator
It realizes, Sobel operator, Canny operator, Prewitt operator, Roberts operator, Laplacian can be selected in edge detection algorithm
Operator etc..
By taking Canny operator as an example, to anti-fake region carry out edge detection the step of are as follows:
Step1: Gaussian filter smoothed image is used;
Step2: amplitude and the direction of gradient are calculated with the finite difference of single order local derviation;
Step3: non-maxima suppression is carried out to gradient magnitude;
Step4: edge is detected and connected with dual threashold value-based algorithm.
The profile (edge) in anti-fake region is extracted using edge detection algorithm, utilizes bwlabel () letter on this basis
Several pairs of connected regions are marked, and realize the connected domain for searching the anti-fake region.
The connected domain in the anti-fake region is found, and the connection is screened according to the size characteristic of mark standard dot matrix screen
Domain obtains dot matrix screen region, then is corrected by projective transformation to the dot matrix screen region, obtains the anti-fake region of target.This
Affine transformation and projective transformation in example are to obtain standard rectangular region, to realize the mesh for intercepting corresponding anti-fake region
, projective transformation can be understood as it is affine etc. be perspective transform special shape, the two is image processing method formula, can be used
The respective function of MATLAB is realized, is the common knowledge of technical field, is not carried out herein to the concrete operations of two kinds of mapping modes
It repeats.
Preferably, divide the anti-fake region of target using FCN model, threshold value is carried out to the anti-fake region after segmentation
Change handles to obtain binary image, and the pixel value for belonging to foreground is 0, and the pixel value for belonging to background colour is 1, then by binaryzation
Image is divided into 8 × 8 piecemeal, and calculates each 0 pixel of small lattice (foreground pixel value) accounting, and the accounting is greater than or equal to threshold
Value, then be denoted as 0 for the small case marker, otherwise label is.The threshold value pre-defines according to the actual situation, does not take specifically to it herein
Value is defined.And simplest threshold definitions are the mean values for being rounded width picture, if some foreground pixel value accounting is apparent
Lower than this average value, then it is labeled as 1, otherwise label is.
The above-mentioned FCN model referred to, also referred to as full convolutional network are a kind of image procossing modes pixel-based, can
It automatically, in the present embodiment can be with FCN model from marking off subject area in image and identifying the classification in subject area
Mark off background area and the foreground area being made of pixel (random figure) in dot matrix screen.FCN model can receive arbitrarily
The input picture of size is sampled using feature map of the warp lamination to the last one convolutional layer, make it be restored to
The identical size of input picture so as to generate a prediction to each pixel, while remaining in original input picture
Spatial information, finally classified pixel-by-pixel on the characteristic pattern of up-sampling, realize the purpose of region division.
Because FCN model is the conventional model for image segmentation, therefore to the process for carrying out image segmentation using FCN model
It repeats no more.
Embodiment 3
It is corresponding that fake method is tested in the identification based on dot matrix screen antifalsification label that embodiment 3 discloses a kind of corresponding above-described embodiment
Device, be above-described embodiment virtual device structure, as shown in figure 4, puppet is tested in a kind of identification based on dot matrix screen antifalsification label
Device comprising:
Image collection module 410, for obtaining dot matrix screen antifalsification label image, identifying and uploading the dot matrix screen anti-counterfeiting label
Sign the bar code information in image;
Sequence code identification module 420, the dot matrix screen antifalsification label image obtains target sequence code for identification, uploads institute
Target sequence code is stated to carry out testing pseudo- comparison;
Result display module 430 tests pseudo- comparison result for receiving and showing.
Preferably, identify the target sequence code in the dot matrix screen antifalsification label image using sequence code recognizer, tool
Body includes the following steps:
Dot matrix screen antifalsification label image is obtained, the dot matrix screen antifalsification label image is pre-processed;
From the pretreated anti-fake region of dot matrix screen antifalsification label extracting target from images;
Thresholding is carried out to the anti-fake region of the target to handle to obtain binary image, and the binary image is divided into
8 × 8 piecemeal calculates the accounting of foreground pixel in each piecemeal, if the accounting is greater than or equal to threshold value, by the value of piecemeal
It is set to 0, otherwise is set to 1;The value of 8 × 8 piecemeal is combined into binary number in order, the binary number is sequence code.
Preferably, the comparison of the target sequence code and validation template can be carried out testing pseudo- end, can also be in server
It carries out, obtained comparison result is shown testing pseudo- end.
Validation template in this example is dynamic authentication template, which is server end to be currently the preceding time to be
The factor is calculated, the dynamic password generated using dynamic password algorithm.The dynamic password algorithm is applied to dot matrix screen anti-counterfeiting label simultaneously
Label, and server is synchronous with the clock of dot matrix screen antifalsification label, therefore at the same time, server generates anti-fake with dot matrix screen
The dynamic password that label generates is consistent (dynamic password is all in accordance with time data dynamic change), respectively by dynamic password be converted to
Machine figure, and random figure is identified using sequence code recognizer to obtain sequence code, the sequence code that server obtains is made
Compared for validation template and the obtained target sequence code of identification dot matrix screen antifalsification label image, accurately tested it is pseudo- as a result, from
And it realizes dynamic anti-fake and tests puppet.
Preferably, it if the sequence code of the target sequence code and validation template that recognize compares success, tests puppet and passes through, instead
It, tests puppet and does not pass through;
Alternatively, testing puppet if comparing successfully and passing through, and product information is inquired according to the bar code information and is shown, instead
It, tests puppet and does not pass through.
Embodiment 4
Fig. 5 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention 4 provides, as shown in figure 5, the electronic equipment
Including processor 510, memory 520, input unit 530 and output device 540;The quantity of processor 510 in computer equipment
It can be one or more, in Fig. 5 by taking a processor 510 as an example;It is processor 510, memory 520 in electronic equipment, defeated
Entering device 530 can be connected with output device 540 by bus or other modes, in Fig. 5 for being connected by bus.
Memory 520 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, as the identification based on dot matrix screen antifalsification label in the embodiment of the present invention test the corresponding program instruction of fake method/
Module is (for example, image collection module 410, sequence code that the identification based on dot matrix screen antifalsification label is tested in fake method device identify
Module 420 and test pseudo- comparison module 430).Processor 510 by operation be stored in memory 520 software program, instruction with
And module, thereby executing the various function application and data processing of electronic equipment, i.e. realization above-described embodiment 1 and embodiment 2
The identification based on dot matrix screen antifalsification label test fake method.
Memory 520 can mainly include storing program area and storage data area, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This
Outside, memory 520 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 520 can be into one
Step includes the memory remotely located relative to processor 510, these remote memories can be set by network connection to electronics
It is standby.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 530 can be used for receiving the image data etc. of input.Output device 540 may include that the displays such as display screen are set
It is standby, it can be used for showing and test pseudo- result and result of tracing to the source.
Embodiment 5
The embodiment of the present invention 5 also provides a kind of storage medium comprising computer executable instructions, and the computer can be held
Row instruction tests fake method, this method packet for executing the identification based on dot matrix screen antifalsification label when being executed by computer processor
It includes:
Dot matrix screen antifalsification label image is obtained, identifies and uploads the bar code information in the dot matrix screen antifalsification label image;
It identifies that the dot matrix screen antifalsification label image obtains target sequence code, uploads the target sequence code and carry out testing pseudo- ratio
It is right;
It receives and shows and test pseudo- comparison result.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above can also be performed provided by any embodiment of the invention based on dot matrix
The relevant operation in fake method is tested in the identification of screen antifalsification label.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions use so that an electronic equipment
(can be mobile phone, personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
It is worth noting that, the above-mentioned identification based on dot matrix screen antifalsification label is tested in the embodiment of pseudo-device, it is included
Each unit and module are only divided according to the functional logic, but are not limited to the above division, as long as can be realized
Corresponding function;In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, it is not limited to this
The protection scope of invention.
It will be apparent to those skilled in the art that can make various other according to the above description of the technical scheme and ideas
Corresponding change and deformation, and all these changes and deformation all should belong to the protection scope of the claims in the present invention
Within.
Claims (10)
1. fake method is tested in a kind of identification based on dot matrix screen antifalsification label, which is characterized in that its step includes:
Dot matrix screen antifalsification label image is obtained, identifies and uploads the bar code information in the dot matrix screen antifalsification label image;
It identifies that the dot matrix screen antifalsification label image obtains target sequence code, uploads the target sequence code and carry out testing pseudo- comparison;
It receives and shows and test pseudo- comparison result.
2. fake method is tested in the identification as described in claim 1 based on dot matrix screen antifalsification label, which is characterized in that pass through server
The seed information of dot matrix screen antifalsification label is defined, the seed information includes: dot matrix screen antifalsification label ID, prevented with the dot matrix screen
The associated dynamic password algorithm of pseudo label ID;The dot matrix screen antifalsification label ID is stored in bar code as the bar code information,
After server receives the bar code information, dynamic password associated by the bar code information is inquired by the bar code information and is calculated
Method, and the corresponding dynamic password of present system time is calculated using the dynamic password algorithm, using the dynamic password as institute
State the validation template for testing pseudo- comparison.
3. fake method is tested in the identification as claimed in claim 1 or 2 based on dot matrix screen antifalsification label, which is characterized in that if testing puppet
It compares successfully, then tests puppet and pass through, do not pass through conversely, testing puppet;
If test it is pseudo- compares successfully, test puppet and pass through, and shown according to bar code information inquiry product information, instead
It, tests puppet and does not pass through.
4. fake method is tested in the identification as claimed in claim 1 or 2 based on dot matrix screen antifalsification label, which is characterized in that according to sequence
Column code recognizer identifies the target sequence code in the dot matrix screen antifalsification label image, the sequence code recognizer include with
Lower step:
Dot matrix screen antifalsification label image is obtained, the dot matrix screen antifalsification label image is pre-processed;
From the pretreated anti-fake region of dot matrix screen antifalsification label extracting target from images;
Thresholding is carried out to the anti-fake region of the target to handle to obtain binary image, the binary image is divided into several
Piecemeal calculates the accounting of foreground pixel in each piecemeal, if the accounting is greater than or equal to threshold value, the value of piecemeal is set to 0,
Otherwise it is set to 1;The value of several piecemeals is combined into binary number in order, the binary number is the target sequence
Code.
5. fake method is tested in the identification as claimed in claim 4 based on dot matrix screen antifalsification label, which is characterized in that after pretreatment
The anti-fake region of dot matrix screen antifalsification label extracting target from images, the specific steps are that:
The anchor point for detecting bar code determines preliminary anti-fake region according to the anchor point of the bar code;
The preliminary anti-fake region is corrected by affine transformation;
Contours extract is carried out to the preliminary anti-fake region after correction, and according to the screening of the size characteristic of standard dot matrix screen
Preliminary anti-fake region, obtains dot matrix screen region, is corrected by projective transformation to the dot matrix screen region, it is anti-fake to obtain target
Region.
6. fake method is tested in the identification based on dot matrix screen antifalsification label stated such as claim 5, which is characterized in that determine described preliminary
The step of anti-fake region are as follows: utilize bar code graphics feature, the doubtful anchor point of bar code is detected, according to the position of bar code and anti-fake region
Relationship is set, doubtful anti-fake region is obtained by doubtful anchor point described in permutation and combination, and according to label characteristics from described doubtful anti-
Preliminary anti-fake region is extracted in pseudo- region, and the preliminary anti-fake region is corrected by affine transformation.
7. fake method is tested in the identification as claimed in claim 4 based on dot matrix screen antifalsification label, which is characterized in that utilize FCN mould
After type divides the anti-fake region of target, then carries out thresholding and handle to obtain binary image.
8. pseudo-device is tested in a kind of identification based on dot matrix screen antifalsification label, characterized in that it comprises:
Image collection module, for obtaining dot matrix screen antifalsification label image, identifying and uploading the dot matrix screen antifalsification label image
In bar code information;
Sequence code identification module, the dot matrix screen antifalsification label image obtains target sequence code for identification, uploads the target
Sequence code carries out testing pseudo- comparison;
Result display module tests pseudo- comparison result for receiving and showing.
9. a kind of electronic equipment comprising processor, storage medium and computer program, the computer program are stored in
In storage media, which is characterized in that realize that claim 1 to 7 is described in any item when the computer program is executed by processor
Fake method is tested in identification based on dot matrix screen antifalsification label.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
Realize that fake method is tested in the described in any item identifications based on dot matrix screen antifalsification label of claim 1 to 7 when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910663920.4A CN110428264A (en) | 2019-07-22 | 2019-07-22 | Fake method, device, equipment and medium are tested in identification based on dot matrix screen antifalsification label |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910663920.4A CN110428264A (en) | 2019-07-22 | 2019-07-22 | Fake method, device, equipment and medium are tested in identification based on dot matrix screen antifalsification label |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110428264A true CN110428264A (en) | 2019-11-08 |
Family
ID=68411800
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910663920.4A Pending CN110428264A (en) | 2019-07-22 | 2019-07-22 | Fake method, device, equipment and medium are tested in identification based on dot matrix screen antifalsification label |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110428264A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113435219A (en) * | 2021-06-25 | 2021-09-24 | 上海中商网络股份有限公司 | Anti-counterfeiting detection method and device, electronic equipment and storage medium |
CN111553317B (en) * | 2020-05-14 | 2023-08-08 | 北京惠朗时代科技有限公司 | Anti-fake code acquisition method and device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104283690A (en) * | 2014-10-31 | 2015-01-14 | 杭州沃朴物联科技有限公司 | System and method for verifying validity of clock synchronization type dynamic password anti-counterfeit label in real time |
WO2016035012A1 (en) * | 2014-09-02 | 2016-03-10 | DIGICANDO S.r.l. | Robust anti-counterfeit method with dynamic codes and corresponding system |
CN105426944A (en) * | 2015-11-17 | 2016-03-23 | 立德高科(北京)数码科技有限责任公司 | Square lattice anti-counterfeit label group, and method and system for reading square lattice anti-counterfeit label group |
CN105913103A (en) * | 2016-04-08 | 2016-08-31 | 浙江大学 | Dot matrix anti-counterfeiting code graph and identification method therefor |
CN206162622U (en) * | 2016-09-05 | 2017-05-10 | 深圳正品网信息科技有限公司 | Anti -counterfeiting device |
CN106991460A (en) * | 2017-01-23 | 2017-07-28 | 中山大学 | A kind of quick detection and localization algorithm of QR codes |
-
2019
- 2019-07-22 CN CN201910663920.4A patent/CN110428264A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016035012A1 (en) * | 2014-09-02 | 2016-03-10 | DIGICANDO S.r.l. | Robust anti-counterfeit method with dynamic codes and corresponding system |
CN104283690A (en) * | 2014-10-31 | 2015-01-14 | 杭州沃朴物联科技有限公司 | System and method for verifying validity of clock synchronization type dynamic password anti-counterfeit label in real time |
CN105426944A (en) * | 2015-11-17 | 2016-03-23 | 立德高科(北京)数码科技有限责任公司 | Square lattice anti-counterfeit label group, and method and system for reading square lattice anti-counterfeit label group |
CN105913103A (en) * | 2016-04-08 | 2016-08-31 | 浙江大学 | Dot matrix anti-counterfeiting code graph and identification method therefor |
CN206162622U (en) * | 2016-09-05 | 2017-05-10 | 深圳正品网信息科技有限公司 | Anti -counterfeiting device |
CN106991460A (en) * | 2017-01-23 | 2017-07-28 | 中山大学 | A kind of quick detection and localization algorithm of QR codes |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111553317B (en) * | 2020-05-14 | 2023-08-08 | 北京惠朗时代科技有限公司 | Anti-fake code acquisition method and device, computer equipment and storage medium |
CN113435219A (en) * | 2021-06-25 | 2021-09-24 | 上海中商网络股份有限公司 | Anti-counterfeiting detection method and device, electronic equipment and storage medium |
CN113435219B (en) * | 2021-06-25 | 2023-04-07 | 上海中商网络股份有限公司 | Anti-counterfeiting detection method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10635946B2 (en) | Eyeglass positioning method, apparatus and storage medium | |
WO2020098250A1 (en) | Character recognition method, server, and computer readable storage medium | |
CN107944450B (en) | License plate recognition method and device | |
CN108875731B (en) | Target identification method, device, system and storage medium | |
CN107911753A (en) | Method and apparatus for adding digital watermarking in video | |
CN104217202A (en) | Method, apparatus and system for recognizing information | |
CN104268498A (en) | Two-dimension code recognition method and terminal | |
CN104809452A (en) | Fingerprint identification method | |
CN109116129B (en) | Terminal detection method, detection device, system and storage medium | |
CN109214385A (en) | Collecting method, data acquisition device and storage medium | |
CN110222687A (en) | Complex background card face information identifying method and system | |
CN111784675A (en) | Method and device for processing article texture information, storage medium and electronic equipment | |
CN110046617A (en) | A kind of digital electric meter reading self-adaptive identification method based on deep learning | |
CN114444565B (en) | Image tampering detection method, terminal equipment and storage medium | |
CN111767908B (en) | Character detection method, device, detection equipment and storage medium | |
CN111931783A (en) | Training sample generation method, machine-readable code identification method and device | |
CN112381092B (en) | Tracking method, tracking device and computer readable storage medium | |
CN110443328A (en) | Fake method, device, equipment and medium are tested in identification based on LED antifalsification label | |
CN112001200A (en) | Identification code identification method, device, equipment, storage medium and system | |
CN111462388A (en) | Bill inspection method and device, terminal equipment and storage medium | |
Duan et al. | An end to end recognition for license plates using convolutional neural networks | |
CN110428264A (en) | Fake method, device, equipment and medium are tested in identification based on dot matrix screen antifalsification label | |
CN110533704A (en) | Fake method, device, equipment and medium are tested in the identification of ink label | |
CN111027545A (en) | Card picture mark detection method and device, computer equipment and storage medium | |
CN111160331A (en) | Anti-counterfeit label authentication method, device, medium and template graph generation method |
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: 20191108 |