CN110428027B - Identification and counterfeit detection method, device, equipment and medium based on LCD (liquid crystal display) anti-counterfeit label - Google Patents

Identification and counterfeit detection method, device, equipment and medium based on LCD (liquid crystal display) anti-counterfeit label Download PDF

Info

Publication number
CN110428027B
CN110428027B CN201910663575.4A CN201910663575A CN110428027B CN 110428027 B CN110428027 B CN 110428027B CN 201910663575 A CN201910663575 A CN 201910663575A CN 110428027 B CN110428027 B CN 110428027B
Authority
CN
China
Prior art keywords
counterfeiting
lcd
area
label
fake
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
Application number
CN201910663575.4A
Other languages
Chinese (zh)
Other versions
CN110428027A (en
Inventor
袁涌耀
汪宁
黄志明
刘一宸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Wopuwulian Science & Technology Co ltd
Original Assignee
Hangzhou Wopuwulian Science & Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Wopuwulian Science & Technology Co ltd filed Critical Hangzhou Wopuwulian Science & Technology Co ltd
Priority to CN201910663575.4A priority Critical patent/CN110428027B/en
Publication of CN110428027A publication Critical patent/CN110428027A/en
Application granted granted Critical
Publication of CN110428027B publication Critical patent/CN110428027B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods 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/0022Methods 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 provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods 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 provisious 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud

Abstract

The invention discloses a recognition and fake-checking method based on an LCD anti-fake label, which relates to the technical field of anti-fake and is used for solving the dynamic fake-checking of the LCD anti-fake label, and the method comprises the following steps: acquiring an LCD anti-counterfeiting label image, and identifying and uploading bar code information in the LCD anti-counterfeiting label image; identifying a target character password in the LCD anti-counterfeit label image, uploading the target character password, and performing fake verification comparison; and receiving a fake verification comparison result. The invention also discloses a device for identifying and verifying the fake based on the LCD anti-fake label, electronic equipment and a computer storage medium. The LCD anti-counterfeit label identification and counterfeit verification method and device are used for carrying out dynamic password identification and counterfeit verification comparison on the LCD anti-counterfeit label, so that identification and counterfeit verification of the LCD anti-counterfeit label are completed.

Description

Identification and counterfeit detection method, device, equipment and medium based on LCD (liquid crystal display) anti-counterfeit label
Technical Field
The invention relates to the technical field of anti-counterfeiting, in particular to an identification and counterfeiting verification method, device, equipment and medium based on an LCD anti-counterfeiting label.
Background
The prior anti-counterfeiting technology mostly adopts the form of printing marks and patterns to perform anti-counterfeiting, the provided anti-counterfeiting marks or anti-counterfeiting codes have higher replicability and poorer anti-counterfeiting effect, and consumers are difficult to verify the authenticity of products. The lawless persons can use the defects of the prior anti-counterfeiting technology to produce counterfeit products to gain privates, harm the benefits of consumers and have serious adverse effects on the social and economic orders. In the environment, the replicability defect of the prior anti-counterfeiting technology can be overcome by using the dynamic variable anti-counterfeiting technology, and the method has the advantages of good anti-counterfeiting effect and high reliability, so that the authenticity of a product can be verified by identifying and verifying the dynamic variable anti-counterfeiting mark, even after the verification is finished, the product can be traced further, and the method has practical significance, and therefore, an identification and counterfeit verification method matched with a counterfeit verification label is required to be provided for the dynamic variable anti-counterfeiting label.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the purposes of the invention is to provide an identification and counterfeit detection method based on an LCD anti-counterfeit label, which can better maintain consumer benefits by identifying and comparing dynamic anti-counterfeit passwords displayed on the LCD anti-counterfeit label to complete the counterfeit detection process of the product.
One of the purposes of the invention is realized by adopting the following technical scheme:
a character password identification method based on LCD anti-counterfeit label includes the following steps:
acquiring an LCD anti-counterfeiting label image, and identifying and uploading bar code information in the LCD anti-counterfeiting label image;
identifying a target character password in the LCD anti-counterfeit label image, uploading the target character password, and performing fake verification comparison;
and receiving and displaying the fake verification comparison result.
Further, seed information of the LCD anti-counterfeit label is defined by a server, the seed information including: LCD anti-counterfeit label ID, dynamic password algorithm correlated to said LCD anti-counterfeit label ID; the LCD anti-counterfeiting label ID is used as the bar code information to be stored in a bar code, after the server receives the bar code information, a dynamic password algorithm associated with the bar code information is inquired through the bar code information, a character password corresponding to the current system time is calculated by using the dynamic password algorithm, the character password corresponding to the current system time is used as the verification template, and the verification template and the target character password are used for verification and comparison to obtain a verification and comparison result.
Further, if the fake verification comparison is successful, the fake verification passes, otherwise, the fake verification does not pass;
or if the fake verification comparison is successful, the fake verification is passed, the product information is queried according to the bar code information and displayed, otherwise, the fake verification is not passed.
Further, identifying a target character password in the LCD anti-counterfeit label image according to a character password identification algorithm, wherein the character password identification algorithm comprises the following steps:
acquiring an LCD anti-counterfeiting label image, and preprocessing the LCD anti-counterfeiting label image;
extracting an anti-counterfeiting area from the preprocessed LCD anti-counterfeiting label image;
and positioning a character area of the anti-counterfeiting area by using a character positioning model, and identifying the character area by using a convolutional neural network to obtain the target character password.
Further, an anti-counterfeiting area is extracted from the preprocessed LCD anti-counterfeiting label image, and the method comprises the following specific steps:
detecting suspected positioning points of the bar code by using bar code graphic features;
according to the position relation between the bar code and the anti-counterfeiting area, obtaining a suspected anti-counterfeiting area through permutation and combination of the suspected positioning points, and extracting the anti-counterfeiting area from the suspected anti-counterfeiting area according to the label characteristics;
correcting the anti-counterfeiting area through affine transformation.
Further, contour extraction is carried out on the corrected anti-counterfeiting area, a connected area of the anti-counterfeiting area is searched, the connected area is screened according to the size characteristics of a standard LCD screen, an LCD area is obtained, the center point of the LCD area is obtained through calculation, the Manhattan distance between the center point of the LCD area and the center point of the standard LCD screen is calculated, and whether the anti-counterfeiting area is the standard anti-counterfeiting area is judged according to the Manhattan distance; if the anti-counterfeiting area is a standard anti-counterfeiting area, performing subsequent processing by using the anti-counterfeiting area; and otherwise, re-extracting the anti-counterfeiting area.
Further, homomorphic filtering treatment is carried out on the anti-counterfeiting area.
The second object of the invention is to provide a recognition and fake-checking device based on the LCD anti-fake label, which recognizes and compares dynamic characters in the LCD label, thereby completing fake checking of the LCD anti-fake label.
The second purpose of the invention is realized by adopting the following technical scheme:
an identification and counterfeit detection device based on an LCD anti-counterfeit label, which comprises:
the image acquisition module is used for acquiring an LCD anti-counterfeit label image, and identifying and uploading bar code information in the LCD anti-counterfeit label image;
the character password identification module is used for identifying a target character password in the LCD anti-counterfeit label image, uploading the target character password and performing fake verification comparison;
and the result display module is used for receiving and displaying the fake verification comparison result.
A third object of the present invention is to provide an electronic device for performing one of the objects of the present invention, which includes a processor, a storage medium, and a computer program stored in the storage medium, wherein the computer program, when executed by the processor, implements the above-mentioned identification and verification method based on the LCD anti-counterfeit label.
It is a fourth object of the present invention to provide a computer readable storage medium storing one of the objects of the present invention, on which a computer program is stored, which when executed by a processor implements the above-mentioned identification and verification method based on an LCD anti-counterfeit label.
Compared with the prior art, the invention has the beneficial effects that:
the invention recognizes the dynamic character password of the LCD anti-counterfeit label, and performs the fake verification comparison by using the recognized dynamic character password to finish the fake verification of the LCD anti-counterfeit label, thereby realizing the fake verification of the commodity using the LCD anti-counterfeit label, and the comparison of the dynamic character password adopts a clock synchronization method to generate a dynamic verification template for fake verification comparison.
Drawings
FIG. 1 is a flow chart of an identification and counterfeit verification method based on an LCD anti-counterfeit label of the invention;
FIG. 2 is a pseudo-verification flow chart based on the LCD anti-counterfeit label in the embodiment 1;
FIG. 3 is a flowchart of the character password recognition algorithm in embodiment 2;
FIG. 4 is a block diagram of the identification and verification device based on the LCD anti-counterfeit label in embodiment 3;
fig. 5 is a block diagram of the electronic device of embodiment 4.
Detailed Description
The invention will now be described in more detail with reference to the accompanying drawings, to which it should be noted that the description is given by way of illustration only and not by way of limitation. Various embodiments may be combined with one another to form further embodiments not shown in the following description.
Example 1
The embodiment 1 provides a recognition and fake-checking method based on an LCD (liquid crystal display) anti-fake label, which comprises two parts of character password recognition and fake-checking comparison, wherein the dynamic character password obtained by recognizing the LCD anti-fake label provides comparison data for the fake-checking process of the subsequent LCD anti-fake label, and the dynamic verification template is adopted to carry out synchronous clock comparison in the fake-checking comparison process, so that dynamic fake checking is realized, the dynamic character password has randomness and uniqueness under different clock data, thus the LCD anti-fake label using the dynamic character password has better anti-fake effect, and the fake-checking method is introduced for users based on the LCD anti-fake label.
As shown in fig. 1, the identification and counterfeit verification method based on the LCD anti-counterfeit label includes the steps:
acquiring an LCD anti-counterfeiting label image, and identifying and uploading bar code information in the LCD anti-counterfeiting label image;
identifying a target character password in the LCD anti-counterfeit label image, uploading the target character password, and performing fake verification comparison;
and receiving and displaying the fake verification comparison result.
The fake verification method is applied to a fake verification terminal, the fake verification terminal is used for a user, when the user needs to verify commodities, an LCD fake-proof label image is acquired through the fake verification terminal, bar codes in the LCD fake-proof label image are identified through the fake verification terminal, bar code information is obtained, the bar codes comprise but not limited to two-dimensional codes or bar codes (one-dimensional codes), the bar codes can be any graph identification codes which can store information and can be identified by a terminal SDK, the two-dimensional codes are taken as an example, as shown in fig. 2, the two-dimensional codes are identified through the ZBar Sdk, data stored in the two-dimensional codes are obtained, namely two-dimensional code information, the two-dimensional code information is uploaded to a server, the server calls a corresponding character password identification algorithm according to the two-dimensional code information to be sent to the fake verification terminal, the character password identification algorithm is predefined and stored in the server, the fake verification terminal uses the character identification algorithm to identify target characters in the LCD fake-proof label image, the identified target passwords are sent to the server to be judged, so that the authenticity of the LCD fake-proof label can be judged, the fake verification terminal receives the data stored by the two-dimensional code information, the two-dimensional code information is displayed by the two-dimensional code information, the two-dimensional code information is uploaded to the server, the fake verification terminal can be used for a fake verification terminal to realize a fake verification of a fake verification program, and a fake verification function is achieved by a fake verification picture is achieved by a tablet, and a fake verification terminal, and a fake verification program is applied to a mobile phone, and a fake verification terminal is used.
Preferably, seed information of the LCD anti-counterfeit label is defined by a server, the seed information including: LCD anti-counterfeit label ID, dynamic password algorithm correlated to the ID of the LCD anti-counterfeit label; the LCD anti-counterfeiting label ID is stored in a bar code as bar code information, and after receiving the bar code information, a server inquires a dynamic password algorithm corresponding to the bar code information through the bar code information; and calculating a character password corresponding to the current system time by using the dynamic password algorithm, using the character password corresponding to the current system time as the verification template, and performing fake verification comparison by using the verification template and a target character password to obtain a fake verification comparison result.
The dynamic password algorithm can adopt a national cryptographic algorithm, self-writing or any dynamic password generation algorithm, and the dynamic password algorithm can be one or a plurality of dynamic password algorithms to be combined. The dynamic password algorithm is associated with the LCD anti-counterfeiting label ID, then is used as seed information together with the LCD anti-counterfeiting label ID, is downloaded into the corresponding LCD anti-counterfeiting label and is uploaded into the server for storage, the dynamic password algorithm used by the LCD anti-counterfeiting label is consistent with the dynamic password algorithm stored by the server, clock data of the server and the LCD anti-counterfeiting label are synchronous when the seed information is downloaded and uploaded, and in the embodiment, the dynamic password of the dynamic password algorithm is Random password generated through Random.
In the dynamic password algorithm, clock data is used as a calculation factor, when the clock data is continuously changed, the dynamic password algorithm corresponding to each LCD anti-counterfeit label ID generates different dynamic character passwords with one-time effectiveness, and under the same clock data, the dynamic character passwords generated by the LCD anti-counterfeit labels are consistent with the dynamic character passwords generated by the dynamic password algorithm corresponding to the LCD anti-counterfeit label ID utilized by the server, and have synchronism, so that in the embodiment, the target character passwords obtained by identifying the LCD label images and the character passwords corresponding to the current system time calculated by the server by utilizing the dynamic password algorithm are dynamic character passwords, and the fake verification comparison process of the target character passwords and the verification template is a dynamic fake verification process. The dynamic character password is a digital password in the embodiment, and can also be any expression form such as any character, character number combination, bar code, two-dimensional code and the like.
Preferably, if the comparison of the recognized target character password and the character password of the verification template is successful, the verification is passed, otherwise, the verification is not passed;
or if the comparison is successful, checking the fake passing, inquiring the product information according to the bar code information and displaying, otherwise, checking the fake not passing.
The comparison result of the fake verification passing or the comparison result of the fake verification failing is displayed at the fake verification end, so that a user can master the identification fake verification result based on the LCD fake-proof label, the authenticity of the commodity is judged, and the inquired product information can be displayed together when the fake verification passing result is displayed, so that the user can master the commodity information of the commodity, and the tracing of the commodity is realized.
The LCD anti-counterfeiting label can be used for birds, a pedometer is arranged in the LCD anti-counterfeiting label, motion data of the birds in the growing process can be recorded, the LCD anti-counterfeiting label is checked by the identification and checking method based on the LCD anti-counterfeiting label, and then the motion data recorded by the LCD anti-counterfeiting label is inquired, so that the checking and tracing of the birds are realized, and the method is particularly suitable for the free-range chickens.
Example 2
The difference between this embodiment and the above embodiment is that the target character password in the LCD anti-counterfeit label image is identified according to a character password identification algorithm, and the character password identification algorithm is described, as shown in fig. 2, and includes the following steps:
acquiring an LCD anti-counterfeiting label image, and preprocessing the LCD anti-counterfeiting label image;
extracting an anti-counterfeiting area from the preprocessed LCD anti-counterfeiting label image;
and positioning a character area of the anti-counterfeiting area by using a character positioning model, and identifying a character password in the character area by using a convolutional neural network to obtain the target character password.
In this embodiment, the operation of preprocessing the LCD anti-counterfeit label image includes: the LCD anti-counterfeit label image is converted into a gray image by utilizing MATLAB function rgb2gray (). And processing the preprocessed LCD anti-counterfeiting label image to extract an anti-counterfeiting area, wherein the anti-counterfeiting area of the LCD anti-counterfeiting label is an area containing an LCD screen.
Preferably, the anti-counterfeiting area is extracted from the preprocessed LCD anti-counterfeiting label image, and the specific steps are as follows:
detecting suspected positioning points of the bar code by using bar code graphic features, wherein the bar code graphic features are graphic proportion features in the bar code;
according to the position relation between the bar code and the anti-counterfeiting area, obtaining a suspected anti-counterfeiting area through permutation and combination of the suspected positioning points, and extracting the anti-counterfeiting area from the suspected anti-counterfeiting area according to the label characteristics;
in this embodiment, the principle that three points form an isosceles right triangle defines three barcode positioning points, taking a two-dimensional code as an example, that is, 3 "back" areas on the two-dimensional code are taken as barcode graphic features, which have determined black-and-white intervals, but the suspicious positioning points detected according to the barcode graphic features may be more than three, so that all possible combinations of the suspicious positioning points are obtained by arranging and combining the three points in a group, and then the anti-counterfeiting areas corresponding to the combinations are obtained according to the positional relationship between the barcode and the LCD tag, and then the anti-counterfeiting areas are extracted from the suspicious anti-counterfeiting areas according to the tag features.
Correcting the anti-counterfeiting area through affine transformation, and cutting the anti-counterfeiting area into a standard rectangle.
Preferably, the corrected anti-counterfeiting area is subjected to contour extraction, and MATLAB edge detection operators are adopted to realize the anti-counterfeiting area, and the edge detection algorithm can be selected from Sobel operators, canny operators, prewitt operators, roberts operators, laplacian operators and the like.
Taking Canny operator as an example, the steps of carrying out edge detection on the anti-counterfeiting area are as follows:
step1: smoothing the image with a gaussian filter;
step2: calculating the magnitude and direction of the gradient by using the finite difference of the first-order bias derivatives;
step3: performing non-maximum suppression on the gradient amplitude;
step4: edges are detected and connected using a double threshold algorithm.
And extracting the outline (edge) of the anti-counterfeiting area by using an edge detection algorithm, and marking the connected area by using a bwlabel () function on the basis of the outline (edge) of the anti-counterfeiting area to realize searching the connected area of the anti-counterfeiting area.
Searching a connected domain of the anti-counterfeiting area, screening the connected domain according to the size characteristics of a standard LCD screen to obtain the LCD area, calculating the center point of the LCD area through a Huffman algorithm (optimal binary tree), calculating the Manhattan distance between the center point of the LCD area and the center point of the standard LCD screen, and judging whether the anti-counterfeiting area is the standard anti-counterfeiting area according to the Manhattan distance.
The Manhattan distance between the center point of the LCD area and the center point of the standard LCD screen is calculated as follows: and subtracting the Manhattan distance of the center point of the standard LCD screen from the Manhattan distance of the center point of the LCD area, and judging the anti-counterfeiting area as the standard anti-counterfeiting area if the difference is between-0.1 and 0.1.
If the anti-counterfeiting area is a standard anti-counterfeiting area, performing subsequent processing by using the anti-counterfeiting area, namely performing character password recognition; and otherwise, re-extracting the anti-counterfeiting area, namely re-extracting the anti-counterfeiting area from the preprocessed LCD anti-counterfeiting label image, or re-acquiring the LCD anti-counterfeiting label image to extract the anti-counterfeiting area.
Preferably, homomorphic filtering treatment is performed on the anti-counterfeiting area so as to eliminate the influence of illumination on the anti-counterfeiting area. The homomorphic filtering is utilized to remove multiplicative noise, and the contrast ratio and the standardized brightness can be increased simultaneously, so that the aim of enhancing the image is fulfilled, and the influence of illumination on the image is eliminated.
Principle of homomorphic filtering algorithm: an image may be represented as the product of its illumination component and reflection component, which, although inseparable in the time domain, may be linearly separated in the frequency domain via fourier transformation. Since the illuminance can be regarded as illumination in the environment, the relative change is small, and can be regarded as a low-frequency component of the image; the relatively large change in reflectance can be regarded as a high frequency component. By processing the influence of illuminance and reflectivity on the gray value of the pixel respectively, the illumination of the image is more uniform by a high-pass filter (high-pass filter), so that the purpose of enhancing the detail characteristics of the shadow region is achieved.
The homomorphic filtering algorithm is therefore specifically as follows:
a pair of images is represented as: f (x, y) =i (x, y) ×r (x, y);
the above formula cannot be directly used to operate on the frequency components of illumination and reflection, and therefore the logarithm of the above formula is expressed as: inf (x, y) =ini (x, y) +inr (x, y);
taking Fourier transform on the two sides to obtain:
Figure BDA0002138505540000102
specifying a high pass filter function
Figure BDA0002138505540000101
It can affect the low and high frequencies of the fourier transform in different controllable ways. If γL and γH are chosen, and γL < 1 and γH > 1, the filter function approaches attenuating the contribution of the low frequency (illumination) and enhancing the contribution of the high frequency reflection. The end result is simultaneous dynamic range compression and contrast enhancement。
The character positioning model in the embodiment is obtained through training a deep learning model, namely, the character positioning model is obtained through a machine learning mode.
Machine learning models include, but are not limited to, decision trees, random forests, logistic regression, support vector machines, bayesian, K-nearest neighbor, K-means, and deep learning (various artificial neural networks), among others. Machine learning is to perform machine learning, teaching learning, analog learning, case learning, or the like based on sample data by a computer to obtain a corresponding relationship model. The more sample data, the more accurate the machine-learned relationship model. The relation model obtained by machine learning can be verified through some sample data, so that whether the relation model needs to be optimized or updated is judged, and the optimization or updating is a perfecting process of the relation model by adding the sample data. Each machine learning is slightly different according to its learning strategy, but any way of deriving a machine learning model can be applied in the present invention. In this embodiment, the sample data of the training character positioning model is an LCD screen image, the character area in the LCD screen image is marked with features, and finally, model training is performed to obtain the character positioning model.
In the embodiment, the convolutional neural network is utilized to sequentially identify the character password, namely, the target character password, which is a digital password in the example, from the character area, and in other embodiments, the character password can be any expression form of any character, character number combination, bar code, two-dimensional code and the like.
The convolutional neural network belongs to a deep learning algorithm, and the calculation formula of the convolutional neural network is as follows:
Figure BDA0002138505540000111
wherein W is a convolution kernel and X is an input; when X is a two-dimensional input matrix, then W is also a two-dimensional matrix.
For the character region positioning and character password recognition of the embodiment, MATLAB is adopted to carry out simulation recognition on the anti-counterfeiting region in other embodiments of the invention, and the character password is extracted and recognized through binarization, character normalization and template matching algorithms to obtain the target character password.
Example 3
Embodiment 3 discloses a device corresponding to the identification and counterfeit detection method based on the LCD anti-counterfeit label of the above embodiment, which is a virtual device structure of the above embodiment, as shown in fig. 4, and the identification and counterfeit detection device based on the LCD anti-counterfeit label includes:
the image acquisition module 410 is used for acquiring an LCD anti-counterfeit label image, and identifying and uploading bar code information in the LCD anti-counterfeit label image;
the character password identification module 420 is configured to identify a target character password in the LCD anti-counterfeit label image, and upload the target character password for performing pseudo-verification comparison;
the result display module 430 is configured to receive and display the pseudo-verification result.
Preferably, the character password recognition algorithm is adopted for recognizing the target character password in the LCD anti-counterfeit label image, and specifically comprises the following steps:
acquiring an LCD anti-counterfeiting label image, and preprocessing the LCD anti-counterfeiting label image;
extracting an anti-counterfeiting area from the preprocessed LCD anti-counterfeiting label image;
and positioning a character area of the anti-counterfeiting area by using a character positioning model, and identifying a character password in the character area to obtain the target character password.
Preferably, the comparison of the character password and the verification template can be performed at the fake verification end or at the service end, and the obtained comparison result is displayed at the fake verification end.
The verification template in the example is a dynamic verification template, the verification template is a dynamic character password generated by a dynamic password algorithm by taking the current time before the system as a calculation factor at the server side. The dynamic password algorithm is simultaneously applied to the LCD anti-counterfeit label, and the clocks of the server and the LCD anti-counterfeit label are synchronous, so that the verification template generated by the server is consistent with the target character password generated and displayed by the LCD anti-counterfeit label at the same time (the verification template and the target character password are dynamically changed according to time data), and an accurate fake verification result process can be obtained when the verification template and the target character password are subjected to password comparison, so that dynamic anti-counterfeit and fake verification are realized.
Preferably, if the identified target indicator lamp working sequence is successfully compared with the verification template, the verification is passed, otherwise, the verification is not passed;
or if the comparison is successful, checking the fake passing, inquiring the product information according to the bar code information and displaying, otherwise, checking the fake not passing.
Example 4
Fig. 5 is a schematic structural diagram of an electronic device according to embodiment 4 of the present invention, as shown in fig. 5, the electronic device includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of processors 510 in the computer device may be one or more, one processor 510 being taken as an example in fig. 5; the processor 510, memory 520, input device 530, and output device 540 in the electronic device may be connected by a bus or other means, for example in fig. 5.
The memory 520 is used as a computer readable storage medium, and may be used to store a software program, a computer executable program, and a module, such as program instructions/modules corresponding to the LCD anti-counterfeit label based identification and verification method in the embodiment of the present invention (for example, the image acquisition module 410, the character password identification module 420, and the verification comparison module 430 in the LCD anti-counterfeit label based identification and verification method device). The processor 510 executes various functional applications and data processing of the electronic device by running software programs, instructions and modules stored in the memory 520, that is, implements the identification and counterfeit verification methods based on the LCD counterfeit prevention label of the above-described embodiments 1 and 2.
Memory 520 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 520 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 520 may further include memory located remotely from processor 510, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 530 may be used to receive input image data or the like. The output device 540 may include a display device such as a display screen, and may be used to display the pseudo-verification result and the traceability result.
Example 5
Embodiment 5 of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing an LCD-based anti-counterfeit label identification verification method, the method comprising:
acquiring an LCD anti-counterfeiting label image, and identifying and uploading bar code information in the LCD anti-counterfeiting label image;
identifying a target character password in the LCD anti-counterfeit label image, uploading the target character password, and performing fake verification comparison;
and receiving and displaying the fake verification comparison result.
Of course, the storage medium containing the computer executable instructions provided by the embodiment of the invention is not limited to the method operations described above, and can also execute the related operations in the identification and counterfeit verification method based on the LCD anti-counterfeit label provided by any embodiment of the invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing an electronic device (which may be a mobile phone, a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the identification and verification device based on the LCD anti-counterfeit label, each unit and module included are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be realized; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
It will be apparent to those skilled in the art from this disclosure that various other changes and modifications can be made which are within the scope of the invention as defined in the appended claims.

Claims (4)

1. The identification and counterfeit verification method based on the LCD anti-counterfeit label is characterized by comprising the following steps of:
acquiring an LCD anti-counterfeiting label image, and identifying and uploading bar code information in the LCD anti-counterfeiting label image;
identifying a target character password in the LCD anti-counterfeit label image, uploading the target character password, and performing fake verification comparison;
receiving and displaying the fake-checking comparison result, if the fake-checking comparison is successful, checking the fake to pass, otherwise, checking the fake to not pass;
or if the fake verification comparison is successful, the fake verification passes, the product information is queried according to the bar code information and displayed, otherwise, the fake verification does not pass;
the method comprises the following steps of:
acquiring an LCD anti-counterfeiting label image, and preprocessing the LCD anti-counterfeiting label image, wherein the preprocessing is to convert the LCD anti-counterfeiting label into a gray image by utilizing a MATLAB function;
extracting an anti-counterfeiting area from the preprocessed LCD anti-counterfeiting label image;
positioning a character area of the anti-counterfeiting area by using a character positioning model, and identifying the character area by using a convolutional neural network to obtain the target character password;
the method for extracting the anti-counterfeiting area from the preprocessed LCD anti-counterfeiting label image comprises the following specific steps of:
detecting suspected positioning points of the bar code by using bar code graphic features;
according to the position relation between the bar code and the anti-counterfeiting area, obtaining a suspected anti-counterfeiting area through permutation and combination, and extracting the anti-counterfeiting area from the suspected anti-counterfeiting area according to the label characteristics, wherein the suspected anti-counterfeiting area is combined by permutation and combination with three points as a group to obtain all possible situation combinations, the anti-counterfeiting areas corresponding to the combinations are obtained according to the position relation between the bar code and the LCD label, and the anti-counterfeiting area is extracted from the suspected anti-counterfeiting area according to the label characteristics;
correcting the anti-counterfeiting area through affine transformation;
the method further comprises the steps of: defining seed information of the LCD anti-counterfeiting label through a server, wherein the seed information comprises: LCD anti-counterfeit label ID, dynamic password algorithm correlated to said LCD anti-counterfeit label ID; the LCD anti-counterfeiting label ID is used as the bar code information and stored in a bar code, after receiving the bar code information, a server inquires a dynamic password algorithm associated with the bar code information through the bar code information, calculates a character password corresponding to the current system time by using the dynamic password algorithm, uses the character password corresponding to the current system time as a verification template, and performs verification and comparison by using the verification template and the target character password to obtain a verification and comparison result;
extracting the outline of the corrected anti-counterfeiting area, searching the connected domain of the anti-counterfeiting area, screening the connected domain according to the size characteristics of a standard LCD screen to obtain an LCD area, calculating the center point of the LCD area, calculating the Manhattan distance between the center point of the LCD area and the center point of the standard LCD screen, and judging whether the anti-counterfeiting area is the standard anti-counterfeiting area according to the Manhattan distance; if the anti-counterfeiting area is a standard anti-counterfeiting area, performing subsequent processing by using the anti-counterfeiting area; otherwise, re-extracting the anti-counterfeiting area;
and homomorphic filtering treatment is carried out on the anti-counterfeiting area.
2. Identification and false inspection device based on LCD anti-counterfeiting label, which is characterized by comprising:
the image acquisition module is used for acquiring an LCD anti-counterfeit label image, and identifying and uploading bar code information in the LCD anti-counterfeit label image;
the character password identification module is used for identifying a target character password in the LCD anti-counterfeit label image, uploading the target character password and performing fake verification comparison;
the result display module is used for receiving and displaying the fake-checking comparison result, and if the fake-checking comparison is successful, the fake-checking passes, otherwise, the fake-checking does not pass;
or if the fake verification comparison is successful, the fake verification passes, the product information is queried according to the bar code information and displayed, otherwise, the fake verification does not pass;
the method comprises the following steps of:
acquiring an LCD anti-counterfeiting label image, and preprocessing the LCD anti-counterfeiting label image, wherein the preprocessing is to convert the LCD anti-counterfeiting label into a gray image by utilizing a MATLAB function;
extracting an anti-counterfeiting area from the preprocessed LCD anti-counterfeiting label image;
positioning a character area of the anti-counterfeiting area by using a character positioning model, and identifying the character area by using a convolutional neural network to obtain the target character password;
the method for extracting the anti-counterfeiting area from the preprocessed LCD anti-counterfeiting label image comprises the following specific steps of:
detecting suspected positioning points of the bar code by using bar code graphic features;
according to the position relation between the bar code and the anti-counterfeiting area, obtaining a suspected anti-counterfeiting area through permutation and combination, and extracting the anti-counterfeiting area from the suspected anti-counterfeiting area according to the label characteristics, wherein the suspected anti-counterfeiting area is combined by permutation and combination with three points as a group to obtain all possible situation combinations, the anti-counterfeiting areas corresponding to the combinations are obtained according to the position relation between the bar code and the LCD label, and the anti-counterfeiting area is extracted from the suspected anti-counterfeiting area according to the label characteristics;
correcting the anti-counterfeiting area through affine transformation;
defining seed information of the LCD anti-counterfeiting label through a server, wherein the seed information comprises: LCD anti-counterfeit label ID, dynamic password algorithm correlated to said LCD anti-counterfeit label ID; the LCD anti-counterfeiting label ID is used as the bar code information and stored in a bar code, after receiving the bar code information, a server inquires a dynamic password algorithm associated with the bar code information through the bar code information, calculates a character password corresponding to the current system time by using the dynamic password algorithm, uses the character password corresponding to the current system time as a verification template, and performs verification and comparison by using the verification template and the target character password to obtain a verification and comparison result;
extracting the outline of the corrected anti-counterfeiting area, searching the connected domain of the anti-counterfeiting area, screening the connected domain according to the size characteristics of a standard LCD screen to obtain an LCD area, calculating the center point of the LCD area, calculating the Manhattan distance between the center point of the LCD area and the center point of the standard LCD screen, and judging whether the anti-counterfeiting area is the standard anti-counterfeiting area according to the Manhattan distance; if the anti-counterfeiting area is a standard anti-counterfeiting area, performing subsequent processing by using the anti-counterfeiting area; otherwise, re-extracting the anti-counterfeiting area;
and homomorphic filtering treatment is carried out on the anti-counterfeiting area.
3. An electronic device comprising a processor, a storage medium, and a computer program stored in the storage medium, wherein the computer program when executed by the processor implements the LCD-based anti-counterfeit label identification and verification method of claim 1.
4. A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the LCD-based anti-counterfeit label identification and verification method of claim 1.
CN201910663575.4A 2019-07-22 2019-07-22 Identification and counterfeit detection method, device, equipment and medium based on LCD (liquid crystal display) anti-counterfeit label Active CN110428027B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910663575.4A CN110428027B (en) 2019-07-22 2019-07-22 Identification and counterfeit detection method, device, equipment and medium based on LCD (liquid crystal display) anti-counterfeit label

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910663575.4A CN110428027B (en) 2019-07-22 2019-07-22 Identification and counterfeit detection method, device, equipment and medium based on LCD (liquid crystal display) anti-counterfeit label

Publications (2)

Publication Number Publication Date
CN110428027A CN110428027A (en) 2019-11-08
CN110428027B true CN110428027B (en) 2023-06-23

Family

ID=68411785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910663575.4A Active CN110428027B (en) 2019-07-22 2019-07-22 Identification and counterfeit detection method, device, equipment and medium based on LCD (liquid crystal display) anti-counterfeit label

Country Status (1)

Country Link
CN (1) CN110428027B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113112503B (en) * 2021-05-10 2022-11-22 上海合乐医疗科技有限公司 Method for realizing automatic detection of medicine label based on machine vision
CN116664961B (en) * 2023-07-31 2023-12-05 东莞市将为防伪科技有限公司 Intelligent identification method and system for anti-counterfeit label based on signal code

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006011846A (en) * 2004-06-25 2006-01-12 Gijutsu Transfer Service:Kk Two-dimensional code and two-dimensional code-related information verification system and information verification method
WO2016206173A1 (en) * 2015-06-23 2016-12-29 杭州沃朴物联科技有限公司 Chaotic graphic tag-based anti-counterfeit system and method
CN109255634A (en) * 2018-09-07 2019-01-22 昆明盛策同辉数字科技有限责任公司 Merge method for anti-counterfeit, device, storage medium and the equipment of AR and two dimensional code
CN109389153A (en) * 2018-08-31 2019-02-26 众安信息技术服务有限公司 A kind of holographic false proof code check method and device
CN109754026A (en) * 2017-11-01 2019-05-14 杭州沃朴物联科技有限公司 A kind of anti-counterfeiting system and method suitable for flint glass packing container

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6739510B2 (en) * 2002-03-08 2004-05-25 Lockheed Martin Corporation OCR/BCR sequencing priority
TW201234294A (en) * 2011-07-22 2012-08-16 Yue Jie Technology Co Ltd Product counterfeit-proof system
KR101860569B1 (en) * 2011-09-08 2018-07-03 삼성전자주식회사 Recognition device for text and barcode reconizing text and barcode simultaneously
US9390086B2 (en) * 2014-09-11 2016-07-12 Palantir Technologies Inc. Classification system with methodology for efficient verification
CN104392238B (en) * 2014-09-29 2018-11-27 南京火眼猴信息科技有限公司 The recognition methods of the information carrier of the mark containing polymorphic type
CN104283690B (en) * 2014-10-31 2016-01-13 杭州沃朴物联科技有限公司 Clock synchronous type dynamic password antifalsification label real-time verification of validity system and method
CN106446732B (en) * 2015-08-13 2019-05-07 株式会社理光 A kind of recognition methods of bar code, device and equipment
CN105913103B (en) * 2016-04-08 2018-09-11 浙江大学 A kind of dot matrix security code figure and its recognition methods
CN108416412B (en) * 2018-01-23 2021-04-06 浙江瀚镪自动化设备股份有限公司 Logistics composite code identification method based on multitask deep learning
CN108345880B (en) * 2018-01-26 2021-07-27 金蝶软件(中国)有限公司 Invoice identification method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006011846A (en) * 2004-06-25 2006-01-12 Gijutsu Transfer Service:Kk Two-dimensional code and two-dimensional code-related information verification system and information verification method
WO2016206173A1 (en) * 2015-06-23 2016-12-29 杭州沃朴物联科技有限公司 Chaotic graphic tag-based anti-counterfeit system and method
CN109754026A (en) * 2017-11-01 2019-05-14 杭州沃朴物联科技有限公司 A kind of anti-counterfeiting system and method suitable for flint glass packing container
CN109389153A (en) * 2018-08-31 2019-02-26 众安信息技术服务有限公司 A kind of holographic false proof code check method and device
CN109255634A (en) * 2018-09-07 2019-01-22 昆明盛策同辉数字科技有限责任公司 Merge method for anti-counterfeit, device, storage medium and the equipment of AR and two dimensional code

Also Published As

Publication number Publication date
CN110428027A (en) 2019-11-08

Similar Documents

Publication Publication Date Title
CN105917353B (en) Feature extraction and matching for biological identification and template renewal
US10635946B2 (en) Eyeglass positioning method, apparatus and storage medium
Qiu et al. Finger vein presentation attack detection using total variation decomposition
CN109389153B (en) Holographic anti-counterfeiting code checking method and device
CN110428399B (en) Method, apparatus, device and storage medium for detecting image
CN109635627A (en) Pictorial information extracting method, device, computer equipment and storage medium
CN110008909B (en) Real-name system business real-time auditing system based on AI
CN112052781A (en) Feature extraction model training method, face recognition device, face recognition equipment and medium
CN107679997A (en) Method, apparatus, terminal device and storage medium are refused to pay in medical treatment Claims Resolution
CN110023989B (en) Sketch image generation method and device
CN107274543B (en) A kind of recognition methods of bank note, device, terminal device and computer storage medium
CN106203387A (en) Face verification method and system
CN110082135A (en) Equipment fault recognition methods, device and terminal device
EP4085369A1 (en) Forgery detection of face image
CN110428027B (en) Identification and counterfeit detection method, device, equipment and medium based on LCD (liquid crystal display) anti-counterfeit label
CN110443328B (en) Identification and fake verification method, device, equipment and medium based on LED anti-fake label
CN111931783A (en) Training sample generation method, machine-readable code identification method and device
CN111784675A (en) Method and device for processing article texture information, storage medium and electronic equipment
CN110751500A (en) Processing method and device for sharing pictures, computer equipment and storage medium
Liu et al. Iris recognition in visible spectrum based on multi-layer analogous convolution and collaborative representation
CN113191189A (en) Face living body detection method, terminal device and computer readable storage medium
CN110070017B (en) Method and device for generating human face artificial eye image
CN110428264A (en) Fake method, device, equipment and medium are tested in identification based on dot matrix screen antifalsification label
Chattopadhyay et al. Pasta: Proportional amplitude spectrum training augmentation for syn-to-real domain generalization
CN106910196A (en) A kind of image detecting method and device

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
GR01 Patent grant
GR01 Patent grant