Fingerprint code verification and identification method and system for commodity anti-counterfeiting

By printing multiple fingerprint anti-counterfeiting graphics on the surface of the product and performing dynamic encryption processing, combined with APP scanning and multiple verification methods, the problem of anti-counterfeiting labels in the prior art is solved, and more efficient and reliable product anti-counterfeiting verification is achieved.

CN119785389AActive Publication Date: 2025-04-08GUANGZHOU TONGYING TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411825215.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-08
Estimated Expiration
2044-12-12

AI Technical Summary

Technical Problem

Among the existing product anti-counterfeiting technologies, QR code anti-counterfeiting has the problem of being easily copied and stolen, and the confidentiality of the anti-counterfeiting logo is low. Some anti-counterfeiting logos are prone to being damaged or fall off, resulting in verification failure.

Method used

The fingerprint code verification and recognition method is adopted to generate the first anti-counterfeiting password by printing multiple fingerprint code anti-counterfeiting graphics on the surface of the product and processing the encoded information using a dynamic encryption algorithm. The client scans fingerprint graphics through the APP, and the server performs image processing and decoding, performs the first anti-counterfeiting verification, and if the verification is insufficient, performs the second manual verification.

Benefits of technology

It improves the effectiveness and robustness of anti-counterfeiting verification, reduces the risk of being impersonated, solves the problem of broken or lost anti-counterfeiting codes that cannot be verified, and enhances the confidentiality of anti-counterfeiting logos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119785389A_ABST
    Figure CN119785389A_ABST
Patent Text Reader

Abstract

The invention discloses a fingerprint code verification and identification method for commodity anti-counterfeiting, and the method comprises the steps: providing a fingerprint code anti-counterfeiting graph with a fingerprint anti-counterfeiting function, and controlling a printing device to carry out the position printing of the fingerprint code anti-counterfeiting graph on the surface of a commodity; a client APP scans a fingerprint code to pre-judge whether an image is a real fingerprint code image or not and perform first anti-counterfeiting verification based on a first anti-counterfeiting password, and when the first anti-counterfeiting verification is insufficient or needs to be further verified, second anti-counterfeiting verification based on manual verification can be performed; through multiple times of verification, the validity of anti-counterfeiting verification is improved, the risk of being pretended is reduced, the problem that one anti-counterfeiting code is damaged or falls off to be lost and cannot be verified is solved by printing a plurality of anti-counterfeiting code graphs, and the robustness and fault tolerance of anti-counterfeiting verification are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of commodity anti-counterfeiting verification, and specifically refers to a fingerprint code verification and identification method and system for commodity anti-counterfeiting. Background Art

[0002] At present, commodity anti-counterfeiting mainly relies on two-dimensional code anti-counterfeiting, which is the most common QR code. The anti-counterfeiting process mainly involves putting the anti-counterfeiting code in the QR code. QR codes have the advantages of being beautiful and low in cost, but QR codes can be easily scanned and parsed, and have the defects of being easily copied and stolen. Attackers can scan valid QR codes and make copies to deceive the system and consumers, and the copied QR codes cannot provide effective anti-counterfeiting protection, so it is easy to parse the anti-counterfeiting code through the QR code, resulting in low security of the anti-counterfeiting code. Moreover, most of the existing anti-counterfeiting logo patterns are generated using coding rules similar to OID coding technology, but coding rules similar to OID coding technology are common and public coding technologies, which reduces the confidentiality of anti-counterfeiting logos.

[0003] In addition, since the QR codes of many products are directly exposed, they are easily affected by external factors, causing part of the pattern to be damaged or blocked or fall off and lost, making it impossible for users to scan the code for accurate verification. Summary of the invention

[0004] In order to solve the problems in the above-mentioned prior art such as low confidentiality performance of anti-counterfeiting marks, partial anti-counterfeiting marks being damaged or blocked or falling off and lost, resulting in users being unable to scan the code for accurate verification, the present invention proposes a fingerprint code verification and identification method and system for product anti-counterfeiting to improve the above-mentioned problems.

[0005] The specific application is as follows:

[0006] A fingerprint code verification and identification method for commodity anti-counterfeiting, the method comprising:

[0007] S1: Printing a plurality of fingerprint code anti-counterfeiting graphics on the surface of the commodity, generating a fingerprint code anti-counterfeiting graphics for the commodity according to the coding information combined with a preset coding rule when receiving coding information, processing the coding information using a dynamic encryption algorithm and a dynamic encryption parameter corresponding to the coding information, obtaining a first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphics, controlling a printing device to print the fingerprint code anti-counterfeiting graphics on the surface of the commodity, the fingerprint code anti-counterfeiting graphics including the first anti-counterfeiting password, the first anti-counterfeiting passwords corresponding to the plurality of fingerprint code anti-counterfeiting graphics on the surface of the same commodity are consistent, and the plurality of fingerprint code anti-counterfeiting graphics include at least 3 or more;

[0008] S2: The client uses an APP on a mobile phone to scan any one of the fingerprint code anti-counterfeiting graphics on the product. The image formed by the graphics is sent to the anti-counterfeiting identification server for anti-counterfeiting identification and authentication. The anti-counterfeiting identification server processes the image to determine whether the image is a real fingerprint code image;

[0009] S3: Determine whether to perform the first anti-counterfeiting verification based on whether the image is a genuine fingerprint image:

[0010] If it is determined that the image is a real fingerprint image, the anti-counterfeiting identification server performs the first anti-counterfeiting verification, decodes the fingerprint image, extracts the first anti-counterfeiting password, extracts the corresponding UUID identification code to be verified by decoding the first anti-counterfeiting password, makes a judgment based on the preset verification rules and the UUID identification code to be verified, gives a first judgment result of the current product to be verified, and sends the first judgment result, the judgment reason and the first anti-counterfeiting password corresponding to the second anti-counterfeiting verification of the product to the client;

[0011] If it is determined that the image is not a real fingerprint code image, a verification failure message is sent to the client, and the product anti-counterfeiting verification ends;

[0012] S4: Determine whether to conduct a second anti-counterfeiting verification based on the first determination result:

[0013] If the first determination result given by the anti-counterfeiting identification server is a success message, the current product is determined to be authentic, and the first determination result and the user-selected authentication method are simultaneously sent to the client, and this verification is completed;

[0014] If the first judgment result given by the anti-counterfeiting identification server is that the product is a counterfeit, the first judgment result is sent to the client synchronously, and this verification ends;

[0015] If the first determination result given by the anti-counterfeiting identification server is a suspected counterfeit, the anti-counterfeiting identification server simultaneously provides the suspected counterfeit determination reason to the client, and executes step S5;

[0016] S5: The client performs a second anti-counterfeiting verification on the current product. When the client receives the first judgment result sent by the anti-counterfeiting identification server that the product is a suspected counterfeit or a user-selected authentication method, the anti-counterfeiting identification server synchronously sends the graphic recognition rules of the corresponding product for the second anti-counterfeiting verification to the client. The client's verification personnel uses the APP to scan and collect any one of the fingerprint code anti-counterfeiting graphics on the product again, performs the second anti-counterfeiting verification operation, and gives a second judgment result. The second judgment result is used as the final judgment result of the product, and the product anti-counterfeiting verification is completed.

[0017] Further, the coded information in S1 includes a preset graphic style, a preset graphic printing quantity and a preset graphic printing position;

[0018] The preset graphic style includes fingerprint direction, fingerprint curvature, fingerprint texture, fingerprint color and fingerprint center point position;

[0019] The preset graphic printing position is specifically represented as:

[0020] Establish a two-dimensional plane coordinate system with the product packaging plane as the plane coordinate system. The lower left corner is the plane coordinate system (0, 0), the upper left corner is the positive direction of the Y axis, and the lower right corner is the positive direction of the X axis. Set N printing positions as N in sequence. i , where i represents the subscript number of the i-th printing position, i represents a positive integer greater than 1, and i preset graphics correspond to i preset graphics printing positions;

[0021] The coding rules include a first anti-counterfeiting password coding rule;

[0022] The method of generating a fingerprint code anti-counterfeiting pattern for a commodity according to the coding information combined with a preset coding rule includes:

[0023] According to the first anti-counterfeiting password encoding rule, when receiving the encoding information, determining the number of digits of the UUID identification code according to the preset graphic printing quantity;

[0024] Searching for the product anti-counterfeiting code ID to be printed in a preset product anti-counterfeiting database, and presetting a product anti-counterfeiting code ID for each product to be printed;

[0025] Generate the UUID identification code and a first anti-counterfeiting password including the UUID identification code information according to a preset combination method, the number of digits of the UUID identification code, the commodity anti-counterfeiting code ID and the preset number of graphic prints, and store the UUID identification code information in an anti-counterfeiting database, wherein the first anti-counterfeiting password includes the UUID identification code information;

[0026] Generate a fingerprint code anti-counterfeiting graphic for the product according to a preset graphic style and a preset graphic printing position;

[0027] The step of processing the coded information using a dynamic encryption algorithm and a dynamic encryption parameter corresponding to the coded information to obtain a first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting pattern further includes:

[0028] Based on the one-time dynamic encryption algorithm of hash, perform n random number generation operations to obtain the initial password value corresponding to the fingerprint code anti-counterfeiting verification image;

[0029] The initial value of the password is intercepted and split into K character strings;

[0030] Perform MD5 encryption on the K character strings respectively to obtain K encrypted character strings;

[0031] The first 4 digits or the last 4 digits of the K encrypted character strings are respectively taken to generate K arrays of length 4, and the arrays are combined to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting pattern, wherein K represents the number of preset pattern prints;

[0032] The array of length 4 is divided into a first array, a second array, a third array and a fourth array, wherein the first array stores the horizontal coordinate X corresponding to the printing position of the fingerprint code anti-counterfeiting pattern, and the second array stores the vertical coordinate Y corresponding to the printing position of the fingerprint code anti-counterfeiting pattern.

[0033] Furthermore, after the coded information is processed using a dynamic encryption algorithm and a dynamic encryption parameter corresponding to the coded information to obtain a first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting pattern, the method further includes:

[0034] The fingerprint code anti-counterfeiting pattern and the corresponding UUID identification code and the first anti-counterfeiting password are stored in a preset commodity anti-counterfeiting database;

[0035] When a printing request is received, the fingerprint code anti-counterfeiting graphics and the printing position corresponding to each fingerprint code anti-counterfeiting graphics are retrieved from the commodity anti-counterfeiting database, and the printing device is controlled to print according to the anti-counterfeiting verification graphics and the printing position.

[0036] Furthermore, the anti-counterfeiting identification server in S2 processes the image to determine whether the image is a real fingerprint code image, specifically including:

[0037] S21: Reconstruct and preprocess the fingerprint code image;

[0038] S22: preprocessing the image results using the infrared light band, and performing feature extraction and calculation according to preset rules;

[0039] S23: comparing the calculation result of step S22 with a preset threshold value, if the calculation result is greater than the preset threshold value, determining that the fingerprint image is a real fingerprint image, otherwise the fingerprint image is not a real fingerprint image;

[0040] The S21 specifically includes:

[0041] S211: reconstructing the infrared spectrum image of the fingerprint code image, reading the width data and the height data of the fingerprint code image, and directly converting the binary data of the read width data and height data into a 2-byte unsigned decimal integer, the converted width data and height data are the image width and image height of the reconstructed infrared spectrum image;

[0042] S212: extracting a region of interest from the infrared spectrum image through a fixed window and a sliding window;

[0043] S213: performing noise reduction on the infrared spectrum image from which the region of interest has been extracted;

[0044] The S22 specifically includes:

[0045] S221: Selecting a fingerprint code image in the infrared light band;

[0046] S222: Extracting fingerprint direction features, fingerprint curvature features and fingerprint texture flow features from the fingerprint code image according to preset rules;

[0047] S223: Counting and calculating first credibility scores corresponding to the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature;

[0048] Among them, in step S223, by formula

[0049]

[0050] The first credibility score S of the fingerprint direction feature, the fingerprint curvature feature and the fingerprint texture flow feature is counted and calculated, wherein T i is the number of feature point categories extracted from the fingerprint direction feature, the fingerprint curvature feature and the fingerprint texture flow feature, Td is the comprehensive threshold of feature point categories, The similarity between the fingerprint directional feature, the fingerprint curvature feature, and the fingerprint texture flow feature corresponding to the fingerprint code image and the fingerprint directional feature, the fingerprint curvature feature, and the fingerprint texture flow feature corresponding to the commodity anti-counterfeiting database template image.

[0051] Furthermore, the first anti-counterfeiting password is a fingerprint-shaped graphic verification code, which is used to identify the fingerprint code features in the fingerprint code anti-counterfeiting graphic verification code, and search the UUID identification code corresponding to the fingerprint code features in the translation database;

[0052] The fingerprint code feature of the fingerprint code anti-counterfeiting graphic verification code specifically includes:

[0053] M1: Obtain edge vertices. Through the edge detection algorithm, obtain the edge vertices of the fingerprint code circular frame to determine the position and size of the fingerprint code anti-counterfeiting image;

[0054] M2: Image calibration: according to the edge vertices obtained, the fingerprint code anti-counterfeiting image is rotated, scaled and affine transformed to calibrate the image, so as to ensure the accuracy of the geometric shape and size of the fingerprint code anti-counterfeiting image, so as to facilitate accurate decoding;

[0055] M3: read the fingerprint direction feature, fingerprint curvature feature, fingerprint texture flow feature and the color value corresponding to each feature of the fingerprint code anti-counterfeiting pattern in turn, normalize each feature and color value to form a connection string with a length of 8 bytes, input the connection string through the UUID generator, and output the corresponding UUID identification code.

[0056] Furthermore, after the anti-counterfeiting identification server in S3 performs the first anti-counterfeiting verification, decodes the fingerprint code image, and extracts the first anti-counterfeiting password, it also includes:

[0057] If it is detected that the fingerprint code is damaged, the UUID identification code corresponding to the damaged fingerprint code is set to Q;

[0058] Sequentially read the fingerprint direction feature, fingerprint curvature feature, fingerprint texture flow feature and color value corresponding to each feature of the anti-counterfeiting pattern of the destroyed fingerprint code to obtain the UUID identification code containing Q;

[0059] Searching in a commodity anti-counterfeiting database whether there is a possible UUID identification code corresponding to the UUID identification code containing Q;

[0060] If there is a corresponding UUID identification code, the anti-counterfeiting identification server makes a first judgment result that the current product is a suspected counterfeit, sends corresponding judgment information to the client, and performs subsequent verification steps;

[0061] If the corresponding UUID identification code cannot be found in the product anti-counterfeiting database, the anti-counterfeiting identification server makes a first judgment result that the current product is a counterfeit, sends corresponding judgment information to the client, and the current anti-counterfeiting verification is terminated.

[0062] Furthermore, the second anti-counterfeiting verification operation of S5 specifically includes:

[0063] L1: The client's verification personnel uses the APP to scan and collect any one of the fingerprint code anti-counterfeiting graphics on the product again;

[0064] L2: Decoding the first anti-counterfeiting password of the fingerprint code anti-counterfeiting pattern to obtain the number of fingerprint code anti-counterfeiting patterns printed and the coordinate position corresponding to the fingerprint code anti-counterfeiting pattern;

[0065] L3: According to the number of decoded fingerprint code anti-counterfeiting graphics and the coordinate position of the fingerprint code anti-counterfeiting graphics, the APP displays the printing position of each fingerprint code anti-counterfeiting graphic on the APP display interface. The verification personnel check whether the actual position of each fingerprint code anti-counterfeiting graphic of the product is correct according to the printing position displayed by the APP. If at least two positions are correct, the product is determined to be authentic, otherwise it is determined to be a counterfeit, and the second anti-counterfeiting verification operation is ended. The printing position verification of the product is a manual active detection and identification verification;

[0066] The acquisition of the number of fingerprint code anti-counterfeiting graphics printed and the coordinate position corresponding to the fingerprint code anti-counterfeiting graphics in L2 is specifically a one-time dynamic decoding algorithm based on hash, which decodes the number of fingerprint code anti-counterfeiting graphics printed and the coordinate position corresponding to the fingerprint code anti-counterfeiting graphics contained in the first anti-counterfeiting password respectively.

[0067] A fingerprint code verification and identification system for commodity anti-counterfeiting, comprising:

[0068] Fingerprint code generation and printing module, used to generate fingerprint code anti-counterfeiting graphics with fingerprint anti-counterfeiting function and control the printing device to print on the surface of the product according to the number and position of the anti-counterfeiting verification graphics;

[0069] Fingerprint code image authenticity recognition module, which identifies whether the fingerprint code anti-counterfeiting pattern is a real fingerprint image through image analysis;

[0070] The information verification interaction module is used for the client to send anti-counterfeiting verification request information to the anti-counterfeiting identification server, and the client to receive the anti-counterfeiting verification judgment result information sent by the anti-counterfeiting identification server;

[0071] The anti-counterfeiting verification module is used for the anti-counterfeiting identification server to complete the first anti-counterfeiting verification and the client to complete the second anti-counterfeiting verification.

[0072] The beneficial effects of the fingerprint code verification and identification method and system for commodity anti-counterfeiting of the present invention are as follows:

[0073] The present invention provides a fingerprint code anti-counterfeiting pattern with a fingerprint anti-counterfeiting function and controls a printing device to print the fingerprint code anti-counterfeiting pattern position on the surface of a commodity. When verification is required, the fingerprint code is scanned by a client APP to pre-judge whether the image is a real fingerprint code image and perform a first anti-counterfeiting verification based on a first anti-counterfeiting password. When the first anti-counterfeiting verification is insufficient or further verification is required, a second anti-counterfeiting verification based on manual verification can be performed. The present invention improves the effectiveness of anti-counterfeiting verification and reduces the risk of impersonation through multiple verifications. By printing multiple anti-counterfeiting code patterns, the problem of one anti-counterfeiting code being damaged or falling off and unable to be verified is solved, thereby improving the robustness and fault tolerance of anti-counterfeiting verification. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1A schematic diagram of a flow chart of a fingerprint code verification and identification method for commodity anti-counterfeiting according to the present invention;

[0075] Figure 2 A fingerprint code diagram of a fingerprint code verification and identification method for commodity anti-counterfeiting according to the present invention;

[0076] Figure 3 The present invention discloses a fingerprint code printing position diagram of a fingerprint code verification and identification method for commodity anti-counterfeiting. DETAILED DESCRIPTION

[0077] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0078] Example 1

[0079] Figure 1 The present invention is a flowchart of a fingerprint code verification and identification method for commodity anti-counterfeiting.

[0080] The methods include:

[0081] S1: Printing a plurality of fingerprint code anti-counterfeiting graphics on the surface of the commodity, generating a fingerprint code anti-counterfeiting graphics for the commodity according to the coding information combined with a preset coding rule when receiving coding information, processing the coding information using a dynamic encryption algorithm and a dynamic encryption parameter corresponding to the coding information, obtaining a first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphics, controlling a printing device to print the fingerprint code anti-counterfeiting graphics on the surface of the commodity, the fingerprint code anti-counterfeiting graphics including the first anti-counterfeiting password, the first anti-counterfeiting passwords corresponding to the plurality of fingerprint code anti-counterfeiting graphics on the surface of the same commodity are consistent, and the plurality of fingerprint code anti-counterfeiting graphics include at least 3 or more;

[0082] S2: The client uses an APP on a mobile phone to scan any one of the fingerprint code anti-counterfeiting graphics on the product. The image formed by the graphics is sent to the anti-counterfeiting identification server for anti-counterfeiting identification and authentication. The anti-counterfeiting identification server processes the image to determine whether the image is a real fingerprint code image;

[0083] S3: Determine whether to perform the first anti-counterfeiting verification based on whether the image is a genuine fingerprint image:

[0084] If it is determined that the image is a real fingerprint image, the anti-counterfeiting identification server performs the first anti-counterfeiting verification, decodes the fingerprint image, extracts the first anti-counterfeiting password, extracts the corresponding UUID identification code to be verified by decoding the first anti-counterfeiting password, makes a judgment based on the preset verification rules and the UUID identification code to be verified, gives a first judgment result of the current product to be verified, and sends the first judgment result, the judgment reason and the first anti-counterfeiting password corresponding to the second anti-counterfeiting verification of the product to the client;

[0085] If it is determined that the image is not a real fingerprint code image, a verification failure message is sent to the client, and the product anti-counterfeiting verification ends;

[0086] S4: Determine whether to conduct a second anti-counterfeiting verification based on the first determination result:

[0087] If the first determination result given by the anti-counterfeiting identification server is a success message, the current product is determined to be authentic, and the first determination result and the user-selected authentication method are simultaneously sent to the client, and this verification is completed;

[0088] If the first judgment result given by the anti-counterfeiting identification server is that the product is a counterfeit, the first judgment result is sent to the client synchronously, and this verification ends;

[0089] If the first determination result given by the anti-counterfeiting identification server is a suspected counterfeit, the anti-counterfeiting identification server simultaneously provides the suspected counterfeit determination reason to the client, and executes step S5;

[0090] S5: The client performs a second anti-counterfeiting verification on the current product. When the client receives the first judgment result sent by the anti-counterfeiting identification server that the product is a suspected counterfeit or a user-selected authentication method, the anti-counterfeiting identification server synchronously sends the graphic recognition rules of the corresponding product for the second anti-counterfeiting verification to the client. The client's verification personnel uses the APP to scan and collect any one of the fingerprint code anti-counterfeiting graphics on the product again, performs the second anti-counterfeiting verification operation, and gives a second judgment result. The second judgment result is used as the final judgment result of the product, and the product anti-counterfeiting verification is completed.

[0091] Further, the coded information in S1 includes a preset graphic style, a preset graphic printing quantity and a preset graphic printing position;

[0092] The preset graphic style includes fingerprint direction, fingerprint curvature, fingerprint texture, fingerprint color and fingerprint center point position;

[0093] The preset graphic printing position is specifically represented as:

[0094] Establish a two-dimensional plane coordinate system with the product packaging plane as the plane coordinate system. The lower left corner is the plane coordinate system (0, 0), the upper left corner is the positive direction of the Y axis, and the lower right corner is the positive direction of the X axis. Set N printing positions as N in sequence. i , where i represents the subscript number of the i-th printing position, i represents a positive integer greater than 1, and i preset graphics correspond to i preset graphics printing positions;

[0095] The coding rules include a first anti-counterfeiting password coding rule;

[0096] The method of generating a fingerprint code anti-counterfeiting pattern for a commodity according to the coding information combined with a preset coding rule includes:

[0097] According to the first anti-counterfeiting password encoding rule, when receiving the encoding information, determining the number of digits of the UUID identification code according to the preset graphic printing quantity;

[0098] Searching for the product anti-counterfeiting code ID to be printed in a preset product anti-counterfeiting database, and presetting a product anti-counterfeiting code ID for each product to be printed;

[0099] Generate the UUID identification code and a first anti-counterfeiting password including the UUID identification code information according to a preset combination method, the number of digits of the UUID identification code, the commodity anti-counterfeiting code ID and the preset number of graphic prints, and store the UUID identification code information in an anti-counterfeiting database, wherein the first anti-counterfeiting password includes the UUID identification code information;

[0100] Generate a fingerprint code anti-counterfeiting graphic for the product according to a preset graphic style and a preset graphic printing position;

[0101] The step of processing the coded information using a dynamic encryption algorithm and a dynamic encryption parameter corresponding to the coded information to obtain a first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting pattern further includes:

[0102] Based on the one-time dynamic encryption algorithm of hash, perform n random number generation operations to obtain the initial password value corresponding to the fingerprint code anti-counterfeiting verification image;

[0103] The initial value of the password is intercepted and split into K character strings;

[0104] Perform MD5 encryption on the K character strings respectively to obtain K encrypted character strings;

[0105] The first 4 digits or the last 4 digits of the K encrypted character strings are respectively taken to generate K arrays of length 4, and the arrays are combined to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting pattern, wherein K represents the number of preset pattern prints;

[0106] The array of length 4 is divided into a first array, a second array, a third array and a fourth array, wherein the first array stores the horizontal coordinate X corresponding to the printing position of the fingerprint code anti-counterfeiting pattern, and the second array stores the vertical coordinate Y corresponding to the printing position of the fingerprint code anti-counterfeiting pattern.

[0107] Furthermore, after the coded information is processed using a dynamic encryption algorithm and a dynamic encryption parameter corresponding to the coded information to obtain a first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting pattern, the method further includes:

[0108] The fingerprint code anti-counterfeiting pattern and the corresponding UUID identification code and the first anti-counterfeiting password are stored in a preset commodity anti-counterfeiting database;

[0109] When a printing request is received, the fingerprint code anti-counterfeiting graphics and the printing position corresponding to each fingerprint code anti-counterfeiting graphics are retrieved from the commodity anti-counterfeiting database, and the printing device is controlled to print according to the anti-counterfeiting verification graphics and the printing position.

[0110] Specifically, the coded information is processed through a dynamic encryption algorithm and dynamic encryption parameters corresponding to the coded information, thereby achieving confidentiality and anti-counterfeiting of the anti-counterfeiting information, while improving the user's recognition accuracy and efficiency, providing powerful functions for product anti-counterfeiting and reducing the risk of attack and deception.

[0111] Furthermore, the anti-counterfeiting identification server in S2 processes the image to determine whether the image is a real fingerprint code image, specifically including:

[0112] S21: Reconstruct and preprocess the fingerprint code image;

[0113] S22: preprocessing the image results using the infrared light band, and performing feature extraction and calculation according to preset rules;

[0114] S23: comparing the calculation result of step S22 with a preset threshold value, if the calculation result is greater than the preset threshold value, determining that the fingerprint image is a real fingerprint image, otherwise the fingerprint image is not a real fingerprint image;

[0115] The S21 specifically includes:

[0116] S211: reconstructing the infrared spectrum image of the fingerprint code image, reading the width data and the height data of the fingerprint code image, and directly converting the binary data of the read width data and height data into a 2-byte unsigned decimal integer, the converted width data and height data are the image width and image height of the reconstructed infrared spectrum image;

[0117] S212: extracting a region of interest from the infrared spectrum image through a fixed window and a sliding window;

[0118] S213: performing noise reduction on the infrared spectrum image from which the region of interest has been extracted;

[0119] The S22 specifically includes:

[0120] S221: Selecting a fingerprint code image in the infrared light band;

[0121] S222: Extracting fingerprint direction features, fingerprint curvature features and fingerprint texture flow features from the fingerprint code image according to preset rules;

[0122] S223: Counting and calculating first credibility scores corresponding to the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature;

[0123] Among them, in step S223, by formula

[0124]

[0125] The first credibility score S of the fingerprint direction feature, the fingerprint curvature feature and the fingerprint texture flow feature is counted and calculated, wherein T i is the number of feature point categories extracted from the fingerprint direction feature, the fingerprint curvature feature and the fingerprint texture flow feature, Td is the comprehensive threshold of feature point categories, The similarity between the fingerprint directional feature, the fingerprint curvature feature, and the fingerprint texture flow feature corresponding to the fingerprint code image and the fingerprint directional feature, the fingerprint curvature feature, and the fingerprint texture flow feature corresponding to the commodity anti-counterfeiting database template image.

[0126] Specifically, by using the infrared light band to pre-process the image to determine whether the recognized image is a real fingerprint image, non-fingerprint code images are initially filtered out to improve the efficiency of the entire verification process. Once it is identified as a non-fingerprint code image, it can be determined to be a counterfeit product without the need for time-consuming subsequent verification.

[0127] Furthermore, the first anti-counterfeiting password is a fingerprint-shaped graphic verification code, which is used to identify the fingerprint code features in the fingerprint code anti-counterfeiting graphic verification code, and search the UUID identification code corresponding to the fingerprint code features in the translation database;

[0128] The fingerprint code feature of the fingerprint code anti-counterfeiting graphic verification code specifically includes:

[0129] M1: Obtain edge vertices. Through the edge detection algorithm, obtain the edge vertices of the fingerprint code circular frame to determine the position and size of the fingerprint code anti-counterfeiting image;

[0130] M2: Image calibration: according to the edge vertices obtained, the fingerprint code anti-counterfeiting image is rotated, scaled and affine transformed to calibrate the image, so as to ensure the accuracy of the geometric shape and size of the fingerprint code anti-counterfeiting image, so as to facilitate accurate decoding;

[0131] M3: read the fingerprint direction feature, fingerprint curvature feature, fingerprint texture flow feature and the color value corresponding to each feature of the fingerprint code anti-counterfeiting pattern in turn, normalize each feature and color value to form a connection string with a length of 8 bytes, input the connection string through the UUID generator, and output the corresponding UUID identification code.

[0132] Furthermore, after the anti-counterfeiting identification server in S3 performs the first anti-counterfeiting verification, decodes the fingerprint code image, and extracts the first anti-counterfeiting password, it also includes:

[0133] If it is detected that the fingerprint code is damaged, the UUID identification code corresponding to the damaged fingerprint code is set to Q;

[0134] Sequentially read the fingerprint direction feature, fingerprint curvature feature, fingerprint texture flow feature and color value corresponding to each feature of the anti-counterfeiting pattern of the destroyed fingerprint code to obtain the UUID identification code containing Q;

[0135] Searching in a commodity anti-counterfeiting database whether there is a possible UUID identification code corresponding to the UUID identification code containing Q;

[0136] If there is a corresponding UUID identification code, the anti-counterfeiting identification server makes a first judgment result that the current product is a suspected counterfeit, sends corresponding judgment information to the client, and performs subsequent verification steps;

[0137] If the corresponding UUID identification code cannot be found in the product anti-counterfeiting database, the anti-counterfeiting identification server makes a first judgment result that the current product is a counterfeit, sends corresponding judgment information to the client, and the current anti-counterfeiting verification is terminated.

[0138] Furthermore, the second anti-counterfeiting verification operation of S5 specifically includes:

[0139] L1: The client's verification personnel uses the APP to scan and collect any one of the fingerprint code anti-counterfeiting graphics on the product again;

[0140] L2: Decoding the first anti-counterfeiting password of the fingerprint code anti-counterfeiting pattern to obtain the number of fingerprint code anti-counterfeiting patterns printed and the coordinate position corresponding to the fingerprint code anti-counterfeiting pattern;

[0141] L3: According to the number of decoded fingerprint code anti-counterfeiting graphics and the coordinate position of the fingerprint code anti-counterfeiting graphics, the APP displays the printing position of each fingerprint code anti-counterfeiting graphic on the APP display interface. The verification personnel check whether the actual position of each fingerprint code anti-counterfeiting graphic of the product is correct according to the printing position displayed by the APP. If at least two positions are correct, the product is determined to be authentic, otherwise it is determined to be a counterfeit, and the second anti-counterfeiting verification operation is ended. The printing position verification of the product is a manual active detection and identification verification;

[0142] The acquisition of the number of fingerprint code anti-counterfeiting graphics printed and the coordinate position corresponding to the fingerprint code anti-counterfeiting graphics in L2 is specifically a one-time dynamic decoding algorithm based on hash, which decodes the number of fingerprint code anti-counterfeiting graphics printed and the coordinate position corresponding to the fingerprint code anti-counterfeiting graphics contained in the first anti-counterfeiting password respectively.

[0143] Specifically, customers actively identify the authenticity of goods through self-selection, scan the fingerprint code through the APP, decode the first anti-counterfeiting password based on the hash-based one-time dynamic decoding algorithm, and obtain the specific printing location of the fingerprint code. The specific printing location of the product is displayed to verify whether the product is counterfeit. This method is simple, practical and efficient. By printing multiple anti-counterfeiting code graphics, the problem of one anti-counterfeiting code being damaged or lost and unable to be subsequently verified is solved, thereby improving the robustness and fault tolerance of anti-counterfeiting verification.

[0144] Embodiment 2, a fingerprint code verification and identification system for commodity anti-counterfeiting, comprising:

[0145] Fingerprint code generation and printing module, used to generate fingerprint code anti-counterfeiting graphics with fingerprint anti-counterfeiting function and control the printing device to print on the surface of the product according to the number and position of the anti-counterfeiting verification graphics;

[0146] Fingerprint code image authenticity recognition module, which identifies whether the fingerprint code anti-counterfeiting pattern is a real fingerprint image through image analysis;

[0147] The information verification interaction module is used for the client to send anti-counterfeiting verification request information to the anti-counterfeiting identification server, and the client to receive the anti-counterfeiting verification judgment result information sent by the anti-counterfeiting identification server;

[0148] The anti-counterfeiting verification module is used for the anti-counterfeiting identification server to complete the first anti-counterfeiting verification and the client to complete the second anti-counterfeiting verification.

[0149] The beneficial effects of the fingerprint code verification and identification method and system for commodity anti-counterfeiting of the present invention are as follows:

[0150] The present invention provides a fingerprint code anti-counterfeiting pattern with a fingerprint anti-counterfeiting function and controls a printing device to print the fingerprint code anti-counterfeiting pattern position on the surface of a commodity. When verification is required, the fingerprint code is scanned by a client APP to pre-judge whether the image is a real fingerprint code image and perform a first anti-counterfeiting verification based on a first anti-counterfeiting password. When the first anti-counterfeiting verification is insufficient or further verification is required, a second anti-counterfeiting verification based on manual verification can be performed. The present invention improves the effectiveness of anti-counterfeiting verification and reduces the risk of impersonation through multiple verifications. By printing multiple anti-counterfeiting code patterns, the problem of one anti-counterfeiting code being damaged or falling off and unable to be verified is solved, thereby improving the robustness and fault tolerance of anti-counterfeiting verification.

[0151] The present invention and its embodiments are described above, which is not restrictive. What is shown in the accompanying drawings is only one of the embodiments of the present invention, and the actual content is not limited to this. In short, if ordinary technicians in this field are inspired by it and do not deviate from the purpose of the invention, they can creatively design structural methods and embodiments similar to the technical scheme, which should all fall within the scope of protection of the present invention.

Claims

1. A fingerprint code verification and identification method for commodity anti-counterfeiting, characterized in that: The method comprises: S1: Printing a plurality of fingerprint code anti-counterfeiting graphics on the surface of the commodity, generating a fingerprint code anti-counterfeiting graphics for the commodity according to the coding information combined with a preset coding rule when receiving coding information, processing the coding information using a dynamic encryption algorithm and a dynamic encryption parameter corresponding to the coding information, obtaining a first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphics, controlling a printing device to print the fingerprint code anti-counterfeiting graphics on the surface of the commodity, the fingerprint code anti-counterfeiting graphics including the first anti-counterfeiting password, the first anti-counterfeiting passwords corresponding to the plurality of fingerprint code anti-counterfeiting graphics on the surface of the same commodity are consistent, and the plurality of fingerprint code anti-counterfeiting graphics include at least 3 or more; S2: The client uses an APP on a mobile phone to scan any one of the fingerprint code anti-counterfeiting graphics on the product. The image formed by the graphics is sent to the anti-counterfeiting identification server for anti-counterfeiting identification and authentication. The anti-counterfeiting identification server processes the image to determine whether the image is a real fingerprint code image; S3: Determine whether to perform the first anti-counterfeiting verification based on whether the image is a genuine fingerprint image: If it is determined that the image is a real fingerprint image, the anti-counterfeiting identification server performs the first anti-counterfeiting verification, decodes the fingerprint image, extracts the first anti-counterfeiting password, extracts the corresponding UUID identification code to be verified by decoding the first anti-counterfeiting password, makes a judgment based on the preset verification rules and the UUID identification code to be verified, gives a first judgment result of the current product to be verified, and sends the first judgment result, the judgment reason and the first anti-counterfeiting password corresponding to the second anti-counterfeiting verification of the product to the client; If it is determined that the image is not a real fingerprint code image, a verification failure message is sent to the client, and the product anti-counterfeiting verification ends; S4: Determine whether to conduct a second anti-counterfeiting verification based on the first determination result: If the first determination result given by the anti-counterfeiting identification server is a success message, the current product is determined to be authentic, and the first determination result and the user-selected authentication method are simultaneously sent to the client, and this verification is completed; If the first judgment result given by the anti-counterfeiting identification server is that the product is a counterfeit, the first judgment result is sent to the client synchronously, and this verification ends; If the first determination result given by the anti-counterfeiting identification server is a suspected counterfeit, the anti-counterfeiting identification server simultaneously provides the suspected counterfeit determination reason to the client, and executes step S5; S5: The client performs a second anti-counterfeiting verification on the current product. When the client receives the first judgment result sent by the anti-counterfeiting identification server that the product is a suspected counterfeit or a user-selected authentication method, the anti-counterfeiting identification server synchronously sends the graphic recognition rules of the corresponding product for the second anti-counterfeiting verification to the client. The client's verification personnel uses the APP to scan and collect any one of the fingerprint code anti-counterfeiting graphics on the product again, performs the second anti-counterfeiting verification operation, and gives a second judgment result. The second judgment result is used as the final judgment result of the product, and the product anti-counterfeiting verification is completed.

2. A fingerprint code verification and identification method for commodity anti-counterfeiting according to claim 1, characterized in that: The coded information in S1 includes a preset graphic style, a preset graphic print quantity and a preset graphic print position; The preset graphic style includes fingerprint direction, fingerprint curvature, fingerprint texture, fingerprint color and fingerprint center point position; The preset graphic printing position is specifically represented as: Establish a two-dimensional plane coordinate system with the product packaging plane as the plane coordinate system. The lower left corner is the plane coordinate system (0, 0), the upper left corner is the positive direction of the Y axis, and the lower right corner is the positive direction of the X axis. Set N printing positions as N in sequence. i , where i represents the subscript number of the i-th printing position, i represents a positive integer greater than 1, and i preset graphics correspond to i preset graphics printing positions; The coding rules include a first anti-counterfeiting password coding rule; The method of generating a fingerprint code anti-counterfeiting pattern for a commodity according to the coding information combined with a preset coding rule includes: According to the first anti-counterfeiting password encoding rule, when receiving the encoding information, determining the number of digits of the UUID identification code according to the preset graphic printing quantity; Searching for the product anti-counterfeiting code ID to be printed in a preset product anti-counterfeiting database, and presetting a product anti-counterfeiting code ID for each product to be printed; Generate the UUID identification code and a first anti-counterfeiting password including the UUID identification code information according to a preset combination method, the number of digits of the UUID identification code, the commodity anti-counterfeiting code ID and the preset number of graphic prints, and store the UUID identification code information in an anti-counterfeiting database, wherein the first anti-counterfeiting password includes the UUID identification code information; Generate a fingerprint code anti-counterfeiting graphic for the product according to a preset graphic style and a preset graphic printing position; The step of processing the coded information using a dynamic encryption algorithm and a dynamic encryption parameter corresponding to the coded information to obtain a first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting pattern further includes: Based on the one-time dynamic encryption algorithm of hash, perform n random number generation operations to obtain the initial password value corresponding to the fingerprint code anti-counterfeiting verification image; The initial value of the password is intercepted and split into K character strings; Perform MD5 encryption on the K character strings respectively to obtain K encrypted character strings; The first 4 digits or the last 4 digits of the K encrypted character strings are respectively taken to generate K arrays of length 4, and the arrays are combined to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting pattern, wherein K represents the number of preset pattern prints; The array of length 4 is divided into a first array, a second array, a third array and a fourth array, wherein the first array stores the horizontal coordinate X corresponding to the printing position of the fingerprint code anti-counterfeiting pattern, and the second array stores the vertical coordinate Y corresponding to the printing position of the fingerprint code anti-counterfeiting pattern.

3. A fingerprint code verification and identification method for commodity anti-counterfeiting according to claim 2, characterized in that: After processing the coded information using a dynamic encryption algorithm and a dynamic encryption parameter corresponding to the coded information to obtain a first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting pattern, the method further includes: The fingerprint code anti-counterfeiting pattern and the corresponding UUID identification code and the first anti-counterfeiting password are stored in a preset commodity anti-counterfeiting database; When a printing request is received, the fingerprint code anti-counterfeiting graphics and the printing position corresponding to each fingerprint code anti-counterfeiting graphics are retrieved from the commodity anti-counterfeiting database, and the printing device is controlled to print according to the anti-counterfeiting verification graphics and the printing position.

4. A fingerprint code verification and identification method for commodity anti-counterfeiting according to claim 3, characterized in that: In S2, the anti-counterfeiting identification server processes the image to determine whether the image is a real fingerprint code image, which specifically includes: S21: Reconstruct and preprocess the fingerprint code image; S22: preprocessing the image results using the infrared light band, and performing feature extraction and calculation according to preset rules; S23: comparing the calculation result of step S22 with a preset threshold value, if the calculation result is greater than the preset threshold value, determining that the fingerprint image is a real fingerprint image, otherwise the fingerprint image is not a real fingerprint image; The S21 specifically includes: S211: reconstructing the infrared spectrum image of the fingerprint code image, reading the width data and the height data of the fingerprint code image, and directly converting the binary data of the read width data and height data into a 2-byte unsigned decimal integer, the converted width data and height data are the image width and image height of the reconstructed infrared spectrum image; S212: extracting a region of interest from the infrared spectrum image through a fixed window and a sliding window; S213: performing noise reduction on the infrared spectrum image from which the region of interest has been extracted; The S22 specifically includes: S221: Selecting a fingerprint code image in the infrared light band; S222: Extracting fingerprint direction features, fingerprint curvature features and fingerprint texture flow features from the fingerprint code image according to preset rules; S223: Counting and calculating first credibility scores corresponding to the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature; Among them, in step S223, by formula The first credibility score S of the fingerprint direction feature, the fingerprint curvature feature and the fingerprint texture flow feature is counted and calculated, wherein T i is the number of feature point categories extracted from the fingerprint direction feature, the fingerprint curvature feature and the fingerprint texture flow feature, Td is the comprehensive threshold of feature point categories, The similarity between the fingerprint directional feature, the fingerprint curvature feature, and the fingerprint texture flow feature corresponding to the fingerprint code image and the fingerprint directional feature, the fingerprint curvature feature, and the fingerprint texture flow feature corresponding to the commodity anti-counterfeiting database template image.

5. A fingerprint code verification and identification method for commodity anti-counterfeiting according to claim 4, characterized in that: The first anti-counterfeiting password is a fingerprint-shaped graphic verification code, which is used to identify the fingerprint code features in the fingerprint code anti-counterfeiting graphic verification code, and search the UUID identification code corresponding to the fingerprint code features in the translation database; The fingerprint code feature of the fingerprint code anti-counterfeiting graphic verification code specifically includes: M1: Obtain edge vertices. Through the edge detection algorithm, obtain the edge vertices of the fingerprint code circular frame to determine the position and size of the fingerprint code anti-counterfeiting image; M2: Image calibration: according to the edge vertices obtained, the fingerprint code anti-counterfeiting image is rotated, scaled and affine transformed to calibrate the image, so as to ensure the accuracy of the geometric shape and size of the fingerprint code anti-counterfeiting image, so as to facilitate accurate decoding; M3: read the fingerprint direction feature, fingerprint curvature feature, fingerprint texture flow feature and the color value corresponding to each feature of the fingerprint code anti-counterfeiting pattern in turn, normalize each feature and color value to form a connection string with a length of 8 bytes, input the connection string through the UUID generator, and output the corresponding UUID identification code.

6. A fingerprint code verification and identification method for commodity anti-counterfeiting according to claim 5, characterized in that: In S3, the anti-counterfeiting identification server performs the first anti-counterfeiting verification, decodes the fingerprint code image, and extracts the first anti-counterfeiting password, and further includes: If it is detected that the fingerprint code is damaged, the UUID identification code corresponding to the damaged fingerprint code is set to Q; Sequentially read the fingerprint direction feature, fingerprint curvature feature, fingerprint texture flow feature and color value corresponding to each feature of the anti-counterfeiting pattern of the destroyed fingerprint code to obtain the UUID identification code containing Q; Searching in a commodity anti-counterfeiting database whether there is a possible UUID identification code corresponding to the UUID identification code containing Q; If there is a corresponding UUID identification code, the anti-counterfeiting identification server makes a first judgment result that the current product is a suspected counterfeit, sends corresponding judgment information to the client, and performs subsequent verification steps; If the corresponding UUID identification code cannot be found in the product anti-counterfeiting database, the anti-counterfeiting identification server makes a first judgment result that the current product is a counterfeit, sends corresponding judgment information to the client, and the current anti-counterfeiting verification is terminated.

7. A fingerprint code verification and identification method for commodity anti-counterfeiting according to claim 6, characterized in that: The second anti-counterfeiting verification operation of S5 specifically includes: L1: The client's verification personnel uses the APP to scan and collect any one of the fingerprint code anti-counterfeiting graphics on the product again; L2: Decoding the first anti-counterfeiting password of the fingerprint code anti-counterfeiting pattern to obtain the number of fingerprint code anti-counterfeiting patterns printed and the coordinate position corresponding to the fingerprint code anti-counterfeiting pattern; L3: According to the number of decoded fingerprint code anti-counterfeiting graphics and the coordinate position of the fingerprint code anti-counterfeiting graphics, the APP displays the printing position of each fingerprint code anti-counterfeiting graphic on the APP display interface. The verification personnel check whether the actual position of each fingerprint code anti-counterfeiting graphic of the product is correct according to the printing position displayed by the APP. If at least two positions are correct, the product is determined to be authentic, otherwise it is determined to be a counterfeit, and the second anti-counterfeiting verification operation is ended. The printing position verification of the product is a manual active detection and identification verification; The acquisition of the number of fingerprint code anti-counterfeiting graphics printed and the coordinate position corresponding to the fingerprint code anti-counterfeiting graphics in L2 is specifically a one-time dynamic decoding algorithm based on hash, which decodes the number of fingerprint code anti-counterfeiting graphics printed and the coordinate position corresponding to the fingerprint code anti-counterfeiting graphics contained in the first anti-counterfeiting password respectively.

8. A fingerprint code verification and identification system for commodity anti-counterfeiting, characterized in that: include: Fingerprint code generation and printing module, used to generate fingerprint code anti-counterfeiting graphics with fingerprint anti-counterfeiting function and control the printing device to print on the surface of the product according to the number and position of the anti-counterfeiting verification graphics; Fingerprint code image authenticity recognition module, which identifies whether the fingerprint code anti-counterfeiting pattern is a real fingerprint image through image analysis; The information verification interaction module is used for the client to send anti-counterfeiting verification request information to the anti-counterfeiting identification server, and the client to receive the anti-counterfeiting verification judgment result information sent by the anti-counterfeiting identification server; The anti-counterfeiting verification module is used for the anti-counterfeiting identification server to complete the first anti-counterfeiting verification and the client to complete the second anti-counterfeiting verification.

Citation Information

Patent Citations

  • Winebottle laser anti-counterfeit code marking device, method thereof and winebottle with same

    CN101927616A

  • Tracing anti-fake market interaction integration system and method

    CN103325042A

  • Method for generating anti-counterfeiting codes of reversible movie tickets

    CN104636778A

  • Code fingerprint anti-counterfeiting method and code fingerprint anti-counterfeiting system

    CN110310131A

  • QR code embedded novel two-dimensional code encoding and anti-counterfeiting application method

    CN111639734A