Aperture array code processing method and device, electronic equipment and storage medium

By providing sample templates for perforated codes through a graphical interface, users can generate and set up perforated code templates, which solves the problem of popularizing perforated codes in the entire life cycle traceability of industrial products and realizes the efficient application and popularization of perforated codes in industrial products.

CN122065862APending Publication Date: 2026-05-19SHENZHEN TAIHE IOT INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN TAIHE IOT INFORMATION TECH CO LTD
Filing Date
2025-12-24
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

In existing technologies, the use of perforated codes to achieve full lifecycle traceability of industrial products has a low adoption rate and a high barrier to entry, making it difficult to meet the durability, safety, and readability requirements of industrial environments.

Method used

The graphical interface provides sample templates for perforated codes, helping users understand the meaning of various information in the perforated codes, generate and set perforated code templates, adapt to the traceability information of target products, and realize the generation and application of perforated codes.

Benefits of technology

It has increased the adoption of perforated codes in the entire lifecycle traceability of industrial products, lowered the threshold for use, adapted to multi-dimensional and diversified traceability needs, and realized the localized storage and identification of product traceability information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122065862A_ABST
    Figure CN122065862A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of product traceability, and discloses an aperture array code processing method and device, electronic equipment and a storage medium, and the method comprises the steps: responding to the respective selection operation of a user on the aperture array region information, positioning hole information and attribute group information of an aperture array code sample template; correspondingly displaying an aperture array area, a positioning hole and at least one data hole forming an attribute group in a template graph of the aperture array code sample template, so that a user can grasp meanings represented by the information of the aperture array area, the information of the positioning hole and the information of the attribute group; responding to custom of the hole array code templates of the plurality of products by a user, and obtaining a plurality of hole array code templates; determining a first hole array code template from the plurality of hole array code templates based on a target product of a to-be-set hole array code; generating a processing file of the first hole array code based on the product tracing information of the target product and the first hole array code template; and setting a first hole array code on the target product based on the processing file to realize tracing information labeling. According to the invention, the use threshold of the hole array code is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of product traceability technology, specifically to methods, devices, electronic devices, storage media, and program products for processing perforated array codes. Background Technology

[0002] With the advancement of various policies, key industrial products urgently need a full lifecycle traceability system that ensures "traceability of origin, destination, and accountability." Among related technologies, QR codes or Radio Frequency Identification (RFID) tags are used to achieve full lifecycle traceability of industrial products. However, this method suffers from drawbacks such as weak environmental adaptability, insufficient security, low readability in complex environments, spatial limitations, and high risk of information tampering.

[0003] The emergence of perforated codes has effectively solved the above problems. However, the adoption rate of using perforated codes to achieve full life cycle traceability of industrial products is low, and the threshold for use is high. Summary of the Invention

[0004] This invention provides a method, apparatus, electronic device, and storage medium for processing perforated codes, in order to solve the problem that the use of perforated codes to achieve full lifecycle traceability of industrial products is not widely adopted and has a high barrier to entry in related technologies.

[0005] In a first aspect, the present invention provides a method for processing perforated array codes, the method comprising: In response to the user's selection of the aperture region information in the aperture code sample template, the aperture region is displayed in the template graphic of the aperture code sample template so that the user can determine the meaning of the aperture region information. In response to the user's selection of the positioning hole information in the perforation code sample template, the positioning holes are displayed in the template graphic of the perforation code sample template so that the user can determine the meaning represented by the positioning hole information. In response to the user's selection of attribute group information in the perforation code sample template, at least one data hole constituting the attribute group is displayed in the template graphic of the perforation code sample template, so that the user can determine the meaning represented by the attribute group information; each attribute group is used to represent a product traceability dimension. In response to the user's definition of multiple product perforation code templates, multiple perforation code templates are obtained; Based on the target product for which the aperture code is to be set, the first aperture code template is determined from multiple aperture code templates; Based on the product traceability information of the target product and the first hole array template, generate the processing file for the first hole array; Based on the processing documents, the first hole array code is set on the target product.

[0006] The perforated code processing method provided in this application embodiment enables users to easily understand the meaning of various information in the perforated code through a graphical interface sample template. Based on this understanding, users can generate perforated code templates for various products. Then, according to the product traceability information of the target product and the corresponding perforated code template, the corresponding perforated code is set on the target product. This solves the problem of low adoption and high usage threshold of using perforated codes to achieve full life cycle traceability of industrial products in related technologies. It achieves the technical effect of increasing the adoption of using perforated codes to achieve full life cycle traceability of industrial products and lowering the usage threshold of using perforated codes to achieve full life cycle traceability of industrial products.

[0007] In a second aspect, the present invention provides a hole array code processing device, the device comprising: The first display module is used to respond to the user's selection operation of the aperture region information of the aperture code sample template, and to display the aperture region in the template graphic of the aperture code sample template so that the user can determine the meaning of the aperture region information. The second display module is used to respond to the user's selection operation of the positioning hole information of the perforation code sample template, and to display the positioning holes in the template graphic of the perforation code sample template so that the user can determine the meaning represented by the positioning hole information. The third display module is used to respond to the user's selection operation of the attribute group information of the perforation code sample template, and to display at least one data hole that makes up the attribute group in the template graphic of the perforation code sample template, so that the user can determine the meaning of the attribute group information; each attribute group is used to represent a product traceability dimension. The acquisition module is used to obtain multiple perforation code templates in response to the user's definition of perforation code templates for multiple products; The determination module is used to determine the first aperture code template from multiple aperture code templates based on the target product to be set with the aperture code template. The generation module is used to generate the processing file of the first hole array code based on the product traceability information of the target product and the first hole array code template; The setup module is used to set the first hole array code on the target product based on the processing file.

[0008] Thirdly, the present invention provides an electronic device, comprising: a memory for storing a computer program; and a processor for executing the computer program to implement the steps of any of the above-described perforated code processing methods.

[0009] Fourthly, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of any of the above-described perforated code processing methods.

[0010] Fifthly, the present invention provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described perforated code processing methods. Attached Figure Description

[0011] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0012] Figure 1 A flowchart illustrating the hole array code processing method provided in this application embodiment; Figure 2 A schematic diagram of a perforated code provided in an embodiment of this application; Figure 3 A schematic diagram of a sample template for a perforated code provided in an embodiment of this application; Figure 4 A flowchart illustrating another method for processing perforated codes provided in this application embodiment; Figure 5 A schematic diagram of the custom template interface provided in the embodiments of this application; Figure 6 A schematic diagram of the aperture array structure definition interface provided in the embodiments of this application; Figure 7 A schematic diagram of the positioning hole definition interface provided in an embodiment of this application; Figure 8 A schematic diagram of the attribute group definition interface provided in an embodiment of this application; Figure 9 A flowchart illustrating the generated product's perforated code template provided in this application embodiment; Figure 10 A schematic diagram of the first aperture code template provided in an embodiment of this application; Figure 11 A schematic diagram of a perforated code pattern provided in an embodiment of this application; Figure 12 A schematic diagram of another aperture code pattern provided in an embodiment of this application; Figure 13 A flowchart illustrating the parsing process of the aperture array code provided in this application embodiment; Figure 14 A flowchart illustrating the parsing of the aperture array code provided in this application embodiment; Figure 15 A functional framework diagram of the perforated code generator provided in the embodiments of this application; Figure 16 A flowchart illustrating another aperture code processing method provided in an embodiment of this application; Figure 17 This is a schematic diagram of the structure of a perforated code processing device provided in an embodiment of this application; Figure 18 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0013] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0014] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.

[0015] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0016] Driven by various policies, key industrial products such as Computer Numerical Control (CNC) components, auto parts, aerospace components, printed circuit boards (PCBs), and medical implants urgently need a full lifecycle traceability system that ensures "traceability of origin, destination, and accountability." Related technologies utilize QR codes or RFID tags to achieve full lifecycle traceability for industrial products. However, this method has weak environmental adaptability and struggles to meet industrial-grade durability requirements: QR codes and RFID tags are typically laser-engraved, printed, or affixed to product surfaces, making them prone to wear, fading, or peeling in industrial environments with oil stains, high temperatures, and mechanical friction, leading to breaks in the product traceability chain (e.g., QR codes corroded by oil in auto parts production lines). RFID tags are also costly, relying on electronic chips and reading devices. Furthermore, this method lacks security: the separation of the information carrier from the product reduces traceability reliability; for example, affixed tags are easily detached or maliciously replaced, making it difficult to meet the needs of long-term outdoor use or heavy equipment identification. This method suffers from several drawbacks. First, it lacks readability in complex environments. In challenging industrial settings such as metal surfaces, high temperatures, high humidity, oil contamination, strong sunlight, or strong electromagnetic interference, QR codes and RFID tags are prone to reading failures due to dirt, reflection, deformation, or signal interference. Second, it is limited by product space constraints. The product itself needs sufficient space to print QR codes and RFID tags. In situations with limited space, especially with high-precision hardware, the available space for coding is often limited in size and irregular in shape, restricting the application of QR codes or RFID tags. Third, the traceability information carried by this method is susceptible to tampering. Using QR codes for full lifecycle traceability of industrial products stores the traceability information in the background, leading to a higher risk of tampering. Similarly, using RFID tags for full lifecycle traceability of industrial products stores the traceability information locally, also resulting in a high risk of tampering. Fourth, this method cannot be customized. It cannot flexibly define the layout and composition of the traceability information based on the amount of traceability information required by the enterprise to meet its personalized needs.

[0017] In summary, the use of QR codes or RFID tags to achieve full lifecycle traceability of industrial products results in a persistently high risk of the traceability chain breaking down for high-value industrial products.

[0018] The emergence of perforated codes has effectively solved the above problems. However, the use of perforated codes to achieve full lifecycle traceability of industrial products is relatively niche and highly personalized, resulting in low adoption and a high barrier to entry. Enterprises face difficulties in understanding and using perforated codes.

[0019] To address the aforementioned technical problems, this application provides a perforated code processing method, apparatus, electronic device, and storage medium. Through a graphical interface providing perforated code sample templates, users can easily understand the meaning of various information within the perforated code. Based on this understanding, users can generate perforated code templates for various products. Then, according to the product traceability information of the target product and the corresponding perforated code template, the corresponding perforated code is set on the target product. This solves the problem of low adoption and high usage barriers in related technologies for using perforated codes to achieve full lifecycle traceability of industrial products. It achieves the technical effect of increasing the adoption rate of using perforated codes for full lifecycle traceability of industrial products and lowering the usage barrier.

[0020] Embodiments of this application provide a method for processing perforated codes, applied to a perforated code generator, which is a web-based visual configuration platform for perforated codes. Figure 1 This is a flowchart illustrating the hole array code processing method provided in the embodiments of this application, as shown below. Figure 1 As shown, the hole array code processing method includes the following steps: Step S101: In response to the user's selection operation of the aperture region information of the aperture code sample template, the aperture region is displayed in the template graphic of the aperture code sample template so that the user can determine the meaning of the aperture region information representation.

[0021] It should be noted that the perforated code in this embodiment consists of positioning holes and data holes carrying encoded information. The encoded information is traceability information. The positioning holes are used to identify the vertical orientation of the X-axis or Y-axis of the overall perforated code, thereby achieving overall image positioning of the perforated code. The style of the positioning holes can be varied. For example, the positioning holes can be composed of single-hole markers (which must be rectangular, such as rectangles with rounded corners). Before using the positioning holes, the relationship between the positioning holes and the orientation of the perforated code needs to be preset. For example, when the positioning hole is placed vertically (i.e., the height is greater than the width), it means that the perforated code is not rotated. The long side of the positioning hole represents the Y-axis direction of the perforated code, and the short side of the positioning hole represents the X-axis direction of the perforated code. Another example is that the position of a corner of the positioning hole represents the upper right corner of the perforated code, etc. The positioning holes can also be positioning markers of special graphics composed of multiple holes, such as the "U"-shaped positioning of Quick Response (QR) matrix codes and the "L"-shaped positioning of Data Matrix (DM) codes.

[0022] A minimum of one positioning hole must be defined in a perforated code, and three can be positioned to locate the three corners of the code. When there is only one positioning hole, it must be rectangular to identify the overall orientation of the code. When there are three positioning holes located at the three corners of the code, they need to be represented in a different shape than the data holes to distinguish them and quickly locate the corners. If the perforation method is circular, the positioning hole consists of multiple circular holes in a rectangular shape (such as an N-shape or W-shape) and must be located on one of the four sides of the code to identify its orientation.

[0023] Data holes are generally machined round holes. The number of data holes can be adjusted according to the required information density. The number of rows and columns of data holes, their size, and the overall shape formed can be flexibly defined by the user according to their own needs.

[0024] Figure 2 This is a schematic diagram of a perforated code provided in an embodiment of this application, as shown below. Figure 2 As shown, the hole array code consists of 34 holes in 5 rows × 7 columns. Specifically, it consists of two positioning holes (rectangular with rounded corners) occupying the upper right corner and the remaining 33 data holes (circular holes). Among them, the black data holes are the actual holes when coding the product, while the white circular holes in the dashed lines do not exist when coding the product, indicating that there is no hole at the current position.

[0025] It should be noted that the positioning holes are generally located at the edge or specific position of the hole array (e.g., Figure 2 The rectangular shape with rounded corners in the upper right corner (in the image) plays a crucial role in perforated codes by providing X-axis or Y-axis coordinates for image processing algorithms during code parsing. Positioning holes allow for the calculation of the actual position of the perforated code within the image, eliminating the effects of shooting angle shifts or distortions. They serve as the crucial link in translating the physical image into digital information. Positioning holes typically consist of a graphic occupying two or more dimensions; they can be a single graphic or multiple circular holes. Their shape must be distinct from the shape of the data holes. For example... Figure 2 The positioning hole is a rectangle with rounded corners that occupies two hole positions.

[0026] The data holes are all the same size and exist in two states: present or absent. For example... Figure 2The black circles in the diagram indicate presence, while the white circles marked with dashed lines indicate absence. When the data is actually assigned to the product, existing data holes will be punched, while non-existent data holes will remain unpunched. Each data hole is the smallest unit of traceability information, corresponding to one binary bit (1 for presence, 0 for absence). The arrangement of these data holes forms a data string representing specific meanings, used to characterize traceability information. The size of the hole array determines the information capacity; n data holes can represent a maximum of 2^n bits. n Taking three data apertures as an example, the information that can be represented by the combined state of the data apertures is shown in Table 1.

[0027] Table 1

[0028] With three data holes, all data between 0 and 7 can be represented completely by the arrangement of the data holes. Figure 2 The perforated code has 33 data holes. If divided into a data block, i.e. an attribute group, it is used to represent a product traceability dimension. Theoretically, it can represent 0-(2 33 1) All the numbers between, approximately 8.59 billion unique numbers. In practical applications, users can divide the 33 data wells into multiple attribute groups according to their own product traceability needs. Adjacent data wells can be assigned to one attribute group. An attribute group is used to represent a product traceability dimension that needs to be recorded, thereby realizing the recording of product traceability information of multiple product traceability dimensions.

[0029] Figure 3 A schematic diagram of the sample template of the perforated code provided in the embodiments of this application, as shown below. Figure 3 As shown, the homepage of the perforation code generator provides a sample template. This template has pre-set configuration parameters for typical industrial scenarios. Through this sample template, users can quickly master and learn the encoding rules and operation process of perforation codes, getting started quickly. The sample template displays the template graphic on the left and the pre-set template parameter information on the right. When the user moves the mouse to each parameter information position on the right, the template graphic will display the corresponding position of the current parameter, guiding the user to quickly understand and learn. In other words, in response to the user's selection of the perforation area information, positioning anchor point information (i.e., positioning hole information), and attribute group information in the sample template, the corresponding position will be displayed in the template graphic. For example, if the mouse moves to the positioning anchor point information, the positioning anchor point position (i.e., the positioning hole position) in the template graphic will be highlighted.

[0030] The following is an overview of the key parameters of the perforated code: 1. Information on aperture array regions Size of the perforation area: The physical dimensions (height × width) of the perforation code, i.e. the width and height of the perforation area, correspond to the actual area size occupied by the code in the actual product.

[0031] Number of rows and columns of the aperture array: The number of cells punched in the row (Y direction) and column (X direction) of the aperture array. The number of rows and columns of the aperture array affects the number of data holes and directly determines the size of the data that the aperture array can carry. The more aperture arrays there are, the larger the amount of data that can be identified.

[0032] Radius of each aperture array: The size of the hole punched when a single data aperture unit is assigned a code on the product.

[0033] Starting coordinate position of the region: The initial positioning point of the aperture array region in the coordinate system. All aperture positions in the aperture array are identified based on this coordinate reference. For example, if the origin at the top left corner is taken as the starting coordinate reference point of the aperture array, then the coordinates of the circular apertures in the first row at the top left corner are x1y1, x2y1, x3y1, ..., and the coordinates of the first column are x1y1, x1y2, x1y3, ...

[0034] Starting position of the coding area: The starting position of the actual location of the perforation area in the product when the perforation code is actually assigned to the product.

[0035] 2. Location Anchor Point Information Positioning anchor points (positioning holes) are key reference points in the recognition and decoding process. They are mainly used to determine the position, orientation, and structural parameters of the perforated code, providing coordinate references for image processing algorithms and eliminating the influence of shooting angle offsets or deformations. Compared to data holes, they typically possess high contrast characteristics. The perforated code generator in this application supports multiple positioning anchor points, and their main parameters are as follows: Positioning anchor point area: The entire area occupied by the positioning hole in the hole array code.

[0036] Positioning anchor point location: The area actually occupied by the positioning hole in the hole array code. This area is within the positioning anchor point area, but the actual coordinate range may be smaller than the positioning anchor point area.

[0037] Positioning anchor point type: single hole or multiple holes.

[0038] Positioning anchor point graphics: The graphic styles of positioning holes, supporting round holes, rectangular holes, square holes, and other graphics.

[0039] Positioning anchor point length and width: the actual size of the positioning hole.

[0040] Anchor point radius: When the anchor point type is rectangle, you can set the radius to form a rectangle with rounded corners.

[0041] 3. Attribute group information In a perforated code generator, multiple data holes in a perforated code can be combined into attribute groups (referred to as "attributes") with specific meanings. A single perforated code supports multiple independent attribute groups, such as... Figure 3 In the template graphic on the left, the first, second, third, fourth, and fifth areas each represent an attribute group. Each attribute group corresponds to a product traceability dimension, realizing a direct mapping between physical hole locations and product traceability information attributes. For example, the first area in the template graphic corresponds to the production line; the second area corresponds to the production date; the third area corresponds to the production plant; the fourth area corresponds to the machine number; and the fifth area corresponds to the production shift.

[0042] To reduce the user's understanding cost, the hole array generator automatically converts the binary hole position status (0 / 1) of the data holes in each attribute group into decimal weight values ​​(1, 2, 4, 8, 16...), and directly marks them in the data hole positions of the view (e.g., Figure 3 (As shown). Users do not need to master binary conversion rules; basic addition is sufficient to understand the operation: for example, if the three holes are labeled 1, 2, and 4, holes 1 and 2 (1+2=3) represent the decimal value 3; all holes (1+2+4=7) cover the numerical range of 0-7. This design abstracts binary combinations into intuitive arithmetic operations, reducing the user's understanding and learning costs.

[0043] Figure 3 In the example template of the hole array code shown, the value range of the five attribute groups can be intuitively obtained through simple addition and subtraction calculations: production line type: 0-31; production date: 0-511; production plant area: 0-15; machine number: 0-127; production team: 0-1.

[0044] Step S102: In response to the user's selection operation of the positioning hole information of the perforation code sample template, the positioning holes are displayed in the template graphic of the perforation code sample template so that the user can determine the meaning represented by the positioning hole information.

[0045] Step S103: In response to the user's selection operation of the attribute group information of the perforation code sample template, at least one data hole that makes up the attribute group is displayed in the template graphic of the perforation code sample template so that the user can determine the meaning of the attribute group information; each attribute group is used to represent a product traceability dimension.

[0046] Step S104: In response to the user's definition of perforation code templates for multiple products, obtain multiple perforation code templates.

[0047] Understandably, once users have determined the meaning of the perforation area information, positioning hole information, and attribute group information based on the perforation code sample template, they can quickly grasp the parameter rules of the perforation code. They can then independently design the physical structure and data logic of the perforation code for each product based on actual production traceability needs. They can define various traceability attributes in different perforation blocks according to their own needs, and define the distribution and arrangement of the perforation based on the coding space and style available for the product. This allows the perforation code to meet the product's perforation code coding processing needs from appearance and layout design to coding production.

[0048] Step S105: Based on the target product for which the aperture code is to be set, determine the first aperture code template from multiple aperture code templates.

[0049] Step S106: Based on the product traceability information of the target product and the first hole array template, generate the processing file for the first hole array.

[0050] Step S107: Based on the processing document, set the first hole array code on the target product.

[0051] The perforated code processing method provided in this application embodiment enables users to easily understand the meaning of various information in the perforated code through a graphical interface sample template. Based on this understanding, users can generate perforated code templates for various products. Then, according to the product traceability information of the target product and the corresponding perforated code template, the corresponding perforated code is set on the target product. This solves the problem of low adoption and high usage threshold of using perforated codes to achieve full life cycle traceability of industrial products in related technologies. It achieves the technical effect of increasing the adoption of using perforated codes to achieve full life cycle traceability of industrial products and lowering the usage threshold of using perforated codes to achieve full life cycle traceability of industrial products.

[0052] The perforated code processing method provided in this application takes into account the differences in traceability information of different industries and products. The traceability technology used can adapt to multi-dimensional, diversified, and multi-form customization requirements, and provides a simple interface so that users can get started quickly. It solves the obstacles to the use of perforated codes caused by insufficient technical capabilities within the organization, helps enterprises to quickly customize product traceability information using tools, and can realize the identification and interpretation of traceability information in offline mode.

[0053] The perforation code generator allows users to dynamically define the physical layout, data logic, and various traceability attributes of the perforation code through a graphical interface. This enables the generated perforation codes to adapt to products with different shapes and sizes, and transforms various industry traceability information into perforation codes corresponding to the perforation array for data recording and storage. Ultimately, it achieves localized storage and traceability of product industry traceability information. The perforation code generator is simple and convenient to use, highly versatile, and practical.

[0054] Embodiments of this application provide a perforated code processing method, applied to a perforated code generator. Figure 4 This is a flowchart illustrating the hole array code processing method provided in the embodiments of this application, as shown below. Figure 4 As shown, the hole array code processing method includes the following steps: Step S401: In response to the user's selection of the aperture region information in the aperture code sample template, the aperture region is displayed in the template graphic of the aperture code sample template so that the user can determine the meaning of the aperture region information. For details, please refer to... Figure 1 Step S101 of the illustrated embodiment will not be described again here.

[0055] Step S402: In response to the user's selection of the positioning hole information in the perforation code sample template, the positioning holes are displayed in the template graphic of the perforation code sample template so that the user can determine the meaning represented by the positioning hole information. For details, please refer to... Figure 1 Step S102 of the illustrated embodiment will not be described again here.

[0056] Step S403: In response to the user's selection of attribute group information in the perforation code sample template, at least one data hole constituting the attribute group is displayed in the template graphic of the perforation code sample template, so that the user can determine the meaning represented by the attribute group information; each attribute group is used to represent a product traceability dimension. For details, please refer to... Figure 1 Step S103 of the illustrated embodiment will not be described again here.

[0057] Step S404: In response to the user's definition of perforation code templates for multiple products, obtain multiple perforation code templates.

[0058] Specifically, step S404 includes: Step S4041: For any product, receive the aperture array region definition parameters of the product input by the user through the aperture array structure definition interface. The aperture array region definition parameters include aperture array region width, aperture array region height, number of aperture arrays, number of aperture array rows, radius of each aperture array, region start coordinate position, and coding region start position.

[0059] After quickly grasping the meaning of perforation codes based on the sample template, users can click the "Create Custom Template" button on the graphical interface to enter the editing stage for a custom perforation code template for their product. The "Create Custom Template" button is available at the top of the perforation code generator homepage and below the sample template; clicking it will open a blank editing canvas.

[0060] Figure 5 This is a schematic diagram of the custom template interface provided in the embodiments of this application, such as... Figure 5 As shown, the left side of the custom template interface is a visual canvas used for real-time rendering and previewing of the perforated code, supporting drag-and-drop adjustment of its position and area. The right side of the custom template interface is a parameter panel used to display the configuration parameters of the template structure, positioning anchor points, and attribute groups in layers.

[0061] Figure 6 This is a schematic diagram of the aperture array structure definition interface provided in the embodiments of this application, as shown below. Figure 6 As shown, the aperture array structure definition interface includes configuration parameters for the template structure, namely, aperture array region definition parameters. These parameters include: Template Name: The name of the perforated code template for the currently defined product. Users can create multiple templates; entering names makes them easy to distinguish after creation.

[0062] Hole Array Region Width and Height: This includes the width and height of the hole array region, used to characterize the actual size of the hole array code when it is actually assigned to the product. After setting, the left view area of ​​the hole array structure definition interface will generate the implemented rectangular area. If the actual set size exceeds the view size, it will be scaled proportionally.

[0063] Aperture Array Rows and Columns: This includes the number of rows and columns of the aperture array. The user inputs the number of rows (Y-axis) and columns (X-axis), and the system automatically generates light gray dashed grid lines in the aperture array area, dividing the area into rectangular regions. The size of each region is automatically calculated. Each rectangular region represents a potential aperture location; it is displayed as a circle when it exists and blank when it does not.

[0064] Radius of each hole array: The size of each circular hole. The default position of the hole is the center of the hole position rectangle. The radius of a single hole is limited to not exceeding 1 / 2 of the minimum side length of the hole position rectangle (it cannot exceed the divided rectangular hole position grid). The size of the hole radius also determines the distance between each hole.

[0065] Coordinate position: This refers to the starting coordinate position of the area. The coordinate position serves as the reference point for the entire perforation array. The coordinates of all data holes and positioning holes are calculated based on this origin. If the top left corner is set, the coordinates of the circular holes in the first row from the top left corner are x1y1, x2y1, x3y1, ...; the coordinates of the first column are x1y1, x1y2, x1y3, ... By explicitly mapping the row and column indices, a lossless conversion from graphic design to physical coding of the perforation array code is achieved.

[0066] Starting coordinates of the coding area: This refers to the starting position of the coding area; the initial value of the actual position of the hole array area on the product. It is used to accurately calibrate the physical position reference point of the hole array code on the product surface. When generating the machining file for the hole array code, the offset is calculated based on this point, which directly affects subsequent drilling processing. The machining file for the hole array code includes the position coordinates of all holes included in the hole array code.

[0067] Step S4042: Receive the positioning hole definition parameters of the product input by the user through the positioning hole definition interface. The positioning hole definition parameters include the positioning hole graphic, positioning hole area, positioning hole position, and positioning hole size.

[0068] Figure 7 This is a schematic diagram of the positioning hole definition interface provided in an embodiment of this application, as shown below. Figure 7 As shown, the positioning hole definition interface includes the configuration parameters for the positioning anchor points, i.e., the positioning hole definition parameters. The positioning hole definition parameters include: Anchor point graphic: also known as positioning hole graphic; the positioning anchor point is the positioning hole of the hole array code. It supports a variety of custom positioning graphics. The set graphic must have a significant difference in graphic composition from the data hole. It has a high degree of positioning identification characteristics and can also identify the vertical orientation of the X or Y axis of the overall hole array code, so as to realize the overall image positioning and position correction of the hole array code.

[0069] Anchor point area: This is the area for positioning holes; the anchor point area is set by dragging the grid position area or clicking with the mouse. The anchor point area generally occupies more than 2 holes.

[0070] Anchor point position: This refers to the position of the positioning holes. Click on the anchor point area settings; the anchor point position can be smaller than the anchor point area. For example, if the anchor point area occupies four hole positions, the actual anchor point can occupy only three positions.

[0071] Anchor point size: This refers to the size of the positioning hole. The dimensions of the anchor point (positioning hole) are as follows: For example, when selecting "rounded rectangle", you need to enter the length, width, and rounded corner radius (e.g., 2.0mm × 1.5mm, rounded corner radius 0.3mm).

[0072] Step S4043: Receive the attribute group definition parameters of the product input by the user through the attribute group definition interface. The attribute group definition parameters include the name of the attribute group, the coordinate information of the data holes that make up the attribute group, and the value range of the attribute group.

[0073] Figure 8 This is a schematic diagram of the attribute group definition interface provided in the embodiments of this application, as shown below. Figure 8As shown, the attribute group definition interface includes the configuration parameters for the attribute group, i.e., the attribute group definition parameters. In the perforation code generator, multiple data holes of the perforation code can be combined into attribute groups with specific meanings. Click the "Add Attribute" button, enter the attribute name, i.e., the attribute group name (such as "Production Batch"), drag or click the hole grid in the left view, and the system will label each hole in the attribute group with a decimal value according to binary weights (1, 2, 4, 8, 16...). Users can adjust the hole order by dragging. As mentioned above, a product traceability dimension for a production batch is set, with a value range of 0-31. Click "Add" to add multiple sets of attributes at once until the entire perforation code template design is completed.

[0074] Step S4044: Based on the hole array region definition parameters, positioning hole definition parameters, and attribute group definition parameters of the product, determine the hole array code template of the product.

[0075] When saving a perforated code template, the system packages all parameters (including the number of rows and columns, anchor point coordinates, attribute group mapping table, etc.) into a single JSON file, which can be stored in the cloud or locally. The system supports saving multiple perforated code templates, allowing users to flexibly define different templates based on product size and traceability requirements. In practical applications, users simply log in to the perforated code generator, call a pre-defined perforated code template, and input the traceability information for the product to be traced; the system can then quickly generate the corresponding perforated code graphic. This achieves a "one-time edit, repeated call" mechanism, significantly improving convenience and work efficiency.

[0076] Figure 9 A flowchart for generating a perforated code template for a product provided in this application embodiment is shown below. Figure 9 As shown, the process includes: Added templates. Supports multiple templates, allowing you to create a unique perforated code template for each product requiring traceability.

[0077] Custom aperture array structure: This includes defining the aperture array region width, aperture array region height, number of aperture arrays, number of aperture array rows, radius of each aperture array, starting coordinate position of the region, and starting position of the coding region.

[0078] Custom positioning anchor points: This includes defining the positioning hole graphic, positioning hole area, positioning hole position, and positioning hole size.

[0079] Custom attribute groups: These include the name of the attribute group, the coordinates of the data holes that make up the attribute group, and the value range of the attribute group. The punched area outside the anchor points is defined as the data area. Users can divide the data area into multiple adjacent blocks as needed, with each block corresponding to a product traceability dimension. Each area can define one or more consecutive hole arrays to record various production traceability information for the product.

[0080] Save templates. By centrally storing and managing template information in the backend, you can define them once and reuse them repeatedly.

[0081] Custom templates are the core function of the perforation code generator, allowing users to design the physical structure and data logic of perforation codes independently based on actual production traceability needs, rather than using preset perforation code sample templates. Users can define various traceability attributes in different perforation blocks according to their own needs, and define the distribution and arrangement of perforations based on the size and style of the coding space available for the target product. This enables the perforation codes to meet the product's perforation code coding processing needs from appearance and layout design to coding production.

[0082] Step S405: Based on the target product for which the aperture code is to be set, determine the first aperture code template from multiple aperture code templates.

[0083] Specifically, the first perforated code template can be determined from multiple perforated code templates based on the product size and traceability requirements of the target product.

[0084] Step S406: Based on the product traceability information of the target product and the first hole array template, generate the processing file for the first hole array.

[0085] Specifically, step S406 includes: Step S4061: Based on the product traceability information of the target product, determine the product traceability information for each product traceability dimension of the target product.

[0086] Step S4062: Based on the product traceability information of each product traceability dimension of the target product, determine the hole position status of the data holes included in each attribute group of the first hole array code template.

[0087] Step S4063: Based on the hole position status of the data holes included in each attribute group of the first hole array code template, generate the processing file of the first hole array code.

[0088] When generating the perforation code graphic corresponding to the product, first select the perforation code template corresponding to the product, and then fill in the actual traceability information (within the custom value range) for each attribute group in the perforation code template corresponding to the product to generate the perforation code graphic corresponding to the product. This will generate a perforation code graphic with complete hole position status based on the current custom template (which can be used for comparison and verification during subsequent perforation code processing) and a processing file containing hole position coordinate information. This can be directly used for punching and coding during product production, realizing the storage of traceability information with the product, and providing basic support for the identification of traceability information of subsequent products.

[0089] Figure 10 A schematic diagram of the first aperture code template provided in the embodiments of this application is shown below. Figure 10As shown, the first perforated code template is a perforated code template containing 5 attribute groups. Among them, the eighth area is the production plant area: containing 4 perforations with a value range of 0-15; the seventh area is the production date: containing 9 perforations with a value range of 0-511; the sixth area is the production workshop: containing 5 perforations with a value range of 0-31; the ninth area is the machine number: containing 7 perforations with a value range of 0-127; and the tenth area is the production shift: containing one perforation with a value range of 0-1.

[0090] Understandable Figure 10 This is for illustrative purposes only, and the first aperture code template is not limited to this.

[0091] For example, if a user needs to assign a code to a product batch with the following product information (i.e., traceability information): production plant code 14, production date 1 (January 1st mapped to the value 1), production workshop 1, machine number 10, and production shift (0 day shift, 1 night shift), then in Figure 10 In the attribute settings of the first aperture code template shown, enter the corresponding values ​​respectively. After clicking "Generate Aperture Code", the system performs the following operations: calculate the required aperture position state for each attribute group in reverse according to the input values ​​(e.g., production plant area = 14 → binary 1110 → high bit placed on the right (after reversing the order) → get 0111 to represent the production plant area attribute group). Figure 10 In the eighth region (of the template), the first hole with a weight value of 1 is non-existent, while holes 2, 4, and 8 are present (the sum of their values ​​is 14). The system backend dynamically renders the perforation code graphic. Existing holes are displayed as dots, while non-existent holes are left blank. Then, combining the template's structural area width and height with the hole positioning information, a perforation code graphic containing the complete hole position status is output and rendered at the instance graphic location on the page. The actual generated perforation code graphic is as follows: Figure 11 As shown.

[0092] Understandably, the traceability information is mapped to the actual values ​​of the corresponding attribute groups to determine the hole position status of the data holes, thereby generating the corresponding hole array code pattern.

[0093] If you need to generate a hole array graphic with a production plant area code of 15 and other information identical to the previous example, then all four holes representing the production plant area attribute group are in a persistent state, with a weight of 1+2+4+8=15. In the generated hole array graphic, the other holes remain unchanged, and all four holes representing the production plant area attribute group are displayed as the origin, as shown below. Figure 12 As shown.

[0094] It should be noted that while generating the hole array code pattern, a processing file containing the hole array size and hole position coordinates will also be output. Users can download the hole array code pattern and processing file and use them directly for production coding.

[0095] Step S407: Based on the processing document, set the first hole array code on the target product.

[0096] Based on the processing file output by the hole array generator (including the precise positions of positioning holes and data holes), physical holes are drilled in designated areas of the product (such as PCB boards, automotive parts, etc.) using a laser drilling machine or CNC drilling machine. Positioning holes can be non-circular (such as rectangles with rounded corners, L-shapes formed by two rounded rectangles, etc.) or special shapes composed of multiple circular holes (such as Z, W, etc.). Data holes are circles of uniform diameter. The difference in shape between the two improves image recognition.

[0097] The perforated code processing method provided in this application, through a modular and visual parameter definition process, transforms the original design of perforated code encoding rules, which required high technical thresholds and customized development, into a standardized configuration operation that can be directly operated by business personnel. This solves the core pain points of "difficulty in adapting encoding rules, chaotic management, and low efficiency" faced by enterprises when applying physical traceability tags on a large scale across multiple product lines.

[0098] The perforated code processing method provided in this application shields the complex coding technology details and directly and error-free “writes” product traceability information into the product itself, thereby ensuring high efficiency, high reliability and high security of traceability information attachment at the source.

[0099] In some optional embodiments, the above-described aperture code processing method further includes: Step a1: Obtain an image of the product to be traced, which includes a perforated code.

[0100] Step a2: Based on the product to be traced corresponding to the physical image of the product to be traced, determine the second hole array code template from multiple hole array code templates.

[0101] Step a3: Input the physical image of the product to be traced into the trained perforation code recognition model to obtain the position information of the positioning holes and data holes in the perforation code in the physical image of the product to be traced relative to the physical image of the product to be traced.

[0102] Step a4: Based on the position information of the positioning holes and data holes in the hole array code in the physical image of the product to be traced relative to the physical image of the product to be traced, and the second hole array code template, determine the traceability information of the product to be traced.

[0103] The perforated code processing method provided in this application uses a trained perforated code recognition model to parse the perforated code and obtain the traceability information carried by the perforated code, thereby improving the reliability and accuracy of the traceability information acquisition.

[0104] In some alternative implementations, step a4 above includes: Step a41: Based on the position information of the positioning holes and data holes in the hole array code in the physical image of the product to be traced relative to the physical image of the product to be traced, determine the positioning holes and data holes in the hole array code in the physical image of the product to be traced.

[0105] Step a42: Based on the positioning holes in the hole array code in the physical image of the product to be traced, determine the orientation information of the hole array code in the physical image of the product to be traced.

[0106] Step a43: Based on the data holes in the hole array code in the physical image of the product to be traced, determine the adjacency relationship of the data holes in the hole array code in the physical image of the product to be traced.

[0107] Step a44: Based on the orientation information of the perforated code in the physical image of the product to be traced and the adjacency relationship of the data holes in the perforated code in the physical image of the product to be traced, determine the standard row and column coordinate system of the perforated code in the physical image of the product to be traced.

[0108] Step a45: Based on the standard row and column coordinate system of the hole array code in the physical image of the product to be traced, determine the coordinate information of the data holes in the hole array code in the standard row and column coordinate system.

[0109] Step a46: Based on the coordinate information of the data holes in the hole array code in the physical image of the product to be traced in the standard row and column coordinate system and the second hole array code template, determine the traceability information of the product to be traced.

[0110] The perforated code processing method provided in this application improves the reliability of perforated code parsing and ensures the accuracy of the obtained traceability information.

[0111] In some optional embodiments, the above-described aperture code processing method further includes: Step b1: Obtain multiple product images, including those with aperture codes, under various combinations of conditions. These combinations include multiple shooting angles, multiple shooting scenes, and multiple lighting conditions.

[0112] Understandably, by acquiring a large number of physical product images, including those with perforated codes, under various combinations of conditions, and then differentially labeling the positioning holes and data holes in the perforated codes within these images, a file of labeled coordinate information corresponding to the large number of product images is obtained. This labeled coordinate information file includes the coordinate information of the positioning holes and the coordinate information of the data holes.

[0113] Step b2 involves differentiating the positioning holes and data holes in the hole array code in the product image to obtain the annotated coordinate information file corresponding to the product image.

[0114] Step b3: Train the perforated code recognition model based on the product image and its corresponding labeled coordinate information file to obtain the trained perforated code recognition model.

[0115] The perforated code processing method provided in this application improves the accuracy of perforated code recognition by training a perforated code recognition model using a product image and its corresponding labeled coordinate information file.

[0116] In some alternative implementations, step a3 above includes: Step a31: Adjust the physical image of the product to be traced according to the preset size and format.

[0117] Step a32: Input the adjusted physical image of the product to be traced into the trained perforation code recognition model to obtain the position information of the positioning holes and data holes of the perforation code in the physical image of the product to be traced relative to the physical image of the product to be traced.

[0118] Figure 13 The flowchart for parsing the perforated code provided in the embodiments of this application is as follows: Figure 13 As shown, the process includes: Product Image Acquisition: Using cameras, images of actual products containing perforated codes are captured under various angles, scenes, and lighting conditions to cover product images under complex industrial environments as comprehensively as possible. Sample coverage includes typical interference scenarios such as reflective metal surfaces, oil stains, and overlapping adjacent holes, ensuring the quality of subsequent image input for deep learning models.

[0119] Image annotation and model training: Using AI annotation tools, perforation codes in captured product images are annotated to differentiate between data holes and positioning holes. Positioning holes can be annotated as rectangular frames (such as rectangles with rounded corners) or as special polygonal structures (such as an L-shape formed by two rounded rectangles); data holes are annotated as single squares that fit their outlines, requiring only the center point and radius, simplifying the annotation process.

[0120] Based on the labeled product images, the initial perforated code recognition model (AI model) is trained using deep learning. The model parameters are adjusted to adapt to the perforated code recognition task, and the recognition effect is optimized to obtain a trained perforated code recognition model.

[0121] Output the trained perforated code recognition model: Convert the trained perforated code recognition model into ONNX format to enable cross-platform deployment.

[0122] An integrated multimodal decoding system encapsulates the trained perforated code recognition model as an API service, integrating it into embedded development systems, PDAs, and other decoding devices. Through optimized decoding algorithms, it achieves accurate extraction of perforated code image features. Combined with image correction algorithms and row and column calculation restoration, it ensures the consistency and reliability of the perforated code parsing results. The trained perforated code recognition model can adapt to complex working conditions such as metal reflections and oil stains.

[0123] Parsing the perforation code: Using a decoding device that integrates a pre-trained perforation code recognition model, the perforation code on the product is photographed. The pre-trained perforation code recognition model is used to accurately identify the perforation pattern, analyze the characteristics of the positioning holes and data holes, and combine the attribute parameters set when generating the perforation code to reverse-engineer the code value corresponding to each attribute group, thereby obtaining the traceability information carried in the perforation code.

[0124] Traceability Information Display: The decoding equipment screen displays traceability information (such as processing batch number, machine shift, etc.) in real time, and supports real-time synchronization of traceability information to the enterprise MES / traceability system via API, supporting data verification and manual intervention.

[0125] Figure 14 A flowchart for analyzing the aperture array code provided in the embodiments of this application is shown below. Figure 14 As shown, the process includes: Image standardization preprocessing: The image of the product to be traced is acquired by the image acquisition device and adjusted according to the preset size and format to provide a standardized and high-quality input image for subsequent image recognition, laying the data foundation for accurate recognition.

[0126] Intelligent Feature Recognition and Extraction: The Core Recognition Step. The pre-processed image of the product to be traced is input into a trained perforation code recognition model. This model intelligently identifies all feature elements in the image (such as positioning holes and data holes) and transforms their coordinates, type, reliability, and other key attributes into a structured data matrix, achieving the crucial transformation from pixel information to data information.

[0127] High-confidence data filtering: The data matrix results obtained from the initial identification are filtered based on the confidence level of the feature elements, effectively eliminating fuzzy or misidentified interference data, resulting in a simplified data matrix, thereby significantly improving the computational efficiency and accuracy of subsequent steps.

[0128] Coordinate transformation and calibration: The four coordinates of the feature elements (i.e., feature points) in the simplified data matrix are recalculated using the starting coordinate point, width and height, and rotation angle. The rotation angle is then adjusted according to the width and height of the feature points to obtain the complete four coordinates of each hole element (corresponding to the coordinates of the four corners of the rectangle used for image annotation). This step is used to obtain the accurate and regular coordinates of each hole element in the real physical coordinate system.

[0129] Image orientation determination: By analyzing the geometric characteristics of the positioning holes, the overall orientation of the hole array code (such as 0°, 90°, 180°, 270° rotation) is determined to ensure that the system can adapt to encoded images in different directions, providing a directional basis for correctly establishing the row and column coordinate system.

[0130] Data hole adjacency establishment: By calculating the distance between the center points of all holes and determining the minimum unit spacing, the system intelligently derives the adjacency relationships between holes. This step is a crucial prerequisite for automatically identifying the arrangement pattern of data holes and thus accurately dividing rows and columns.

[0131] Row and column baseline calibration: This step is used to determine the baselines for rows and columns. Based on the identified positioning marks, the system can calculate the spatial distribution relationship of the data holes and fit precise baseline lines in the column and row directions, providing a core basis for subsequently repositioning the hole points to the row and column coordinate system.

[0132] Hole position coordinate sorting calculation: After the baselines of rows and columns are determined, the system sorts the data hole coordinate information according to the distance based on the positioning row and column baselines, accurately placing all scattered hole position elements into the virtual grid, forming a regular row and column coordinate matrix, providing a structural framework for final decoding.

[0133] Code value parsing and result output: Based on the position of the data hole in the row and column coordinate matrix, the system parses the binary 8421 code value it represents, integrates all information, and finally outputs a clear, accurate, and directly usable code value string, completing the complete conversion from image to traceability information.

[0134] The hole array code processing method provided in this application adjusts the physical image of the product to be traced according to a preset size and format, and determines the position information of the positioning holes and data holes relative to the physical image of the product to be traced based on the adjusted physical image of the product to be traced, thereby ensuring the accuracy of the position information.

[0135] Embodiments of this application provide a perforated code processing method applied to a perforated code generator, which is a web-based perforated code visualization configuration platform. Figure 15 A functional framework diagram of the perforated code generator provided in the embodiments of this application is shown below. Figure 15As shown, the perforation code generator provides general templates, custom templates, perforation code generation, and perforation code parsing functions. The general templates are sample perforation code templates to help users quickly understand and get started. Custom templates are perforation code templates defined according to the needs of different products. The perforation code generation function outputs perforation code images and perforation code processing files, which can be directly used for product coding. The perforation code parsing function uses a trained perforation code recognition model to restore the perforation code of the product into traceability information. Figure 16 This is a flowchart illustrating the hole array code processing method provided in the embodiments of this application, as shown below. Figure 16 As shown, the hole array code processing method includes the following steps: Custom Templates: Access the perforation code generator page and dynamically define the physical layout, data logic, and various traceability attributes of the perforation code through a graphical interface. You can define perforation codes that conform to the product's coding appearance and size.

[0136] Traceability attribute assignment: Assign values ​​to various traceability attributes defined in the template, determine the traceability information to be recorded by the perforation code, and convert each traceability information into the perforation of the corresponding block of the perforation code for data recording and storage.

[0137] Generate aperture code: Based on the traceability attribute assignment, according to the control array layout structure and data rules defined in the template, generate aperture code graphics and output aperture coordinate file.

[0138] Production and processing coding: Based on the generated hole array code pattern and hole position coordinate file, holes are drilled on the product substrate to complete the coding.

[0139] Perforation code parsing: Through AI learning and training combined with image technology, the perforation code on the product is parsed to restore the traceability information recorded in each block of the perforation, so as to realize the traceability of the product's origin.

[0140] The perforated code processing method provided in this application allows for the customization of encoding rules from generation to recognition and parsing based on the available marking space size and shape of the product. This achieves an integrated "code generation-decoding" architecture, deeply integrating the information carrier with the product substrate and simplifying application requirements. By customizing the generation tool, it overcomes the system bottlenecks and barriers of traditional marking technologies, rapidly facilitating the implementation of perforated codes in enterprises.

[0141] The perforated code processing method provided in this application has the following advantages: Visual customization of perforated codes: Allows users to adjust the appearance and constituent elements of the perforated code according to the coding space, position, shape, and size of the product, solving problems such as low coding recognition and rigid space usage requirements of QR codes or RFID tags in related technologies. Personalized anti-counterfeiting and traceability: Through unique visual features and personalized traceability blocks, it helps users generate perforated codes that can be permanently attached to products, achieving product anti-counterfeiting and traceability, and solving problems such as product counterfeiting and tampering in the circulation process. Efficient information encoding: The perforated code generator helps users compress complex product information into visual codes, directly recording them in the perforated code blocks, defining them as needed, improving the utilization efficiency of the perforated code's coding space on the product, and also solving the problems of easy loss and low input efficiency of traditional paper records, achieving efficient localized information transmission with "one-scan access". Zero-code operation: The perforated code generator provides a simple operation interface and provides sample demonstrations, allowing non-technical personnel to quickly get started, solving the obstacles to tool use and the promotion of perforated codes caused by insufficient technical capabilities. Universality of the carrier: The processing coordinates output by the perforation code generator can be directly used to create holes (such as metal drilling and PCB etching) on ​​various materials (e.g., metal drilling, PCB etching), becoming part of the object itself without the need for additional labels or electronic components. It has significant advantages, especially on irregularly shaped structures such as crankshafts, gears, and non-regular curved surfaces, where traditional marking technologies struggle to balance readability and structural integrity. Information carried with the product: Enterprises can carry rich content with their products using self-designed perforation code encoding rules. This product-related data can be directly written into the perforation code of the product, allowing information to flow with the product and avoiding the vulnerability of centrally stored traceability data to hacking or tampering. Versatility of the generator: The perforation code generator, designed specifically for the characteristics of perforation codes, uses parameterized perforation templates (adjustable aperture / spacing) to adapt to different materials and sizes. Industry traceability information is converted into configuration instructions, enabling diverse template definitions to adapt to the definition and generation of perforation codes for products across various industries. Automated parsing: The parsing system utilizes hole array code definition rules, visual AI, and image processing algorithms to automatically, quickly, and accurately identify the location, shape, and sequence relationship of holes, and parse them into raw information according to custom rules, achieving efficient and automated data parsing and information display. Furthermore, it can be integrated with third-party management systems.

[0142] This embodiment also provides a perforated code processing device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementations, or a combination of software and hardware, are also possible and contemplated.

[0143] This embodiment provides a hole array code processing device, such as... Figure 17 As shown, it includes: The first display module 1701 is used to display the aperture region in the template graphic of the aperture code sample template in response to the user's selection operation of the aperture region information of the aperture code sample template, so that the user can determine the meaning of the aperture region information representation.

[0144] The second display module 1702 is used to display the positioning holes in the template graphic of the perforation code sample template in response to the user's selection operation of the positioning hole information of the perforation code sample template, so that the user can determine the meaning represented by the positioning hole information.

[0145] The third display module 1703 is used to respond to the user's selection operation of the attribute group information of the perforation code sample template, and to display at least one data hole that makes up the attribute group in the template graphic of the perforation code sample template, so that the user can determine the meaning of the attribute group information; each attribute group is used to represent a product traceability dimension.

[0146] The acquisition module 1704 is used to obtain multiple perforation code templates in response to the user's definition of perforation code templates for multiple products.

[0147] The determination module 1705 is used to determine the first aperture code template from multiple aperture code templates based on the target product to be set with aperture code.

[0148] The generation module 1706 is used to generate the processing file of the first hole array code based on the product traceability information of the target product and the first hole array code template.

[0149] Setting module 1707 is used to set the first hole array code on the target product based on the processing file.

[0150] The aperture code processing apparatus provided in this embodiment of the invention can execute the aperture code processing method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as in the corresponding embodiments described above, and will not be repeated here.

[0151] Embodiments of this application also provide an electronic device, such as... Figure 18 As shown, it includes a processor 1801 and a memory 1802, in which a computer program is stored. The processor 1801 is configured to run the computer program to perform the steps in the above-described embodiment of the hole array code processing method.

[0152] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in the above-described embodiments of the hole array code processing method when running.

[0153] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0154] The embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in the embodiments of the above-described hole array code processing method.

[0155] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the above-described hole array code processing method embodiments.

[0156] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0157] The foregoing has provided a detailed description of a perforated code processing method, apparatus, electronic device, and storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only intended to aid in understanding the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. A method for processing perforated array codes, characterized in that, The method includes: In response to the user's selection of the aperture region information in the aperture code sample template, the aperture region is displayed in the template graphic of the aperture code sample template so that the user can determine the meaning of the aperture region information. In response to the user's selection of the positioning hole information in the perforation code sample template, the positioning holes are displayed in the template graphic of the perforation code sample template so that the user can determine the meaning represented by the positioning hole information. In response to the user's selection of attribute group information in the perforation code sample template, at least one data hole constituting the attribute group is displayed in the template graphic of the perforation code sample template, so that the user can determine the meaning represented by the attribute group information; each attribute group is used to represent a product traceability dimension. In response to the user's definition of multiple product perforation code templates, multiple perforation code templates are obtained; Based on the target product for which the aperture code is to be set, a first aperture code template is determined from the plurality of aperture code templates; Based on the product traceability information of the target product and the first hole array code template, a processing file for the first hole array code is generated; Based on the processing document, a first hole array code is set on the target product.

2. The method according to claim 1, characterized in that, The process of obtaining multiple perforation code templates in response to the user's definition of perforation code templates for multiple products includes: For any product, the system receives the aperture region definition parameters of the product input by the user through the aperture structure definition interface. The aperture region definition parameters include the aperture region width, aperture region height, number of aperture arrays, number of aperture rows, radius of each aperture array, region start coordinate position, and coding region start position. The system receives positioning hole definition parameters for the product input by the user through the positioning hole definition interface. The positioning hole definition parameters include positioning hole graphic, positioning hole area, positioning hole position, and positioning hole size. The system receives the attribute group definition parameters of the product input by the user through the attribute group definition interface. The attribute group definition parameters include the name of the attribute group, the coordinate information of the data holes that make up the attribute group, and the value range of the attribute group. Based on the hole array region definition parameters, positioning hole definition parameters, and attribute group definition parameters of the product, the hole array code template of the product is determined.

3. The method according to claim 1, characterized in that, The step of generating a processing file for the first hole array code based on the product traceability information of the target product and the first hole array code template includes: Based on the product traceability information of the target product, determine the product traceability information for each product traceability dimension of the target product; Based on the product traceability information of each product traceability dimension of the target product, determine the hole position status of the data holes included in each attribute group of the first hole array code template; Based on the hole position status of the data holes included in each attribute group of the first hole array template, a processing file for the first hole array is generated.

4. The method according to claim 1, characterized in that, The method further includes: Obtain a physical image of the product to be traced, wherein the physical image of the product to be traced includes a perforated code; Based on the product to be traced corresponding to the physical image of the product to be traced, a second hole array code template is determined from the plurality of hole array code templates; The physical image of the product to be traced is input into the trained perforation code recognition model to obtain the position information of the positioning holes and data holes in the perforation code in the physical image of the product to be traced relative to the physical image of the product to be traced. Based on the position information of the positioning holes and data holes in the hole array code in the physical image of the product to be traced relative to the physical image of the product to be traced, and the second hole array code template, the traceability information of the product to be traced is determined.

5. The method according to claim 4, characterized in that, The step of determining the traceability information of the product to be traced based on the position information of the positioning holes and data holes in the hole array code in the physical image of the product to be traced relative to the physical image of the product to be traced and the second hole array code template includes: Based on the position information of the positioning holes and data holes in the perforation code in the physical image of the product to be traced relative to the physical image of the product to be traced, the positioning holes and data holes in the perforation code in the physical image of the product to be traced are determined. Based on the positioning holes in the perforated code in the physical image of the product to be traced, determine the orientation information of the perforated code in the physical image of the product to be traced; Based on the data holes in the hole array code in the physical image of the product to be traced, determine the adjacency relationship of the data holes in the hole array code in the physical image of the product to be traced. Based on the orientation information of the perforated code in the physical image of the product to be traced and the adjacency relationship of the data holes in the perforated code in the physical image of the product to be traced, the standard row and column coordinate system of the perforated code in the physical image of the product to be traced is determined. Based on the standard row and column coordinate system of the hole array code in the physical image of the product to be traced, determine the coordinate information of the data holes in the hole array code in the physical image of the product to be traced under the standard row and column coordinate system; Based on the coordinate information of the data holes in the hole array code in the physical image of the product to be traced in the standard row and column coordinate system and the second hole array code template, the traceability information of the product to be traced is determined.

6. The method according to claim 4, characterized in that, The method further includes: Acquire multiple product images, including those with aperture codes, under various combinations of conditions, such as combinations of shooting angles, shooting scenes, and lighting conditions. Differentiated annotations are performed on the positioning holes and data holes in the hole array code in the physical product image to obtain the annotated coordinate information file corresponding to the physical product image; Based on the physical image of the product and its corresponding labeled coordinate information file, a perforated code recognition model is trained to obtain a trained perforated code recognition model.

7. The method according to claim 4, characterized in that, The step of inputting the physical image of the product to be traced into the trained perforation code recognition model to obtain the position information of the positioning holes and data holes of the perforation code in the physical image of the product to be traced relative to the physical image of the product to be traced includes: The physical image of the product to be traced is adjusted according to the preset size and format; The adjusted physical image of the product to be traced is input into the trained perforation code recognition model to obtain the position information of the positioning holes and data holes of the perforation code in the physical image of the product to be traced relative to the physical image of the product to be traced.

8. A perforated code processing device, characterized in that, The device includes: The first display module is used to respond to the user's selection operation of the aperture region information of the aperture code sample template, and to display the aperture region in the template graphic of the aperture code sample template so that the user can determine the meaning of the aperture region information. The second display module is used to respond to the user's selection operation of the positioning hole information of the perforation code sample template, and to display the positioning holes in the template graphic of the perforation code sample template so that the user can determine the meaning represented by the positioning hole information. The third display module is used to respond to the user's selection operation of the attribute group information of the perforation code sample template, and to display at least one data hole that makes up the attribute group in the template graphic of the perforation code sample template, so that the user can determine the meaning represented by the attribute group information; each attribute group is used to represent a product traceability dimension. The acquisition module is used to obtain multiple perforation code templates in response to the user's definition of perforation code templates for multiple products; The determining module is used to determine the first aperture code template from the plurality of aperture code templates based on the target product to be set with the aperture code template; The generation module is used to generate a processing file for the first hole array code based on the product traceability information of the target product and the first hole array code template. The setting module is used to set a first hole array code on the target product based on the processing file.

9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the perforated code processing method as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the perforated code processing method as described in any one of claims 1 to 7.