Laser pattern automatic generation method, laser processing device and medium
Patent Information
- Application Number
- CN202610842762.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-11
- Publication Date
- 2026-08-18
AI Technical Summary
[0004]在此背景下,传统依赖人工编写与设定激光镭射图形程式的方法逐渐暴露出以下不足:操作流程繁琐、对操作人员经验依赖性强、手动输入易导致错误、培训周期长、跨设备兼容性差等
本发明获取原始图形,并提取各图元,根据各图元以及预设的分类规则确定图元类型,将同类型图元归类至同一图层,得到图层集;根据得到的图层集以及预设的边框参数,生成具有指定宽度的封闭边框轮廓,并将所述封闭边框轮廓作为新图层存入所述图层集;响应于用户选择的防断样式及防断宽度,在所述图层集中的细栅图层中的指定位置生成防断轮廓,并将所述防断轮廓作为新图层存入所述图层集;将所述图层集中的主栅图层、鱼叉图层、渐变图层中的图元进行布尔并集运算,合并为一个或多个连通轮廓,并将合并后的连通轮廓作为新图层存入所述图层集;在所述图层集中的空白区域自动生成机台识别Mark点轮廓以及包含厂内图号编码的图形轮廓,并分别作为新图层存入所述图层集;根据预设的镭射机台输出格式和切割顺序,将所述图层集中所有图层整合输出为镭射切割程式文件。如此实现了从原始图形到镭射切割程式的全流程自动化处理。
Smart Images

Figure CN122583761A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of laser technology, and in particular to a method for automatically generating laser patterns, laser processing equipment, and a medium. Background Technology
[0002] Solar panels, due to their significant advantages such as being clean and pollution-free, renewable, and having stable performance, have been widely used in the semiconductor and photovoltaic power generation fields. To achieve an effective electrical connection between the solar panel and external electrical equipment, grid electrodes are typically fabricated on the surface of the solar panel to efficiently conduct photocurrent. Currently, the fabrication of grid electrodes generally employs screen printing, while the grid pattern on the screen is formed using laser engraving technology.
[0003] In the actual manufacturing process of printing screens, laser processing parameters and graphic files must be pre-set to ensure that the final grid pattern meets the design accuracy and electrical performance requirements, thereby guaranteeing the actual performance of the solar panel grid electrodes. As the application scope of solar panels continues to expand, the requirements for their photoelectric conversion efficiency and manufacturing precision are increasing, and key indicators such as graphic size, line width uniformity, and positional accuracy of printing screens are becoming increasingly stringent. At the same time, to meet the production needs of products with different specifications, the types and models of laser processing equipment are also increasing.
[0004] Against this backdrop, the traditional method of relying on manual programming and setting of laser lithography patterns has gradually revealed the following shortcomings: cumbersome operation procedures, strong dependence on operator experience, easy errors due to manual input, long training cycles, and poor cross-device compatibility. These problems not only affect the efficiency and yield of printing screen production but also restrict the automation and intelligence level of the overall production process. Therefore, there is an urgent need to develop a technical solution that can automatically generate graphic laser cutting programs to reduce manual intervention, decrease the probability of errors, shorten the personnel training cycle, and significantly improve the work efficiency and processing consistency of printing screen production.
[0005] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0006] The main objective of this invention is to provide a method for automatically generating laser patterns, laser processing equipment, and a medium, aiming to solve the aforementioned technical problems in the prior art.
[0007] To achieve the above objectives, the present invention provides a method for automatically generating laser patterns, the method comprising: Obtain the original graphic and extract each graphic element. Determine the graphic element type based on each graphic element and the preset classification rules. Group graphic elements of the same type into the same layer to obtain a layer set. Based on the obtained layer set and preset border parameters, a closed border outline with a specified width is generated, and the closed border outline is stored as a new layer in the layer set. In response to the user's selected anti-breakage style and anti-breakage width, an anti-breakage outline is generated at a specified position in the fine grid layer of the layer set, and the anti-breakage outline is stored as a new layer in the layer set; Perform a Boolean union operation on the primitives in the main grid layer, harpoon layer and gradient layer of the layer set to merge them into one or more connected contours, and store the merged connected contours as new layers in the layer set. The machine identification Mark point outline and the graphic outline containing the factory drawing number code are automatically generated in the blank area of the layer set, and are stored as new layers in the layer set respectively. Based on the preset laser machine output format and cutting order, all layers in the layer set are integrated and output as a laser cutting program file.
[0008] Preferably, in the automatic laser graphic generation method, the step of determining the graphic element type based on each graphic element and a preset classification rule, and grouping graphic elements of the same type into the same layer to obtain a layer set, includes the following preset classification rules: The type of graphic element is determined based on its line width, length, geometric shape, and spatial distribution characteristics. Specifically, this includes: Parallel line groups with line widths less than or equal to the first threshold are identified as fine grid layers; Line segments with a line width greater than the second threshold and less than the third threshold are determined to be the main grid layer; The fork-shaped structure in the middle part of the main grid layer is identified as a harpoon layer. Polygons or paths with a gradually changing width are identified as gradient layers.
[0009] Preferably, in the automatic laser graphic generation method, the step of generating a closed border outline with a specified width based on the obtained layer set and preset border parameters includes: Obtain all internally conductive patterns from the obtained layer set and calculate their minimum bounding rectangle; The inner boundary rectangle is obtained by offsetting the minimum bounding rectangle outward by a preset inner boundary distance. Offset the inner boundary rectangle outward by half the width of the border to obtain the closed trajectory of the border center line; A closed contour graphic is generated along the closed trajectory of the center line, resulting in a closed border contour, which is used as the final border cutting contour.
[0010] Preferably, in the laser pattern automatic generation method, in the step of generating an anti-breakage outline at a specified position in the fine grid layer of the layer set in response to the user-selected anti-breakage style and anti-breakage width, and storing the anti-breakage outline as a new layer in the layer set, the anti-breakage style is pre-stored in the style library. The style library includes one or more of the following: diamond bold, circle bold, rectangle thick, trapezoidal transition, and parallel double lines; The anti-breakage width is a configurable value between 0.1mm and 0.2mm; the specified position is determined by the user through point selection, box selection, or automatic generation at equal intervals.
[0011] Preferably, in the automatic laser graphic generation method, the step of performing a Boolean union operation on the primitives in the main grid layer, harpoon layer, and gradient layer of the layer set to merge them into one or more connected contours includes: Linear primitives are polygonized, gradient layers are discretized in a stepped manner, and then a union operation is performed, with the gap fill tolerance set to 0.005mm to 0.02mm, merging them into one or more connected contours. The merged connected contours are simplified for collinear points and self-intersection repaired.
[0012] Preferably, in the laser pattern automatic generation method, in the step of automatically generating the machine identification Mark point outline and the graphic outline including the factory drawing number code in the blank area of the layer set, The machine tool identification Mark point contour includes an outer ring cutting line and an inner ring retention area; the shape of the Mark point contour is a concentric ring, a cross shape, or an L shape. The Mark points are placed at the four corners of the blank areas in the layer set, and automatically avoid existing graphics.
[0013] Preferably, in the laser pattern automatic generation method, in the step of automatically generating the machine identification Mark point outline and the graphic outline containing the factory drawing number code in the blank area of the layer set, the graphic outline containing the factory drawing number code is a one-dimensional code outline or a two-dimensional code outline; the one-dimensional code adopts Code128 encoding, and the two-dimensional code adopts QR code; the graphic outline is generated by converting the encoded black and white modules into a set of rectangular or polygonal outlines.
[0014] Preferably, in the automatic laser pattern generation method, in the step of integrating all layers in the layer set into a laser cutting program file according to the preset laser machine output format and cutting order, the preset laser machine output format includes Gerber RS-274X format, DXF format, or a laser machine-specific format; the cutting order is as follows: fine grid layer, anti-breakage contour layer, merged main grid harpoon gradient connected contour layer, closed border contour layer, and Mark point contour layer. To achieve the above objectives, the present invention provides a laser processing apparatus, the laser processing apparatus comprising: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, which enables the at least one processor to perform the above-described automatic laser pattern generation method.
[0015] To achieve the above objectives, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-described method for automatically generating laser patterns.
[0016] The present invention has at least the following beneficial effects: This invention acquires the original graphic and extracts each graphic element. Based on each graphic element and preset classification rules, the graphic element type is determined, and elements of the same type are grouped into the same layer to obtain a layer set. Based on the obtained layer set and preset border parameters, a closed border outline with a specified width is generated and stored as a new layer in the layer set. In response to the user-selected anti-breakage style and width, an anti-breakage outline is generated at a specified position in the fine grid layer of the layer set and stored as a new layer in the layer set. Boolean union operations are performed on the graphic elements in the main grid layer, harpoon layer, and gradient layer of the layer set to merge them into one or more connected outlines, which are then stored as new layers in the layer set. Machine identification mark point outlines and graphic outlines containing factory drawing number codes are automatically generated in the blank areas of the layer set and stored as new layers in the layer set. Based on the preset laser machine output format and cutting order, all layers in the layer set are integrated and output as a laser cutting program file. This achieves fully automated processing from the original graphic to the laser cutting program.
[0017] Furthermore, by automatically identifying and classifying graphic elements, generating border outlines, interactively adding anti-breakage structures, merging Boolean gradients of the main grid harpoon, and automatically adding Mark points and coded graphics, the cutting file is finally output according to the machine's format.
[0018] Furthermore, compared to traditional manual drawing and programming methods, this invention significantly reduces human intervention and operational errors, and improves the accuracy and consistency of graphic processing; it supports human-computer interaction selection of anti-breakage style, width, and position, enhancing the reliability of the electrode structure; parameterized configuration can quickly adapt to different laser machines and screen specifications, possessing good versatility; at the same time, it greatly reduces the skill threshold and training cycle for operators, improves screen production efficiency, and achieves automatic machine alignment and product traceability through Mark points and coded graphics. Attached Figure Description
[0019] Figure 1 A schematic diagram of the laser pattern automatic generation method provided by the present invention in a first embodiment; Figure 2 A schematic diagram of the automatic laser pattern generation method provided by the present invention in a second embodiment; Figure 3 A schematic diagram of the automatic laser pattern generation method provided by the present invention in the third embodiment; Figure 4 This is a schematic diagram of an embodiment of the laser processing equipment provided by the present invention; Figure 5 A schematic diagram for obtaining the original graphic; Figure 6 A schematic diagram illustrating how to group similar graphic elements into the same layer to obtain a layer set; Figure 7 A schematic diagram for generating a closed border outline with a specified width; Figure 8 A schematic diagram for generating a breakage prevention profile at a specified location in the fine grid layer of the layer set; Figure 9 This is a schematic diagram of an embodiment of merging primitives in the main grid layer, harpoon layer, and gradient layer of the layer set into one or more connected contours by performing a Boolean union operation. Figure 10 A schematic diagram for automatically generating machine identification Mark point outlines and graphic outlines containing factory drawing number codes in the blank areas of the layer set; Figure 11 This is a schematic diagram illustrating the process of integrating all layers in the layer set and outputting them as a laser cutting program file.
[0020] The objectives, features, and advantages of this invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0021] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. The present invention will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of the present invention can be combined with each other.
[0022] In this embodiment of the invention, the term "and / or" describes the relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. The character " / " generally indicates that the preceding and following associated objects have an "or" relationship.
[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0024] In this embodiment of the invention, the term "multiple" refers to two or more, and other quantifiers are similar.
[0025] In this invention, unless otherwise stated, directional terms such as "upper," "lower," "top," and "bottom" are generally used in relation to the direction shown in the accompanying drawings, or in relation to the vertical, perpendicular, or gravitational direction of the component itself; similarly, for ease of understanding and description, "inner" and "outer" refer to the inner and outer contours of each component itself, but the above directional terms are not intended to limit this invention.
[0026] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details are presented in the embodiments of the present invention to facilitate a better understanding of the invention. However, the technical solutions claimed in the present invention can be implemented even without these technical details and various variations and modifications based on the following embodiments. The division of the following embodiments is for ease of description and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined with and referenced by each other without contradiction.
[0027] Figure 1 The flowchart illustrating the first embodiment of the laser pattern automatic generation method provided by the present invention is shown. Figure 1 As shown, the automatic laser pattern generation method includes steps S1000 to S1000. Step S1000: Obtain the original graphic and extract each graphic element. Determine the graphic element type according to each graphic element and the preset classification rules. Classify graphic elements of the same type into the same layer to obtain a layer set.
[0028] It should be noted that the preset classification rules include: determining the type of graphic element based on its line width, length, geometric shape, and spatial distribution characteristics; specifically, parallel line groups with line widths less than or equal to the first threshold are classified as fine grid layers; straight line segments with line widths greater than the second threshold and less than the third threshold are classified as main grid layers; forked structures in the middle of the main grid layer are classified as harpoon layers; and polygons or paths with gradually changing widths are classified as gradient layers.
[0029] The original graphics include, but are not limited to, design files in vector formats such as DXF, Gerber RS-274X, and GDSII. Based on the original graphics, various primitives are extracted. This extraction can be achieved using, but is not limited to, graphics analysis algorithms to extract all independent primitives, including line segments, arcs, polygons, and combined paths. Figure 5 An embodiment of the original graphic provided by the present invention is illustrated. Figure 6 This diagram illustrates how to group similar graphic elements into the same layer to create a layer set.
[0030] In some implementations, the classification rules are based on the geometric feature parameters of the primitives, including but not limited to line width, length, shape factor, curvature, spatial arrangement density, and the relative positional relationship between adjacent primitives. For example: line groups with a line width less than or equal to 0.03 mm and arranged in parallel at equal intervals are identified as fine grid primitives; straight line segments with a line width between 0.5 mm and 2 mm are identified as main grid primitives; forked branch structures extending outward from the end of the main grid are identified as harpoon primitives; and polygons or paths with widths that change continuously along the extension direction are identified as gradient primitives.
[0031] It should be understood that after determining the element type, a new layer corresponding to each element type will be created, and all elements belonging to the same type will be moved to that new layer. In some implementations, each new layer can also be standardized and renamed according to the configuration specifications of the target laser machine. For example, the fine grid layer can be named "FINGER", the main grid layer "BUSBAR", the harpoon layer "FISH_BONE", the gradient layer "GRADIENT", and the border layer "FRAME". For elements that cannot be clearly classified, they are temporarily stored in the unrecognized layer and a prompt report is generated for manual review or rule supplementation by the operator.
[0032] Step S2000: Based on the obtained layer set and preset border parameters, generate a closed border outline with a specified width, and store the closed border outline as a new layer in the layer set.
[0033] It should be noted that the preset border parameters include border width, corner radius, and inner boundary offset; correspondingly, as... Figure 7As shown, generating a closed border outline with a specified width specifically involves: Using the bounding rectangle of all internal graphics in the layer set as a reference, the inner boundary is obtained by offsetting the inner boundary outward by the offset amount. Then, using the inner boundary as a reference, the border width is offset outward by half to generate a single-line centered outline, or a double-line outline with inner and outer lines.
[0034] In step S3000, in response to the user-selected anti-breakage style and anti-breakage width, an anti-breakage outline is generated at a specified position in the fine grid layer of the layer set, and the anti-breakage outline is stored as a new layer in the layer set.
[0035] It should be noted that, Figure 8 A schematic diagram of the anti-breakage contour is generated at a specified location in the fine grid layer of the layer set. The anti-breakage style is pre-stored in the style library; the style library includes one or more of the following: diamond bold, circular bold, rectangular thick, trapezoidal transition, and parallel double lines; the anti-breakage width is a configurable value between 0.1mm and 0.2mm; the specified location is determined by the user through point selection, box selection, or automatic generation at equal intervals.
[0036] Step S4000 performs a Boolean union operation on the primitives in the main grid layer, harpoon layer, and gradient layer of the layer set, merging them into one or more connected contours, and stores the merged connected contours as new layers in the layer set.
[0037] It should be noted that, Figure 9 This is a schematic diagram of an embodiment of merging primitives in the main grid layer, harpoon layer, and gradient layer of the layer set into one or more connected contours through a Boolean union operation. The step of merging primitives in the main grid layer, harpoon layer, and gradient layer of the layer set into one or more connected contours through a Boolean union operation includes polygonizing linear primitives, discretizing the gradient layer in a stepped manner, performing the union operation, and setting the gap fill tolerance to 0.005mm to 0.02mm, merging into one or more connected contours; the merged connected contours are then simplified for collinear points and self-intersection repaired.
[0038] More specifically, all primitives of the main grid layer, harpoon layer, and gradient layer are read from the layer set. The gradient path with continuously varying width is discretized into approximate polygons composed of multiple trapezoids or rectangles. The gradient layer is discretized using a step-wise method to obtain approximate polygons composed of multiple trapezoids or rectangles. All polygons transformed from the main grid, harpoon, and gradient layers are then subjected to a union operation to obtain one or more connected regions.
[0039] The main grid layer, harpoon layer, and gradient layer are three standardized layers generated in step S1000. All primitives in each layer are extracted, including geometric objects such as line segments, polylines, polygons, and arcs. If a layer is empty (e.g., a part of the design lacks a harpoon structure), that layer is skipped. Primitives in the main grid layer are typically line segments with line widths; the harpoon layer may contain thin lines or outlines; and the gradient layer may contain polygons or paths with gradually changing widths. Primitives in the gradient layer are typically paths with continuously changing widths along their direction (e.g., a gradient from 0.1mm to 0.5mm). The higher the precision of the step-discretization process for the gradient layer, the more accurate the merging result. Step S5000: Automatically generate machine identification Mark point outlines and graphic outlines containing factory drawing number codes in the blank areas of the layer set, and store them as new layers in the layer set.
[0040] It should be noted that, Figure 10 This diagram illustrates the automatic generation of machine identification Mark point outlines and graphic outlines containing factory drawing number codes in the blank areas of the layer set. In the step of automatically generating machine identification Mark point outlines and graphic outlines containing factory drawing number codes in the blank areas of the layer set, the machine identification Mark point outline includes an outer ring cutting line and an inner ring reserved area; the shape of the Mark point outline is a concentric ring, a cross, or an L-shape; the Mark point is placed at the four corners of the blank area of the layer set, automatically avoiding existing graphics. The graphic outline containing the factory drawing number code is a one-dimensional barcode outline or a two-dimensional barcode outline; the one-dimensional barcode uses Code128 encoding, and the two-dimensional barcode uses QR code; the graphic outline is generated by converting the encoded black and white modules into a set of rectangular or polygonal outlines.
[0041] In practice, the process iterates through all graphics in the layer set, calculates the total area occupied, and identifies suitable blank areas for placing Mark points and codes. Based on preset Mark point shape and size parameters, a cutting outline for the alignment mark is generated in the blank area. The generated graphic outline is then moved to the selected blank area, ensuring that it does not overlap with Mark points or other graphics.
[0042] Step S6000 integrates all layers in the layer set into a laser cutting program file according to the preset laser machine output format and cutting sequence.
[0043] It should be noted that, Figure 11This diagram illustrates the process of integrating all layers in the layer set and outputting them as a laser cutting program file. Preset laser machine output formats include Gerber RS-274X, DXF, or a laser machine-specific format; the cutting order is as follows: fine grid layer, anti-breakage contour layer, merged main grid harpoon gradient connected contour layer, closed border contour layer, and Mark point contour layer.
[0044] Figure 2 The flowchart illustrating the automatic laser pattern generation method provided by the present invention in a second embodiment is shown. Step S2000 includes steps S2100 to S2400.
[0045] Step S2100: Obtain all internal conductive patterns from the obtained layer set and calculate their minimum bounding rectangle.
[0046] It should be noted that the obtained layer set is read by traversing at least all primitives in the FINGER, BUSBAR, FISH_BONE, and GRADIENT layers. For each primitive (line segment, polygon, arc, etc.), its bounding box is calculated. Then, the union of the bounding boxes of all primitives is summed to obtain the smallest bounding rectangle that can enclose all internal graphics. This smallest bounding rectangle determines the inner boundary reference of the border.
[0047] Step S2200 involves offsetting the minimum bounding rectangle outward by a preset inner boundary distance to obtain the inner boundary rectangle.
[0048] It should be noted that, based on the preset inner boundary offset D (e.g., 2mm) in the border parameters, the four sides of the minimum bounding rectangle obtained in step S2100 are translated outward by a distance D to form a new rectangle, which is the inner boundary rectangle. The inner boundary rectangle is the safe distance between the inner edge of the border and the internal graphic to avoid the border from being too close to or overlapping with the conductive graphic.
[0049] Step S2300 involves offsetting the inner boundary rectangle outward by half the width of the border to obtain the closed trajectory of the border centerline.
[0050] It should be noted that, based on the preset border width W (e.g., 3mm), the offset distance is calculated as W / 2 (e.g., 1.5mm). The four sides of the inner boundary rectangle are translated outward by W / 2, generating a new closed polyline, which is the center line trajectory of the border. If the corner radius R is specified in the border parameters, the four corners of the center line are rounded to generate a smooth rounded rectangle trajectory.
[0051] Step S2400 generates a closed contour graphic along the closed trajectory of the center line, obtaining a closed border contour, which is used as the final border cutting contour.
[0052] It should be noted that the border outline is usually represented by a single-line centering method (i.e., directly using the center line as the cutting path), or by generating an inner and outer double-line outline. Therefore, in some implementations, a closed continuous polyline is generated and stored as a primitive type that can be recognized by laser cutting (such as a polyline or a combination of line segments).
[0053] It is worth noting that the final border cutting contour has no self-intersections and no breaks, and its geometric information is recorded.
[0054] In some other implementations, it is also necessary to check whether the generated border outline is too close to the internal graphics. If a conflict is found, an alarm is triggered and parameter adjustments are suggested. The minimum distance between the border outline and the internal graphics (fine grid, main grid, etc.) is calculated. If this distance is less than a preset safety threshold (e.g., 0.1mm), it is considered an interference, a warning window pops up, prompting the user to adjust the inner boundary offset or border width, and the step is stopped until the user confirms the modification. If there is no interference, subsequent operations continue.
[0055] Figure 3 The flowchart illustrates a third embodiment of the laser pattern automatic generation method provided by the present invention. Step S3000 includes steps S3100 to S3300.
[0056] Step S3100 loads the fine grid layer and highlights all fine grid lines, as well as the built-in anti-breakage style library, and obtains the position, style, and corresponding width of the anti-breakage structure selected by the user.
[0057] It should be noted that users can specify the location where the anti-breakage structure needs to be added by clicking, selecting by box, or using automatic equal spacing; there are no specific restrictions. The built-in anti-breakage style library can include, but is not limited to, styles such as diamond bold, circle bold, rectangle thick, trapezoidal transition, and double-line parallel.
[0058] Step S3200: Add the position, style, and corresponding width of the anti-breakage structure as needed, and generate a closed anti-breakage outline graphic at the specified position of the fine grid line.
[0059] It should be noted that for each selected addition location, the local direction (tangential direction of the line segment) of the fine grid line at that location is obtained. Using this location as the center point, a closed contour is generated according to the selected style and width parameters. For example: Rhombus style → generates a centrally symmetrical rectangle rotated 45°, with its diagonal length equal to its width; Circle style → generates a circle with a diameter equal to its width; Rectangle style → generates a rectangle perpendicular to the fine grid line, with a width equal to the set value, and the length can be set to 1.5 times the width. During contour generation, it is ensured that there is no self-intersection with the fine grid line itself, and it is represented using polygons or polylines.
[0060] Step S3300 smooths the generated anti-breakage contour graphic.
[0061] It should be noted that each anti-breakage profile is simplified, for example, by removing redundant vertices. In some other embodiments, the minimum distance between the anti-breakage profile and other anti-breakage profiles on the same fine grid line is also confirmed. If the minimum distance is less than 0.05mm, the user is prompted to merge or adjust the position. At the same time, it is checked whether the anti-breakage profile intersects with adjacent fine grid lines. If there is an intersection, the position or width is automatically fine-tuned. Profiles that do not interfere are retained.
[0062] To achieve the above objectives, the present invention also provides a laser processing apparatus, such as... Figure 4 As shown, the screen printing recutting device includes at least one processor 701; and a memory 702 communicatively connected to the at least one processor 701; wherein the memory 702 stores instructions that can be executed by the at least one processor 701, the instructions being executed by the at least one processor 701 to enable the at least one processor 701 to perform the above-described automatic laser pattern generation method.
[0063] The memory 702 and processor 701 are connected via a bus, which can include any number of interconnecting buses and bridges. The bus connects various circuits of one or more processors 701 and memory 702 together. The bus can also connect various other circuits, such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by processor 701 is transmitted over a wireless medium via an antenna, which further receives data and transmits it to processor 701.
[0064] Processor 701 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory 702 can be used to store data used by processor 701 during operation.
[0065] To achieve the above objectives, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor 701, implements the above-described method for automatically generating laser graphics.
[0066] That is, those skilled in the art will understand that all or part of the steps in the methods described above can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0067] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.
Claims
1. A method for automatically generating laser patterns, characterized in that, include: Obtain the original graphic and extract each graphic element. Determine the graphic element type based on each graphic element and the preset classification rules. Group graphic elements of the same type into the same layer to obtain a layer set. Based on the obtained layer set and preset border parameters, a closed border outline with a specified width is generated, and the closed border outline is stored as a new layer in the layer set. In response to the user's selected anti-breakage style and anti-breakage width, an anti-breakage outline is generated at a specified position in the fine grid layer of the layer set, and the anti-breakage outline is stored as a new layer in the layer set; Perform a Boolean union operation on the primitives in the main grid layer, harpoon layer and gradient layer of the layer set to merge them into one or more connected contours, and store the merged connected contours as new layers in the layer set. The machine identification Mark point outline and the graphic outline containing the factory drawing number code are automatically generated in the blank area of the layer set, and are stored as new layers in the layer set respectively. Based on the preset laser machine output format and cutting order, all layers in the layer set are integrated and output as a laser cutting program file.
2. The automatic laser pattern generation method as described in claim 1, characterized in that, In the step of determining the type of graphic element based on each graphic element and a preset classification rule, and grouping graphic elements of the same type into the same layer to obtain a layer set, the preset classification rules include: The type of graphic element is determined based on its line width, length, geometric shape, and spatial distribution characteristics. Specifically, this includes: Parallel line groups with line widths less than or equal to the first threshold are identified as fine grid layers; Line segments with a line width greater than the second threshold and less than the third threshold are determined to be the main grid layer; The fork-shaped structure in the middle part of the main grid layer is identified as a harpoon layer. Polygons or paths with a gradually changing width are identified as gradient layers.
3. The automatic laser pattern generation method as described in claim 1, characterized in that, The step of generating a closed border outline with a specified width based on the obtained layer set and preset border parameters includes: Obtain all internally conductive patterns from the obtained layer set and calculate their minimum bounding rectangle; The inner boundary rectangle is obtained by offsetting the minimum bounding rectangle outward by a preset inner boundary distance. Offset the inner boundary rectangle outward by half the width of the border to obtain the closed trajectory of the border center line; A closed contour graphic is generated along the closed trajectory of the center line, resulting in a closed border contour, which is used as the final border cutting contour.
4. The automatic laser pattern generation method as described in claim 1, characterized in that, In the step of generating an anti-breakage outline at a specified position in the fine grid layer of the layer set in response to the user's selected anti-breakage style and anti-breakage width, and storing the anti-breakage outline as a new layer in the layer set, the anti-breakage style is pre-stored in the style library. The style library includes one or more of the following: diamond bold, circle bold, rectangle thick, trapezoidal transition, and parallel double lines; The anti-breakage width is a configurable value between 0.1mm and 0.2mm; the specified position is determined by the user through point selection, box selection, or automatic generation at equal intervals.
5. The automatic laser pattern generation method as described in claim 1, characterized in that, The step of performing a Boolean union operation on the primitives in the main raster layer, harpoon layer, and gradient layer of the layer set to merge them into one or more connected contours includes: Linear primitives are polygonized, gradient layers are discretized in a stepped manner, and then a union operation is performed, with the gap fill tolerance set to 0.005mm to 0.02mm, merging them into one or more connected contours. The merged connected contours are simplified for collinear points and self-intersection repaired.
6. The automatic laser pattern generation method as described in claim 1, characterized in that, In the step of automatically generating the machine identification Mark point outline and the graphic outline containing the factory drawing number code in the blank area of the layer set, The machine tool identification Mark point contour includes an outer ring cutting line and an inner ring retention area; the shape of the Mark point contour is a concentric ring, a cross shape, or an L shape. The Mark points are placed at the four corners of the blank areas in the layer set, and automatically avoid existing graphics.
7. The automatic laser pattern generation method as described in claim 1, characterized in that, In the step of automatically generating machine identification Mark point outlines and graphic outlines containing factory drawing number codes in the blank area of the layer set, the graphic outline containing factory drawing number codes is a one-dimensional code outline or a two-dimensional code outline; the one-dimensional code uses Code128 encoding, and the two-dimensional code uses QR code; the graphic outline is generated by converting the encoded black and white modules into a set of rectangular or polygonal outlines.
8. The automatic laser pattern generation method as described in claim 1, characterized in that, In the step of integrating all layers in the layer set into a laser cutting program file according to the preset laser machine output format and cutting order, the preset laser machine output format includes Gerber RS-274X format, DXF format or laser machine-specific format; the cutting order is as follows: fine grid layer, anti-breakage contour layer, merged main grid harpoon gradient connected contour layer, closed border contour layer, and Mark point contour layer.
9. A laser processing device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the automatic laser pattern generation method as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the automatic laser pattern generation method as described in any one of claims 1 to 8.