Anti-counterfeiting code, generation method and identification method

By designing the printing point diameter and distribution strategy, combining positioning graphics and perspective correction technology, the balance between existing anti-counterfeiting codes is solved, and efficient identification and anti-counterfeiting strength are achieved in complex scenarios.

CN120579568AActive Publication Date: 2025-09-02BOA SHEN PAPER & PLASTIC PROD

Patent Information

Application Number
CN202510651371.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2025-09-02
Estimated Expiration
2045-05-20

AI Technical Summary

Technical Problem

The existing anti-counterfeiting code technology is difficult to balance the concealment and scanability, especially in the recognition of mobile phone cameras, and the identification algorithm is insufficient for curved surfaces or bent substrates.

Method used

Design an anti-counterfeiting code, with the diameter of the printing dots ranging from 23 microns to 80 microns, and the distance between any two adjacent printing dots is greater than 80 microns. Set up positioning patterns and random or pseudo-random distribution printing dots, adopt a strip structure with an aspect ratio of more than 2, and adjust the printing dot area through a redundant coding strategy, and correct it in combination with the perspective reduction area of ​​the quadrilateral.

Benefits of technology

It realizes that the mobile phone camera can efficiently identify anti-counterfeiting codes when it is difficult for human eyes to detect, and is suitable for curved surfaces and bent substrates, improving anti-counterfeiting strength and practical adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120579568A_ABST
    Figure CN120579568A_ABST
Patent Text Reader

Abstract

The invention discloses an anti-counterfeiting code, a generation method and an identification method, the anti-counterfeiting code comprises a plurality of printing points, the diameter of each printing point is 23-80 microns, and the edge distance between any two adjacent printing points is greater than 80 microns; at least one positioning pattern is arranged in the anti-counterfeiting code, the positioning pattern comprises a circle center and a plurality of identification printing points which surround the circle center and are uniformly distributed on a preset radius circumference, and the direction is determined according to default of the identification printing points; no other printing points are distributed within the preset radius range of the circle center. The method is convenient for efficient identification of equipment, and has certain anti-counterfeiting strength and high practical adaptability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of digital anti-counterfeiting technology, and in particular to an anti-counterfeiting code and a generation method and an identification method. Background Art

[0002] The mainstream dot matrix anti-counterfeiting code technology on the current market generally has a contradiction between concealment and scannability. Traditional invisible anti-counterfeiting codes mostly rely on special dyes or extremely small printed dots. Although such solutions can avoid direct observation by the human eye, they are limited by the device characteristics of mobile phone cameras. Most mobile phones only support visible light, and only a few models support macro and other issues, making it difficult to achieve direct terminal scanning. The dot diameter of the QR code that supports mobile phone reading is usually larger than 80 microns, which makes it easily detectable to the naked eye at a normal reading distance, significantly affecting the aesthetics of the printed material and the concealment of the anti-counterfeiting code. In addition, existing anti-counterfeiting codes mostly adopt a nearly square or nearly circular layout, which is difficult to adapt to narrow areas such as label edges and text gaps, limiting the flexibility of application scenarios.

[0003] Existing technologies have attempted to optimize dot size or layout, but have failed to effectively balance invisibility to the human eye and mobile phone compatibility. For example, while micron-scale dot printing solutions theoretically support high-resolution cameras, they generally lack tolerance for printing errors, making decoding failures prone to these errors in practice. Furthermore, existing security code recognition algorithms are not well-suited for curved or bent substrates. Conventional perspective transformations rely on single-region correction, making them difficult to handle the geometric distortion of long barcodes on deformed substrates. Summary of the Invention

[0004] In view of the above deficiencies in the prior art, the present invention provides an anti-counterfeiting code and a generation method and an identification method, which are convenient for efficient identification by devices, have certain anti-counterfeiting strength and strong practical adaptability.

[0005] To solve the above technical problems, the present invention discloses, in a first aspect, an anti-counterfeiting code, comprising a plurality of printed dots, wherein the diameter of the printed dots ranges from 23 microns to 80 microns, and the edge distance between any two adjacent printed dots is greater than 80 microns;

[0006] At least one positioning pattern is set in the anti-counterfeiting code, and the positioning pattern includes a center of a circle and a number of evenly distributed identification dots around the center of the circle and located on a circumference of a preset radius. The direction is determined according to the default of the identification dots; there are no other dots distributed within the preset radius range of the center of the circle.

[0007] In some embodiments, the anti-counterfeiting code has an aspect ratio greater than 2.

[0008] In some embodiments, the periphery of the positioning pattern is filled with printed dots using a random or pseudo-random algorithm, so that the proportion of the total printed dot area to the total area of ​​the anti-counterfeiting code does not exceed 10%.

[0009] In some embodiments, the average diameter of the printed dots is 59 microns to 80 microns.

[0010] In some embodiments, the number of the identification dots is 6, and one of the identification dots is missing.

[0011] In a second aspect, the present invention provides a method for generating an anti-counterfeiting code, for generating any of the above-mentioned anti-counterfeiting codes, comprising:

[0012] Select the dot diameter based on the expected reading distance;

[0013] Determine the center of the circle and identify the printed point, and set at least one set of positioning patterns;

[0014] Set printing points randomly or pseudo-randomly to control the center distance between adjacent printing points;

[0015] Calculating the total area ratio of printed dots and adjusting the printed dots based on the redundant coding strategy so that the total area of ​​the printed dots does not exceed 10% of the total area of ​​the anti-counterfeiting code;

[0016] The obtained printed dot array is arranged into a strip structure with an aspect ratio greater than 2 to generate the anti-counterfeiting code.

[0017] In some embodiments, adjusting the printed dots based on a redundant encoding strategy includes:

[0018] Control the average diameter of all printed dots in the anti-counterfeiting code to be between 59 microns and 80 microns;

[0019] The number of printed dots with a diameter greater than 88 microns shall not exceed 5% of the total number of printed dots, and the number of printed dots with a diameter less than 46 microns shall not exceed 10% of the total number of printed dots;

[0020] When the proportion of printed dots with a diameter of less than 46 microns reaches 10%, the coding error correction rate of the anti-counterfeiting code is not less than 20%.

[0021] In a third aspect, the present invention provides a method for identifying an anti-counterfeiting code, which is used to identify the anti-counterfeiting code as described above, comprising:

[0022] Acquire an image containing the security code, detect the center of the positioning pattern and identify the printed dots to determine the spatial position and direction of the security code;

[0023] Performing partition perspective correction on the security code according to the pre-stored quadrilateral perspective restoration area;

[0024] Binarize and decode the perspective-corrected printed dot array to obtain the original data information;

[0025] Anti-counterfeiting verification or tracing is completed based on the original data information.

[0026] In some embodiments, performing a partition perspective correction on the security code according to a pre-stored quadrilateral perspective restoration area includes:

[0027] Dividing the strip structure of the security code into a plurality of quadrilateral perspective restoration areas along the length direction, each quadrilateral perspective restoration area covers a security code segment;

[0028] Extracting vertex coordinates for each quadrilateral perspective restoration area; mapping the quadrilateral perspective restoration area to a standard plane according to preset correction parameters;

[0029] The images corrected in each quadrilateral perspective restoration area are stitched together in sequence to restore the printed dot array.

[0030] In some embodiments, detecting the center of the positioning pattern and identifying the printed dots to determine the spatial position and orientation of the security code includes:

[0031] The orientation of the security code is determined by identifying the central angle of the printed dot and combining it with the default position of the printed dot.

[0032] Compared with the prior art, the present invention has the following beneficial effects:

[0033] This application provides an anti-counterfeiting code, a generation method, and an identification method. By using a positioning graphic design and a dot distribution strategy, the code significantly improves concealment and identification reliability. The combination of a blank area in the center of the circle and evenly distributed identification dots allows for quick and accurate positioning of the code's spatial coordinates. Furthermore, the asymmetric directional markings formed by the default specific dots effectively avoid directional misjudgments. This ensures efficient device recognition and is suitable for complex printing scenarios such as curved surfaces and bends, balancing anti-counterfeiting strength and practical adaptability. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A schematic diagram of the anti-counterfeiting code provided by the present invention;

[0035] Figure 2 A schematic diagram of a positioning pattern provided by the present invention;

[0036] Figure 3 Another schematic diagram of the positioning pattern provided by the present invention;

[0037] Figure 4 A schematic diagram of determining the direction of the anti-counterfeiting code using the positioning pattern provided by the present invention;

[0038] Figure 5 This is a schematic diagram of the anti-counterfeiting code provided by the present invention applied to a label;

[0039] Figure 6 This is a schematic diagram of the anti-counterfeiting code provided by the present invention applied to a brand;

[0040] Figure 7A schematic diagram of the process of generating an anti-counterfeiting code provided by the present invention;

[0041] Figure 8 A schematic diagram of the flow of the anti-counterfeiting code recognition method provided by the present invention;

[0042] Figure 9 This is a flow chart of step S72 of the anti-counterfeiting code recognition method provided by the present invention;

[0043] Figure 10 A schematic diagram of a perspective transformation of the anti-counterfeiting code recognition method provided by the present invention

[0044] Figure 11 This is another perspective transformation schematic diagram of the anti-counterfeiting code recognition method provided by the present invention. DETAILED DESCRIPTION

[0045] For better understanding and implementation, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0046] The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus that includes a series of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products or apparatus.

[0047] The embodiments of the present invention disclose an anti-counterfeiting code and a generation method and an identification method, which are convenient for efficient identification by equipment and have certain anti-counterfeiting strength and practical adaptability.

[0048] like Figure 1 As shown, the anti-counterfeiting code includes a plurality of printed dots, the diameter of the printed dots is 23 microns to 80 microns, and the edge distance between any two adjacent printed dots is greater than 80 microns; a positioning pattern is set in the anti-counterfeiting code, and the positioning pattern includes a center of a circle and a plurality of evenly distributed identification printed dots around the center of the circle and located on a circumference of a radius r, and the direction is determined according to the default of the identification printed dots; no other printed dots are distributed within the radius r of the center of the circle.

[0049] At least one positioning pattern is arranged in the anti-counterfeiting code, such as Figure 2As shown, it is composed of identification printed dots evenly distributed on the circumference of the circle with a radius r. By actively omitting a certain identification printed dot, that is, there is a gap in the preset direction, a direction mark is formed to solve the rotation ambiguity problem of traditional symmetrical graphics. Default in this application refers to the active omission of a specific element in a preset rule or graphic structure, such as a certain identification printed dot in the positioning graphic, to form an asymmetric or unique identification. In the peripheral area of ​​the positioning graphic, data printed dots are filled in with a random or pseudo-random algorithm, and the proportion of the total area of ​​the printed dots is monitored in real time, and the distribution density is dynamically optimized so that the proportion of the total printed dot area to the total area of ​​the anti-counterfeiting code does not exceed 10%.

[0050] The positioning pattern has a special dot matrix distribution, and the printed points of the positioning pattern are discretely distributed and scattered on the vertices of several approximately equilateral triangles. Within the preset radius r of the center area of ​​the circle, no other printed points are set to form an isolated reference point, which is convenient for quickly locking the coordinates of the center of the circle through the isolated point detection algorithm, thereby realizing the overall positioning of the anti-counterfeiting code. The number of identification printed points can be set to 4, 6, or 9, which is not limited in this application. The setting of the identification printed points can utilize the fact that the presentation form of one of the identification printed points is different from that of the other identification printed points. The gap formed by the default printed point and the asymmetric feature formed by the other identification printed points can quickly determine the direction of the anti-counterfeiting code.

[0051] In this embodiment, on the extended circumference of the preset radius r, as shown in FIG. Figure 3 、 4 The five identification points (B, C, D, and E) are spaced at 60° central angles, i.e., ∠AOB = ∠BOC = ∠COD = ∠DOE = 60°. The sixth identification point (F) is automatically omitted, forming a 120° gap, ∠AOE = 120°. This default design uses angular differences to create a directional marker. Without the need for additional auxiliary graphics, the unique direction can be determined simply by calculating the central angle between three adjacent points. This clearly defines the spatial orientation of the security code, blocks optical interference from surrounding data points on the positioning pattern, and completely eliminates the rotational ambiguity problem of the traditional six-point symmetrical layout.

[0052] Modern cameras typically have a 24-28mm wide-angle lens with a minimum focusing distance of over 100mm. With a resolution of 4000×3000, the wide-angle lens typically covers a viewing angle of 60 to 84°. At an object distance of 100mm, the lens can see an object length of approximately 115 to 180mm. With a resolution of 4000×3000, the diagonal pixel count is 5000, and the width of the object seen by each pixel is 23 to 36 microns. Because most cameras use a Bayer array, lenses often exhibit some distortion, and individual pixels can be discarded by various algorithms during the image processing process. Therefore, using a single pixel is insufficient for accurate capture. To reliably capture small objects on a mobile phone camera, a 2×2 pixel array is required. Since a single pixel can capture an object length of 23 to 36 microns, the width of the object seen by 2×2 pixels is 46 to 72 microns. For a printed dot to be scannable by most mobile phones, the dot diameter should be at least 72 microns. In this application, when the average value is 59 microns, that is, when the printed dots are larger than 59 microns, most mobile phones can capture the printed dots at the minimum focusing distance.

[0053] According to the Rayleigh criterion, the minimum resolution angle of the human eye under sufficient illumination is about 2.64×10 -4 Based on the arc, it is estimated that at a distance of 30 cm, objects with a diameter of less than 80 microns are difficult to detect with the naked eye. Based on this, the diameter of the dots printed on the anti-counterfeiting code is controlled within the range of 23 to 80 microns. Dots of 59 to 80 microns are suitable for ordinary mobile phone cameras, while ultra-fine dots of 23 microns require a macro lens to recognize, ensuring both concealment and device compatibility.

[0054] The distance between any two adjacent printed dots is greater than 80 microns, preventing the human eye from perceiving the security code through the regular pattern of the dot matrix. When the distance between objects is less than the minimum resolution distance of the human eye, they are perceived as a continuous pattern. At a 30cm observation distance, the 80-micron spacing prevents adjacent printed dots from visually blending to form a visible texture, revealing the security code. This spacing also provides sufficient pixel spacing for mobile phone cameras, ensuring that each printed dot can be independently identified, avoiding signal confusion caused by an overly dense dot matrix during imaging, thereby improving decoding accuracy and anti-interference capabilities.

[0055] In terms of physical structure design, the anti-counterfeiting code adopts a long strip layout with an aspect ratio greater than 2. Compared with the traditional QR code which is approximately circular or square, it can be flexibly embedded in the edge of the label, the gap between texts, and even the lines of the brand logo. The shape with an aspect ratio greater than 2 not only reduces interference with the printed design, but also facilitates solving the problem of surface recognition through regional correction technology. Figure 5As shown in the figure, the area pointed by the arrow above is an anti-counterfeiting code, which can be embedded in the blank space of the label; and the area pointed by the arrow on the left is an anti-counterfeiting code set on the same line, which can be set between two lines of text on the label without affecting the normal use of the label. Figure 6 As shown, in the image of the label brand "alo", multiple anti-counterfeiting codes are embedded in the letter "l" without making corresponding modifications to the label.

[0056] Based on the same inventive concept, this application also provides a method for generating the above-mentioned anti-counterfeiting code. Figure 7 As shown, the method includes the following steps:

[0057] Step S71: Select a print dot diameter according to the expected reading distance.

[0058] The dot diameter is selected based on substrate characteristics, such as paper ink absorption, plastic film reflectivity, or the type of camera. Choosing the dot diameter based on the expected reading distance is crucial for balancing concealment and device compatibility. The reading distance directly impacts the ability of machines or the human eye to resolve the dot. For example, at a typical viewing distance of 30 cm, based on the Rayleigh criterion, it is calculated that dots with a diameter ≤80 microns are unrecognizable to the human eye. Furthermore, the physical resolution of a mobile phone camera—for example, a typical 4000×3000 pixel device corresponds to approximately 25 microns per pixel at a 100 mm object distance—requires that the dot diameter cover at least a 2×2 pixel area to ensure reliable imaging. Therefore, the dot diameter needs to be dynamically adjusted within a range of 23-80 microns. For example, for short-distance, high-precision scenarios, the lower limit is 23-59 microns, while for general scenarios, 59-80 microns is preferred to accommodate mainstream devices.

[0059] Step S72: determine the center of the circle and identify the printing point, and set at least one set of positioning patterns.

[0060] The positioning pattern provides a spatial reference and orientation for the security code. A blank area within a preset radius r around the center of the circle is maintained. Using an isolated point detection algorithm, such as the Hough transform or methods using integral graphs to identify isolated points, the coordinates of the circle center can be quickly located, establishing a coordinate system for subsequent image processing. This application utilizes the integral graph method for determining isolated points, which is one to two orders of magnitude faster than the Hough transform, allowing for faster identification of isolated points.

[0061] In this embodiment, six identification dots are evenly distributed around the outer circumference, each separated by a 60° central angle. The sixth identification dot is omitted, allowing for a blank pattern to be used, creating a 120° gap and eliminating directional ambiguity through geometric asymmetry. For example, in flexible packaging bending scenarios, traditional six-point symmetrical patterns require multiple rotations and alignments due to mirror symmetry. However, the default design directly determines direction based on angular differences, reducing direction recognition time from 10 milliseconds to less than 1 millisecond, significantly improving efficiency.

[0062] Step S73: setting printing dots in the positioning pattern in a random or pseudo-random manner to control the center distance between adjacent printing dots;

[0063] This ensures the unpredictability of the security code to resist copying attacks, while also preventing the visual fusion effect caused by overcrowding. Random distribution breaks up regular textures, preventing the human eye from detecting anomalies through light and dark contrast. Spacing control, based on the human eye's minimum resolution angle, prevents adjacent printed dots from forming a continuous light spot on the retina.

[0064] Step S74: Calculate the proportion of the total printed dot area, and adjust the printed dots based on the redundant coding strategy so that the total printed dot area does not exceed 10% of the anti-counterfeiting code area.

[0065] Real-time monitoring of printed dots with diameters exceeding the limit, adjustment of the printed dots based on a redundant coding strategy, and control of the average diameter of all printed dots in the anti-counterfeiting code to be between 59 and 80 microns, with the proportion of dots with diameters exceeding 88 microns not exceeding 5%, and the proportion of dots with diameters below 46 microns not exceeding 10%.

[0066] In some implementations, Reed-Solomon error correction codes can be automatically embedded, increasing the coding error correction rate to 20%, effectively repairing data bit loss caused by print spread or poor printing. For example, in high-speed inkjet printing, where the diameter fluctuates by approximately ±5 microns, the error correction mechanism can increase the decoding success rate from 85% to over 97%. Real-time monitoring of printing errors ensures decoding stability.

[0067] The total area is calculated in real time when filling data dots. When it approaches the threshold, it automatically pauses adding dots or activates a size compression strategy, such as fine-tuning the diameter of some dots to the lower limit. This control mechanism balances concealment and recognizability, avoiding visual texture abnormalities caused by too dense a dot matrix. When on a glossy metallic label, an excessively high area ratio may form visible light spots due to reflection, and a threshold of 10% can suppress the intensity of the light spots below the background noise level. The above settings significantly improve the tolerance to printing errors. When there are slight deviations in high-speed inkjet printing, dynamic error correction during decoding can still ensure recognition stability.

[0068] Step S75 , arranging the obtained printed dot array into a strip structure with an aspect ratio greater than 2 to generate the anti-counterfeiting code.

[0069] The printed dots are arranged in a strip-like structure with an aspect ratio greater than 2, enhancing deformation resistance through morphological adaptation and regional correction. The long strip layout can be embedded in label edges or logo lines, minimizing the impact on printed design. It further adapts to narrow spaces such as label edges and text gaps, expanding practical application scenarios.

[0070] Based on the same inventive idea, Figure 8As shown, the present application also provides a method for identifying an anti-counterfeiting code, comprising:

[0071] Step S81: Acquire an image containing the anti-counterfeiting code, detect the center of the positioning pattern and identify the printed dots, and determine the spatial position and direction of the anti-counterfeiting code;

[0072] Through image acquisition and rapid detection of positioning patterns, the spatial coordinate system and directional reference of the security code are established. After acquiring the image through a mobile phone camera or industrial vision equipment, the center of the circle and the five identification points on the circumference are first located, and the direction is determined by using the gaps formed by the default points. For example, the absolute blankness of the center area can be quickly determined by the isolated point detection algorithm using the integral graph to complete positioning within 0.01 seconds. The asymmetric angle characteristics of the default points eliminate the need for complex geometric calculations to determine the direction, reducing time consumption. This provides a spatial alignment foundation for subsequent processing, especially in curved or tilted shooting scenes. Direction correction can eliminate the interference of rotational deviation on decoding.

[0073] Step S82: Perform partition perspective correction on the security code according to the pre-stored quadrilateral perspective restoration area. Figure 9 Shown, including:

[0074] Step S821: dividing the strip structure of the security code into a plurality of quadrilateral perspective restoration areas along the length direction, each quadrilateral perspective restoration area covering a security code segment;

[0075] By segmenting the code into quadrilateral perspective restoration zones, the problem of geometric distortion caused by deformation of the substrate due to curves and bends is resolved. The long barcode is divided into multiple quadrilateral sub-zones along its length, such as HIJK and IVWJ in the figure. Each quadrilateral perspective restoration zone covers a local code segment of approximately 3 mm, breaking down the global nonlinear deformation into multiple linearly manageable units.

[0076] Step S822: extracting vertex coordinates for each quadrilateral perspective restoration area; and mapping the quadrilateral perspective restoration area to a standard plane according to preset correction parameters.

[0077] like Figure 10 As shown, using A, B, C, and D in the left image as perspective transformation restoration points, after perspective transformation, they become A', B', C', and D' in the right image. Perspective transformation only supports the restoration of linear changes. The four vertices of the long strip are relatively far apart. If the security code undergoes a certain degree of surface deformation, the perspective transformation result will be poor. For a short curve, it can be approximated as a straight line, which means that the linear requirement of perspective transformation is met. The security area where the security code is located is divided into one or more perspective transformation restoration areas. Perspective transformation is performed on each of these quadrilateral perspective restoration areas to reduce the impact of surface deformation.

[0078] The vertex coordinates of the quadrilateral perspective restoration area are as follows: Figure 11 As shown, segmentation point J is the intersection of line segments BC and ED, point H is on the extension of line segment OB, and HA has a length of r. Similarly, points I, K, U, V, W, and X can be calculated. This forms quadrilaterals HIJK, IVWJ, and HKXU, the quadrilateral perspective restoration areas. Each quadrilateral perspective restoration area is independently mapped to a standard plane using a perspective transformation to eliminate stretching or distortion. Similarly, more quadrilateral perspective restoration areas can be constructed on both sides to further distinguish perspective changes and reduce the impact of surface deformation.

[0079] The geometric coordinates and perspective transformation parameters of each unit vertex are recorded and written into the metadata layer of the layout file, providing a deformation correction benchmark for subsequent recognition. At the same time, the pre-stored vertex coordinates and transformation matrix eliminate the need for real-time calculation of geometric parameters during the recognition phase, shortening decoding time.

[0080] Step S823: stitching the corrected images of the quadrilateral perspective restoration areas in sequence to restore the printed dot array.

[0081] The corrected quadrilateral perspective restoration areas are reorganized in sequence through the image stitching algorithm to restore the complete plane dot matrix and ensure data consistency.

[0082] Step S83: binarize and decode the perspective-corrected printed dot array to obtain original data information.

[0083] Binarization and decoding are key steps in converting the corrected image into parseable data. A local area adaptive threshold segmentation algorithm is used to binarize the grayscale image, distinguishing between printed dots and background, and generating a binary dot matrix. For example, in reflective metal label scenarios, dynamic threshold adjustment can suppress light spot interference and improve the accuracy of dot outline extraction. The dot matrix is ​​parsed according to preset coding rules to extract anti-counterfeiting identifiers and redundant checksums. When an anomaly is detected, the Reed-Solomon error correction algorithm is automatically invoked, with an error correction capacity of ≥20%, to convert the physical dot matrix into digital information, providing the data foundation for verification.

[0084] Step S84: completing anti-counterfeiting verification or tracing based on the original data information.

[0085] Authenticity determination and traceability are achieved through data comparison and blockchain technology. In this embodiment, the decoded identifier can be matched with a cloud database or distributed ledger to verify product uniqueness and legitimacy. For example, in luxury anti-counterfeiting scenarios, production batch, logistics route, and distributor information are returned, and blockchain-based evidence ensures that the data cannot be tampered with. Verification results are also fed back to the user terminal in real time, such as displaying "authentic" or "risk" prompts on the app interface. Digital signature technology is used to prevent man-in-the-middle attacks. This step not only completes anti-counterfeiting verification but also supports supply chain transparency and consumer rights protection.

[0086] This application significantly improves concealment and recognition reliability through positioning graphic design and dot distribution strategies. The blank space in the center of the circle, combined with the evenly distributed identification dots, enables quick and accurate positioning of the security code's spatial coordinates. The asymmetric directional markings formed by the default specific dots effectively avoid directional misjudgments. The overall layout ensures that it is both imperceptible to the human eye and highly efficient for equipment recognition. It is particularly suitable for complex printing scenarios such as curved surfaces and bends, balancing anti-counterfeiting strength with practical adaptability.

[0087] Based on the same inventive concept, the present invention also provides a computer device, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the above-mentioned anti-counterfeiting code generation method or identification method.

[0088] The processing method of the computer device can refer to the description of the above method and will not be repeated here.

[0089] An embodiment of the present application also provides a non-transitory machine-readable storage medium, on which an executable program is stored. When the executable program is executed by a microprocessor, the processor executes a method for generating or identifying an anti-counterfeiting code as provided in the above embodiment.

[0090] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute the described method for generating or identifying an anti-counterfeiting code.

[0091] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the described method for generating or identifying an anti-counterfeiting code.

[0092] The embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, i.e., they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected based on actual needs to achieve the objectives of the embodiments. Persons of ordinary skill in the art will be able to understand and implement the embodiments without inventive effort.

[0093] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus the necessary general hardware platform, or of course, by means of hardware. Based on this understanding, the above technical solution, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, including a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

[0094] Finally, it should be noted that the embodiments disclosed in the present invention are only preferred embodiments of the present invention, which are only used to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. An anti-counterfeiting code, characterized in that: The anti-counterfeiting code includes a plurality of printed dots, the diameter of the printed dots is 23 microns to 80 microns, and the edge distance between any two adjacent printed dots is greater than 80 microns; At least one positioning pattern is set in the anti-counterfeiting code, and the positioning pattern includes a center of a circle and a number of evenly distributed identification dots around the center of the circle and located on a circumference of a preset radius. The direction is determined according to the default of the identification dots; there are no other dots distributed within the preset radius range of the center of the circle.

2. The anti-counterfeiting code according to claim 1, wherein: The aspect ratio of the anti-counterfeiting code is greater than 2.

3. The anti-counterfeiting code according to claim 2, wherein: The periphery of the positioning pattern is filled with printed dots using a random or pseudo-random algorithm so that the proportion of the total printed dot area to the total area of ​​the anti-counterfeiting code does not exceed 10%.

4. The anti-counterfeiting code according to claim 3, wherein: The average value of the printed dot diameter is 59 μm to 80 μm.

5. The anti-counterfeiting code according to claim 3, characterized in that: The number of the identification print dots is 6, and one of the identification print dots is missing.

6. A method for generating an anti-counterfeiting code, characterized in that: Used to generate the anti-counterfeiting code according to any one of claims 1 to 5, comprising: Select the dot diameter based on the expected reading distance; Determine the center of the circle and identify the printed point, and set at least one set of positioning patterns; Set printing points randomly or pseudo-randomly to control the center distance between adjacent printing points; Calculating the total area ratio of printed dots and adjusting the printed dots based on the redundant coding strategy so that the total area of ​​the printed dots does not exceed 10% of the total area of ​​the anti-counterfeiting code; The obtained printed dot array is arranged into a strip structure with an aspect ratio greater than 2 to generate the anti-counterfeiting code.

7. The method for generating an anti-counterfeiting code according to claim 6, wherein: Adjusting the printing dots based on a redundant coding strategy includes: Control the average diameter of all printed dots in the anti-counterfeiting code to be between 59 microns and 80 microns; The number of printed dots with a diameter greater than 88 microns shall not exceed 5% of the total number of printed dots, and the number of printed dots with a diameter less than 46 microns shall not exceed 10% of the total number of printed dots; When the proportion of printed dots with a diameter of less than 46 microns reaches 10%, the error correction rate of the anti-counterfeiting code is not less than 20%.

8. A method for identifying an anti-counterfeiting code, characterized in that: Used to identify the anti-counterfeiting code according to any one of claims 1 to 5, comprising: Acquire an image containing the security code, detect the center of the positioning pattern and identify the printed dots to determine the spatial position and direction of the security code; Performing partition perspective correction on the security code according to the pre-stored quadrilateral perspective restoration area; Binarize and decode the perspective-corrected printed dot array to obtain the original data information; Anti-counterfeiting verification or tracing is completed based on the original data information.

9. The method for identifying an anti-counterfeiting code according to claim 8, wherein: Perform partition perspective correction on the security code according to the pre-stored quadrilateral perspective restoration area, including: Dividing the strip structure of the security code into a plurality of quadrilateral perspective restoration areas along the length direction, each quadrilateral perspective restoration area covers a security code segment; Extracting vertex coordinates for each quadrilateral perspective restoration area; mapping the quadrilateral perspective restoration area to a standard plane according to preset correction parameters; The images corrected in each quadrilateral perspective restoration area are stitched together in sequence to restore the printed dot array.

10. The anti-counterfeiting code recognition method according to claim 8, characterized in that: Detect the center of the positioning pattern and identify the printed dots to determine the spatial position and direction of the security code, including: The orientation of the security code is determined by identifying the central angle of the printed dot and combining it with the default position of the printed dot.

Citation Information

Patent Citations

  • Anti-fake method, anti-fake system and anti-fake marker

    CN103729767A

  • Dot matrix anti-counterfeiting code graph and identification method therefor

    CN105913103A

  • Matrix two-dimensional code coding method and decoding method

    CN107545289A

  • Anti-counterfeiting method based on sparse dot matrix codes

    CN113313225A

  • Code generating method of dot matrix code, decoding method of dot matrix code and anti-counterfeiting method

    CN113435556A

Cited By

  • Method and device for generating anti-counterfeiting mark

    CN120976371A