Methods, apparatus, electronic devices and storage media for removing overlapping silkscreen printing
By acquiring and processing the vector contour of the printed circuit board, overlapping silkscreen printing is automatically removed, solving the problems of low operating efficiency and accidental deletion in the existing technology. This achieves efficient and accurate silkscreen printing removal, ensuring the quality of the printed circuit board.
Patent Information
- Application Number
- CN202511178407.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-21
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2045-08-21
AI Technical Summary
Existing technologies for removing overlapping silkscreen printing are inefficient, prone to omissions and accidental deletions, and affect the quality of printed circuit boards.
By acquiring the vector contours of the retained objects and the objects to be removed from the printed circuit board, calculating the overlapping areas and marking the objects to be processed, and matching the processing actions based on the silkscreen type, the system can automatically remove overlapping silkscreen and perform graphic reconstruction.
It improves the efficiency of removing overlapping silkscreen printing, reduces the probability of omissions and accidental deletions, and ensures that the quality of printed circuit boards meets design requirements.
Smart Images

Figure CN120676552B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic digital data processing technology, and in particular to methods, apparatus, electronic devices, and storage media for removing overlapping silkscreen printing. Background Technology
[0002] A printed circuit board (PCB) is a board-shaped electronic component supported by an insulating substrate and electrically connected by metal conductors (copper foil). To ensure the manufacturability of PCBs, the silkscreen printing must follow certain design principles. For high-density PCBs, the trade-off between design margin and space efficiency often results in the sacrifice of design margin, inevitably leading to silkscreen overlap. Therefore, removing overlapping silkscreen is a necessary means to ensure the quality of PCBs.
[0003] In related technologies, only manual selection or breaking of target silkscreen is supported, and multiple selections are required. When there are many silkscreens to be cut, manual segment-by-segment operation is inefficient and there are also cases of omission, accidental deletion, and damage to non-overlapping silkscreen parts, which urgently need to be improved. Summary of the Invention
[0004] This invention provides a method, apparatus, electronic device, and storage medium for removing overlapping silkscreen printing, thereby addressing the technical problems in related technologies that require extensive manual operation, have low operational efficiency, and are prone to omissions, accidental deletions, and damage to non-overlapping silkscreen printing, hindering their widespread application.
[0005] This invention provides a method for removing overlapping silkscreen printing, comprising: acquiring a silkscreen removal task, and determining at least one retained object and at least one object to be removed from a target printed circuit board based on the silkscreen removal task; extracting a first vector contour of the at least one retained object and a second vector contour of the at least one object to be removed; calculating the overlapping area of the first vector contour and the second vector contour, and marking the portion of the second vector contour located in the overlapping area as an object to be processed; matching a corresponding processing action based on the silkscreen type of each object to be removed to process the object to be processed, obtaining a processing result, and reconstructing the graphic of the target printed circuit board based on the processing result to obtain an actual printed circuit board that meets preset design conditions.
[0006] The present invention also provides an apparatus for removing overlapping silkscreen printing, comprising: an acquisition module for acquiring a silkscreen printing removal task and determining at least one retained object and at least one object to be removed from a target printed circuit board based on the silkscreen printing removal task; an extraction module for extracting a first vector contour of at least one retained object and a second vector contour of at least one object to be removed; a marking module for calculating the overlapping area of the first vector contour and the second vector contour and marking the portion of the second vector contour located in the overlapping area as an object to be processed; and a removal module for matching a corresponding processing action based on the silkscreen printing type of each object to be removed to process the object to be processed, obtaining a processing result, and performing graphic reconstruction of the target printed circuit board based on the processing result to obtain an actual printed circuit board that meets preset design conditions.
[0007] The present invention also 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 methods for removing overlapping silkscreen printing.
[0008] The present invention also 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 methods for removing overlapping silkscreen printing.
[0009] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described methods for removing overlapping silkscreen printing.
[0010] This invention allows for the identification of retained and unremoved objects on a target printed circuit board (PCB) based on a screen printing removal task. Overlapping areas are determined using a first vector contour of the retained object and a second vector contour of the unremoved object, and the unremoved objects are marked. Then, screen printing removal is performed on the unremoved object according to its screen printing type, and the resulting graphic of the target PCB is reconstructed after removal, yielding an actual PCB that meets design requirements. This invention solves the technical problems of related technologies, such as the need for extensive manual operations, low operational efficiency, and the risk of omissions, accidental deletions, and damage to non-overlapping screen printing, which hinder widespread application. It achieves batch processing to improve operational efficiency, reduce the probability of accidental deletions and omissions, and effectively ensure the quality of the PCB. Attached Figure Description
[0011] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1 A flowchart illustrating a method for removing overlapping silkscreen printing provided in an embodiment of the present invention;
[0013] Figure 2 A flowchart of a method for removing overlapping silkscreen printing according to an embodiment of the present invention;
[0014] Figure 3 This is a schematic diagram of a device for removing overlapping silkscreen printing provided in an embodiment of the present invention. Detailed Implementation
[0015] 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, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.
[0016] It should be noted that, in the description of this invention, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., used in this invention are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0017] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0018] As we can understand, a printed circuit board (PCB) is a plate-shaped electronic component supported by an insulating substrate and electrically connected by metal conductors (copper foil). It is used to fix electronic components and realize circuit connections. It is a key component of electronic products and is widely used in computers, communications, consumer electronics, and other fields.
[0019] Cadence Allegro PCB Designer is a professional-grade printed circuit board design tool. It boasts powerful physical and electrical rule-driven capabilities. The software allows for precise filtering and selection of different types of design objects via the Find bar, enabling various operations such as moving, editing, and viewing properties, achieving precise layout and routing control.
[0020] Packaging is a crucial step in electronic design, from chip to system-level application. It refers to the physical layout and connection of electronic components on a PCB, including structures such as pads, silkscreen layers, and solder mask layers. Among them, the silkscreen layer is typically used to identify the outline of components, pin numbers, and polarity markings, and it serves as an important basis for component placement.
[0021] To ensure manufacturing and assembly tolerances and the readability of markings, silkscreen printing is usually 0-1mm larger than the physical outline of the component. To ensure sufficient operating space, silkscreen printing on connector packages is generally 2-3mm larger than the physical outline.
[0022] To ensure the manufacturability of printed circuit boards, the following design principles apply to silkscreen printing: silkscreen prints must maintain a safe distance (≥0.2mm) from pads and non-solder resist vias to prevent ink contamination of the soldering surface; silkscreen printing is not recommended within ≥1.0mm of the through-hole (THD) area to avoid ink smudging during insertion; silkscreen prints on the PCB must not overlap to prevent design rule check errors; silkscreen prints must not press on high-speed lines to prevent the silkscreen from altering the impedance value of high-speed lines, causing impedance discontinuity and affecting signal integrity.
[0023] For high-density printed circuit boards (PCBs), the trade-off between design margin and space efficiency often necessitates sacrificing design margin, inevitably leading to overlapping silkscreen printing. To improve board utilization, a V-cut panelization method can be used. In this method, individual boards are tightly connected, and silkscreen printing protruding from one board can cover adjacent boards, interfering with the pads and silkscreen printing of adjacent boards and affecting the manufacturability of the PCB.
[0024] To address the above problems, embodiments of the present invention provide a method for removing overlapping silkscreen printing, such as... Figure 1 As shown, the method for removing overlapping silkscreen printing includes the following steps:
[0025] In step S101, a silkscreen removal task is obtained, and at least one retained object and at least one object to be removed from the target printed circuit board are determined based on the silkscreen removal task.
[0026] Among them, reserved objects refer to objects that are required by the printed circuit board design specifications not to be covered by silkscreen. Reserved objects are diverse and include all types of objects that can be manipulated in the printed circuit board drawing, including non-solder resist vias (VIA), pads (PIN), high-speed lines (cline), important silkscreen lines (line), important silkscreen characters (text), components (symbol), graphic fills (shape), text (text), etc.
[0027] The objects to be cleared refer to silkscreen lines and silkscreen fills. The uniqueness of the objects to be cleared avoids accidental deletion of other objects.
[0028] Based on the silkscreen removal task, obtain the objects to be kept and the objects to be removed selected by the user during the operation.
[0029] Users can select a single object to retain (such as a pin), or select multiple objects to retain (which can be a collection of single objects, such as a group of component reference numbers, or a combination of multiple objects, such as a combination of VIA, pin, cline, etc.), or select objects to retain by object type (such as all VIAs). The system will highlight the outline of the selected objects in real time. Users can also select objects to be cleared (silk screen lines or silk screen shapes). Objects to be cleared can be selected by clicking a single object to be cleared (such as a single silk screen line), or by selecting multiple objects to be cleared (such as multiple silk screen lines), or by selecting objects to retain by object type (such as all silk screen shapes). The outline of the selected objects to be cleared will be highlighted in real time.
[0030] In this embodiment of the invention, users can select one or multiple objects to be retained and multiple objects to be cleared, thereby achieving batch clearing of silkscreen printing, reducing operation frequency, and improving clearing efficiency.
[0031] In step S102, a first vector profile of at least one object to be retained and a second vector profile of at least one object to be removed are extracted.
[0032] Identify and extract the first vector contour of the union graphic of the selected objects to be retained, and identify and extract the second vector contour of the union graphic of the objects to be cleared, so as to subsequently determine the overlapping areas and clear the overlapping silkscreen.
[0033] Optionally, in one embodiment of the present invention, extracting the first vector profile of at least one retained object includes: obtaining the object type of each retained object; if the object type is a point object type, constructing a point vector profile of the retained object based on the pad center and a preset geometric safety area; if the object type is a line object type, constructing a first rectangular vector profile of the retained object based on the line width of the retained object and a preset line width safety area; if the object type is a surface object type, constructing a first polygonal vector profile of the retained object based on the boundary of the retained object.
[0034] In some embodiments, the type of object to be retained can be identified first, such as objects like pads, vias, high-speed signal lines, power traces, and copper fills. Key attributes such as center coordinates, path point sequence, line width value, geometry, boundary point list, and internal voids can be used for identification. Based on the design rules of the printed circuit board, the minimum silkscreen avoidance distance can be calculated as a preset geometric safety zone, and the dynamic safety distance can be calculated as a preset line width safety zone.
[0035] For example, for point objects, embodiments of the present invention can generate a safety zone polygon with an outward expansion of 0.2mm using the pad center and geometric parameters.
[0036] For linear objects, embodiments of the present invention can expand them into rectangular outlines according to the line width.
[0037] For planar objects, embodiments of the present invention can directly extract the boundary polygons.
[0038] Based on the design principles, the embodiments of the present invention can perform effective contour recognition, thereby ensuring the quality of the printed circuit board after silkscreen removal.
[0039] Optionally, in one embodiment of the present invention, extracting a second vector contour of at least one object to be removed includes: obtaining the silkscreen type of each object to be removed; if the silkscreen type is a silkscreen line type, constructing a second rectangular vector contour of the object to be removed based on the graphic of the object to be removed; if the silkscreen type is a silkscreen fill type, constructing a second polygonal vector contour of the object to be removed based on the boundary of the object to be removed.
[0040] In other embodiments, the silkscreen type of the object to be removed can be identified, such as by identifying key attributes such as the start / end coordinates, line width, boundary point sequence, and internal holes of objects like component outlines, identifier lines, component entity fills, and text backgrounds, to determine the corresponding vector outline.
[0041] For example, for silkscreen lines, embodiments of the present invention can obtain a second rectangular vector contour by merging segmented rectangles into a polygon and retaining the original path direction; for silkscreen fills, embodiments of the present invention can construct the boundary of the object to be cleared by means of vertex simplification, curve discretization, self-intersection correction, etc., and then obtain a second polygonal vector contour.
[0042] The embodiments of the present invention can geometrize the screen printing, thereby improving the reliability of screen printing removal.
[0043] In step S103, the overlapping area of the first vector contour and the second vector contour is calculated, and the portion of the second vector contour located in the overlapping area is marked as an object to be processed.
[0044] As one possible implementation, embodiments of the present invention can traverse the selected vector contours of the objects to be cleared, calculate the intersection of the vector contours of the objects to be retained, and mark the parts of the overlapping areas that belong to the second vector contour as objects to be cleared, so that when clearing, only the overlapping parts of the overlapping objects to be cleared are cleared.
[0045] In step S104, a corresponding processing action is matched based on the silkscreen type of each object to be removed to process the object, obtain the processing result, and reconstruct the graphic of the target printed circuit board based on the processing result to obtain the actual printed circuit board that meets the preset design conditions.
[0046] Furthermore, embodiments of the present invention can perform "graphical-level cleanup" (non-line cutting) operations on overlapping areas of the graphic vector outline of the object to be cleaned, retaining the object completely, automatically retaining the non-overlapping parts of the object to be cleaned, and after cleanup, reconstructing the target printed circuit board, so that the obtained actual printed circuit board can meet the design standards, thereby ensuring the quality of the actual printed circuit board.
[0047] Optionally, in one embodiment of the present invention, a corresponding processing action is matched based on the silkscreen type of each object to be removed to process the object, including: when the silkscreen type is silkscreen line type, subtracting the overlapping area from the object to be removed; when the silkscreen type is silkscreen fill type, creating a blank window in the overlapping area to generate a negative image in the overlapping area, and processing the overlapping pixels based on the negative image.
[0048] In embodiments of the present invention, when the silkscreen type is silkscreen line type, the silkscreen in the overlapping area can be cleared to perform geometric difference set residue-free clearing and retain the objects in the overlapping area.
[0049] In embodiments of the present invention, when the screen printing type is screen printing fill type, a negative image can be generated in the overlapping area to generate a clearing template through negative image thinking, and then the object to be processed can be processed to achieve the clearing of overlapping screen printing.
[0050] The embodiments of the present invention can reduce the removal of residual debris and improve processing efficiency.
[0051] Optionally, in one embodiment of the present invention, a blank window is created in the overlapping region to generate a negative image in the overlapping region, and the overlapping pixels are processed based on the negative image, including: calculating the difference between the object to be removed of the silkscreen fill type and the corresponding overlapping region under the negative image; obtaining the number of sub-regions in the difference set to obtain multiple connected components; filtering all micro-fragments that meet the preset area conditions based on the multiple connected components, and merging adjacent connected components after filtering to obtain an optimized region, so as to reconstruct the overlapping region using the optimized region.
[0052] In actual implementation, embodiments of the present invention may first verify the overlapping parts of the objects to be processed, such as determining whether the overlapping area belongs to the objects to be cleared.
[0053] After verification, the embodiments of the present invention can perform corresponding geometric operations, subtracting the overlapping area from the original fill to generate a preliminary processing result. The number of sub-regions generated by the preliminary processing result is detected to construct connected components, and the area of each connected component is obtained. Components with areas smaller than a certain value are considered micro-fragments. After filtering out these micro-fragments, the embodiments of the present invention can merge adjacent regions to obtain an optimized region, and then use the optimized region to reconstruct the overlapping area.
[0054] The embodiments of the present invention can effectively identify silkscreen printing in overlapping areas and remove silkscreen printing in overlapping areas, thereby ensuring the quality of actual circuit printed circuit boards.
[0055] Optionally, in one embodiment of the present invention, after calculating the overlapping area of the first vector contour and the second vector contour, the method further includes: determining the overlap mode between the first vector contour and the second vector contour based on the overlapping area; if the overlap mode is complete overlap, completely clearing the corresponding object to be cleared; if the overlap mode is partial overlap, clearing the object to be cleared corresponding to the overlapping area.
[0056] In some embodiments, appropriate processing can be performed based on the spatial containment relationship (overlapping method) between the retained object and the object to be cleared.
[0057] For example, when the spatial containment relationship is completely overlapping, the object to be cleared can be completely cleared; when the spatial containment relationship is partially overlapping, only the part overlapping with the object to be retained can be cleared; when the spatial containment relationship is tangential contact, the embodiment of the present invention can ignore the object to be cleared, or after expanding the vector outline of the object to be retained by a certain distance, the object to be cleared in the expanded area can be cleared.
[0058] The embodiments of the present invention can achieve a complete match between clearing boundaries and preserving object outlines, avoiding line defects caused by traditional cutting and avoiding accidental deletion of non-overlapping areas.
[0059] Optionally, in one embodiment of the present invention, the pattern reconstruction of the target printed circuit board based on the processing result includes: based on the processing result, clearing at least one object to be cleared; writing at least one new silkscreen that matches the at least one object to be cleared, and inheriting the attributes of the at least one object to be cleared into the corresponding new silkscreen, so as to reconstruct the target printed circuit board.
[0060] Furthermore, embodiments of the present invention can remove silkscreen printing in overlapping areas and, based on this, plan new silkscreen printing positions. For the reconstruction of line segment objects, embodiments of the present invention can convert polygons into line segments and perform continuity optimization to smooth the lines. For the reconstruction of filled objects, embodiments of the present invention can sort and fix points in a certain order and fill within the boundary to obtain new silkscreen printing.
[0061] For new silkscreen printing, embodiments of the present invention can inherit the corresponding silkscreen attributes, labels, and other content from the object to be removed into the new silkscreen printing to rebuild the target printed circuit board, thereby optimizing the printed circuit board and achieving a higher level of intelligence and automation.
[0062] Optionally, in one embodiment of the present invention, the method further includes: extracting at least one new vector contour of a retained object from the actual printed circuit board; determining whether each new vector contour satisfies a preset overlap condition; if no new vector contour satisfies the preset overlap condition, outputting the actual printed circuit board; otherwise, marking the new vector contour that satisfies the preset overlap condition and generating a corresponding clearing error reminder.
[0063] In actual execution, embodiments of the present invention can extract the vector contour of the object to be retained corresponding to the silkscreen removal task on the actual printed circuit board, and determine whether the vector contour overlaps with other patterns or whether the vector contour overlaps with the object to be removed that has not been completely removed.
[0064] If there is no overlap, it is determined that the actual printed circuit board has completed the removal of overlapping silkscreen printing. If there is overlap, a corresponding removal error reminder is generated, and the user is reminded that there is still an overlapping area and a second removal is required by highlighting the overlapping area.
[0065] The embodiments of the present invention can verify the printed circuit board after each cleaning to ensure the cleaning effect.
[0066] Optionally, in one embodiment of the present invention, after extracting a new vector contour of at least one retained object from the actual printed circuit board, the method further includes: determining whether each new vector contour meets a preset integrity condition based on the first vector contour; if the preset integrity condition is met, generating a clearing completion reminder; otherwise, locating the erroneously deleted area, and completing the erroneously deleted area based on the first vector contour and at least one retained object, until the preset integrity condition is met.
[0067] In actual execution, embodiments of the present invention can determine the completed outline of the object to be retained based on the first vector outline. After the clearing is completed, it is confirmed whether there is a difference between the new vector outline and the first vector outline. If there is no difference, it can be confirmed that the clearing only cleared the object to be cleared. If there is a difference, it can be confirmed that the clearing also cleared part of the object to be retained in addition to the object to be cleared. At this time, it is necessary to complete the missing part of the object to be retained.
[0068] By verifying the shape of the new vector profile, embodiments of the present invention can further ensure the accuracy of the removal and avoid affecting the quality of the printed circuit board due to removal errors.
[0069] Combination Figure 2 As shown, the working principle of the method for removing overlapping silkscreen printing according to an embodiment of the present invention will be described in detail with reference to one embodiment.
[0070] like Figure 2 As shown, the embodiments of the present invention include the following steps:
[0071] Step S201: Select the objects to be retained. Click on a single object to be retained (such as a pin), or select multiple objects to be retained (this can be a collection of single objects, such as a group of component reference numbers, or a combination of multiple objects, such as a combination of VIA, pin, cline, etc.), or select objects to be retained by object type (such as all vias). The system will highlight the outline of the selected objects in real time.
[0072] Step S202: Identify and extract the graphic vector outline of the object to be retained.
[0073] Step S203: Select the first object to be cleared (silkscreen line or silkscreen shape); the object to be cleared can be selected by clicking on a single object (such as a single silkscreen line), or by selecting multiple objects to be cleared (such as multiple silkscreen lines), or by selecting objects to keep by object type (such as all silkscreen shapes); the outline of the selected object to be cleared is highlighted in real time.
[0074] Step S204: Identify and extract the vector outline of the union graphic of the objects to be cleared.
[0075] Step S205: Generate objects to be processed. Softly traverse the selected vector contours of the objects to be cleared, calculate the intersection of their vector contours with those of the objects to be retained, and mark the areas on the vector contours of the objects to be cleared that overlap with the vector contours of the objects to be retained as objects to be processed.
[0076] Step S206: Clear the objects to be processed. Perform a "graphical-level deletion" (non-line cutting) operation on the overlapping areas of the graphic vector outline of the objects to be cleared. The objects to be kept are completely preserved, and the non-overlapping parts of the objects to be cleared are automatically preserved.
[0077] Step S207: Select the next object to be cleared; execute steps S204-S206.
[0078] Step S208: Determine whether the processing of all objects to be cleared has been completed. If completed, proceed to step S209; otherwise, return to step S207.
[0079] Step S209: End command. All overlapping silkscreen prints on the object to be removed and the object to be retained will be removed according to the graphic outline of the object to be retained.
[0080] In summary, the embodiments of this invention can incorporate the objects to be retained into the silkscreen removal process and introduce graphic recognition functionality. Based on "graphic semantics," a removal strategy is generated, rather than traditional line-level operations. The software identifies overlapping areas, ensuring the removal boundaries perfectly match the outlines of the objects to be retained, avoiding line defects caused by traditional cutting and preventing accidental deletion of non-overlapping areas. The diversity of objects to be retained and their single-point selection, box selection, and type-based filtering methods enable batch recognition and removal, improving operational efficiency.
[0081] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.
[0082] like Figure 3 As shown, an embodiment of the present invention also provides an apparatus 10 for removing overlapping silkscreen printing, comprising: an acquisition module 100, a first extraction module 200, a first marking module 300, and a first removal module 400.
[0083] Specifically, the acquisition module 100 is used to acquire the silkscreen removal task and determine at least one retained object and at least one object to be removed from the target printed circuit board based on the silkscreen removal task.
[0084] The first extraction module 200 is used to extract a first vector profile of at least one object to be retained and a second vector profile of at least one object to be removed.
[0085] The first marking module 300 is used to calculate the overlapping area of the first vector contour and the second vector contour, and to mark the part of the second vector contour located in the overlapping area as an object to be processed.
[0086] The first cleaning module 400 is used to match the corresponding processing action based on the silkscreen type of each object to be cleaned, to process the object to be processed, to obtain the processing result, and to reconstruct the graphic of the target printed circuit board based on the processing result, so as to obtain the actual printed circuit board that meets the preset design conditions.
[0087] Optionally, in one embodiment of the present invention, the first extraction module 200 includes: a first acquisition unit, a first construction unit, a second construction unit, and a third construction unit.
[0088] The first acquisition unit is used to acquire the object type of each retained object.
[0089] The first building unit is used to construct the point vector profile of the object based on the center of the pad and a preset geometric safe area when the object type is a point object.
[0090] The second construction unit is used to construct the first rectangular vector outline of the preserved object based on the line width of the preserved object and the preset line width safety area when the object type is a line object type.
[0091] The third building unit is used to construct the first polygonal vector outline of the preserved object based on the boundary of the preserved object when the object type is a planar object type.
[0092] Optionally, in one embodiment of the present invention, the extraction module 200 includes: a second acquisition unit, a fourth construction unit, and a fifth construction unit.
[0093] The second acquisition unit is used to acquire the silkscreen type of each object to be cleared.
[0094] The fourth building unit is used to construct a second rectangular vector outline of the object to be cleared based on the graphic of the object to be cleared, when the silkscreen type is silkscreen line type.
[0095] The fifth building unit is used to construct the second polygonal vector outline of the object to be cleared based on the boundary of the object to be cleared when the silkscreen type is silkscreen fill type.
[0096] Optionally, in one embodiment of the present invention, the first clearing module 400 includes: a first clearing unit and a second clearing unit.
[0097] The first clearing unit is used to subtract overlapping areas from the object to be cleared when the silkscreen type is silkscreen line type.
[0098] The second clearing unit is used to create a blank window in the overlapping area when the silkscreen type is silkscreen fill type, so as to generate a negative image in the overlapping area and process the overlapping pixels based on the negative image.
[0099] Optionally, in one embodiment of the present invention, the second clearing unit includes: a calculation unit, a third acquisition unit, and a filtering unit.
[0100] The calculation unit is used to calculate the difference between the object to be removed of the silkscreen fill type and the corresponding overlapping area in the negative image.
[0101] The third acquisition unit is used to acquire the number of sub-regions in the difference set in order to obtain multiple connected components.
[0102] The filtering unit is used to filter all micro-fragments that meet the preset area conditions based on multiple connected components, and merge adjacent connected components after filtering to obtain an optimized domain, so as to reconstruct the overlapping region using the optimized domain.
[0103] Optionally, in one embodiment of the present invention, the apparatus 10 for removing overlapping silkscreen printing further includes: a second judgment module, a second removal module, and a third removal module.
[0104] The second judgment module is used to determine the overlap pattern between the first vector contour and the second vector contour based on the overlapping area.
[0105] The second clearing module is used to completely clear the corresponding objects to be cleared when the overlap mode is full overlap.
[0106] The third clearing module is used to clear the objects to be cleared corresponding to the overlapping area when the overlapping mode is partial overlap.
[0107] Optionally, in one embodiment of the present invention, the first clearing module 400 includes a clearing unit and an inheritance unit.
[0108] The clearing unit is used to clear at least one object to be cleared based on the processing result.
[0109] An inheritance unit is used to write at least one new silkscreen that matches at least one object to be cleared, and to inherit the attributes of at least one object to be cleared into the corresponding new silkscreen to rebuild the target printed circuit board.
[0110] Optionally, in one embodiment of the present invention, the apparatus 10 for removing overlapping screen printing further includes:
[0111] The second extraction module is used to extract a new vector profile of at least one retained object from the actual printed circuit board.
[0112] The third judgment module is used to determine whether each new vector contour meets the preset overlap conditions.
[0113] The output module is used to output the actual printed circuit board if no new vector contour that meets the preset overlap conditions exists; otherwise, it marks the new vector contour that meets the preset overlap conditions and generates a corresponding clearing error reminder.
[0114] Optionally, in one embodiment of the present invention, the apparatus 10 for removing overlapping silkscreen printing further includes a fourth judgment module and a completion module.
[0115] The fourth judgment module is used to determine whether each new vector contour meets the preset integrity conditions based on the first vector contour.
[0116] The completion module is used to generate a clearing completion reminder if the preset integrity conditions are met; otherwise, it locates the erroneously deleted area and completes the erroneously deleted area based on the first vector contour and at least one retained object until the preset integrity conditions are met.
[0117] For a description of the features of the apparatus for removing overlapping silkscreen printing in the corresponding embodiment, please refer to the relevant description of the method for removing overlapping silkscreen printing in the corresponding embodiment, which will not be repeated here.
[0118] Embodiments of the present invention also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above embodiments of the method for removing overlapping silkscreen printing.
[0119] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program configured to execute the steps in any of the above embodiments of the method for removing overlapping silkscreen printing.
[0120] 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.
[0121] Embodiments of the present invention also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above embodiments of the method for removing overlapping silkscreen printing.
[0122] Embodiments of the present invention 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 any of the above embodiments of the method for clearing overlapping silkscreen printing.
[0123] 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 implementations should not be considered beyond the scope of this invention.
[0124] The present invention has provided a detailed description of a method, apparatus, electronic device, and storage medium for removing overlapping silkscreen printing. Specific examples have been used to illustrate the principles and implementation methods of the invention. The descriptions of these embodiments are only intended to aid in understanding the method and core ideas of the invention. It should be noted that those skilled in the art can make various improvements and modifications to the invention without departing from its principles, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A method for removing overlapping silkscreen printing, characterized in that, include: Obtain a screen printing removal task, and determine at least one retained object and at least one object to be removed from the target printed circuit board based on the screen printing removal task; Extract at least one first vector profile of the object to be retained and at least one second vector profile of the object to be cleared; Calculate the overlapping area of the first vector contour and the second vector contour, and mark the portion of the second vector contour located in the overlapping area as the object to be processed; Based on the silkscreen type of each object to be removed, a corresponding processing action is matched to process the object to be processed, a processing result is obtained, and the graphic reconstruction of the target printed circuit board is performed based on the processing result to obtain an actual printed circuit board that meets the preset design conditions. The step of extracting the first vector contour of at least one of the retained objects includes: obtaining the object type of each retained object; if the object type is a point object type, constructing a point vector contour of the retained object based on the center of the pad or non-solder resist via and a preset geometric safety zone; if the object type is a line object type, constructing a first rectangular vector contour of the retained object based on the line width of the retained object and a preset line width safety zone; if the object type is a surface object type, constructing a first polygonal vector contour of the retained object based on the boundary of the retained object. The step of extracting the second vector contour of at least one of the objects to be removed includes: obtaining the silkscreen type of each object to be removed; if the silkscreen type is a silkscreen line type, constructing the second rectangular vector contour of the object to be removed based on the graphic of the object to be removed; if the silkscreen type is a silkscreen fill type, constructing the second polygonal vector contour of the object to be removed based on the boundary of the object to be removed. The step of matching the corresponding processing action based on the silkscreen type of each object to be cleared to process the object includes: when the silkscreen type is the silkscreen line type, subtracting the overlapping area from the object to be cleared; when the silkscreen type is the silkscreen fill type, creating a blank window in the overlapping area to generate a negative image in the overlapping area, and processing the overlapping pixels based on the negative image.
2. The method for removing overlapping screen printing according to claim 1, characterized in that, The step of creating a blank window in the overlapping region to generate a negative image in the overlapping region, and processing the overlapping pixels based on the negative image, includes: Under the negative image, calculate the difference between the object to be removed of the silkscreen fill type and the corresponding overlapping area; Obtain the number of sub-regions in the difference set to obtain multiple connected components; Based on the multiple connected components, all micro-fragments that meet the preset area conditions are filtered out, and adjacent connected components are merged after filtering to obtain an optimized domain, which is then used to reconstruct the overlapping region.
3. The method for removing overlapping screen printing according to claim 1, characterized in that, After calculating the overlapping area of the first vector profile and the second vector profile, the method further includes: The overlap pattern between the first vector contour and the second vector contour is determined based on the overlapping area; When the overlap method is full overlap, the corresponding object to be cleared is completely cleared; When the overlap method is partial overlap, the objects to be cleared corresponding to the overlapping area are removed.
4. The method for removing overlapping silkscreen printing according to claim 1, characterized in that, The step of reconstructing the pattern of the target printed circuit board based on the processing result includes: Based on the processing result, at least one of the objects to be removed is cleared; Write at least one new silkscreen that matches at least one of the objects to be removed, and inherit the attributes of at least one of the objects to be removed into the corresponding new silkscreen to reconstruct the target printed circuit board.
5. The method for removing overlapping screen printing according to claim 1, characterized in that, Also includes: Extract at least one new vector profile of the retained object from the actual printed circuit board; Determine whether each of the new vector contours satisfies the preset overlap condition; If no new vector contour meets the preset overlap condition, the actual printed circuit board is output; otherwise, a new vector contour that meets the preset overlap condition is marked, and a corresponding clearing error reminder is generated.
6. The method for removing overlapping silkscreen printing according to claim 5, characterized in that, After extracting a new vector profile of at least one of the retained objects from the actual printed circuit board, the method further includes: Based on the first vector contour, determine whether each new vector contour satisfies the preset integrity condition; If the preset integrity condition is met, a clearing completion reminder is generated; otherwise, the mistakenly deleted area is located, and the mistakenly deleted area is completed based on the first vector contour and at least one of the retained objects until the preset integrity condition is met.
7. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of the method for removing overlapping silkscreen printing as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Jet printing data generation method and system, electronic equipment and storage medium
CN113242649A
Method and system for checking overlapping of silk-screen texts, storage medium and equipment
CN113642287A