A fingerprint code verification and identification method and system for commodity anti-counterfeiting

By printing multiple fingerprint code anti-counterfeiting graphics on the product and combining dynamic encryption and infrared light band processing, high security and robust product anti-counterfeiting verification is achieved, solving the verification failure problem caused by the susceptibility of QR codes to be copied and damaged.

CN119785389BActive Publication Date: 2025-08-01GUANGZHOU TONGYING TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing anti-counterfeiting technology of goods, the QR code anti-counterfeiting logo is easy to copy and has low security. Some logos cannot be accurately verified after being damaged or blocked.

Method used

Fingerprint anti-counterfeiting graphics are used to generate multiple fingerprint anti-counterfeiting graphics through dynamic encryption algorithms, and the image is processed in combination with infrared light bands, and multiple verifications are carried out to ensure the accuracy and security of the verification.

Benefits of technology

It improves the effectiveness and robustness of anti-counterfeiting verification, reduces the risk of being impersonated, and solves the verification failure problem caused by corruption or obscuration of logos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119785389B_ABST
    Figure CN119785389B_ABST
Patent Text Reader

Abstract

The present invention discloses a fingerprint code verification and identification method for commodity anti-counterfeiting, which includes providing a fingerprint code anti-counterfeiting pattern with fingerprint anti-counterfeiting function and controlling a printing device to print the position of the fingerprint code anti-counterfeiting pattern on the commodity surface. When verification is required, the client APP scans the fingerprint code to pre-judge whether the image is a real fingerprint code image and perform the first anti-counterfeiting verification based on the first anti-counterfeiting password. When the first anti-counterfeiting verification is insufficient or further verification is needed, the second anti-counterfeiting verification based on manual verification can be carried out; through multiple verifications, the present invention improves the effectiveness of anti-counterfeiting verification, reduces the risk of being impersonated, and solves the problem that a single anti-counterfeiting code cannot be verified due to damage, shedding or loss by printing multiple anti-counterfeiting code patterns, thereby improving the robustness and fault tolerance of anti-counterfeiting verification.
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] Currently, commodity anti-counterfeiting mainly relies on two-dimensional code anti-counterfeiting, that is, the most common QR code. The anti-counterfeiting process mainly places the anti-counterfeiting code in the QR code. The QR code has the advantages of beauty and low usage cost. However, the QR code can be simply scanned and parsed, and there are defects such as being easily copied and stolen. Attackers can scan a valid QR code and make replicas to deceive the system and consumers, and the copied QR code cannot provide effective anti-counterfeiting protection. Therefore, it is very 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 identification patterns are generated using coding rules similar to the OID coding technology. However, the coding rules similar to the OID coding technology belong to general and public coding technologies, thus reducing the confidentiality performance of the anti-counterfeiting identification.

[0003] In addition, since the QR codes of many products are directly exposed, the QR codes are easily affected by the outside world, resulting in partial patterns being damaged, blocked, or falling off and lost, causing users to be unable 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 the low confidentiality performance of the anti-counterfeiting identification, and some anti-counterfeiting identifications being damaged, 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 commodity anti-counterfeiting to improve the above problems.

[0005] The present application is specifically as follows:

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

[0007] S1: Print a plurality of fingerprint code anti-counterfeiting graphics on the surface of the commodity. When receiving the coding information, generate the fingerprint code anti-counterfeiting graphics for the commodity according to the coding information in combination with a preset coding rule, process the coding information using a dynamic encryption algorithm and the dynamic encryption parameters corresponding to the coding information to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphics, control the printing device to print the fingerprint code anti-counterfeiting graphics on the surface of the commodity, the fingerprint code anti-counterfeiting graphics include the first anti-counterfeiting password, and the first anti-counterfeiting passwords corresponding to the plurality of fingerprint code anti-counterfeiting graphics on the surface of the same commodity are the same, and the plurality of fingerprint code anti-counterfeiting graphics include at least more than 3.

[0008] S2: The client uses the APP on the mobile phone to scan any one of the fingerprint code anti-counterfeiting graphics on the commodity. 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: Decide whether to perform the first anti-counterfeiting verification based on whether the image is a real fingerprint code image:

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

[0011] If it is determined that the image is not a real fingerprint code image, send the information of verification failure to the client, and the commodity anti-counterfeiting verification ends;

[0012] S4: Decide whether to perform the 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, it is determined that the current commodity is a genuine product, and then synchronously send the first determination result and the user's self-selected authentication method to the client, and this verification ends;

[0014] If the first determination result given by the anti-counterfeiting identification server is that the commodity is a counterfeit, synchronously send the first determination result to the client, 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 synchronously provides the reason for the judgment of the suspected counterfeit to the client and executes step S5;

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

[0017] Further, the encoding information in S1 includes a preset graphic style, a preset number of graphic prints, and a preset graphic print position;

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

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

[0020] Establish a two-dimensional plane coordinate with the commodity packaging plane, where the lower left corner vertex is (0, 0) of the plane coordinate, the upper left corner vertex direction is the positive direction of the Y-axis, and the lower right corner vertex is the positive direction of the X-axis. Sequentially set N printing positions as N i , where i represents the subscript of the i-th printing position, i represents a positive integer greater than 1, and the i preset graphics correspond to i preset graphic print positions;

[0021] The encoding rule includes the first anti-counterfeiting password encoding rule;

[0022] Generating a fingerprint code anti-counterfeiting graphic for a commodity according to the encoding information in combination with a preset encoding rule includes:

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

[0024] Search for the commodity anti-counterfeiting code ID to be printed in a preset commodity anti-counterfeiting database, and each commodity to be printed is preset with a commodity anti-counterfeiting code ID;

[0025] 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, generate the UUID identification code and the first anti-counterfeiting password including UUID identification code information, and store the UUID identification code information in the anti-counterfeiting database. The first anti-counterfeiting password includes UUID identification code information;

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

[0027] Using the dynamic encryption algorithm and the dynamic encryption parameters corresponding to the encoding information to process the encoding information to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphic further includes:

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

[0029] Intercept and split the password initial value into K strings;

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

[0031] Take the first 4 bits or the last 4 bits of the K encrypted strings respectively to generate K arrays with a length of 4, and combine them to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphic, where K represents the preset number of graphic prints;

[0032] The arrays with a length of 4 are divided into a first array, a second array, a third array, and a fourth array. Among them, the first array stores the abscissa X corresponding to the printing position of the fingerprint code anti-counterfeiting graphic, and the second array stores the ordinate Y corresponding to the printing position of the fingerprint code anti-counterfeiting graphic.

[0033] Further, after using the dynamic encryption algorithm and the dynamic encryption parameters corresponding to the encoding information to process the encoding information to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphic, it further includes:

[0034] Store the fingerprint code anti-counterfeiting graphic, the corresponding UUID identification code, and the first anti-counterfeiting password into a preset commodity anti-counterfeiting database;

[0035] When receiving a printing request, retrieve the fingerprint code anti-counterfeiting graphic and the printing position corresponding to each fingerprint code anti-counterfeiting graphic from the commodity anti-counterfeiting database, and control the printing device to print according to the anti-counterfeiting verification graphic and the printing position.

[0036] Further, when the anti-counterfeiting identification server determines whether the image is a real fingerprint code image by processing the image in S2 specifically includes:

[0037] S21: Perform image reconstruction and preprocessing on the fingerprint code image;

[0038] S22: Use the preprocessed image result in the infrared light band and perform feature extraction and calculation according to preset rules;

[0039] S23: Compare the calculation result in step S22 with a preset threshold. If the calculation result is greater than the preset threshold, determine that the fingerprint code image is a real fingerprint code image; otherwise, the fingerprint code image is not a real fingerprint code image;

[0040] The S21 specifically includes:

[0041] S211: Perform infrared spectral image reconstruction on the fingerprint code image, read the width data and height data of the fingerprint code image, and directly convert the binary data of the read width data and height data into 2-byte unsigned decimal integers. The converted width data and height data are the image width and image height of the reconstructed infrared spectral image;

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

[0043] S213: Denoise the infrared spectral image from which the region of interest has been extracted;

[0044] The specific steps of S22 are as follows:

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

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

[0047] S223: Statistically calculate the first confidence score corresponding to the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature;

[0048] Among them, in step S223, through the formula

[0049]

[0050] Statistically calculate the first confidence score S of the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature, where T i is the number of feature point categories from which the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature have been extracted, and Td is the comprehensive threshold of feature point categories, is the similarity between the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature corresponding to the fingerprint code image and the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature of the template image in the commodity anti-counterfeiting database.

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

[0052] The specific steps of identifying the fingerprint code feature in the fingerprint code anti-counterfeiting graphic verification code are as follows:

[0053] M1: Obtain the 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 map;

[0054] M2: Image calibration. According to the obtained edge vertices, perform image rotation, scaling, and affine transformation on the fingerprint code anti-counterfeiting map to perform image calibration to ensure the accuracy of the geometric shape and size of the fingerprint code anti-counterfeiting map, facilitating accurate decoding;

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

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

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

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

[0059] Search in the commodity anti-counterfeiting database to find out 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 determination result that the current commodity is a suspected counterfeit, sends the corresponding judgment information to the client, and performs subsequent verification steps;

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

[0062] Further, the second anti-counterfeiting verification operation in S5 specifically includes:

[0063] L1: The verification personnel on the client use the APP to scan and collect any one of the patterns in the fingerprint code anti-counterfeiting pattern on the commodity again;

[0064] L2: Decode the first anti-counterfeiting password of the fingerprint code anti-counterfeiting pattern to obtain the printing quantity of the fingerprint code anti-counterfeiting pattern and the coordinate position corresponding to the fingerprint code anti-counterfeiting pattern;

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

[0066] The obtaining of the number of anti-counterfeiting fingerprint code graphics to be printed and the coordinate positions corresponding to the anti-counterfeiting fingerprint code graphics in L2 is specifically to decode the number of anti-counterfeiting fingerprint code graphics to be printed and the coordinate positions corresponding to the anti-counterfeiting fingerprint code graphics included in the first anti-counterfeiting password respectively based on the one-time dynamic decoding algorithm based on hash.

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

[0068] A fingerprint code generation and printing module, which is used to generate anti-counterfeiting fingerprint code graphics with fingerprint anti-counterfeiting functions and control the printing device to print on the commodity surface according to the number and positions of the anti-counterfeiting verification graphics;

[0069] A fingerprint code image authenticity identification module, which identifies whether the anti-counterfeiting fingerprint code graphic is a real fingerprint image through image analysis;

[0070] An information verification and interaction module, which 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] An anti-counterfeiting verification module, which 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 a fingerprint code verification and identification method and system for commodity anti-counterfeiting according to the present invention are as follows:

[0073] The present invention provides anti-counterfeiting fingerprint code graphics with fingerprint anti-counterfeiting functions and controls the printing device to print the positions of the anti-counterfeiting fingerprint code graphics on the commodity surface. When verification is needed, the client APP scans the fingerprint code to pre-judge whether the image is a real fingerprint code image and perform the first anti-counterfeiting verification based on the 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; through multiple verifications, the present invention improves the effectiveness of anti-counterfeiting verification, reduces the risk of being impersonated, and solves the problem that one anti-counterfeiting code is damaged or falls off and cannot be verified by printing multiple anti-counterfeiting code graphics, improving the robustness and fault tolerance of anti-counterfeiting verification. Description of the Drawings

[0074] Figure 1Schematic diagram of a fingerprint code verification and identification method for product anti-counterfeiting according to the present invention;

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

[0076] Figure 3 Printing position diagram of the fingerprint code of a fingerprint code verification and identification method for product anti-counterfeiting according to the present invention. Detailed implementation manners

[0077] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0078] Embodiment 1

[0079] Figure 1 Schematic diagram of a fingerprint code verification and identification method for product anti-counterfeiting according to the present invention.

[0080] The method includes:

[0081] S1: Print a plurality of fingerprint code anti-counterfeiting graphics on the surface of the product. When receiving the coding information, generate the fingerprint code anti-counterfeiting graphics for the product according to the coding information in combination with the preset coding rules, process the coding information using a dynamic encryption algorithm and the dynamic encryption parameters corresponding to the coding information to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphics, and control the printing device to print the fingerprint code anti-counterfeiting graphics on the surface of the product. The fingerprint code anti-counterfeiting graphics include the first anti-counterfeiting password, and the first anti-counterfeiting passwords corresponding to the plurality of fingerprint code anti-counterfeiting graphics on the surface of the same product are the same. The plurality of fingerprint code anti-counterfeiting graphics include at least more than 3;

[0082] S2: The client uses the APP on the mobile phone to scan any one of the fingerprint code anti-counterfeiting graphics on the product, and 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: Decide whether to perform the first anti-counterfeiting verification based on whether the image is a real fingerprint code image:

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

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

[0086] S4: Determine whether to perform the 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, it is determined that the current product is a genuine product, and then the first determination result and the user's self-selected authentication method are synchronously sent to the client, and this verification ends;

[0088] If the first determination result given by the anti-counterfeiting identification server is that the product is a counterfeit, the first determination result is synchronously sent to the client, 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 synchronously provides the reason for the judgment of the suspected counterfeit to the client and executes step S5;

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

[0091] Furthermore, the coding 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 specific expression of the preset graphic printing position is:

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

[0095] The encoding rule includes the first anti-counterfeiting password encoding rule;

[0096] Generating the fingerprint code anti-counterfeiting graphic for the commodity according to the encoding information in combination with the preset encoding rule includes:

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

[0098] Search for the commodity anti-counterfeiting encoding ID to be printed in the preset commodity anti-counterfeiting database. Each commodity to be printed is preset with a commodity anti-counterfeiting encoding ID;

[0099] According to the preset combination method, the number of digits of the UUID identification code, the commodity anti-counterfeiting encoding ID, and the preset graphic printing quantity, generate the UUID identification code and the first anti-counterfeiting password including the UUID identification code information, and store the UUID identification code information in the anti-counterfeiting database. The first anti-counterfeiting password includes the UUID identification code information;

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

[0101] The process of using the dynamic encryption algorithm and the dynamic encryption parameters corresponding to the encoding information to process the encoding information to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphic further includes:

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

[0103] Intercept and split the initial value of the password into K strings;

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

[0105] Take the first 4 digits or the last 4 digits of the K encrypted strings respectively to generate K arrays with a length of 4, and combine them together to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphic. K represents the preset graphic printing quantity;

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

[0107] Further, after using the dynamic encryption algorithm and the dynamic encryption parameters corresponding to the encoding information to process the encoding information to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting pattern, it further includes:

[0108] Storing the fingerprint code anti-counterfeiting pattern, the corresponding UUID identification code, and the first anti-counterfeiting password into a preset commodity anti-counterfeiting database;

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

[0110] Specifically, by using the dynamic encryption algorithm and the dynamic encryption parameters corresponding to the encoding information to process the encoding information, the confidentiality and anti-counterfeiting property of the anti-counterfeiting information are realized. At the same time, the recognition accuracy and efficiency of users are improved, which can provide powerful functions for commodity anti-counterfeiting and reduce the risk of being attacked and deceived.

[0111] Further, in step S2, when the anti-counterfeiting recognition server determines whether the image is a real fingerprint code image by processing the image, it specifically includes:

[0112] S21: Performing image reconstruction and preprocessing on the fingerprint code image;

[0113] S22: Using the infrared light band to preprocess the image result and performing feature extraction and calculation according to a preset rule;

[0114] S23: Comparing the calculation result in step S22 with a preset threshold. If the calculation result is greater than the preset threshold, it is determined that the fingerprint code image is a real fingerprint code image; otherwise, the fingerprint code image is not a real fingerprint code image.

[0115] The specific content of S21 includes:

[0116] S211: Performing infrared spectrum image reconstruction on the fingerprint code image, reading the width data and height data of the fingerprint code image, and directly converting the binary data of the read width data and height data into 2-byte unsigned decimal integers. The converted width data and height data are the image width and image height of the reconstructed infrared spectrum image.

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

[0118] S213: Denoise the infrared spectral image from which the region of interest has been extracted;

[0119] The specific steps of S22 are as follows:

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

[0121] S222: Extract the fingerprint direction feature, fingerprint curvature feature, and fingerprint texture flow feature from the fingerprint code image according to a preset rule;

[0122] S223: Statistically calculate the first confidence score corresponding to the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature;

[0123] Among them, in step S223, through the formula

[0124]

[0125] Statistically calculate the first confidence score S of the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature. Among them, T i is the number of feature point categories from which the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature have been extracted, and Td is the comprehensive threshold of feature point categories. is the similarity between the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature corresponding to the fingerprint code image and the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature of the template image in the commodity anti-counterfeiting database.

[0126] Specifically, by using the preprocessed image in the infrared light band to determine whether the recognition image is a real fingerprint image, non-fingerprint code images are initially filtered, improving the efficiency of the entire verification process. Once it is recognized as a non-fingerprint code image, it can be determined as a counterfeit commodity, and there is no need to spend time on subsequent verification.

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

[0128] The specific steps of identifying the fingerprint code features in the fingerprint code anti-counterfeiting graphic verification code are as follows:

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

[0130] M2: Image calibration. Based on the obtained edge vertices, perform image rotation, scaling, and affine transformation on the fingerprint code anti-counterfeiting image to ensure the accuracy of the geometric shape and size of the fingerprint code anti-counterfeiting image, facilitating accurate decoding.

[0131] M3: Sequentially read the fingerprint direction feature, fingerprint curvature feature, fingerprint texture flow feature of the fingerprint code anti-counterfeiting graphic, and the color values corresponding to each feature. Normalize each feature and the color values to form a concatenated string with a length of 8 bytes. Input the concatenated string through a UUID generator and output the corresponding UUID identification code.

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

[0133] If it is detected that there is a situation where the fingerprint code is damaged, set the UUID identification code corresponding to the damaged fingerprint code to Q.

[0134] Sequentially read the fingerprint direction feature, fingerprint curvature feature, fingerprint texture flow feature of the damaged fingerprint code anti-counterfeiting graphic, and the color values corresponding to each feature, and obtain the UUID identification code containing Q.

[0135] Search in the commodity anti-counterfeiting database to find out if 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 determination result that the current commodity is a suspected forgery, sends the corresponding judgment information to the client, and performs subsequent verification steps.

[0137] If no corresponding UUID identification code can be found in the commodity anti-counterfeiting database, the anti-counterfeiting identification server makes a first determination result that the current commodity is a forgery, sends the corresponding judgment information to the client, and terminates the current anti-counterfeiting verification.

[0138] Further, the second anti-counterfeiting verification operation in S5 specifically includes:

[0139] L1: The verification personnel on the client use the APP to scan any one of the fingerprint code anti-counterfeiting graphics on the commodity again.

[0140] L2: Decode the first anti-counterfeiting password of the fingerprint code anti-counterfeiting graphic to obtain the printing quantity of the fingerprint code anti-counterfeiting graphic and the coordinate position corresponding to the fingerprint code anti-counterfeiting graphic.

[0141] L3: Based on the number of anti-counterfeiting fingerprint code patterns decoded and their coordinate positions, the APP displays the printing positions of each anti-counterfeiting fingerprint code pattern on the APP display interface. The verification personnel check whether the actual positions of each anti-counterfeiting fingerprint code pattern on the commodity are correct according to the displayed printing positions on the APP. If at least two positions are correct, the commodity is determined to be genuine; otherwise, it is determined to be a forgery, and the second anti-counterfeiting verification operation ends. The verification of the printing positions of the commodity is a manual active detection, identification, and verification;

[0142] The obtaining of the printing quantity of the anti-counterfeiting fingerprint code pattern and the coordinate position corresponding to the anti-counterfeiting fingerprint code pattern in L2 is specifically to respectively decode the printing quantity of the anti-counterfeiting fingerprint code pattern and the coordinate position corresponding to the anti-counterfeiting fingerprint code pattern included in the first anti-counterfeiting password based on the hash-based one-time dynamic decoding algorithm.

[0143] Specifically, the customer actively identifies the authenticity of the commodity through self-selection. By scanning the fingerprint code with the APP, the first anti-counterfeiting password is decoded based on the hash-based one-time dynamic decoding algorithm to obtain the specific printing position of the fingerprint code. By displaying the specific printing position of the commodity, it is checked whether the commodity is forged. This method is simple and practical with high efficiency. By printing multiple anti-counterfeiting code patterns, it solves the problem that subsequent verification cannot be carried out when one anti-counterfeiting code is damaged, fallen off, or lost, and improves the robustness and fault tolerance of anti-counterfeiting verification.

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

[0145] A fingerprint code generation and printing module, which is used to generate anti-counterfeiting fingerprint code patterns with fingerprint anti-counterfeiting functions and control the printing device to print on the commodity surface according to the quantity and position of the anti-counterfeiting verification patterns;

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

[0147] An information verification and interaction module, which 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] An anti-counterfeiting verification module, which 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 a 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 at a position on the surface of a commodity. When verification is required, the client APP scans the fingerprint code to pre-judge whether the image is a real fingerprint code image and perform the first anti-counterfeiting verification based on the first anti-counterfeiting password. When the first anti-counterfeiting verification is insufficient or further verification is needed, a second anti-counterfeiting verification based on manual verification can be performed; through multiple verifications, the present invention improves the effectiveness of anti-counterfeiting verification, reduces the risk of being impersonated, and solves the problem that a single anti-counterfeiting code cannot be verified due to damage, shedding, or loss by printing multiple anti-counterfeiting code patterns, thereby improving the robustness and fault tolerance of anti-counterfeiting verification.

[0151] The above describes the present invention and its implementation manners. Such a description is not restrictive. What is shown in the drawings is only one of the implementation manners of the present invention, and the actual content is not limited thereto. Generally speaking, if those of ordinary skill in the art are inspired by it and design, without creative efforts, a structural manner and an embodiment similar to the technical solution without departing from the gist of the present invention, they shall fall within the protection scope of the present invention.

Claims

1. A fingerprint code verification and identification method for commodity anti-counterfeiting, characterized in that, The method includes: S1: Print a plurality of fingerprint code anti-counterfeiting graphics on the surface of the commodity. When receiving the coding information, generate the fingerprint code anti-counterfeiting graphics for the commodity according to the coding information in combination with the preset coding rules. Process the coding information using a dynamic encryption algorithm and the dynamic encryption parameters corresponding to the coding information to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphics. Control the printing device to print the fingerprint code anti-counterfeiting graphics on the surface of the commodity. The fingerprint code anti-counterfeiting graphics contain the first anti-counterfeiting password, and the first anti-counterfeiting passwords corresponding to the plurality of fingerprint code anti-counterfeiting graphics on the surface of the same commodity are the same. The plurality of fingerprint code anti-counterfeiting graphics includes at least 3 in number; The coding information in S1 includes a preset graphic style, a preset graphic printing quantity, and a preset graphic printing 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 plane of the product packaging as the plane. The lower left vertex is (0, 0) of the plane coordinate system. The direction of the upper left vertex is the positive direction of the Y-axis, and the lower right vertex is the positive direction of the X-axis. N printing positions are set in sequence as N i , where i represents the subscript of the i-th printing position, i represents a positive integer greater than 1, and the i preset graphics correspond to the i preset graphic printing positions; The coding rules include the first anti-counterfeiting password coding rules; The generating of the fingerprint code anti-counterfeiting graphics for the commodity according to the coding information in combination with the preset coding rules includes: According to the first anti-counterfeiting password coding rules, when receiving the coding information, determine the number of digits of the UUID identification code according to the preset graphic printing quantity; Search for the commodity anti-counterfeiting coding ID to be printed in the preset commodity anti-counterfeiting database. Each commodity to be printed is preset with a commodity anti-counterfeiting coding ID; Generate the UUID identification code and the first anti-counterfeiting password including the UUID identification code information according to the preset combination method, the number of digits of the UUID identification code, the commodity anti-counterfeiting coding ID, and the preset graphic printing quantity, and store the UUID identification code information in the anti-counterfeiting database. The first anti-counterfeiting password includes the UUID identification code information; Generate the fingerprint code anti-counterfeiting graphics for the commodity according to the preset graphic style and the preset graphic printing position; The using of the dynamic encryption algorithm and the dynamic encryption parameters corresponding to the coding information to process the coding information to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphics further includes: Based on the hash-based one-time dynamic encryption algorithm, perform n random number generation operations to obtain the password initial value corresponding to the fingerprint code anti-counterfeiting verification graph; Intercept and split the password initial value into K strings; Perform MD5 encryption on the K strings respectively to obtain K encrypted strings; Take the first 4 digits or the last 4 digits of the K encrypted strings respectively to generate K arrays with a length of 4, and combine them together to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphics. K represents the preset graphic printing quantity; The array with a length of 4 is divided into the first array, the second array, the third array, and the fourth array. Among them, the first array stores the abscissa X corresponding to the printing position of the fingerprint code anti-counterfeiting graphics, and the second array stores the ordinate Y corresponding to the printing position of the fingerprint code anti-counterfeiting graphics; After using the dynamic encryption algorithm and the dynamic encryption parameters corresponding to the coding information to process the coding information to obtain the first anti-counterfeiting password corresponding to the fingerprint code anti-counterfeiting graphics, it further includes: Store the fingerprint code anti-counterfeiting graphic, the corresponding UUID identification code, and the first anti-counterfeiting password in a preset product anti-counterfeiting database; When a printing request is received, retrieve the fingerprint code anti-counterfeiting graphic and the printing position corresponding to each fingerprint code anti-counterfeiting graphic from the product anti-counterfeiting database, and control the printing device to print according to the anti-counterfeiting verification graphic and the printing position; S2: The client uses the APP on the mobile phone to scan any one of the fingerprint code anti-counterfeiting graphics on the product, and the image formed by the graphic 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: Decide whether to perform the first anti-counterfeiting verification based on whether the image is a real fingerprint code image: If it is determined that the image is a real fingerprint code image, the anti-counterfeiting identification server performs the first anti-counterfeiting verification, decodes the fingerprint code image, extracts the first anti-counterfeiting password, decodes the first anti-counterfeiting password to extract the corresponding UUID identification code to be verified, and makes a determination based on the preset verification rules and the UUID identification code to be verified, gives the first determination result of the currently verified product, and sends the first determination result, the reason for the judgment, and the first anti-counterfeiting password corresponding to the second anti-counterfeiting verification of this product to the client; If it is determined that the image is not a real fingerprint code image, send the information of verification failure to the client, and the product anti-counterfeiting verification ends; S4: Decide whether to perform the 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, it is determined that the current product is a genuine product, and the first determination result and the user-selected authentication method are synchronously sent to the client, and this verification ends; If the first determination result given by the anti-counterfeiting identification server is that the product is a forgery, the first determination result is synchronously sent to the client, and this verification ends; If the first determination result given by the anti-counterfeiting identification server is a suspected forgery, the anti-counterfeiting identification server synchronously provides the reason for the judgment of the suspected forgery to the client and executes step S5; S5: The client performs the second anti-counterfeiting verification of the current product. When the client receives that the first determination result sent by the anti-counterfeiting identification server is that the product is a suspected forgery or the user-selected authentication method, the anti-counterfeiting identification server synchronously sends the graphic recognition rule corresponding to the product for the second anti-counterfeiting verification to the client. The verification personnel of the client use the APP to scan and collect any one of the fingerprint code anti-counterfeiting graphics on the product again, perform the second anti-counterfeiting verification operation, and give the second determination result, and the second determination result is used as the final judgment result of the product, and the product anti-counterfeiting verification ends.

2. The fingerprint code verification and identification method for commodity anti-counterfeiting according to claim 1, wherein, In S2, the anti-counterfeiting identification server processes the image to determine whether the image is a real fingerprint code image specifically includes: S21: Perform image reconstruction and preprocessing on the fingerprint code image; S22: Use the preprocessing result of the image in the infrared light band and perform feature extraction and calculation according to the preset rules; S23: Compare the calculation result in step S22 with a preset threshold. If the calculation result is greater than the preset threshold, determine that the fingerprint code image is a genuine fingerprint code image; otherwise, the fingerprint code image is not a genuine fingerprint code image. The specific steps of S21 include: S211: Reconstruct the infrared spectrum image of the fingerprint code image. Read the width data and height data of the fingerprint code image, and directly convert the binary data of the read width data and height data into 2-byte unsigned decimal integers. The converted width data and height data are the image width and image height of the reconstructed infrared spectrum image. S212: Extract the region of interest from the infrared spectrum image through a fixed window and a sliding window. S213: Denoise the infrared spectrum image from which the region of interest has been extracted. The specific steps of S22 include: S221: Select the fingerprint code image in the infrared light band. S222: Extract the fingerprint direction feature, fingerprint curvature feature, and fingerprint texture flow feature from the fingerprint code image according to a preset rule. S223: Statistically calculate the first credibility score corresponding to the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature. Among them, in step S223, through the formula Statistically calculate a first confidence score S for the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature, where T i is the number of feature point categories from which the fingerprint direction feature, the fingerprint curvature feature, and the fingerprint texture flow feature are extracted, and Td is the comprehensive threshold for feature point categories, is the similarity between the fingerprint direction feature, the fingerprint curvature feature, the fingerprint texture flow feature corresponding to the fingerprint code image and the corresponding fingerprint direction feature, the fingerprint curvature feature, the fingerprint texture flow feature of the template image in the commodity anti-counterfeiting database.

3. A fingerprint code verification and identification method for commodity anti-counterfeiting according to claim 2, characterized in that, The first anti-counterfeiting password is a graphic verification code in the shape of a fingerprint, which is used to identify the fingerprint code features in the fingerprint code anti-counterfeiting graphic verification code, and search for the corresponding UUID identification code in the translation database. The specific process of identifying the fingerprint code features in the fingerprint code anti-counterfeiting graphic verification code includes: M1: Obtain the edge vertices. Through the edge detection algorithm, obtain the edge vertices of the circular frame of the fingerprint code to determine the position and size of the fingerprint code anti-counterfeiting map. M2: Image calibration. According to the obtained edge vertices, perform image rotation, scaling, and affine transformation on the fingerprint code anti-counterfeiting map to perform image calibration, ensuring the accuracy of the geometric shape and size of the fingerprint code anti-counterfeiting map, facilitating accurate decoding. M3: Sequentially read the fingerprint direction feature, fingerprint curvature feature, fingerprint texture flow feature, and the corresponding color values of each feature of the fingerprint code anti-counterfeiting graphic, normalize each feature and the color values to form a concatenated string with a length of 8 bytes, and input the concatenated string through the UUID generator to output the corresponding UUID identification code.

4. A fingerprint code verification and identification method for commodity anti-counterfeiting according to claim 3, characterized in that, After the anti-counterfeiting recognition server in S3 performs the first anti-counterfeiting verification, decodes the fingerprint code image, and extracts the first anti-counterfeiting password, it further includes: If it is detected that there is a situation where the fingerprint code is damaged, set the UUID identification code corresponding to the damaged fingerprint code to Q. Sequentially read the fingerprint direction feature, fingerprint curvature feature, fingerprint texture flow feature, and the corresponding color values of each feature of the damaged fingerprint code anti-counterfeiting graphic, and obtain the UUID identification code containing Q. Search in the commodity anti-counterfeiting database to find 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 recognition server makes a first determination result that the current commodity is a suspected forgery, sends the corresponding judgment information to the client, and executes the 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 determination result that the current product is a counterfeit, sends the corresponding judgment information to the client, and the current anti-counterfeiting verification terminates.

5. A fingerprint code verification and identification method for commodity anti-counterfeiting according to claim 4, characterized in that The second anti-counterfeiting verification operation in S5 specifically includes: L1: The verification personnel on the client use the APP to scan any one of the fingerprint code anti-counterfeiting graphics on the product again for collection; L2: Decode the first anti-counterfeiting password of the fingerprint code anti-counterfeiting graphic to obtain the printing quantity of the fingerprint code anti-counterfeiting graphic and the coordinate position corresponding to the fingerprint code anti-counterfeiting graphic; L3: According to the decoded quantity of the fingerprint code anti-counterfeiting graphics and the coordinate positions of the fingerprint code anti-counterfeiting graphics, the APP displays the printing positions of each fingerprint code anti-counterfeiting graphic on the APP display interface. The verification personnel check whether the actual positions of each fingerprint code anti-counterfeiting graphic on the product are correct according to the displayed printing positions on the APP. If at least two positions are correct, the product is determined to be genuine; otherwise, it is determined to be a counterfeit, and the second anti-counterfeiting verification operation ends. The verification of the printing positions of the product is a manual active detection and identification verification; The obtaining of the printing quantity of the fingerprint code anti-counterfeiting graphic and the coordinate position corresponding to the fingerprint code anti-counterfeiting graphic in L2 is specifically to decode the printing quantity of the fingerprint code anti-counterfeiting graphic and the coordinate position corresponding to the fingerprint code anti-counterfeiting graphic included in the first anti-counterfeiting password respectively based on the hash-based one-time dynamic decoding algorithm.

6. A fingerprint code verification and identification system for commodity anti-counterfeiting, which is used to implement the steps of a fingerprint code verification and identification method for commodity anti-counterfeiting according to any one of claims 1-5, characterized in that, It includes: A fingerprint code generation and printing module, which is used to generate fingerprint code anti-counterfeiting graphics with fingerprint anti-counterfeiting functions and control the printing device to print on the product surface according to the quantity and position of the anti-counterfeiting verification graphics; A fingerprint code image authenticity identification module, which identifies whether the fingerprint code anti-counterfeiting graphic is a real fingerprint image through image analysis; An information verification and interaction module, which is used for the client to send anti-counterfeiting verification request information to the anti-counterfeiting identification server and for the client to receive the anti-counterfeiting verification judgment result information sent by the anti-counterfeiting identification server; An anti-counterfeiting verification module, which is used for the anti-counterfeiting identification server to complete the first anti-counterfeiting verification and for the client to complete the second anti-counterfeiting verification.

Citation Information

Patent Citations

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

    CN104636778A

  • Color watermark anti-counterfeiting method and device based on microdot codes

    CN115293311A

  • Multi-anti-counterfeiting method, system and device based on surface layer identification and storage medium

    CN115953175A