Electronic tag identification method based on RFID chip and two-dimensional code
By combining RFID chips and QR codes in electronic tags to form an information complementary structure, the problems of information uniformity and identification instability of traditional electronic tags are solved, and the security, accuracy and dynamic interactivity of information are achieved. It is suitable for product identification and management in the clothing, logistics warehousing and retail industries.
Patent Information
- Application Number
- CN202511212806.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-28
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2045-08-28
AI Technical Summary
Traditional electronic tag technology has problems such as a single information storage method, insufficient security, lack of information complementarity mechanism, and easy failure in the identification process. It is difficult to effectively prevent counterfeit and shoddy products, cannot accurately identify and trace cargo information, and lacks a dynamic interaction mechanism.
An electronic tag identification method that combines RFID chips with QR codes is adopted. By storing encrypted information in the RFID chip and user-readable verification information in the QR code, and performing roll-to-roll mapping association, an information complementary structure is formed. Two-way decoding verification is performed in combination with contactless identification and multi-angle scanning, and information is dynamically matched and fed back to the user end.
It improves the accuracy and reliability of information identification, ensures information security, and can accurately identify and trace information even when part of the information is damaged or interfered with, supporting dynamic information updates and full life cycle management.
Smart Images

Figure CN120706447A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic recording media, and in particular to an electronic tag identification method based on RFID chips and two-dimensional codes. Background Art
[0002] Traditional electronic tagging technology typically relies solely on a single information storage method, such as RFID chips or QR codes. While RFID chips can store large amounts of information, their encryption and verification mechanisms are complex and lack intuitive user-side verification methods. QR codes are easy to read and verify, but their information storage capacity is limited and they are susceptible to copying and tampering. This single information storage method presents significant security risks in practical applications. Furthermore, the information on the RFID chip and QR code is typically stored and verified independently, lacking an effective information complementation mechanism. During the recognition process, if the information on the RFID chip or QR code becomes damaged or interfered with, the entire recognition process may fail, resulting in inaccurate information reading. Furthermore, traditional electronic tag recognition technology typically only performs static information reading and verification and lacks dynamic interaction mechanisms. These shortcomings make it difficult to effectively prevent counterfeit and shoddy products in practical applications, such as the apparel industry, logistics and warehousing, and retail industries, as well as to accurately identify and trace goods and promptly update and provide feedback on product information changes. Summary of the Invention
[0003] Based on this, it is necessary to provide an electronic tag identification method based on RFID chip and QR code to solve at least one of the above technical problems.
[0004] To achieve the above purpose, a method for identifying an electronic tag based on an RFID chip and a QR code is provided. The electronic tag has an RFID chip embedded in it and a QR code attached to its surface. The method comprises the following steps: Step S1: The batch production information and washing information of the electronic tag are stored in an encrypted form in the RFID chip, and a machine-readable QR code is embroidered on the surface of the electronic tag using an embroidery machine, wherein the QR code contains verification information readable by the user end; Step S2: Perform volume-to-volume mapping on the encrypted information in the RFID chip and the verification information in the QR code to form information complementary structure data; Step S3: Contactlessly identify the electronic tag and read the encrypted information in the RFID chip; obtain user-end verification information by intermittently scanning the QR code at multiple angles; and perform bidirectional decoding and verification on the encrypted information in the RFID chip and the user-end verification information; Step S4: The decoded user terminal verification information is sent to the server. The server dynamically matches the information complementary structure data in the RFID chip according to the verification information and feeds back the matching result to the user terminal to complete the dynamic interaction and matching of information.
[0005] The beneficial effects of the present invention are: This dual storage method ensures data security by storing the electronic tag's batch production and washing information in encrypted form within the RFID chip, while simultaneously storing user-readable verification information in the form of a QR code on the tag's surface. The encrypted information in the RFID chip is difficult to tamper with or copy, while the verification information in the QR code is easily readable and verifiable by the user. In practical applications, such as in the apparel industry, consumers can quickly obtain verification information by scanning the QR code, while companies can use the encrypted information in the RFID chip to conduct detailed product traceability and management.
[0006] The encrypted information in the RFID chip and the verification information in the QR code are mapped and associated in a roll-to-roll manner, forming a complementary information structure data. This structure allows the two types of information to complement and verify each other. During the identification process, the encrypted information in the RFID chip is read through contactless recognition, while the QR code is intermittently scanned from multiple angles to obtain user-end verification information, and bidirectional decoding verification is performed. This dual verification mechanism greatly improves the accuracy and reliability of information recognition. In application scenarios such as logistics and warehousing, even if part of the information on the RFID chip or QR code is slightly damaged or interfered with, the other part can still be used as a supplement for verification, ensuring accurate identification and traceability of cargo information.
[0007] The decoded user verification information is sent to the server, which dynamically matches the complementary structure data in the RFID chip based on the verification information and feeds the matching results back to the user, completing dynamic information interaction and matching. This dynamic interaction mechanism enables the system to flexibly match and update data based on different verification information. In the retail industry, when product information changes, the server can promptly update the information in the RFID chip and feed it back to the user through dynamic matching, ensuring that the user always receives the latest information. This dynamic interaction also facilitates real-time monitoring and management of products throughout their lifecycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 A schematic diagram of the steps of an electronic tag identification method based on RFID chip and QR code; Figure 2 This is a flexible label image of an RFID chip and a QR code; Figure 3 This is a diagram of an RFID copper antenna electronic tag; The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0009] The following is a clear and complete description of the technical method of the present invention in conjunction with the accompanying drawings. It is obvious that the embodiments described are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making any creative efforts are within the scope of protection of the present invention.
[0010] In addition, the accompanying drawings are merely schematic illustrations of the present invention and are not necessarily drawn to scale. Identical reference numerals in the figures denote identical or similar parts, and thus repetitive descriptions thereof will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor and / or microcontroller approaches.
[0011] It should be understood that although the terms "first," "second," and the like may be used herein to describe various elements, these elements should not be limited by these terms. These terms are used solely to distinguish one element from another. For example, a first element may be referred to as a second element, and similarly, a second element may be referred to as a first element, without departing from the scope of the exemplary embodiments. The term "and / or" as used herein includes any and all combinations of one or more of the listed associated items.
[0012] To achieve this, please refer to Figures 1 to 3 A method for identifying an electronic tag based on an RFID chip and a QR code, wherein the electronic tag has an embedded RFID chip and a QR code attached to its surface, the method comprising the following steps: Preferably, step S1: storing the batch production information and washing information of the electronic tag in an encrypted form in an RFID chip, and embroidering a machine-readable QR code on the surface of the electronic tag by an embroidery machine, wherein the QR code contains verification information readable by a user end; In one embodiment, during the production process of electronic tags, batch production information (such as production batch, production date, and production location) and washing information (such as recommended washing method, washing temperature, and whether bleaching is acceptable) are first collected. This information is encrypted using specialized encryption equipment and then stored in the RFID chip.
[0013] It should be pointed out that the encryption device can be a common RFID writer on the market, which has encryption function and can ensure the security and non-tamperability of information.
[0014] In another embodiment, the data matrix is embroidered directly onto the electronic tag surface using high-contrast polyester embroidery thread (either black / white or black / yellow) in the "QR code embroidery mode" of an industrial embroidery machine. Embroidery parameters are set as follows: a stitch length of 0.3 mm, a needle angle of 45°, and 0.5 mm x 0.5 mm solid squares for corner positioning, which facilitates quick corner identification by the scanning device. After embroidery, the QR code tag undergoes a heat press flattening treatment to eliminate yarn hairiness and ensure a surface flatness of ≤0.1 mm, thereby improving edge alignment during subsequent multi-angle scanning.
[0015] It should be pointed out that industrial embroidery machines must have the "variable data embroidery" function, which automatically generates the embroidery path after receiving the QR code data matrix via USB; the equipment also has built-in thread breakage detection and tension compensation modules to ensure that the tension error of each yarn is ≤2 cN to prevent the loss of the QR code module.
[0016] For example, suppose the production information for a batch of electronic tags is "Production Batch: 20240518, Production Location: Factory A," and the washing information is "Hand wash recommended, wash temperature: 30°C, do not bleach." This information is encrypted and stored in the RFID chip. Simultaneously, the user-readable verification information is "Product Model: XYZ123, Verification Code: 456789," generated by a QR code generator and stored on the surface of the electronic tag.
[0017] Preferably, step S2: performing volume-to-volume mapping association on the encrypted information in the RFID chip and the verification information in the QR code to form information complementary structure data; Optionally, before performing volume-to-volume mapping on the encryption information in the RFID chip and the verification information in the QR code in step S2, the following steps may be performed: Extract several feature points from the encrypted information of the RFID chip and the same number of feature points from the verification information of the QR code; Match the RFID feature points with the QR code feature points in the order of appearance to form a forward mapping chain; Then, the RFID feature points are matched one by one with the QR code feature points in reverse order of appearance to form a reverse mapping chain; The feature points whose positions in the forward mapping chain and the reverse mapping chain coincide with each other are marked as core association points, and the rest are auxiliary association points.
[0018] In one embodiment, a number of feature points are extracted from the encrypted information of the RFID chip, and an equal number of feature points are extracted from the verification information of the QR code. The feature points can be key fields in the information, such as the production date, product model, etc.
[0019] For example, the feature points extracted from the RFID chip are “production date: 20240518, product model: XYZ123”, and the feature points extracted from the QR code are “product model: XYZ123, verification code: 456789”.
[0020] In another embodiment, the RFID feature points are mapped one-to-one with the QR code feature points in the order of appearance to form a forward mapping chain; For example, the forward mapping chain is: RFID feature point 1 (production date: 20240518) corresponds to QR code feature point 1 (product model: XYZ123); RFID feature point 2 (product model: XYZ123) corresponds to QR code feature point 2 (verification code: 456789).
[0021] In another embodiment, the RFID feature points are matched one-to-one with the QR code feature points in reverse order of appearance in the order of appearance to form a reverse mapping chain.
[0022] For example, the reverse mapping chain is: RFID feature point 1 (production date: 20240518) corresponds to QR code feature point 2 (verification code: 456789); RFID feature point 2 (product model: XYZ123) corresponds to QR code feature point 1 (product model: XYZ123).
[0023] In another embodiment, the feature points that overlap in the forward mapping chain and the reverse mapping chain are marked as core association points, and the rest are auxiliary association points. For example, in the above mapping chain, the feature point that overlaps is "Product Model: XYZ123", so it is marked as the core association point. The rest of the feature points are marked as auxiliary association points.
[0024] Optionally, the volume-to-volume mapping association in step S2 is specifically performed as follows: Using the core association points as the demarcation, the RFID encryption information and the QR code verification information are divided into several independent information blocks. Each information block contains a set of continuous core association points and auxiliary association points. Calculate the overlap between the RFID information and the QR code information in each information block, and retain the information blocks with an overlap higher than the critical value as valid association units; For information blocks with insufficient overlap, the information block boundaries are adjusted based on the auxiliary correlation points and then recalculated. If the overlap is still insufficient after recalculation three times, the information block is discarded. Arrange the valid association units in the original order, record the core association point positions and coincidence data in each unit, and form an information complementary structure framework with information block division.
[0025] In one embodiment, the encrypted information is read from the RFID chip and broken down into several key fields, such as the production date, product model, and production location. The verification information is read from the QR code and broken down into several key fields, such as the product model and verification code.
[0026] In another embodiment, core association points are identified, i.e., fields that exist in both the RFID information and the QR code information; for example, the product model number. The RFID information and the QR code information are divided into several information blocks based on the core association points. Each information block contains a core association point and its adjacent auxiliary association points.
[0027] For example, the RFID information is "Production Date: 20240518, Product Model: XYZ123, Production Location: Factory A", and the QR code information is "Product Model: XYZ123, Verification Code: 456789". The core connection point is "Product Model: XYZ123", so the information block is divided into: Information block 1: RFID information (production date: 20240518), QR code information (verification code: 456789); Information block 2: RFID information (production location: Factory A), QR code information (no corresponding information).
[0028] For each information block, the overlap between the RFID information and the QR code information is calculated; the overlap is measured by the field matching rate, which is the ratio of the number of matching fields to the total number of fields.
[0029] It should be noted that a threshold value, such as 50%, is set. If the overlap of an information block exceeds the threshold, the information block is retained as a valid association unit; otherwise, the process proceeds to the next step. For example, if the overlap of information block 1 is 0% and the overlap of information block 2 is 0%, both are below the threshold and require further processing.
[0030] In another embodiment, for information blocks with insufficient overlap, the block boundaries are adjusted based on auxiliary association points; auxiliary association points refer to other associated fields in the RFID and QR code information. For example, for information block 1, the auxiliary association points are "Manufacturing Date: 20240518" and "Verification Code: 456789." An attempt is made to reconstruct the "Manufacturing Date" in the RFID information and the "Verification Code" in the QR code information to form a new information block.
[0031] It should be noted that the overlap of the adjusted information blocks is recalculated. If the overlap is still below the critical value, a second adjustment is performed. For example, the "production date" in the RFID information and the "product model" in the QR code information are recombined and the overlap is calculated again.
[0032] It should be noted that if the overlap after the second adjustment is still below the critical value, a third adjustment is performed. If the overlap after the third adjustment is still below the critical value, the information block is discarded. For information block 2, the boundary adjustment and overlap calculation are performed three times. If the overlap after the third adjustment is still below the critical value, information block 2 is discarded.
[0033] The valid association units retained after screening and adjustment in the above steps are arranged in the original order, and the core association point positions and coincidence data within each valid association unit are recorded.
[0034] For example, the final information complementary structure framework is as follows: Information block 1: RFID information (production date: 20240518), QR code information (verification code: 456789), core association point location: product model, overlap: 60%; Information block 2: RFID information (production location: Factory A), QR code information (no corresponding information), core association point location: product model, overlap: 70%.
[0035] Optionally, the information complementary structure data formed in step S2 is specifically: In each valid association unit, continuous information segments containing core association points are intercepted. When the RFID segment is fixed, the QR code segment is gradually offset by one character length, and the number of matching characters for each offset is recorded. The offset position with the largest number of matches in each fragment is selected as the optimal mapping point, and the optimal mapping points of all fragments are marked in the information complementary structure framework to form information complementary structure data.
[0036] In one embodiment, for each valid association unit, consecutive information segments containing the core association point are intercepted. For example, assuming the RFID information segment is "Production Date: 20240518, Product Model: XYZ123," and the QR code information segment is "Product Model: XYZ123, Verification Code: 456789," the core association point is "Product Model: XYZ123." The intercepted information segments are the RFID segment "Product Model: XYZ123" and the QR code segment "Product Model: XYZ123, Verification Code: 456789," respectively.
[0037] In another embodiment, the RFID segment "Product Model: XYZ123" is fixed, and the QR code segment "Product Model: XYZ123, Verification Code: 456789" is gradually offset by one character. The specific offset process is as follows: Offset 0 times: The QR code fragment is "Product model: XYZ123, verification code: 456789"; Offset once: The QR code fragment is "Product model: XYZ123, verification code: 45678"; Offset 2 times: The QR code fragment is "Product model: XYZ123, verification code: 4567"; Offset 3 times: The QR code fragment is "Product model: XYZ123, verification code: 456"; Offset 4 times: The QR code fragment is "Product model: XYZ123, verification code: 45"; Offset 5 times: The QR code fragment is "Product model: XYZ123, verification code: 4".
[0038] In another embodiment, after each shift, the number of matching characters between the RFID segment and the QR code segment is recorded. For example: Offset 0: The number of matched characters is 13 ("Product Model: XYZ123"); Offset 1: The number of matched characters is 12 ("Product Model: XYZ123"); Offset 2 times: the number of matched characters is 11 ("Product Model: XYZ123"); Offset 3 times: the number of matched characters is 10 ("Product Model: XYZ123"); Offset 4 times: the number of matched characters is 9 ("Product Model: XYZ123"); Offset 5 times: The number of matched characters is 8 ("Product Model: XYZ123").
[0039] The offset position with the largest number of matches in each segment is selected as the optimal mapping point. In the above example, the offset with the largest number of matches is 13, so the optimal mapping point is offset 0. The optimal mapping points of all segments are marked in the information complementary structure framework to form information complementary structure data. For example, the final information complementary structure framework is as follows: Information block 1: RFID information (production date: 20240518, product model: XYZ123), QR code information (product model: XYZ123, verification code: 456789), optimal mapping point: offset 0 times.
[0040] Preferably, step S3: performing contactless identification on the electronic tag to read the encrypted information in the RFID chip; obtaining user-end verification information by intermittently scanning the QR code at multiple angles; performing bidirectional decoding verification on the encrypted information in the RFID chip and the user-end verification information; Optionally, performing contactless identification on the electronic tag in step S3 and reading the encrypted information in the RFID chip includes: Use an ultra-high frequency RFID reader to read the electronic tag three times within the preset identification distance; When reading for the first time, the reader antenna should be aligned with the center of the electronic tag; The second time, it is offset above the label by a preset distance; The third time, it is offset below the label by the same preset distance; The encrypted information read three times is compared bit by bit. If the three results are completely consistent, it is determined to be a valid read and the complete encrypted information is saved.
[0041] In one embodiment, select a suitable UHF RFID reader, ensuring that its operating frequency matches the frequency of the RFID chip. For example, a 915 MHz UHF RFID reader is used. Connect the RFID reader to a data processing device (such as a computer or a dedicated reader terminal) and ensure proper communication. Place the electronic tag within a predetermined identification area, ensuring that the tag surface is clear of obstructions to ensure that the RFID reader's signal can accurately read the tag information.
[0042] It should be noted that based on actual application scenarios and test results, the preset identification distance is set to 1 meter. This is the maximum effective reading distance between the RFID reader and the electronic tag. The offset preset distance is set to 5 cm. This distance was determined based on actual testing to ensure signal stability and consistency when reading from different positions.
[0043] In another embodiment, align the RFID reader's antenna with the center of the electronic tag. Ensure the distance between the antenna and the electronic tag is 1 meter. Activate the RFID reader and perform the first read operation. Record the encrypted information read, including all fields and data. For example, the encrypted information read for the first time may be: "Production Date: 20240518, Product Model: XYZ123, Production Location: Factory A."
[0044] In another embodiment, while maintaining the reader antenna parallel to the surface of the electronic tag, offset the antenna upward by 5 centimeters. Ensure that the distance between the antenna and the electronic tag remains at 1 meter. Activate the RFID reader and perform a second read operation. Record the encrypted information read; for example, the encrypted information read the second time may be: "Production Date: 20240518, Product Model: XYZ123, Production Location: Factory A."
[0045] In another embodiment, while maintaining the reader antenna parallel to the surface of the electronic tag, the antenna is offset downward by 5 centimeters. This ensures that the distance between the antenna and the electronic tag remains at 1 meter. The RFID reader is activated and a third read operation is performed. The encrypted information read is recorded. For example, the encrypted information read the third time may be: "Production Date: 20240518, Product Model: XYZ123, Production Location: Factory A."
[0046] In another embodiment, the encrypted information read three times is compared bit by bit. The bit by bit comparison refers to comparing each character or each data bit in the encrypted information read each time one by one.
[0047] The specific comparison method is as follows: The encrypted information read for the first time is compared bit by bit with the encrypted information read for the second time, and the inconsistent positions and contents are recorded.
[0048] The encrypted information read for the first time is compared bit by bit with the encrypted information read for the third time, and the inconsistent positions and contents are recorded.
[0049] The encrypted information read a second time is compared bit by bit with the encrypted information read a third time, and the inconsistent positions and contents are recorded.
[0050] If the results of the three reads are exactly the same, it is determined to be a valid read and the complete encrypted information is saved.
[0051] If the results of the three reads are not completely consistent, the inconsistent position and content are recorded and the read operation is performed again until three consistent results are obtained.
[0052] It should be noted that once the three read results are confirmed to be completely consistent, the complete encrypted information is saved to the data processing device for subsequent processing and analysis. For inconsistent read results, the specific issues can be recorded and troubleshooting can be carried out to ensure the accuracy and reliability of the reading process.
[0053] Optionally, the QR code is a QR code plate embroidered by an embroidery machine, and the reflective properties of the surface yarn are suppressed by multi-angle scanning. The intermittent multi-angle scanning of the QR code in step S3 includes: Keep the device lens parallel to the QR code plane and scan for a preset basic length of time to complete the first acquisition; The device lens rotates 10-20 degrees clockwise around the center of the QR code and stays there for the same amount of time to complete the second capture. The lens rotates counterclockwise 20-40 degrees to 10-20 degrees on the other side of the initial position and stays there for the same length of time to complete the third acquisition. After three acquisitions, they are spliced together to form a user verification information segment.
[0054] In one embodiment, a scanning device with a high-resolution camera is used (such as a dedicated QR code scanner or a mobile device with corresponding functions); the device lens is kept parallel to the QR code plane, and the center of the lens is ensured to be aligned with the center of the QR code; and a preset basic time length is set to 2 seconds, which is the time the lens stays during each acquisition to ensure that a clear image is captured.
[0055] In another embodiment, the scanning device is started, and the lens stays at the initial position for a preset basic time (2 seconds) to complete the first acquisition; after the acquisition is completed, the device automatically saves the image data acquired for the first time; a preliminary quality check is performed on the image acquired for the first time to ensure that the image is clear and the QR code area is unobstructed; if the image quality is poor, the device position is readjusted and the acquisition is repeated.
[0056] In another embodiment, the device's camera rotates 15 degrees clockwise around the center of the QR code (a specific value is selected within the range of 10-20 degrees to ensure the accuracy of the rotation angle). The camera remains in the new position for the same length of time (2 seconds) to complete a second acquisition. After acquisition is complete, the device automatically saves the second acquired image data. The second acquired image is then quality-checked, with particular attention paid to the upper right corner of the QR code to ensure that the image in this area is clear and free of distortion. If the image quality in this area is poor, the device's rotation angle is adjusted and the acquisition is repeated.
[0057] In another embodiment, the device lens rotates 30 degrees counterclockwise from the position of the second acquisition (a specific value is selected within the range of 20-40 degrees to ensure the accuracy of the rotation angle) to a position 15 degrees on the other side of the initial position; the lens stays at the new position for the same length of time (2 seconds) to complete the third acquisition; after the acquisition is completed, the device automatically saves the image data acquired for the third time; the quality of the image acquired for the third time is checked, with special attention paid to the lower left corner area of the QR code to ensure that the image in this area is clear and without distortion; if the image quality in this area is poor, adjust the rotation angle of the device and re-acquire.
[0058] Optionally, the verification information operation is performed using a display device. The specific steps of obtaining the user terminal verification information in step S3 are: The display device generates a temporary verification graphic containing a random line combination based on the user verification information fragment and displays it in full screen; Place the display device screen close to the surface of the electronic tag, so that the temporary verification pattern and the QR code physically overlap and the edges are completely aligned. Hold for 2-4 seconds and then perform a second scan to capture the composite pattern. Identify random line combinations in the temporary verification graphic and match them with preset line features in the user verification information fragment. After the match is successful, separate the temporary graphic area from the composite graphic. The original QR code information in the temporary graphic area is extracted as user-side verification information.
[0059] In one embodiment, a display device generates a temporary verification graphic containing a random line combination based on the user verification information fragment. The random line combination may include lines of varying orientations, lengths, and colors, ensuring that each generated graphic is unique. For example, the randomly generated line combination may include a horizontal line, a vertical line, and a diagonal line, with the color and position of each line randomly generated. The generated temporary verification graphic is displayed full screen on the device screen to ensure clarity.
[0060] In another embodiment, the display device screen is placed close to the surface of the electronic tag, ensuring that the temporary verification graphic and the QR code physically overlap and their edges are fully aligned. Ensure that the edges of the temporary verification graphic and the QR code are fully aligned to ensure accurate subsequent scanning and acquisition. For example, alignment marks (such as the locator pattern on the QR code) can be used to assist with alignment, ensuring that the edges of the temporary verification graphic and the QR code completely overlap. The device screen is held close to the surface of the electronic tag for 2-4 seconds to ensure that the physical overlap between the temporary verification graphic and the QR code is stable and without shifting. While maintaining the physical overlap between the temporary verification graphic and the QR code, the device's scanning function is activated to perform a second scan to capture the composite graphic. After acquisition is complete, the device automatically saves the composite graphic image data from the second scan. The composite graphic image captured from the second scan combines the image information of the temporary verification graphic and the QR code. The composite graphic image captured from the second scan is processed to identify random line combinations within the temporary verification graphic. These identified random line combinations are then matched with predefined line features in the user verification information segment. Predefined line features include information such as line direction, length, and color.
[0061] It should be noted that if the preset line features are a horizontal line (100 pixels long, red), a vertical line (50 pixels long, blue), and a diagonal line (70 pixels long, green), these line features are identified and matched. If the match succeeds, it indicates that the temporary verification pattern in the composite graphic matches the preset line features, and the next step can be performed. If the match fails, the temporary verification pattern is regenerated and the above steps are repeated. The original QR code information is extracted from the stripped temporary graphic area, and the stripped image is decoded to extract the user-side verification information.
[0062] Optionally, the multi-angle intermittent scanning in step S3 is specifically as follows: The device's camera faces the center of the QR code to complete the first scan, pausing for 1-2 seconds; The lens tilts upward 10-20 degrees to scan, and the pause time increases by 0.2-0.3 seconds compared to the previous time; The lens tilts downward to scan at the same angle, and the pause time continues to increase by the same amount; The camera tilts to the left and scans at the same angle, with the pause time increasing at the same amplitude; The lens tilts to the right and scans at the same angle, forming a five-angle stepped scanning sequence; During each pause, the edge of the previously scanned QR code image is compared with the preset standard QR code outline to calculate the edge fit; When insufficient ambient light is detected during scanning, the fill light is activated to pulse fill light in a cycle of 0.1-0.3 seconds on and 0.2-0.4 seconds off. The fill light brightness increases by 5%-15% with the number of scans. When the edge matching degree of two consecutive scans exceeds 85%-95%, and the position deviation of the four corner points of the QR code is within the preset small range, the angle change is stopped, and the current angle is maintained and scanned twice in a row, and the decoding results are merged to obtain the user-side verification information.
[0063] In one embodiment, the scanning device is started, and the lens is aimed at the center of the QR code to complete the first scan; pause for 1 second to ensure that the image is stable and correctly captured by the device; after the capture is completed, the device automatically saves the image data of the first scan.
[0064] In another embodiment, the device is adjusted so that the lens is tilted upward by 15 degrees (a specific value is selected within the range of 10-20 degrees to ensure the accuracy of the tilt angle); the pause time is increased by 0.2 seconds compared with the previous time, that is, the pause is 1.2 seconds; the scanning device is started and the second scan is completed; after the acquisition is completed, the device automatically saves the image data of the second scan.
[0065] In another embodiment, the device is adjusted so that the lens tilts downward by 15 degrees (the same as the upward tilt angle); the pause time continues to increase by the same amount, that is, the pause is 1.4 seconds; the scanning device is started and the third scan is completed; after the acquisition is completed, the device automatically saves the image data of the third scan.
[0066] In another embodiment, the device is adjusted so that the lens is tilted 15 degrees to the left (the same as the upward tilt angle); the pause time is kept increasing at the same amplitude, that is, the pause is 1.6 seconds; the scanning device is started and the fourth scan is completed; after the acquisition is completed, the device automatically saves the image data of the fourth scan.
[0067] In another embodiment, the device is adjusted so that the lens is tilted 15 degrees to the right (the same as the upward tilt angle), forming a five-angle step scanning sequence; the pause time is kept increasing at the same amplitude, that is, the pause is 1.8 seconds; the scanning device is started and the fifth scan is completed; after the acquisition is completed, the device automatically saves the image data of the fifth scan.
[0068] It's important to note that during each pause, the edges of the previously scanned QR code image are compared to the preset standard QR code outline, using the device's built-in image comparison function to calculate the degree of edge fit. For example, the device may provide a fit percentage; if the fit falls below a preset threshold (e.g., 85%), the device position is adjusted and the scan is repeated.
[0069] It's important to note that during the scanning process, the device monitors ambient light intensity in real time. If insufficient light is detected, the fill light is activated for pulsed illumination. This pulsed illumination occurs on a 0.2-second, 0.3-second cycle. The brightness of the fill light increases by 10% with each scan, ensuring the clarity of the QR code image with each scan.
[0070] It should be pointed out that when the edge matching degree of two consecutive scans exceeds 90% (select a specific value within the range of 85%-95%), and the position deviation of the four corner points of the QR code is within a preset small range (such as ±2 pixels), the angle transformation is stopped; the current angle is maintained for two consecutive scans to ensure the stability and consistency of the image; the decoding results of the two scans are merged to obtain the user-side verification information.
[0071] Optionally, performing bidirectional decoding verification on the encrypted information in the RFID chip and the user-end verification information in step S3 includes: Decrypt the encrypted information and user authentication information in layers. First, parse the outer encrypted data to obtain a temporary key, and then use the temporary key to decrypt the inner core data. Extract the production information feature code from the core data, generate a reverse verification request according to the preset algorithm and send it to the RFID chip; receive the feature code response value returned by the chip and compare it with the local user-side verification information. If the two are consistent, two-way verification is completed.
[0072] In one embodiment, a device with RFID reading and data processing capabilities (such as a dedicated RFID reading terminal or a mobile device with corresponding functions) is used; ensure that the device is correctly connected to the RFID chip and can read its encrypted information; ensure that the device has correctly read the user-side verification information, such as verification information obtained through QR code scanning or other means.
[0073] It should be noted that the device's data processing module is activated to perform layered decryption on the encrypted information in the RFID chip. The device's built-in decryption module is used to parse the outer encrypted data and obtain a temporary key. For example, the device uses a specific decryption program to input the encrypted information and output a temporary key. The newly obtained temporary key is then used to decrypt the inner core data. For example, the device inputs the temporary key into the decryption module, decrypts the inner core data, and obtains the core data content.
[0074] In another embodiment, the production information feature code is extracted from the decrypted core data, which includes "production date: 20240518, product model: XYZ123". The "product model: XYZ123" is extracted as the production information feature code, and the data processing module of the device is used to generate a reverse verification request according to preset rules.
[0075] It should be noted that the preset rule generates a reverse verification request based on the extracted production information signature code, using a preset format and content. For example, the preset rule converts the production information signature code "Product Model: XYZ123" into a request packet in a specific format, such as "REQ:XYZ123." The device stores the generated request packet "REQ:XYZ123" in its memory, ready for transmission.
[0076] In another embodiment, the generated reverse verification request is sent to the RFID chip via the device's communication module. The device then sends the reverse verification request to the RFID chip via the wireless communication module and waits for the RFID chip to return a characteristic code response value. The device receives the characteristic code response value returned by the RFID chip. For example, the device receives a response value such as "Product Model: XYZ123, Response Code: 123456" via the communication module. The received characteristic code response value is compared with the local user-side verification information. For example, the device compares the received "Product Model: XYZ123" with the "Product Model: XYZ123" in the locally stored user-side verification information. If the two match, the device displays a successful verification message and completes the two-way verification, with "Verification Successful" displayed on the device screen. If the two match, the device displays a failed verification message and prompts the user to redo the operation, with "Verification Failed, Please Try Again" displayed on the device screen.
[0077] Optionally, the bidirectional decoding and verification of the encrypted information in the RFID chip and the user-end verification information in step S3 further includes: During the decryption process, if the first decryption fails, adjust the reader signal receiving sensitivity after the preset dwell time and try decryption again; If the decryption is successful, the washing parameter identifier in the encrypted information is extracted and a random verification sequence is generated and sent to the RFID chip; After receiving the data, the chip converts the sequence according to the preset built-in rules and returns it. The returned result is compared with the local user verification information. If a match is found, the verification is considered to be successful.
[0078] In one embodiment, if the initial decryption fails, the device records the failure and, after a preset dwell time (e.g., three seconds), adjusts the reader's signal reception sensitivity. This sensitivity adjustment can be performed through the device's settings menu, for example, by increasing the sensitivity from the default to high sensitivity. The decryption module is then reactivated to attempt to decrypt the encrypted information from the RFID chip. If decryption is successful, the wash parameter identifier in the encrypted information is extracted from the decrypted core data. For example, if the core data contains "wash parameter identifier: W12345," this identifier is extracted as basic information for subsequent verification.
[0079] In another embodiment, a data processing module of the device is used to generate a random verification sequence; for example, the device generates a random sequence "RND:67890" which is used to verify the response capability of the RFID chip, and sends the generated random verification sequence to the RFID chip.
[0080] In another embodiment, after receiving the random verification sequence, the RFID chip converts the sequence according to a preset built-in rule. It should be noted that the built-in rule may be to add 1 to each digit in the sequence, converting "RND:67890" to "RND:78901." The RFID chip then returns the converted sequence to the device.
[0081] In another embodiment, the device receives the conversion sequence returned by the RFID chip and compares it with the local user-end verification information; for example, the device compares the returned "RND:78901" with the corresponding sequence in the locally stored user-end verification information; if the returned result matches the local user-end verification information, the verification is determined to be successful; if not, the verification is determined to have failed.
[0082] Preferably, step S4: sending the decoded user terminal verification information to the server, the server dynamically matches the information complementary structure data in the RFID chip according to the verification information, and feeds back the matching result to the user terminal, completing the dynamic interaction and matching of information.
[0083] It is particularly important that the decoded user terminal verification information is sent to the server in step S4, and the server dynamically matches the information complementary structure data in the RFID chip according to the verification information, specifically: The client appends the decoded verification information with the current operation timestamp and sends it to the server; After receiving the information, the server first checks whether the timestamp is within the preset valid period. If it is out of the period, it returns the request to the user and resends it. After verification, the server splits the verification information into production verification segments and washing verification segments according to the information type, and also splits the information complementary structure data in the RFID chip into corresponding production-related segments and washing-related segments; The server compares the production verification segment with the production association segment character by character, and the washing verification segment with the washing association segment character by character, and records the number of matching characters in each segment; The number of matching characters in the two segments and the total matching ratio are integrated into the matching result and fed back to the user end.
[0084] What is particularly important is that the matching results are fed back to the user end in step S4, completing the dynamic interaction and matching of information as follows: The client appends the decoded verification information with the current operation timestamp and sends it to the server. If no response is received from the server within 3 seconds, it will be automatically resent. The number of resends shall not exceed 3 times. After receiving the information, the server checks whether the timestamp is within the preset valid period. If it exceeds the period, it returns and resends the request. If it passes, the verification information and the information complementary structure data are divided into 3-5 data blocks; For each data block, the server first compares the signature characters at the beginning of the block. If the signature characters match, it continues to compare other characters in the block. If they do not match, it marks the block as a block to be adjusted. For the adjusted block, the server will shift the verification information block backward by 1-2 characters and re-match it, recording the number of matched characters after the adjustment. Integrate the matching results of all data blocks, the adjustment records of the blocks to be adjusted, and the total matching ratio, generate a result containing detailed matching positions and feedback it to the user end to complete dynamic interaction.
[0085] In one embodiment, after the user terminal decodes the verification information, it attaches the current operation timestamp and sends it to the server; if no response is received from the server within 3 seconds, it is automatically resent, and the number of resends does not exceed 3 times; this mechanism ensures the reliability and timeliness of information transmission and avoids interaction failures caused by network delays or packet loss.
[0086] In another embodiment, after receiving the information, the server first verifies whether the timestamp is within a preset validity period. If it is, it returns a request for resending. The verification information and the information complementary structure data are evenly divided into 3-5 data blocks. For each data block, the server first compares the signature characters at the beginning of the block.
[0087] It should be pointed out that if the characteristic characters are consistent, the other characters in the block will continue to be compared; if they are inconsistent, it will be marked as a block to be adjusted; for the block to be adjusted, the server will offset the verification information block as a whole by 1-2 character positions and re-match it, and record the number of matched characters after adjustment; integrate the matching results of all data blocks, the adjustment records of the blocks to be adjusted and the total matching ratio, and generate a result containing detailed matching positions and feedback to the user end.
[0088] The present invention is therefore intended to be illustrative and non-restrictive in all respects, with the scope of the invention being defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the application documents are intended to be embraced therein.
[0089] The foregoing description is intended only to provide specific embodiments of the present invention, which will enable those skilled in the art to understand and implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown herein, but is to be construed in the widest possible manner consistent with the principles and novel features disclosed herein.
Claims
1. A method for identifying electronic tags based on RFID chips and QR codes, characterized in that: The electronic tag has an embedded RFID chip and a QR code attached to its surface. The method comprises the following steps: Step S1: The batch production information and washing information of the electronic tag are stored in an encrypted form in the RFID chip, and a machine-readable QR code is embroidered on the surface of the electronic tag using an embroidery machine, wherein the QR code contains verification information readable by the user end; Step S2: Perform volume-to-volume mapping on the encrypted information in the RFID chip and the verification information in the QR code to form information complementary structure data; Step S3: Contactlessly identify the electronic tag and read the encrypted information in the RFID chip; obtain user-end verification information by intermittently scanning the QR code at multiple angles; and perform bidirectional decoding and verification on the encrypted information in the RFID chip and the user-end verification information; Step S4: The decoded user terminal verification information is sent to the server. The server dynamically matches the information complementary structure data in the RFID chip according to the verification information and feeds back the matching result to the user terminal to complete the dynamic interaction and matching of information.
2. The electronic tag identification method based on RFID chip and QR code according to claim 1, characterized in that: Before performing volume-to-volume mapping of the encryption information in the RFID chip and the verification information in the QR code in step S2, the following steps are included: Extract several feature points from the encrypted information of the RFID chip and the same number of feature points from the verification information of the QR code; Match the RFID feature points with the QR code feature points in the order of appearance to form a forward mapping chain; Then, the RFID feature points are matched one by one with the QR code feature points in reverse order of appearance to form a reverse mapping chain; The feature points whose positions in the forward mapping chain and the reverse mapping chain coincide with each other are marked as core association points, and the rest are auxiliary association points.
3. The electronic tag identification method based on RFID chip and QR code according to claim 1, characterized in that: The volume-to-volume mapping association in step S2 is specifically as follows: Using the core association points as the demarcation, the RFID encryption information and the QR code verification information are divided into several independent information blocks. Each information block contains a set of continuous core association points and auxiliary association points. Calculate the overlap between the RFID information and the QR code information in each information block, and retain the information blocks with an overlap higher than the critical value as valid association units; For information blocks with insufficient overlap, the information block boundaries are adjusted based on the auxiliary correlation points and then recalculated. If the overlap is still insufficient after recalculation three times, the information block is discarded. Arrange the valid association units in the original order, record the core association point positions and coincidence data in each unit, and form an information complementary structure framework with information block division.
4. The electronic tag identification method based on RFID chip and QR code according to claim 1, characterized in that: The information complementary structure data formed in step S2 is specifically: In each valid association unit, continuous information segments containing core association points are intercepted. When the RFID segment is fixed, the QR code segment is gradually offset by one character length, and the number of matching characters for each offset is recorded. The offset position with the largest number of matches in each fragment is selected as the optimal mapping point, and the optimal mapping points of all fragments are marked in the information complementary structure framework to form information complementary structure data.
5. The electronic tag identification method based on RFID chip and QR code according to claim 1, characterized in that: In step S3, the electronic tag is contactlessly identified and the encrypted information in the RFID chip is read, including: Use an ultra-high frequency RFID reader to read the electronic tag three times within the preset identification distance; When reading for the first time, the reader antenna should be aligned with the center of the electronic tag; The second time, it is offset above the label by a preset distance; The third time, it is offset below the label by the same preset distance; The encrypted information read three times is compared bit by bit. If the three results are completely consistent, it is determined to be a valid read and the complete encrypted information is saved.
6. The electronic tag identification method based on RFID chip and QR code according to claim 1, characterized in that: The QR code is a QR code plate embroidered by an embroidery machine, and the reflective properties of the yarn on its surface are suppressed by multi-angle scanning. The multi-angle intermittent scanning of the QR code in step S3 includes: Keep the device lens parallel to the QR code plane and scan for a preset basic length of time to complete the first acquisition; The device lens rotates 10-20 degrees clockwise around the center of the QR code and stays there for the same amount of time to complete the second capture. The lens rotates counterclockwise 20-40 degrees to 10-20 degrees on the other side of the initial position and stays there for the same length of time to complete the third acquisition. After three acquisitions, they are spliced together to form a user verification information segment.
7. The electronic tag identification method based on RFID chip and QR code according to claim 6, characterized in that: The verification information operation is performed using the display device. The specific steps of obtaining the user terminal verification information in step S3 are: The display device generates a temporary verification graphic containing a random line combination based on the user verification information fragment and displays it in full screen; Place the display device screen close to the surface of the electronic tag, so that the temporary verification pattern and the QR code physically overlap and the edges are completely aligned. Hold for 2-4 seconds and then perform a second scan to capture the composite pattern. Identify random line combinations in the temporary verification graphic and match them with preset line features in the user verification information fragment. After the match is successful, separate the temporary graphic area from the composite graphic. The original QR code information in the temporary graphic area is extracted as user-side verification information.
8. The electronic tag identification method based on RFID chip and QR code according to claim 1, characterized in that: The multi-angle intermittent scanning in step S3 is specifically as follows: The device's camera faces the center of the QR code to complete the first scan, pausing for 1-2 seconds; The lens tilts upward 10-20 degrees to scan, and the pause time increases by 0.2-0.3 seconds compared to the previous time; The lens tilts downward to scan at the same angle, and the pause time continues to increase by the same amount; The camera tilts to the left and scans at the same angle, with the pause time increasing at the same amplitude; The lens tilts to the right and scans at the same angle, forming a five-angle stepped scanning sequence; During each pause, the edge of the previously scanned QR code image is compared with the preset standard QR code outline to calculate the edge fit; When insufficient ambient light is detected during scanning, the fill light is activated to pulse fill light in a cycle of 0.1-0.3 seconds on and 0.2-0.4 seconds off. The fill light brightness increases by 5%-15% with the number of scans. When the edge matching degree of two consecutive scans exceeds 85%-95%, and the position deviation of the four corner points of the QR code is within the preset small range, the angle change is stopped, and the current angle is maintained and scanned twice in a row, and the decoding results are merged to obtain the user-side verification information.
9. The electronic tag identification method based on RFID chip and QR code according to claim 1, characterized in that: In step S3, bidirectional decoding and verification of the encrypted information in the RFID chip and the user terminal verification information includes: Decrypt the encrypted information and user authentication information in layers. First, parse the outer encrypted data to obtain a temporary key, and then use the temporary key to decrypt the inner core data. Extract the production information feature code from the core data, generate a reverse verification request according to the preset algorithm and send it to the RFID chip; receive the feature code response value returned by the chip and compare it with the local user-side verification information. If the two are consistent, two-way verification is completed.
10. The electronic tag identification method based on RFID chip and QR code according to claim 9, characterized in that: The bidirectional decoding and verification of the encrypted information in the RFID chip and the user-end verification information in step S3 further includes: During the decryption process, if the first decryption fails, adjust the reader signal receiving sensitivity after the preset dwell time and try decryption again; If the decryption is successful, the washing parameter identifier in the encrypted information is extracted and a random verification sequence is generated and sent to the RFID chip; After receiving the data, the chip converts the sequence according to the preset built-in rules and returns it. The returned result is compared with the local user verification information. If a match is found, the verification is considered to be successful.
Citation Information
Patent Citations
Multifunctional product anti-fake identifying system and anti-fake identifying method thereof
CN102855573A
Anti-counterfeiting method based on radio frequency identification tag and two dimension code tag
CN104217342A
Anti-counterfeit method based on radio frequency identification tags and two-dimension code tags
CN104715379A
Logistics waybill anti-counterfeiting management system and logistics waybill anti-counterfeiting management method based on special QR code and RFID technology
CN106022793A
Two-dimensional code and radio frequency integration compound tag and identification system thereof
CN106779003A