CN-122021688-A - Concentric ring information encoding and decoding method and system for commodity outer package
Abstract
The invention relates to a circulation commodity anti-counterfeiting traceability technology and provides a concentric ring information encoding and decoding method and system for commodity outer package, wherein the method comprises the steps of obtaining original codes of commodity information, encrypting the original codes to obtain encrypted codes, equally dividing the encrypted codes into 4 sections according to bit sequence directions, wherein each section is a continuous binary subsequence, each binary subsequence corresponds to a ring pattern, and arranging the ring patterns into an original concentric ring structure according to a preset sequence; and generating a check ring according to each binary subsequence, combining the check ring with the original concentric ring structure to form a final concentric ring pattern, and spraying the final concentric ring pattern on the commodity outer package. The invention adopts a mode of encrypting information first to regenerate a circular ring, stores commodity information in a circular ring pattern, and ensures that the information label on the circulated commodity has the characteristics of uniqueness, anti-interference, traceability and the like. The method effectively improves the traceability and anti-interference performance of the commodity in circulation.
Inventors
- SHAO JUN
- FENG CHENG
- ZHOU YONGSHENG
Assignees
- 江苏鼎昌科技股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260409
Claims (10)
- 1. The concentric ring information encoding and decoding method for the commodity outer package is characterized by comprising the following steps of: Acquiring an original code of commodity information, wherein the original code is an N-bit binary sequence, and N is an integer multiple of 4; Encrypting an original code to obtain an encrypted code, wherein the encrypted code is an N-bit binary sequence; dividing the encrypted code into 4 sections in the bit sequence direction, wherein each section is a continuous N/4 bit binary subsequence, each binary subsequence corresponds to a ring pattern, and the ring patterns are arranged into an original concentric ring structure according to a preset sequence; converting all binary subsequences into decimal numbers, accumulating and summing the decimal numbers and dividing the decimal numbers by a power of 2N/4 to obtain remainder, recoding the remainder into a binary sequence serving as a check sequence, wherein the check sequence corresponds to a calibration loop; Combining the calibration ring and the original concentric ring structure to form a final concentric ring pattern, and spraying the final concentric ring pattern on the outer package of the commodity; and during decoding, the concentric ring pattern on the commodity outer package is identified and restored to obtain an encrypted N-bit binary sequence, and then the encrypted N-bit binary sequence is decrypted to obtain the original code of commodity information.
- 2. The method for encoding and decoding concentric ring information for outer package of commodity according to claim 1, wherein each binary subsequence corresponds to one ring pattern, and the encoding rule for encoding the binary subsequence into the ring pattern is as follows: The intersection line of the vertical symmetry line of the circular ring and the upper half part of the circular ring is taken as the starting point, the starting point is set to be 0 DEG, and the circular ring is divided into 8 sections The radian of/N is equally divided into N/4 segments, each segment of content is filled with black or white, each segment of filled content corresponds to each binary number in the binary sub-sequence, and 4 ring patterns are combined into an original concentric ring structure from inside to outside without interval according to a preset sequence.
- 3. The method for encoding and decoding concentric ring information for commodity outer packing according to claim 2, wherein the ring patterns corresponding to all binary subsequences are concentric and the ring widths are the same.
- 4. The method for encoding and decoding concentric ring information for outer packaging of commodities according to claim 1, wherein encrypting the original code to obtain an encrypted code comprises: randomly generating an N-bit binary sequence as an encryption sequence; And carrying out bit exclusive OR on the encryption sequence and the original code of the commodity information to obtain an encrypted N-bit binary sequence serving as the encrypted code.
- 5. The method of encoding and decoding concentric ring information for commodity outer packaging according to claim 4, wherein the original encoding, the encrypted sequence, and the encrypted encoding of the commodity information are stored in a database and are associated with each other.
- 6. The method for encoding and decoding concentric ring information for commodity outer packing according to claim 5, wherein, And (3) restoring the encrypted N-bit binary sequence by reading black and white information of each concentric ring in the concentric ring pattern, and carrying out bit-wise exclusive or on the encrypted N-bit binary sequence and an encryption sequence associated with the original code of commodity information to obtain the original code of the commodity.
- 7. The method for encoding and decoding concentric ring information for commodity outer packing according to claim 1, wherein the bit sequence direction is from high order to low order or from low order to high order.
- 8. The method for encoding and decoding concentric rings of information for overwrapping of merchandise according to claim 1, wherein N has a value of 12 or 16 or 24.
- 9. The method of encoding and decoding concentric ring information for commodity outer packaging according to claim 2, further comprising: If the information of one concentric ring pattern in 4 concentric ring patterns is uncertain, the method can be uniquely solved based on the calibration ring, other 3 concentric ring patterns and the code generation rule to obtain an encrypted code which is an N-bit binary sequence.
- 10. A concentric ring information codec system for commodity overwrapping, implementing the concentric ring information codec method for commodity overwrapping according to any one of claims 1 to 9, characterized in that the system comprises: the acquisition module is used for acquiring the original code of commodity information, wherein the original code is an N-bit binary sequence, and N is an integer multiple of 4; The encryption module is used for encrypting the original code to obtain an encrypted code, and the encrypted code is an N-bit binary sequence; the dividing module is used for equally dividing the encrypted code into 4 sections according to the bit sequence direction, wherein each section is a continuous N/4 bit binary subsequence, each binary subsequence corresponds to one ring pattern, and the ring patterns are arranged into an original concentric ring structure according to a preset sequence; the checking sequence generation module is used for converting all binary subsequences into decimal digits, accumulating and summing the decimal digits and dividing the decimal digits by the power of N/4 of 2 to obtain remainder, recoding the remainder into a binary sequence serving as a checking sequence, wherein the checking sequence corresponds to the calibration ring; the concentric ring generating module is used for combining the calibration ring and the original concentric ring structure to form a final concentric ring pattern, and spraying the final concentric ring pattern on the commodity outer package; And the decoding module is used for identifying and restoring the concentric ring pattern on the commodity outer package to obtain an encrypted N-bit binary sequence during decoding, and then decrypting the encrypted N-bit binary sequence to obtain the original code of commodity information.
Description
Concentric ring information encoding and decoding method and system for commodity outer package Technical Field The invention relates to the field of anti-counterfeiting tracing systems for circulation commodity information, in particular to data processing in the information encoding and decoding processes of commodity outer packages in the anti-counterfeiting tracing system, and specifically relates to a concentric ring information encoding and decoding method and system for commodity outer packages. Background With the continuing development of economies and the trend of marketization, the circulation of trade is increasingly faster and more convenient. However, in the commodity circulation process, the uniqueness of the information label of the produced commodity can not be traced in the circulation process, and part of distributors imitate the commodity and damage the commodity label, so that enterprises producing the commodity suffer huge economic losses. Therefore, how to prevent the phenomena of non-traceability and damage to the marks in the commodity circulation process and solve the problems of commodity circulation, commodity channeling and the like becomes a key point for solving the problem of economic loss. Currently, there are many popular methods in the market, such as laser anti-counterfeiting, label anti-counterfeiting, ink anti-counterfeiting, etc. The conventional anti-counterfeiting method can protect commodity circulation to a certain extent, but still has the problem of easy counterfeiting or artificial damage, and cannot effectively prevent counterfeiting and imitate channeling. Prior art document 1 (application No. 202211149701.2, application day 2022, 9 and 21) discloses an anti-interference method for commodity outer package based on three-digit circular code, and prior art document 2 (application No. 201210247872.9, application day 2012, 7 and 18) discloses an anti-counterfeiting annular code and a coding method thereof. However, in the prior art document 1, original information and two pieces of backup information are respectively stored in three independent circular codes by generating a reverse order and an exclusive or matrix, and the original information and the two pieces of backup information have high anti-damage capability, but a plurality of circular rings occupy a larger packaging area, the coding process of the original information does not involve logic encryption of the original commodity information, and the coded graph directly maps the related commodity original information, so that the risk of directly analyzing and forging the information exists. The prior art document 2 has high coding recognition difficulty and high requirement on printing precision, the generation mode corresponding to the graph of the solid line and the gap is complex, and the information redundancy of the effective recovery data is not integrated. Disclosure of Invention The invention aims to provide a concentric ring information encoding and decoding method and system for commodity outer package, which can effectively improve the anti-counterfeiting traceability of circulated commodities and the information recovery capability after being destroyed. In order to achieve the above purpose, the invention adopts the technical scheme that: the first aspect of the invention provides a concentric ring information encoding and decoding method for commodity outer packing, comprising the following steps: Acquiring an original code of commodity information, wherein the original code is an N-bit binary sequence, and N is an integer multiple of 4; Encrypting an original code to obtain an encrypted code, wherein the encrypted code is an N-bit binary sequence; dividing the encrypted code into 4 sections in the bit sequence direction, wherein each section is a continuous N/4 bit binary subsequence, each binary subsequence corresponds to a ring pattern, and the ring patterns are arranged into an original concentric ring structure according to a preset sequence; converting all binary subsequences into decimal numbers, accumulating and summing the decimal numbers and dividing the decimal numbers by a power of 2N/4 to obtain remainder, recoding the remainder into a binary sequence serving as a check sequence, wherein the check sequence corresponds to a calibration loop; Combining the calibration ring and the original concentric ring structure to form a final concentric ring pattern, and spraying the final concentric ring pattern on the outer package of the commodity; and during decoding, the concentric ring pattern on the commodity outer package is identified and restored to obtain an encrypted N-bit binary sequence, and then the encrypted N-bit binary sequence is decrypted to obtain the original code of commodity information. Optionally, each binary subsequence corresponds to a circular pattern, and the coding rule for coding the binary subsequence into the circular pattern is as follows: The intersection