An Adaptive Recognition and Compliance Review Method and System for Screen Printing White Ink Blocks
By decoupling control flow and computation flow, and combining normalization processing of digital manufacturing data with multi-layer constraint verification, efficient adaptive identification and compliance review of white ink blocks printed on printed circuit boards are achieved. This solves the problems of low computational efficiency and insufficient adaptability in existing technologies, and improves identification accuracy and computational efficiency.
Patent Information
- Application Number
- CN202611297304.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-11-17
AI Technical Summary
In the current technology for printing circuit board manufacturing, the design compliance inspection of the silkscreen layer suffers from problems such as low computational efficiency, insufficient adaptability, inability to identify abnormal graphic positions, and difficulty in verifying results. In particular, the compliance review effect is not good for large-area solid silkscreen graphics.
By employing an adaptive identification and compliance review method for white ink blocks in screen printing, the control flow and computation flow are decoupled, digital manufacturing data is normalized, process data is extracted, and effective board areas are constructed. Connectivity domain partitioning and regular shape fitting are performed, and combined with board frame, solder mask opening, bare copper area and drill hole constraint verification, adaptive identification and compliance review of white ink blocks are achieved.
It improves the accuracy and computational efficiency of white ink block identification, reduces invalid calculations, simplifies result verification, can identify abnormal graphic positions, and provides statistics on total white ink block coverage and compliance coverage, supporting rapid review of high-density printed circuit boards.
Smart Images

Figure CN123117006A_ABST
Abstract
Description
[Technical Field] This invention relates to the field of PCB digital production technology, and in particular to an adaptive identification and compliance review method and system for white ink blocks in silkscreen printing. [Background Technology] In the process of printed circuit board manufacturing and design for manufacturability review, the design specifications of the silkscreen layer directly affect soldering quality, marking clarity, mechanical assembly, and the reliability of depaneling. Large-area solid silkscreen patterns must not cover surface mount pads or through-hole pads that require soldering, and should not cover non-conductive holes such as positioning holes and mounting holes. They should also maintain a safe distance from the board frame that meets manufacturing process requirements. If silkscreen ink penetrates the bare copper area of the pads, it may cause poor soldering, cold solder joints, or open circuits; if it covers non-conductive holes, it may cause ink leakage, excessive via plugging, or assembly interference; if it contacts the board frame, ink peeling or flaking may occur during depaneling.
[0001] Publication No. CN115758793A and Application No. CN202211555475.8 disclose a method for evaluating the manufacturability of PCB pads based on Gerber files, which verifies the design in the Gerber file according to the enterprise's manufacturing process design specifications and provides feedback on modification information.
[0002] Publication number CN106294926A and application number CN201610570825.6 disclose a method for checking line problems on printed circuit boards, which automatically checks items such as missing net lines, border line width, and silkscreen line width.
[0003] Publication number CN106202775A and application number CN201610571072.0 disclose a method for inspecting hole-related problems on printed circuit boards, which inspects items such as hole diameter, hole metallization properties, and through-hole solder mask status.
[0004] Publication No. CN107832514A and application No. CN201711056884.2 disclose a method and apparatus for detecting surface mount pads, which determines whether the pads meet preset conditions based on the relationship between the surface mount pads and their interconnection widths.
[0005] The aforementioned technologies can automatically check pad, line, or hole rules. However, 2D manufacturing data such as Gerber typically does not include semantic tags for "silk screen white ink blocks." The silkscreen layer consists only of vector primitives formed by blinking, line segments, arcs, area fills, and polarity operations. Large areas of solid silkscreen graphics are easily confused with character strokes, component outlines, unclosed process markings, or other solid graphics. Directly performing precise Boolean operations on board outlines, solder mask, and drill holes on all silkscreen primitives would result in a large amount of invalid calculations when dealing with high-density, large-volume printed circuit boards.
[0006] Existing review tools have the following shortcomings: First, document parsing, rule scheduling, geometric calculation, and result output are coupled, which is not conducive to the independent expansion and parallel execution of core calculation tasks; Second, different manufacturers have different definitions of white paint block area, fitting tolerance, board edge distance, and pad avoidance distance, resulting in insufficient adaptability of fixed parameters; Third, judging solely by the distance to the board frame line cannot identify whether the graphic as a whole is located outside the board, in the slot, or in the hollowed-out area; Fourth, distinguishing hole categories solely by hole metallization attributes cannot fully reflect process attributes such as hole type, pad association, and solder mask openings; Fifth, if the review results only return coordinates or simple text, manual review still requires repeated positioning in dense primitives. [Summary of the Invention] To overcome the above problems, this invention proposes an adaptive identification and compliance review method and system for screen printing white ink blocks that can effectively solve the above problems.
[0007] The present invention provides a technical solution to solve the above-mentioned technical problems: an adaptive identification and compliance review method for screen-printed white ink blocks, comprising: acquiring digital manufacturing data of printed circuit boards, white ink block review rules, and work step information; performing normalization processing on the digital manufacturing data for coordinates, units, board side, and layer polarity; and extracting process data for the screen-printed layer, solder mask layer, circuit layer, drill layer, and board frame layer; constructing an effective board area based on the outer contour of the board frame layer and the inner groove and hollow area; determining the area window, geometric fitting parameters, and process safety parameters according to the white ink block review rules; and generating review tasks for the front and back sides of the printed circuit board respectively; dividing the screen-printed layer primitives of the target board surface into connected components; performing geometric union and geometric difference on the primitives within each screen-printed connected component according to the layer polarity to form a closed geometric surface; and selecting screen-printed connected components that can form a single continuous solid surface as the objects to be screened; calculating the surface area of the objects to be screened, and retaining the area located on the surface. The selection process involves: identifying objects within a window to be screened; fitting at least one regular shape (circle, rectangle, rounded rectangle, and ellipse) to the selected objects according to the geometric fitting parameters; retaining objects that simultaneously satisfy both absolute and relative boundary deviation conditions as identified silkscreen white ink blocks; for each identified silkscreen white ink block, sequentially performing physical constraint verification of the board frame, constraint verification of solder mask openings or bare copper areas, and mechanical constraint verification of drilling based on spatial index; marking the currently identified silkscreen white ink block as non-compliant and stopping its subsequent verification when any constraint is found to be violated; marking the currently identified silkscreen white ink block as pending review when the required layer or attribute information for verification cannot be determined; marking the currently identified silkscreen white ink block as compliant when all constraints are passed; setting identification attributes for the identified silkscreen white ink blocks and writing them into the result set; expanding the bounding box of objects in the result set, binding associated layer contexts, and writing area and status data; and outputting the results to the review result container.
[0008] Preferably, before performing the normalization process, the number of white paint block review sub-rules in the active state, the current work step pointer, and the integrity of the key layers are verified; if there is not one white paint block review sub-rule in the active state, the current work step pointer is invalid, or the key layers required for the target verification are missing, the current review is terminated and configuration exception information is output.
[0009] Preferably, the digital manufacturing data includes at least one of Gerber data, drilling data, and manufacturing data containing equivalent layer geometry information; the normalization process includes parsing mirroring, rotation, translation, repeated stepping, and positive and negative polarity operations to transform the process data of each layer to the same plate-level coordinate system, and to complete the mirroring transformation according to a unified plate surface reference when the bottom layer data needs to be mirrored.
[0010] Preferably, the processing of the silkscreen connected regions includes: performing a geometric union on positive polarity silkscreen primitives, subtracting negative polarity or clear polarity silkscreen primitives from the geometric union result, and performing closure and self-intersection checks on the obtained contours; when the processing result forms multiple mutually separated solid surfaces, cannot form closed surfaces, or forms non-solid surfaces mainly composed of fine line strokes, the corresponding silkscreen connected regions are removed.
[0011] Preferably, the area window has a system default lower limit and a system default upper limit, with a default range of 40.0 mm² to 150.0 mm²; the geometric fitting parameters include an absolute boundary deviation threshold with a default value of 2 mil, a relative boundary deviation threshold, and a corner radius parameter; user configuration values or manufacturer configuration values are read from the rule manager, and the corresponding system default values are overwritten when the configuration values are valid.
[0012] Preferably, the regular shape fitting includes: establishing at least one of a circular, rectangular, rounded rectangle, and elliptical fitting model based on the boundary points of the object to be screened; calculating the bidirectional maximum distance from the boundary of the object to be screened to the boundary of the fitting model and from the boundary of the fitting model to the boundary of the object to be screened; comparing the bidirectional maximum distance with an absolute boundary deviation threshold; and comparing the ratio of the bidirectional maximum distance to the length of the smallest bounding rectangle of the object to be screened with a relative boundary deviation threshold; for the rounded rectangle fitting model, the rounded radius determined by the corner profile is also compared with the rounded radius parameter.
[0013] Preferably, the physical constraint verification of the board frame includes: determining whether the identified white ink block is completely contained within the effective board area; calculating the minimum geometric distance between the identified white ink block and the boundary of the effective board area; and determining it as non-compliant when the identified white ink block is not completely contained within the effective board area, or when the minimum geometric distance is less than or equal to the board edge safety distance.
[0014] Preferably, the solder mask opening or bare copper area constraint verification has a solder mask opening mode and a bare copper area mode; in the solder mask opening mode, a set of solder mask openings is generated according to the primitive operations and layer polarity of the solder mask layer, and the distance between the identified silkscreen white ink block and the set of solder mask openings is verified; in the bare copper area mode, the set of solder mask openings is intersected with the copper pattern of the circuit layer on the same side to form a set of bare copper areas, and the distance between the identified silkscreen white ink block and the set of bare copper areas is verified; when an intersection occurs or the distance is less than the solder mask safety distance, it is judged as non-compliant.
[0015] Preferably, the drilling mechanical structure constraint verification includes: retrieving the drilled entities within the normal projection range of the identified silkscreen white ink block on the board surface; determining whether the drilled entity is a through hole, a non-through hole, or a hole with uncertain attributes by combining the metallization properties, hole type, hole diameter, whether it is associated with circuit pads, whether there is a solder mask opening, and manufacturing square hole classification information of the drilled entity; when the drilled entity is a non-through hole and intersects with the identified silkscreen white ink block or the distance is less than the safety distance for non-through holes, it is judged as non-compliant; when the drilled entity is a hole with uncertain attributes, it is marked as pending review; the risk of the bare copper area corresponding to the through hole is still determined by the solder mask opening or bare copper area constraint verification.
[0016] Preferably, the spatial index is at least one of R-tree index, quadtree index, uniform grid index, or bounding box hierarchy; the spatial query is executed by the accessor according to the preset constraint order, and the review status of the currently identified silkscreen white ink block is recorded using a three-value status: compliant, non-compliant, and pending review; when the status changes to non-compliant, the subsequent spatial query of the current object is terminated and the corresponding temporary geometric object is released.
[0017] Preferably, the bounding box expansion includes expanding the original bounding box of the identified silkscreen white ink block outward in four directions by a display expansion distance, the default value of which is 0.5mm; the associated layer context includes at least the silkscreen layer and circuit layer of the corresponding face, and adds a solder mask layer, a drill layer or a board frame layer according to the review status; the result object also includes a unique identifier, board side identification, rule version, physical area, review status and reason for review.
[0018] Preferably, the method further includes: performing a union operation on the geometric surfaces of all identified screen-printed white ink blocks to obtain the total coverage area of the white ink blocks; performing a union operation on the geometric surfaces of identified screen-printed white ink blocks marked as compliant to obtain the coverage area of compliant white ink blocks; determining a statistical benchmark area based on the effective board area, calculating the total coverage rate of white ink blocks and the coverage rate of compliant white ink blocks respectively, and outputting them separately for the front and back sides of the printed circuit board; the coverage rate is used to characterize the ink coverage state of the board surface and serves as a reference parameter for evaluating the screen printing process and the heat dissipation conditions of the board surface.
[0019] Preferably, the front review task and the back review task use a read-only layer context, an independent accessor, and an independent result vector; the front review task and the back review task are executed in parallel when the geometry calculation library meets the thread safety conditions and the computing resources meet the preset requirements, otherwise they are executed serially; each task first writes the identification attributes and review status into an independent result object, and then updates the internal silkscreen entity uniformly after the task is completed.
[0020] This invention also provides an adaptive recognition and compliance review system for screen-printed white ink blocks, comprising: a control flow execution module for performing rule-based error prevention verification, parameter configuration, lifecycle management, and front / back task scheduling; a layer parsing module for extracting and normalizing data from the screen-printed layer, solder mask layer, circuit layer, drill layer, and board frame layer, and constructing effective board areas; a candidate recognition module for performing screen-printed connected domain partitioning, layer polarity Boolean operations, area filtering, and rule shape fitting with absolute and relative tolerances; a compliance verification module for performing board frame physical constraint verification, solder mask window or bare copper area constraint verification, and drill mechanical structure constraint verification based on spatial index, and outputting compliant, non-compliant, or pending review status; a result encapsulation module for setting recognition attributes, expanding bounding boxes, binding associated layer contexts, and writing area and status data; and a result output module for outputting review results and calculating the total white ink block coverage and compliant white ink block coverage.
[0021] The present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein the processor executes the computer program to implement the method described therein.
[0022] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described herein.
[0023] Compared with the prior art, the adaptive recognition and compliance review method and system for screen printing white ink blocks of the present invention has the following beneficial effects: 1. By decoupling control flow from computation flow, rule management, task scheduling, and result output do not intrude into the core geometric algorithm, making it easier to isolate and execute positive and negative tasks serially or in parallel.
[0024] 2. By using polar Boolean operations on silkscreen connected regions, the final single continuous solid surface, rather than the number of original primitives, is used as the candidate condition, which can be compatible with white oil blocks formed by single region references and combinations of multiple references.
[0025] 3. First, perform coarse area filtering, then perform regular shape fitting and multi-level spatial query, so that the high-cost operation only applies to a small number of candidate objects whose area meets the requirements.
[0026] 4. Regular shape fitting uses absolute deviation, relative deviation, and fillet radius conditions simultaneously, which can reduce the adaptation deviation of fixed absolute tolerance on objects of different sizes.
[0027] 5. By combining the verification of effective board area inclusion relationship and boundary distance, it is possible to identify situations where the object is located outside the board, inside the groove or hollow area, or where the distance from the board edge is insufficient.
[0028] 6. By using the solder mask opening mode and the bare copper area mode, different process rules can be met for screen printing to solder mask opening and screen printing to the actual bare copper area, respectively.
[0029] 7. Drilling verification integrates hole metallization properties, hole type, hole diameter, pad association, and solder mask opening status, which can reduce misclassification caused by relying solely on metallization properties.
[0030] 8. By adopting a three-value status of compliant, non-compliant, and pending review, objects that clearly violate process rules can be distinguished from objects with incomplete data or uncertain attributes.
[0031] 9. Enhanced bounding boxes and multi-layer context binding enable process engineers to quickly view the relative positions of white solder mask blocks to circuit copper patterns, solder mask openings, drill holes, and board outlines.
[0032] 10. Calculate the total coverage of white ink blocks and the coverage of compliant white ink blocks separately to avoid mistaking compliant objects for the actual total ink coverage level.
[0033] 11. In the actual test samples provided, coarse filtering by area and shape can eliminate more than 90% of interfering graphics formed by characters, outlines, and unclosed identifiers; with a spatial index already established, the candidate verification stage for millions of primitive samples can achieve millisecond-level response. The specific processing time varies with data complexity, index construction method, and hardware resources.
[0034] 12. By enabling immediate interruption at the candidate level, timely release of task-independent result objects and temporary geometry objects, the stability requirements of continuous batch review can be met; it can run continuously for 24 hours in a real test environment, and the actual running capacity depends on the deployment environment and task load. [Attached Image Description] Figure 1 This is a flowchart illustrating the overall process of the method of the present invention.
[0035] Figure 2 This is a flowchart of the area coarse filtering and regular shape fitting of candidate screen-printed white ink blocks for this invention.
[0036] Figure 3 This is a flowchart of the triple exclusivity check and three-value state processing of the present invention.
Detailed Implementation Methods
[0037] It should be noted that in the embodiments of the present invention, all directional indications (such as up, down, left, right, front, back, etc.) are limited to relative positions on the specified view, rather than absolute positions.
[0038] Furthermore, in this invention, descriptions involving "first," "second," etc., are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0039] This invention relates to the fields of electronic manufacturing automation, computer-aided manufacturing, electronic design automation, and printed circuit board manufacturability design review. Specifically, it relates to a method and system for adaptively identifying, cross-layer process compliance verification, result encapsulation, and coverage statistics of large-area solid white ink patterns in silkscreen layers during the digital production preparation process of printed circuit boards.
[0040] The white ink block referred to in this invention is a functional graphic formed or intended to be formed by white screen printing ink in the screen printing layer of a printed circuit board, having a continuous solid area and a predetermined size. This graphic can be used for area marking, covering the underlying graphic of non-soldered areas, or providing auxiliary surface insulation in non-soldered areas. The white ink block is different from the solder mask layer itself; this invention determines whether the white ink block intrudes into solder mask openings or bare copper areas based on solder mask layer and circuit layer data.
[0041] In this specification, bare copper area refers to the actual exposed copper area formed by the intersection of solder mask opening and copper pattern of circuit layer on the same side; mil is a unit of length, 1 mil equals 0.0254 mm; Design for Manufacturability (DFM) review refers to the manufacturability check of design or manufacturing data based on manufacturing process rules.
[0042] Please see Figures 1 to 3The purpose of this invention is to provide an adaptive identification and compliance review method and system for white ink blocks in screen printing. In the absence of semantic tags for white ink blocks, a continuous solid surface that can be reviewed is formed from disordered screen printing vector primitives. The number of candidates is reduced by area coarse filtering and regular shape fitting with manufacturing tolerance. Then, cross-layer exclusive verification is performed by utilizing the comprehensive attributes of effective board area, solder mask opening or bare copper area and drill hole, thereby improving the accuracy, computational efficiency and convenience of white ink block identification and process review.
[0043] This invention employs a software architecture that decouples control flow from computation flow. The control flow handles rule-based error prevention, layer parsing and scheduling, parameter configuration, front-side and back-side task management, lifecycle control, and result distribution. The computation flow handles silkscreen connectivity partitioning, layer polarity Boolean operations, area calculation, rule shape fitting, spatial index lookup, and multi-layer constraint verification. The results and interaction section handles state management, context binding, coverage statistics, and front-end reporting. All parts exchange data through standardized data objects and independent result vectors.
[0044] The method of the present invention includes the following steps: S101, Pre-processing Environment Check. Acquire digital manufacturing data for the printed circuit board, rule configuration vectors, and work step information. The control flow actuator retrieves active white ink block review sub-rules, confirms the number of active sub-rules is one, and verifies the current work step pointer, dataset identifier, and board surface information. If the number of rules is abnormal, the work step is invalid, or the key layers required for target verification are missing, the review is aborted and configuration anomaly information is output. For missing layers that only affect local verification and not candidate identification, the corresponding object can be set to pending review after candidate generation.
[0045] S102, Multi-layer Data Parsing and Coordinate Normalization. Extracts top-layer silkscreen, bottom-layer silkscreen, top-layer solder mask, bottom-layer solder mask, top-layer circuitry, bottom-layer circuitry, drill data, and board outline data. Standardizes length units, coordinate precision, and board surface orientation, and parses translation, rotation, mirroring, repeating steps, and positive / negative polarity operations. The bottom-layer data is mirrored according to a unified board surface reference, ensuring that the top-layer, bottom-layer, drill, and board outline data are in the same board-level coordinate system. For the solder mask layer, a set of solder mask openings is formed based on blinking, drawing, area filling, and polarity operations; for the circuitry layer, an actual copper pattern set is formed; for the drill layer, the hole diameter, hole type, metallization properties, and their relationship with the pads are read.
[0046] S103, Construct the effective board area. Identify the outer contour, inner groove, and cutout contour in the board frame layer. Determine the area enclosed by the outer contour according to the contour inclusion relationship, and subtract the inner groove, cutout, and other non-board areas to form the effective board area. For panel data, effective board areas can be constructed separately according to the sub-board frames, and the silkscreen graphics can be assigned to the corresponding sub-boards. When the board frame is not closed, the contour direction conflicts, or the inclusion relationship cannot be determined, the objects that depend on the board frame verification are set to pending verification.
[0047] S104, Adaptive Parameter Configuration and Double-Sided Task Issuance. Set the system default lower and upper limits for the white oil block area window, preferably 40.0 mm² and 150.0 mm², respectively; set the absolute boundary deviation threshold, preferably 2 mil; set the relative boundary deviation threshold, corner radius parameters, board edge safety distance, solder mask safety distance, via safety distance, non-via safety distance, and display extension distance. The rule manager reads the user-configured values or manufacturer-configured values and overwrites the system default values after the configuration values pass range and unit validation. Then, it constructs the front and back parameter combinations respectively and issues the review task.
[0048] S105, Silkscreen Connectivity Partitioning and Polar Boolean Operations. For the silkscreen layer of the target board, the bounding boxes of each primitive are written into the spatial index. A connected graph is established based on the contact, intersection, or adjacency relationships between primitives within the connectivity tolerance. Independent silkscreen connected components are obtained by traversing the connected components. For each silkscreen connected component, a geometric union is first performed on positive polarity primitives, then negative polarity primitives are subtracted or cleared, and the resulting contour is checked for closure, self-intersection, and necessary geometric repairs. Connected components that can form a single continuous solid surface proceed to subsequent processing; connected components that form multiple separate surfaces, cannot form a closed surface, or are mainly composed of thin line strokes are discarded. When the original connected component contains only one region reference, it can directly form a surface; when the original connected component contains multiple references but can form a single continuous solid surface through polar Boolean operations, it is also allowed to proceed to subsequent processing.
[0049] S106, Area Coarse Filtering. Calculates the absolute area of continuous solid surfaces, discarding objects with areas smaller than the lower limit or larger than the upper limit of the area window. Area calculation is performed before fitting complete regular shapes, preventing excessively large or small shapes from entering subsequent fitting and multi-layer spatial verification. The area window is dynamically configured by the manufacturer's rules to adapt to the definition of white oil block size for different orders or manufacturing processes.
[0050] S107, Shape Fitting with Tolerance Rules. Establish circular, rectangular, rounded rectangle, and elliptical fitting models for objects filtered by area. The circular model fits the center and radius based on boundary points; the rectangular model determines the center, long side, short side, and rotation angle based on the minimum bounding rectangle; the rounded rectangle model determines the rounded radius based on the rectangular parameters; the elliptical model fits the center, major and minor axes, and rotation angle based on boundary points. Calculate the maximum bidirectional distance from the object boundary to the model boundary and from the model boundary to the object boundary. The maximum bidirectional distance should not exceed the absolute boundary deviation threshold, and the ratio of the maximum bidirectional distance to the long side dimension of the object's minimum bounding rectangle should not exceed the relative boundary deviation threshold. Rounded rectangles should also meet the range specified by the rounded radius parameter. Objects satisfying at least one model are identified as identified silkscreen white ink blocks.
[0051] S108, Spatial Indexing and State Initialization. Establish R-tree, quadtree, uniform grid, or bounding box hierarchical structures for valid board area boundaries, solder mask openings, copper trace patterns, and drill holes. For each identified silkscreen white ink block, create an accessor, saving the geometric surface, board side identification, search bounding box, process parameters, and review status. Review status includes compliant, non-compliant, and pending review. The accessor performs verification in the order of board outline physical constraints, solder mask opening or bare copper area constraints, and drill hole mechanical structure constraints; when the status is determined to be non-compliant, subsequent queries for the current object are stopped.
[0052] S109, Physical Constraint Verification of Board Frame. This verifies whether the identified white ink block is completely contained within the valid board area and calculates the minimum geometric distance between it and the boundary of the valid board area. If the identified white ink block is entirely located outside the board, in an inner groove, or in a cutout area, partially extends beyond the valid board area, contacts or overlaps with the boundary, or the minimum geometric distance is less than the board edge safety distance, it is considered non-compliant. The board edge safety distance can be set to 0 by default to at least prohibit contact and overlap; when using V-cutting, milling, or other board separation methods, a non-zero safety distance can be configured according to the corresponding process.
[0053] S110, Solder mask opening or bare copper area constraint verification. Select either solder mask opening mode or bare copper area mode according to the rule configuration. In solder mask opening mode, directly check the intersection relationship and minimum distance between the identified silkscreen white ink blocks and the solder mask opening set. In bare copper area mode, intersect the solder mask opening set with the copper pattern of the same side to form the actual bare copper area set, and then check the intersection relationship and minimum distance between the identified silkscreen white ink blocks and the bare copper area set. During the query, the search bounding box is expanded outward according to the solder mask safety distance, preferably by 2 mil. When an intersection occurs or the distance is less than the solder mask safety distance, it is determined that there is a risk of silkscreen covering the solder surface and marked as non-compliant; if the solder mask polarity or circuit layer attribute cannot be determined, it is marked as pending review.
[0054] S111, Drilling Mechanical Structure Constraint Verification. This involves retrieving drilled entities within the normal projection range of the identified silkscreen white ink block on the board surface. Based on the hole's metallization attributes, hole type, hole diameter, whether it is associated with circuit pads, the presence of solder mask openings, and manufacturing square hole classification information, the hole is determined to be a through hole, a non-through hole, or a hole with uncertain attributes. Non-through holes include positioning holes, mechanical mounting holes, and non-metallized grooves. Non-through holes that intersect with identified silkscreen white ink blocks or are less than the safe distance for non-through holes are marked as non-compliant. Through holes may be allowed to be covered or have their distance verified according to manufacturing rules, but the risk of exposed copper on their associated pads is still determined by S110. Holes with uncertain attributes are placed in a pending review state.
[0055] S112, Attribute Marking and Result Encapsulation. Set identification attributes for identified silkscreen white ink blocks and write unique identifier, board side, physical area, rule version, and review status. Extract its original bounding box and expand it outwards in four directions, with a default expansion of 0.5mm, forming an enhanced bounding box. Bind the corresponding silkscreen layer and circuit layer; for non-compliant or pending review objects, further bind the solder mask layer, drill layer, or board frame layer that triggers the result, and record the triggering rule and the reason for pending review. When the front-end selects a result object, simultaneously highlight the white ink block, associate copper graphics, and the process object with trigger constraints.
[0056] S113, Coverage Statistics and Result Output. Perform a union operation on the geometric surfaces of all identified screen-printed white ink blocks to obtain the total coverage area of the white ink blocks; perform a union operation on the geometric surfaces of compliant objects to obtain the compliant white ink block coverage area. Calculate the total white ink block coverage rate and the compliant white ink block coverage rate using the effective board area on the front and back sides as statistical benchmarks, respectively. The total white ink block coverage rate reflects the actual identified ink coverage level, while the compliant white ink block coverage rate reflects the coverage level that meets process constraints. Coverage rate can be used as a reference parameter for screen printing process status and board surface heat dissipation conditions, and should be included in the Design for Manufacturability (DFM) report along with the review details.
[0057] S114, Parallel Execution and Memory Management. Front and back face tasks use read-only layer contexts, independent accessors, and independent result vectors, respectively. When the geometry calculation library is thread-safe and computational resources are sufficient, the two face tasks are executed in parallel; otherwise, they are executed serially. During task processing, shared original silkscreen primitives are not directly modified; instead, attributes and states are first written to independent result objects, which are then updated uniformly by the control flow upon task completion. Temporary surfaces, lookup sets, and accessors are released after each object completes processing; temporary indexes and caches are released after each face task ends to prevent continuous memory growth during continuous processing.
[0058] Corresponding to the above methods, this invention provides an adaptive recognition and compliance review system for screen-printed white ink blocks, including a control flow execution module, a layer parsing module, an effective board area construction module, a parameter configuration module, a candidate recognition module, a compliance verification module, a result encapsulation module, and a result output module. The control flow execution module is responsible for rule-based error prevention verification, lifecycle management, and front / back task scheduling; the layer parsing module is responsible for manufacturing data reading and coordinate and polarity normalization; the effective board area construction module is responsible for forming effective board areas based on the board frame's outer contour, inner grooves, and hollow areas; the parameter configuration module is responsible for merging system default parameters and manufacturer parameters; the candidate recognition module is responsible for connected component partitioning, polarity Boolean operations, area filtering, and regular shape fitting; the compliance verification module is responsible for board frame, solder mask or bare copper, and drill hole constraint verification; the result encapsulation module is responsible for attribute labeling, ternary state recording, bounding box expansion, and context binding; and the result output module is responsible for linked display, coverage statistics, and report generation.
[0059] The present invention also provides an electronic device and a computer-readable storage medium. The electronic device includes a processor, a memory, and a data interface, wherein a program stored in the memory, when executed by the processor, performs the aforementioned data parsing, candidate identification, compliance verification, and result encapsulation processes.
[0060] The present invention will be further described below. The parameters listed are for illustrating possible implementations, and the manufacturer may adjust the corresponding parameters according to actual equipment capabilities and process specifications. Unless otherwise stated, all geometric distances are calculated in a plate-level coordinate system after unit and coordinate normalization.
[0061] Manufacturing data parsing and candidate white oil block identification: This embodiment runs on an industrial workstation with a processor, memory, and display device. Input data includes top silkscreen, bottom silkscreen, top solder mask, bottom solder mask, top circuitry, bottom circuitry, board outline, and drill data. The layer parsing module determines the layer type based on file attributes, naming rules, and user mapping, and uniformly converts it to millimeter coordinates. For Gerber data, it parses hole diameter definitions, blink commands, drawing commands, arc commands, area fill commands, layer polarity, and repeat step; for drill data, it parses tool tables, hole diameters, slots, and metallization attributes.
[0062] When the input is low-level data, it is mirrored using the board-level reference axis, and then rotation and translation transformations are superimposed. Each layer saves the transformation parameters from the original coordinates to the board-level coordinates so that the review results can be reverse-located back to the source file. For panel data, sub-board identifiers are created after repeated step-instantiation; the outer contour of the board frame, the inner groove, and the cutout area constitute the effective board area of each sub-board according to the inclusion relationship.
[0063] The rule manager reads the following parameters: lower area limit 40.0 mm², upper area limit 150.0 mm², absolute boundary deviation 2 mil, relative boundary deviation, corner radius, solder mask safety distance 2 mil, board edge safety distance, and display extension distance 0.5 mm. If a valid configuration exists in the manufacturer's configuration file, the corresponding default value is replaced.
[0064] The candidate recognition module first establishes a bounding box index for the silkscreen primitives and divides connected components based on contact, intersection, or adjacency relationships within the connection tolerance. For each connected component, a union is performed on the positive polar primitives, and then the negative polar primitives are subtracted and removed. If the processing result forms only a closed, continuous solid surface, its area is calculated; if the area is not within the configuration window, the processing of the current connected component ends directly.
[0065] Objects meeting the area requirements are fitted to shape. For rectangles and rounded rectangles, the minimum bounding rectangle is calculated first, and then the existence of stable rounded corners and their radii is determined based on the corner boundary points. For circles and ellipses, fitting parameters are calculated based on boundary sampling points. The system samples from both the object boundary and the model boundary and calculates the bidirectional maximum distance. When the bidirectional maximum distance simultaneously satisfies both absolute and relative boundary deviations, and the rounded corner radius of the rounded rectangle meets the configuration conditions, it is identified as an identified silkscreen white ink block.
[0066] Triple compliance verification: For each identified white ink silkscreen block, a physical constraint verification of the board frame is first performed. The system uses the valid board area to determine complete inclusion, and then calculates the minimum geometric distance between it and the boundary of the valid board area. If the graphic is entirely outside the board, located in the inner groove or cutout area, partially exceeds the boundary, touches the board edge, or is less than the safe distance from the board edge, the status is set to non-compliant and subsequent queries are stopped.
[0067] After the board frame verification is passed, either the solder mask opening mode or the bare copper area mode is selected according to the manufacturer's rules. The solder mask opening mode is suitable for processes that prohibit silkscreen from encroaching on any solder mask openings; the bare copper area mode first intersects the solder mask opening with the copper pattern of the circuit on the same side, and only checks the actual exposed copper area. The search bounding box of the identified white solder mask block is expanded outward according to the solder mask safety distance and then the spatial index is queried. When the object is found, precise intersection and distance calculation are performed.
[0068] After the solder mask verification passes, drilling verification is performed. The system reads the hole metallization attributes, hole type, hole diameter, circuit pad association, solder mask opening, and manufacturer classification information. When non-metallized positioning holes, mechanical mounting holes, or slot holes intersect with white solder mask blocks, the status is set to non-compliant. Whether vias are allowed to cover is determined by the manufacturer's rules; if a via corresponds to a solder mask opening or bare copper pad, its welding risk has already been handled in the solder mask verification. When drilling attributes are missing or multiple attributes conflict, the status is set to pending review.
[0069] Results Encapsulation and Coverage Statistics: After all verifications are completed, the results encapsulation module writes a unique identifier, board side identification, area, rule version, and compliance status to the identified white solder mask blocks. The original bounding box is expanded outward by 0.5mm to form an enhanced bounding box. Compliant objects are bound to the silkscreen layer and circuit layer; non-compliant objects are also bound to the board outline boundary, solder mask opening, bare copper area, or drill hole that triggered the rule; objects awaiting review are bound to the source layer with missing attributes and the reason for review.
[0070] The coverage statistics module performs a union operation on all identified white paint block surfaces to obtain the total coverage area; it also performs a union operation on compliant object surfaces to obtain the compliant coverage area. The top and bottom surfaces are calculated using their respective effective board area as the denominator. If a comprehensive metric for both surfaces is required, the sum of the effective areas of the top and bottom surfaces is used as the denominator, and the sum of the corresponding coverage areas of both surfaces is used as the numerator. The resulting objects and coverage rates are written to the DFM report, and clicking on the results on the front end simultaneously highlights the white paint blocks and associated layers.
[0071] Parallel scheduling and continuous execution: The front and back tasks share read-only board outline and drilling data, each holding its own silkscreen, solder mask, circuit context, accessor, and result vector. When the geometry calculation library meets thread safety requirements and memory resources are sufficient, the two tasks execute in parallel; otherwise, they are executed serially by the task scheduler. During the calculation process, shared silkscreen primitives are not directly modified; after the task is completed, the control flow writes the attributes back uniformly according to a unique identifier.
[0072] After each candidate object is processed, the temporary surface, exact query results, and accessor are released immediately; after each panel task is completed, the temporary space index and cache are released. Error information is logged for abnormal files or objects with failed geometric operations, and these are marked for review without affecting the continued processing of other objects. This method limits memory accumulation during long-running batch operations.
[0073] While maintaining the candidate generation and triple exclusivity verification concepts of this invention, the regular shape model can also add confirmed parametric shapes based on the actual white oil template of the manufacturer; the spatial index can be an R-tree, quadtree, uniform grid or bounding box hierarchy; the board frame distance can be calculated using the minimum Euclidean distance, or it can be achieved by shrinking the effective board area and then judging whether the candidate is completely contained; the solder mask constraint can be directly checked by checking the window set, or by checking the intersection of the window and the circuit copper pattern; the results can be output to a desktop client, web front-end, manufacturing execution system or structured manufacturability design report.
[0074] The above description is only a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any modifications, equivalent substitutions and improvements made within the concept of the present invention should be included within the patent protection scope of the present invention.
Claims
1. A method for screen white oil block adaptive identification and compliance review, characterized in that, include: The digital manufacturing data, white ink block inspection rules, and work step information of the printed circuit board are obtained. The digital manufacturing data is normalized in terms of coordinates, units, board side and layer polarity. The process data of silk screen layer, solder mask layer, circuit layer, drilling layer and board frame layer are extracted. The effective board area is constructed based on the outer contour of the board frame layer, the inner groove, and the hollow area. The area window, geometric fitting parameters, and process safety parameters are determined according to the white oil block review rules, and review tasks for the front and back of the printed circuit board are generated respectively. The silkscreen layer primitives on the target board are divided into connected components. Geometric union and geometric difference are performed on the primitives in each silkscreen connected component according to the layer polarity to form a closed geometric surface. The silkscreen connected components that can form a single continuous solid surface are selected as the objects to be screened. Calculate the surface area of the objects to be filtered, and retain the objects whose area is within the area window; For the retained objects to be screened, fit at least one regular shape among circles, rectangles, rounded rectangles and ellipses according to the geometric fitting parameters, and retain objects that simultaneously meet the absolute boundary deviation condition and the relative boundary deviation condition as identified silkscreen white ink blocks; For each identified white ink block, the physical constraint verification of the board frame, the constraint verification of the solder mask opening or bare copper area, and the constraint verification of the drilling mechanical structure are performed sequentially based on the spatial index. When any constraint is found to be in violation, the currently identified white ink block is marked as non-compliant and its subsequent verification is stopped. When the layer information or attribute information required for verification cannot be determined, the currently identified white ink block is marked as pending review. When all constraints are passed, the currently identified white ink block is marked as compliant. The identified silkscreen white ink block is assigned an identification attribute and written to the result set. The bounding box of the object in the result set is expanded, the associated layer context is bound and the area and status data are written. The result is then output to the review result container.
2. The method of claim 1, wherein, Before performing the normalization process, verify the number of white paint block review sub-rules in the active state, the current work step pointer, and the integrity of key layers; if there is not one white paint block review sub-rule in the active state, the current work step pointer is invalid, or the key layer required for the target verification is missing, the current review is terminated and configuration exception information is output.
3. The method of claim 1, wherein, The digital manufacturing data includes at least one of Gerber data, drilling data, and manufacturing data containing equivalent layer geometry information; the normalization process includes parsing mirroring, rotation, translation, repeated stepping, and positive and negative polarity operations to transform the process data of each layer to the same plate-level coordinate system, and to complete the mirroring transformation according to the unified plate surface reference when the bottom layer data needs to be mirrored.
4. The method of claim 1, wherein, The processing of the silkscreen connected regions includes: performing a geometric union on positive polarity silkscreen primitives, subtracting negative polarity or clear polarity silkscreen primitives from the geometric union result, and performing closure and self-intersection checks on the obtained contours; when the processing result forms multiple mutually separated solid surfaces, cannot form closed surfaces, or forms non-solid surfaces dominated by fine line strokes, the corresponding silkscreen connected regions are removed.
5. The method of claim 1, wherein, The area window has a system default lower limit and a system default upper limit, with a default range of 40.0 mm² to 150.0 mm²; the geometric fitting parameters include an absolute boundary deviation threshold with a default value of 2 mil, a relative boundary deviation threshold, and a corner radius parameter; the system reads user configuration values or manufacturer configuration values from the rule manager and overrides the corresponding system default values when the configuration values are valid.
6. The method of claim 1, wherein, The regular shape fitting includes: establishing at least one of the following fitting models based on the boundary points of the object to be screened: circular, rectangular, rounded rectangle, and elliptical; calculating the bidirectional maximum distance from the boundary of the object to be screened to the boundary of the fitting model and from the boundary of the fitting model to the boundary of the object to be screened; comparing the bidirectional maximum distance with an absolute boundary deviation threshold; and comparing the ratio of the bidirectional maximum distance to the length of the smallest bounding rectangle of the object to be screened with a relative boundary deviation threshold; for the rounded rectangle fitting model, the rounded radius determined by the corner profile is also compared with the rounded radius parameter.
7. The method of claim 1, wherein, The physical constraint verification of the board frame includes: determining whether the identified white ink block is completely contained within the effective board area; calculating the minimum geometric distance between the identified white ink block and the boundary of the effective board area; when the identified white ink block is not completely contained within the effective board area, or when the minimum geometric distance is less than or equal to the board edge safety distance, it is determined to be non-compliant.
8. The method of claim 1, wherein, The solder mask opening or bare copper area constraint verification has a solder mask opening mode and a bare copper area mode. In the solder mask opening mode, a set of solder mask openings is generated based on the primitive operations and layer polarity of the solder mask layer, and the distance between the identified silkscreen white ink block and the set of solder mask openings is verified. In the bare copper area mode, the set of solder mask openings is intersected with the copper pattern of the circuit layer on the same side to form a set of bare copper areas, and the distance between the identified silkscreen white ink block and the set of bare copper areas is verified. When an intersection occurs or the distance is less than the solder mask safety distance, it is judged as non-compliant.
9. The method of claim 1, wherein, The drilling mechanical structure constraint verification includes: retrieving the drilled entities within the normal projection range of the identified silkscreen white ink block; determining whether the drilled entity is a through hole, non-through hole, or hole with uncertain attributes by combining the metallization attributes, hole type, hole diameter, whether it is associated with circuit pads, whether there is a solder mask opening, and manufacturing square hole classification information of the drilled entity; when the drilled entity is a non-through hole and intersects with the identified silkscreen white ink block or the distance is less than the safety distance for non-through holes, it is judged as non-compliant; when the drilled entity is a hole with uncertain attributes, it is marked as pending review; the risk of the bare copper area corresponding to the through hole is still determined by the solder mask opening or bare copper area constraint verification.
10. A system for screen white oil block adaptive identification and compliance review, comprising: include: The control flow execution module is used for execution rule error prevention verification, parameter configuration, lifecycle management, and forward and reverse task scheduling; The layer parsing module is used to extract and normalize the data of the silkscreen layer, solder mask layer, circuit layer, drill layer and board frame layer, and construct the effective board area; The candidate recognition module is used to perform silkscreen connected component partitioning, layer polarity Boolean operations, area filtering, and regular shape fitting with absolute and relative tolerances. The compliance verification module is used to perform physical constraint verification of board frame, constraint verification of solder mask opening or bare copper area, and mechanical structure constraint verification of drilling based on spatial index, and output compliance, non-compliance or pending review status; The result encapsulation module is used to set recognition attributes, expand the bounding box, bind the associated layer context, and write area and status data. The results output module is used to output the review results and calculate the total white oil block coverage and the compliant white oil block coverage.
Citation Information
Patent Citations
Method for checking hole problems of printed circuit board
CN106202775A
Line problem check method for printed circuit board
CN106294926A
Detection method and device of surface-mounted bonding pad
CN107832514A
Method for evaluating manufacturability of PCB bonding pad based on gerber file
CN115758793A
Methods for evaluating PCB pad manufacturability based on Gerber files
CN115758793B
