Plate matching method and device based on borehole coordinates

By defining the preset contour center as the origin of the coordinate system during panel matching, selecting the reference position and drilling distance, and determining the reference drilling coordinates, the problem of low panel matching accuracy is solved, and higher matching accuracy and reliability are achieved.

CN116776166BActive Publication Date: 2026-04-07GREATECH SUBSTRATES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-05
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In existing technologies, the accuracy of panel matching methods is low, making it difficult to accurately match panels with different rotation angles, which affects the guidance of upgrade designs.

Method used

By obtaining the preset contour of the target panel, an initial coordinate system is constructed with the center as the origin. N reference positions are selected on the preset contour, and the distance between each drill hole is calculated and determined. The nearest drill hole is selected as the reference drill hole, and its coordinates on the initial coordinate system are determined and matched with the drill hole coordinates of the panel in the historical database.

Benefits of technology

It improves the consistency and accuracy of drilling coordinates, reduces the computational load of matching tasks, and improves the accuracy and reliability of plate matching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116776166B_ABST
    Figure CN116776166B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of plate matching, and particularly relates to a plate matching method and device based on drilling coordinates. The application defines the center of the preset contour of the target plate as the coordinate origin, constructs an initial coordinate system with the coordinate origin, selects N reference positions on the preset contour, calculates the distance between any reference position and each drilling hole, determines the drilling hole closest to each reference position as the reference drilling hole according to the distance, determines the initial drilling hole coordinates of each reference drilling hole in the initial coordinate system, and matches the initial drilling hole coordinates with the initial drilling hole coordinates of any plate in the historical database. By determining the N reference drilling holes as the basis for plate matching, the calculation amount of the matching task is reduced. By taking the center of the preset contour as the coordinate origin to construct the initial coordinate system, it is ensured that the coordinates of the drilling holes are not affected by the size of the preset contour, the consistency and accuracy of the coordinates of the drilling holes are improved, and the accuracy of plate matching is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of plate matching technology, and in particular to a plate matching method and apparatus based on drilling coordinates. Background Technology

[0002] In the upgrade design of circuit boards, it is necessary to ensure that all designs in the upgrade board, except for the upgrade content, are consistent with the original board. Therefore, matching the upgrade board with the original board and measuring the consistency between the upgrade board and the original board is of great significance for guiding the upgrade design of the board.

[0003] In existing technologies, holes at fixed positions on the boards are typically selected for matching between boards. However, since boards may rotate, different rotation angles will result in holes at different positions for matching. Therefore, the above matching method makes it difficult to accurately match the upgraded boards with the original boards, resulting in low accuracy in board matching and failing to accurately guide the upgrade design of the boards.

[0004] Therefore, in the field of sheet metal matching technology, how to improve the matching accuracy between sheets has become an urgent problem to be solved. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide a plate matching method and apparatus based on drilling coordinates to solve the problem of low matching accuracy in existing plate matching methods.

[0006] In a first aspect, embodiments of the present invention provide a plate matching method based on drilling coordinates, the plate matching method comprising:

[0007] Obtain the target panel and its preset outline, define the center of the preset outline as the origin of the coordinate system, and construct an initial coordinate system with the origin of the coordinate system.

[0008] N reference positions are selected on the preset contour. The distance between any reference position and each borehole is calculated. The borehole closest to each reference position is determined as the reference borehole based on the distance. N is an integer greater than 0.

[0009] Determine the initial borehole coordinates for each reference borehole in the initial coordinate system;

[0010] The initial drilling coordinates are matched with the initial drilling coordinates of any plate in the historical database.

[0011] Secondly, embodiments of the present invention provide a plate matching device based on drilling coordinates, the plate matching device comprising:

[0012] The coordinate system construction module is used to obtain the target board and the preset outline of the target board, define the center of the preset outline as the coordinate origin, and construct an initial coordinate system with the coordinate origin;

[0013] The reference drilling determination module is used to select N reference positions on the preset contour, calculate the distance between any reference position and each drilling hole, and determine the drilling hole closest to each reference position as the reference drilling hole based on the distance, where N is an integer greater than 0;

[0014] The borehole coordinate determination module is used to determine the initial borehole coordinates of each reference borehole in the initial coordinate system;

[0015] The panel matching module is used to match the initial drilling coordinates with the initial drilling coordinates of any panel in the historical database.

[0016] The beneficial effects of this invention compared to the prior art are as follows: By acquiring the target board and its preset contour, the center of the preset contour is defined as the origin of the coordinate system. An initial coordinate system is constructed using the origin. N reference positions are selected on the preset contour. The distance between any reference position and each drill hole is calculated. Based on the distance, the drill hole closest to each reference position is determined as the reference drill hole. The initial drill hole coordinates of each reference drill hole in the initial coordinate system are determined. The initial drill hole coordinates are matched with the initial drill hole coordinates of any board in the historical database. By determining N reference drill holes from a large number of drill holes as the basis for board matching, the computational load of the matching task is reduced. Furthermore, by using the center of the preset contour as the origin of the coordinate system to construct the initial coordinate system, the coordinates of the drill holes are not affected by the size of the preset contour, thus improving the consistency and accuracy of the drill hole coordinates and consequently improving the accuracy of board matching. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art 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.

[0018] Figure 1 This is a flowchart illustrating a plate matching method based on drilling coordinates provided in Embodiment 1 of the present invention.

[0019] Figure 2 This is a schematic diagram of a preset contour in a plate matching method based on drilling coordinates provided in Embodiment 1 of the present invention;

[0020] Figure 3This is a schematic diagram of a plate matching device based on drilling coordinates provided in Embodiment 2 of the present invention. Detailed Implementation

[0021] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.

[0022] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0023] It should also be understood that the term “and / or” as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0024] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."

[0025] Furthermore, in the description of this invention and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0026] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of the invention include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0027] It should be understood that the sequence number of each step in the following embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0028] To illustrate the technical solution of the present invention, specific embodiments are described below.

[0029] See Figure 1 This is a flowchart illustrating a plate matching method based on drilling coordinates provided in Embodiment 1 of the present invention. The plate matching method may include the following steps:

[0030] Step S101: Obtain the target panel and its preset outline, define the center of the preset outline as the origin of the coordinate system, and construct an initial coordinate system with the origin of the coordinate system.

[0031] In this case, the board to be matched has a large number of circular drill holes. In the board matching task, by selecting some of the drill holes and matching the board according to the coordinates of the drill holes, the amount of computation of the matching task can be effectively reduced.

[0032] The preset contour can be the outer frame defined by different levels of areas in the target board, used to help define the boundary area of ​​the design. Then each position on the target board has a unique coordinate relative to the preset contour.

[0033] In this embodiment, the center of the preset contour is defined as the origin of the coordinate system, and an initial coordinate system is constructed based on the origin. Even if the size of the preset contour selected for matching panels differs, the position of all drill holes relative to the center of the preset contour remains fixed, thereby ensuring the consistency and accuracy of the drill hole coordinates. The initial coordinate system is then used as the basis for matching the target panel and historical panels to improve the accuracy of panel matching.

[0034] The steps described above—obtaining the target panel and its preset contour, defining the center of the preset contour as the origin of the coordinate system, and constructing an initial coordinate system using the origin of the coordinate system—ensure that the coordinates of the drill hole are not affected by the size of the preset contour, thereby improving the consistency and accuracy of the drill hole coordinates and ultimately improving the accuracy of panel matching.

[0035] Step S102: Select N reference positions on the preset contour, calculate the distance between any reference position and each borehole, and determine the borehole closest to each reference position as the reference borehole based on the distance.

[0036] The boards to be matched have numerous circular drill holes, each with unique coordinates relative to the initial coordinate system. Therefore, this embodiment uses a preset contour as a reference, selects N reference positions on the preset contour, and calculates the distance between any reference position and each drill hole. Based on the distance, the drill hole closest to each reference position is determined as the reference drill hole, resulting in N reference drill holes used as the reference for matching between boards. Here, N is an integer greater than 0, and the specific value of N can be set according to actual conditions. In one embodiment, N = 8 is set, meaning 8 reference positions are selected on the preset contour.

[0037] Optionally, the distance between any reference position and each borehole is calculated, including:

[0038] For any given reference position, determine the reference coordinates of that reference position in the initial coordinate system;

[0039] For any given borehole, determine the initial coordinates of the borehole in the initial coordinate system;

[0040] Calculate the coordinate distance between the reference coordinates and the initial coordinates, and determine the coordinate distance as the distance between the reference position and the borehole;

[0041] Traverse all reference positions and all boreholes, and calculate the distance between any reference position and each borehole.

[0042] Each reference position and each borehole has a unique coordinate relative to the initial coordinate system. The reference coordinates of each reference position and the initial coordinates of each borehole in the initial coordinate system are determined. The distance between the corresponding reference position and the corresponding borehole is represented by the coordinate distance between the reference coordinates and the initial coordinates.

[0043] The above steps involve selecting N reference positions on a preset contour, calculating the distance between any reference position and each drill hole, and determining the drill hole closest to each reference position as the reference drill hole. Based on the distance between the reference position and the drill hole, N reference drill holes are determined from a large number of drill holes as the basis for plate matching, which reduces the computational load of the matching task.

[0044] Step S103: Determine the initial borehole coordinates of each reference borehole in the initial coordinate system.

[0045] Each reference hole has a unique coordinate relative to the initial coordinate system. Therefore, after determining N reference holes, the initial hole coordinates of each reference hole in the initial coordinate system are further determined as the basis for plate matching.

[0046] The steps described above for determining the initial borehole coordinates of each reference borehole in the initial coordinate system provide a data basis for plate matching.

[0047] Step S104: Match the initial drilling coordinates with the initial drilling coordinates of any plate in the historical database.

[0048] The historical database stores the coordinate information of holes drilled in the panels, including the initial hole coordinates. After determining the initial hole coordinates of each reference hole in the target panel in the initial coordinate system, the initial hole coordinates of any panel are obtained. By matching the initial hole coordinates of the target panel with the initial hole coordinates of any panel, the matching result between the target panel and the corresponding panel can be determined.

[0049] The matching result is either that the target board matches any corresponding board, or that the target board does not match any corresponding board. Therefore, the matching result of the target board and multiple other boards can guide the board upgrade design in the board upgrade design.

[0050] Optionally, the initial drilling coordinates are matched with the initial drilling coordinates of any plate in the historical database, including:

[0051] All initial drill coordinates in the target board are combined according to the first preset order to obtain the first drill coordinate sequence of the target board;

[0052] The first drilling coordinate sequence of any plate is obtained from the historical database. The first drilling coordinate sequence of any plate is obtained by combining all the initial drilling coordinates of any plate in a first preset order.

[0053] Calculate the first matching degree between the first drilling coordinate sequence of the target plate and the first drilling coordinate sequence of any plate, and determine the matching result between the target plate and any plate based on the first matching degree;

[0054] Store the first drilling coordinate sequence of the target plate in the historical database.

[0055] In order to improve the reliability and accuracy of board matching, this embodiment combines all the initial drilling coordinates of the target board in a first preset order to obtain the first drilling coordinate sequence of the target board, and calculates the matching degree with the first drilling coordinate sequence of any board in the historical database to obtain the first matching degree between the target board and any board.

[0056] The higher the first matching degree, the higher the probability that the target board is matched with any other board. The lower the first matching degree, the lower the probability that the target board is matched with any other board. Therefore, in this embodiment, the matching result between the target board and any other board is determined based on the first matching degree.

[0057] After obtaining the matching results between the target board and all boards in the historical database, the first drilling coordinate sequence of the target board is stored in the historical database to update the historical database, and the first drilling coordinate sequence of the target board is used as the basis for subsequent board matching.

[0058] Optionally, the matching result between the target panel and any other panel is determined based on the first matching degree, including:

[0059] Obtain the preset matching threshold, compare the first matching degree with the matching threshold, and obtain the comparison result;

[0060] If the comparison result shows that the first matching degree is greater than the matching degree threshold, then the target panel is determined to match any panel.

[0061] The higher the first matching degree, the higher the probability that the target board is matched with any board. Therefore, in this embodiment, the first matching degree and the matching degree threshold are compared to obtain the comparison result. If the comparison result is that the first matching degree is greater than the matching degree threshold, it is determined that the target board is matched with any board. If the comparison result is that the first matching degree is less than or equal to the matching degree threshold, it is determined that the target board is not matched with any board.

[0062] Optionally, all initial drill coordinates of the target board are combined according to a first preset order to obtain a first drill coordinate sequence of the target board, including:

[0063] Starting from the lower left corner of the preset outline, sort the N reference positions in a counter-clockwise order to obtain the first preset order;

[0064] According to the order of each reference position in the first preset sequence, the first borehole coordinates of the reference boreholes corresponding to the N reference positions are combined to obtain the first borehole coordinate sequence.

[0065] In this embodiment, N positions are selected as reference positions on the preset contour. In order to improve the reliability and accuracy of the board matching, the lower left corner of the preset contour is selected as the starting point, and the N reference positions are sorted in a counterclockwise order to obtain the first preset order.

[0066] Then, according to the order of each reference position in the first preset sequence, the first borehole coordinates of the reference boreholes corresponding to the N reference positions can be combined to obtain the first borehole coordinate sequence.

[0067] See Figure 2A schematic diagram of a preset outline is shown. The lower left corner of the preset outline is selected as the starting point and numbered as 1. The eight reference positions are sorted in a counterclockwise order to obtain the first preset order. The eight reference positions are numbered 1-8 to represent the order of the corresponding reference positions in the first preset order.

[0068] Optionally, the board matching method also includes:

[0069] With the origin of the coordinate system as the center, rotate the initial coordinate system on the plane where the plate is located according to the first preset angle to obtain the first coordinate system, and determine the first drilling coordinate of each reference drilling hole on the first coordinate system;

[0070] Rotate the initial coordinate system on the plane where the plate is located according to the second preset angle to obtain the second coordinate system, and determine the second drill coordinate of each reference drill hole on the second coordinate system;

[0071] Rotate the initial coordinate system on the plane where the plate is located according to the third preset angle to obtain the third coordinate system, and determine the third drill coordinate of each reference drill hole on the third coordinate system.

[0072] Correspondingly, the initial drilling coordinates are matched with the initial drilling coordinates of any plate in the historical database, including:

[0073] The initial drilling coordinates, first drilling coordinates, second drilling coordinates, and third drilling coordinates are matched with the initial drilling coordinates, first drilling coordinates, second drilling coordinates, and third drilling coordinates of any plate in the historical database.

[0074] In this embodiment, since the plates may rotate during matching, and the rotation angles are all multiples of 90 degrees, in order to eliminate the influence of plate rotation on the matching results, the initial coordinate system is rotated on the plane where the plate is located with the origin as the center according to the first preset angle, the second preset angle, and the third preset angle, respectively, to obtain the corresponding first coordinate system, second coordinate system, and third coordinate system. The first drill hole coordinates in the first coordinate system, the second drill hole coordinates in the second coordinate system, and the third drill hole coordinates in the third coordinate system for each reference drill hole are determined.

[0075] The initial drilling coordinates, first drilling coordinates, second drilling coordinates, and third drilling coordinates can be matched with the initial drilling coordinates, first drilling coordinates, second drilling coordinates, and third drilling coordinates of any board in the historical database to obtain the matching result between the target board and any corresponding board.

[0076] In one embodiment, the first preset angle is 90 degrees, the second preset angle is 180 degrees, and the third preset angle is 270 degrees, which expands the coordinates of the 8 reference boreholes from 8 to 32, thereby improving the ability to characterize the position of the reference boreholes.

[0077] Optionally, the initial drilling coordinates, first drilling coordinates, second drilling coordinates, and third drilling coordinates are matched with the initial drilling coordinates, first drilling coordinates, second drilling coordinates, and third drilling coordinates of any plate in the historical database, including:

[0078] The first drill coordinates of all the first drill holes in the target board are combined according to the first preset order to obtain the second drill coordinate sequence of the target board;

[0079] The coordinates of all the second holes in the target board are combined according to the first preset order to obtain the third hole coordinate sequence of the target board;

[0080] The coordinates of all third holes in the target board are combined according to the first preset order to obtain the fourth hole coordinate sequence of the target board;

[0081] Retrieve the second, third, and fourth drilling coordinate sequences for any plate from the historical database;

[0082] The first, second, third, and fourth drilling coordinate sequences of the target board are matched with the first, second, third, and fourth drilling coordinate sequences of any board in the historical database.

[0083] Store the second, third, and fourth drilling coordinate sequences of the target plate in the historical database.

[0084] In order to maintain consistency with the arrangement order of the N reference holes in the first drilling coordinate sequence, this embodiment also combines the coordinates of all reference holes in the target board according to the first preset order to obtain the second, third, and fourth drilling coordinate sequences of the target board. These sequences are then matched with the first, second, third, and fourth drilling coordinate sequences of any board in the historical database to obtain the corresponding matching results, thereby improving the accuracy of the matching results.

[0085] After obtaining the matching results between the target board and all boards in the historical database, the second, third, and fourth drilling coordinate sequences of the target board are stored in the historical database to update the historical database. The second, third, and fourth drilling coordinate sequences of the target board are then combined with the first drilling coordinate sequence as the basis for subsequent board matching.

[0086] Optionally, the first, second, third, and fourth drill coordinate sequences of the target board are matched with the first, second, third, and fourth drill coordinate sequences of any board in the historical database, including:

[0087] The first, second, third and fourth drilling coordinate sequences of the target plate are combined according to the second preset order to obtain the target drilling coordinate sequence of the target plate.

[0088] The target drilling coordinate sequence of any plate is obtained from the historical database. The target drilling coordinate sequence of any plate is obtained by combining the first drilling coordinate sequence, the second drilling coordinate sequence, the third drilling coordinate sequence and the fourth drilling coordinate sequence of any plate.

[0089] Calculate the second matching degree between the target drilling coordinate sequence of the target plate and the target drilling coordinate sequence of any plate, and determine the matching result between the target plate and any plate based on the second matching degree;

[0090] Store the target hole coordinate sequence of the target plate in the historical database.

[0091] In order to improve the reliability and accuracy of board matching, this embodiment further combines the first drilling coordinate sequence, the second drilling coordinate sequence, the third drilling coordinate sequence and the fourth drilling coordinate sequence of the target board in a second preset order to obtain the target drilling coordinate sequence of the target board. The matching degree is then calculated with the target drilling coordinate sequence of any board in the historical database to obtain the second matching degree between the target board and any corresponding board.

[0092] The higher the second matching degree, the higher the probability that the target board is matched with any other board; the lower the second matching degree, the lower the probability that the target board is matched with any other board. Therefore, in this embodiment, the matching result between the target board and any other board is determined based on the second matching degree.

[0093] After obtaining the matching results between the target board and all boards in the historical database, the target drilling coordinate sequence of the target board is stored in the historical database to update the historical database, and the target drilling coordinate sequence of the target board is used as the basis for subsequent board matching.

[0094] Optionally, the first, second, third, and fourth drilling coordinate sequences of the target plate are combined according to a second preset order to obtain the target drilling coordinate sequence of the target plate, including:

[0095] According to the size of the first preset angle, the second preset angle, and the third preset angle, sort the first borehole coordinate sequence corresponding to the first preset angle, the second borehole coordinate sequence corresponding to the second preset angle, and the third borehole coordinate sequence corresponding to the third preset angle to obtain the second preset order.

[0096] According to the second preset order, the first drilling coordinate sequence, the second drilling coordinate sequence, the third drilling coordinate sequence and the fourth drilling coordinate sequence are combined to obtain the target drilling coordinate sequence of the target plate.

[0097] In this embodiment, the initial coordinate system is rotated three times according to a first preset angle, a second preset angle, and a third preset angle to improve the ability to characterize the position of the reference borehole. To improve the reliability of the target borehole coordinate sequence, this embodiment treats the preset angle corresponding to the first borehole coordinate sequence as 0 degrees. Then, by combining the magnitudes of the first, second, and third preset angles, the first, second, third, and fourth borehole coordinate sequences are sorted to obtain a second preset order. This second preset order is then used to combine the first, second, third, and fourth borehole coordinate sequences to obtain the target borehole coordinate sequence for the target plate.

[0098] The above steps of matching the initial drilling coordinates with the initial drilling coordinates of any board in the historical database use the initial drilling coordinates as the data basis for matching, thereby improving the matching accuracy between the target board and any board in the historical database.

[0099] This invention obtains a target board and its preset contour. The center of the preset contour is defined as the origin of the coordinate system. An initial coordinate system is constructed using the origin. N reference positions are selected on the preset contour. The distance between any reference position and each drill hole is calculated. The drill hole closest to each reference position is determined as the reference drill hole. The initial drill hole coordinates of each reference drill hole in the initial coordinate system are determined. The initial drill hole coordinates are matched with the initial drill hole coordinates of any board in the historical database. By determining N reference drill holes from a large number of drill holes as the basis for board matching, the computational load of the matching task is reduced. By using the center of the preset contour as the origin of the coordinate system to construct the initial coordinate system, it is ensured that the coordinates of the drill holes are not affected by the size of the preset contour, thus improving the consistency and accuracy of the drill hole coordinates and consequently improving the accuracy of board matching.

[0100] Corresponding to the board matching method in the above embodiment, Figure 3 A structural block diagram of the plate matching device based on drilling coordinates provided in Embodiment 2 of the present invention is given. For ease of explanation, only the parts related to the embodiments of the present invention are shown.

[0101] See Figure 3 The plate matching device includes:

[0102] The coordinate system construction module 31 is used to obtain the target plate and the preset contour of the target plate, define the center of the preset contour as the coordinate origin, and construct an initial coordinate system with the coordinate origin.

[0103] The reference drilling determination module 32 is used to select N reference positions on a preset contour, calculate the distance between any reference position and each drilling hole, and determine the drilling hole closest to each reference position as the reference drilling hole based on the distance, where N is an integer greater than 0;

[0104] The borehole coordinate determination module 33 is used to determine the initial borehole coordinates of each reference borehole in the initial coordinate system;

[0105] The panel matching module 34 is used to match the initial drilling coordinates with the initial drilling coordinates of any panel in the historical database.

[0106] Optionally, the aforementioned reference borehole determination module 32 includes:

[0107] The reference coordinate determination submodule is used to determine the reference coordinates of any reference position in the initial coordinate system.

[0108] The initial coordinate determination submodule is used to determine the initial coordinates of any borehole in the initial coordinate system.

[0109] The first distance calculation submodule is used to calculate the coordinate distance between the reference coordinates and the initial coordinates, and to determine the coordinate distance as the distance between the reference position and the borehole.

[0110] The second distance calculation submodule is used to traverse all reference positions and all boreholes to calculate the distance between any reference position and each borehole.

[0111] Optionally, the aforementioned board matching module 34 includes:

[0112] The first coordinate combination submodule is used to combine all the initial drill coordinates of the target board in a first preset order to obtain the first drill coordinate sequence of the target board.

[0113] The first data acquisition submodule is used to obtain the first drilling coordinate sequence of any plate from the historical database. The first drilling coordinate sequence of any plate is obtained by combining all the initial drilling coordinates of any plate in a first preset order.

[0114] The first plate matching submodule is used to calculate the first matching degree between the first drilling coordinate sequence of the target plate and the first drilling coordinate sequence of any plate, and to determine the matching result between the target plate and any plate based on the first matching degree.

[0115] The first coordinate storage submodule is used to store the first drilling coordinate sequence of the target plate into the historical database.

[0116] Optionally, the aforementioned first board matching submodule includes:

[0117] The matching degree comparison unit is used to obtain a preset matching degree threshold, compare the first matching degree with the matching degree threshold, and obtain the comparison result.

[0118] The first panel matching unit is used to determine that the target panel matches any panel if the comparison result is that the first matching degree is greater than the matching degree threshold.

[0119] Optionally, the aforementioned first coordinate combination submodule includes:

[0120] The reference position sorting unit is used to sort N reference positions in a counterclockwise order, starting from the lower left corner of the preset contour, to obtain the first preset order.

[0121] The first coordinate combination unit is used to combine the first borehole coordinates of the reference boreholes corresponding to the N reference positions according to the order of each reference position in the first preset sequence, so as to obtain the first borehole coordinate sequence.

[0122] Optionally, the above-mentioned plate matching device also includes:

[0123] The first coordinate system rotation module is used to rotate the initial coordinate system around the origin of the coordinate system at a first preset angle on the plane where the plate is located to obtain the first coordinate system and determine the first drilling coordinate of each reference drilling hole in the first coordinate system.

[0124] The second coordinate system rotation module is used to rotate the initial coordinate system on the plane where the plate is located according to the second preset angle to obtain the second coordinate system and determine the second drilling coordinate of each reference drilling hole on the second coordinate system.

[0125] The third coordinate system rotation module is used to rotate the initial coordinate system on the plane where the plate is located according to the third preset angle to obtain the third coordinate system and determine the third drill coordinate of each reference drill hole on the third coordinate system.

[0126] Correspondingly, the aforementioned board matching module 34 includes:

[0127] The second board matching submodule is used to match the initial drilling coordinates, the first drilling coordinates, the second drilling coordinates, and the third drilling coordinates with the initial drilling coordinates, the first drilling coordinates, the second drilling coordinates, and the third drilling coordinates of any board in the historical database.

[0128] Optionally, the aforementioned second board matching submodule includes:

[0129] The first drill coordinates of all the first drill holes in the target board are combined according to the first preset order to obtain the second drill coordinate sequence of the target board;

[0130] The second coordinate combination unit is used to combine all the second drill coordinates of the target plate in a first preset order to obtain the third drill coordinate sequence of the target plate.

[0131] The third coordinate combination unit is used to combine all the third drill coordinates of the target plate in a first preset order to obtain the fourth drill coordinate sequence of the target plate.

[0132] The fourth coordinate combination unit is used to obtain the second, third, and fourth drilling coordinate sequences of any plate from the historical database;

[0133] The second board matching unit is used to match the first, second, third, and fourth drilling coordinate sequences of the target board with the first, second, third, and fourth drilling coordinate sequences of any board in the historical database.

[0134] The second coordinate storage unit is used to store the second, third, and fourth drilling coordinate sequences of the target plate into the historical database.

[0135] Optionally, the second plate matching unit mentioned above includes:

[0136] The fifth coordinate combination subunit is used to combine the first drilling coordinate sequence, the second drilling coordinate sequence, the third drilling coordinate sequence and the fourth drilling coordinate sequence of the target plate according to the second preset order to obtain the target drilling coordinate sequence of the target plate.

[0137] The second data acquisition subunit is used to obtain the target drilling coordinate sequence of any plate from the historical database. The target drilling coordinate sequence of any plate is obtained by combining the first drilling coordinate sequence, the second drilling coordinate sequence, the third drilling coordinate sequence and the fourth drilling coordinate sequence of any plate.

[0138] The second matching degree calculation subunit is used to calculate the second matching degree between the target drilling coordinate sequence of the target plate and the target drilling coordinate sequence of any plate, and to determine the matching result between the target plate and any plate based on the second matching degree.

[0139] The third coordinate storage sub-unit is used to store the target drilling coordinate sequence of the target plate into the historical database.

[0140] Optionally, the second data acquisition subunit is specifically used to sort the first borehole coordinate sequence corresponding to the first preset angle, the second borehole coordinate sequence corresponding to the second preset angle, and the third borehole coordinate sequence corresponding to the third preset angle according to the size of the first preset angle, the second preset angle, and the third preset angle, so as to obtain the second preset order;

[0141] According to the second preset order, the first drilling coordinate sequence, the second drilling coordinate sequence, the third drilling coordinate sequence and the fourth drilling coordinate sequence are combined to obtain the target drilling coordinate sequence of the target plate.

[0142] It should be noted that the information interaction and execution process between the above modules are based on the same concept as the method embodiments of the present invention. For details on their specific functions and technical effects, please refer to the method embodiments section, which will not be repeated here.

[0143] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A plate matching method based on drilling coordinates, characterized in that, The board matching method includes: Obtain the target panel and its preset outline, define the center of the preset outline as the origin of the coordinate system, and construct an initial coordinate system with the origin of the coordinate system. N reference positions are selected on the preset contour. The distance between any reference position and each borehole is calculated. The borehole closest to each reference position is determined as the reference borehole based on the distance. N is an integer greater than 0. Determine the initial borehole coordinates for each reference borehole in the initial coordinate system; The initial drilling coordinates are matched with the initial drilling coordinates of any plate in the historical database; The plate matching method further includes: With the origin of the coordinate system as the center, the initial coordinate system is rotated on the plane where the plate is located by a first preset angle to obtain a first coordinate system, and the first drill coordinate of each reference drill hole in the first coordinate system is determined. The initial coordinate system is rotated on the plane where the plate is located according to the second preset angle to obtain the second coordinate system, and the second drill coordinate of each reference drill hole on the second coordinate system is determined. The initial coordinate system is rotated on the plane where the plate is located according to the third preset angle to obtain the third coordinate system, and the third drill coordinate of each reference drill hole is determined on the third coordinate system. Correspondingly, matching the initial drilling coordinates with the initial drilling coordinates of any plate in the historical database includes: All initial drill coordinates of the target plate are combined according to a first preset order to obtain the first drill coordinate sequence of the target plate; The first drill coordinates of all the first holes in the target plate are combined according to the first preset order to obtain the second drill coordinate sequence of the target plate; The coordinates of all the second holes in the target board are combined according to the first preset order to obtain the third hole coordinate sequence of the target board; The coordinates of all third holes in the target board are combined according to the first preset order to obtain the fourth hole coordinate sequence of the target board; Obtain the second, third, and fourth drilling coordinate sequences of any plate from the historical database; The first, second, third, and fourth drilling coordinate sequences of the target board are matched with the first, second, third, and fourth drilling coordinate sequences of any board in the historical database. The second, third, and fourth drilling coordinate sequences of the target plate are stored in the historical database.

2. The plate matching method according to claim 1, characterized in that, The calculation of the distance between any reference position and each borehole includes: For any given reference position, determine the reference coordinates of that reference position in the initial coordinate system; For any borehole, determine the initial coordinates of the borehole in the initial coordinate system; Calculate the coordinate distance between the reference coordinates and the initial coordinates, and determine the coordinate distance as the distance between the reference position and the borehole; Traverse all reference positions and all boreholes, and calculate the distance between any reference position and each borehole.

3. The plate matching method according to claim 1, characterized in that, The step of matching the initial drilling coordinates with the initial drilling coordinates of any plate in the historical database further includes: The first drilling coordinate sequence of any plate is obtained from the historical database. The first drilling coordinate sequence of any plate is obtained by combining all the initial drilling coordinates of any plate in the first preset order. Calculate the first matching degree between the first drilling coordinate sequence of the target plate and the first drilling coordinate sequence of any plate, and determine the matching result between the target plate and any plate based on the first matching degree; The first drilling coordinate sequence of the target plate is stored in the historical database.

4. The plate matching method according to claim 3, characterized in that, Determining the matching result between the target board and any board based on the first matching degree includes: Obtain a preset matching degree threshold, compare the first matching degree with the matching degree threshold, and obtain a comparison result; If the comparison result is that the first matching degree is greater than the matching degree threshold, then it is determined that the target board is matched with any of the boards.

5. The plate matching method according to claim 1, characterized in that, The step of combining all initial drill coordinates of the target board in a first preset order to obtain the first drill coordinate sequence of the target board includes: Starting from the lower left corner of the preset contour, the N reference positions are sorted in a counter-clockwise order to obtain the first preset order; According to the order of each reference position in the first preset sequence, the first borehole coordinates of the reference boreholes corresponding to the N reference positions are combined to obtain the first borehole coordinate sequence.

6. The plate matching method according to claim 1, characterized in that, The step of matching the first, second, third, and fourth drill coordinate sequences of the target board with the first, second, third, and fourth drill coordinate sequences of any board in the historical database includes: The first drilling coordinate sequence, the second drilling coordinate sequence, the third drilling coordinate sequence and the fourth drilling coordinate sequence of the target plate are combined in a second preset order to obtain the target drilling coordinate sequence of the target plate. The target drilling coordinate sequence of any plate is obtained from the historical database. The target drilling coordinate sequence of any plate is obtained by combining the first drilling coordinate sequence, the second drilling coordinate sequence, the third drilling coordinate sequence and the fourth drilling coordinate sequence of the plate. Calculate the second matching degree between the target drilling coordinate sequence of the target plate and the target drilling coordinate sequence of any plate, and determine the matching result between the target plate and any plate based on the second matching degree; The target borehole coordinate sequence of the target plate is stored in the historical database.

7. The plate matching method according to claim 6, characterized in that, The step of combining the first drilling coordinate sequence, the second drilling coordinate sequence, the third drilling coordinate sequence, and the fourth drilling coordinate sequence of the target board according to a second preset order to obtain the target drilling coordinate sequence of the target board includes: According to the magnitudes of the first preset angle, the second preset angle, and the third preset angle, the first borehole coordinate sequence corresponding to the first preset angle, the second borehole coordinate sequence corresponding to the second preset angle, and the third borehole coordinate sequence corresponding to the third preset angle are sorted to obtain a second preset order; According to the second preset order, the first drilling coordinate sequence, the second drilling coordinate sequence, the third drilling coordinate sequence and the fourth drilling coordinate sequence are combined to obtain the target drilling coordinate sequence of the target plate.

8. A plate matching device based on drilling coordinates, characterized in that, The plate matching device includes: The coordinate system construction module is used to obtain the target board and the preset outline of the target board, define the center of the preset outline as the coordinate origin, and construct an initial coordinate system with the coordinate origin; The reference drilling determination module is used to select N reference positions on the preset contour, calculate the distance between any reference position and each drilling hole, and determine the drilling hole closest to each reference position as the reference drilling hole based on the distance, where N is an integer greater than 0; The borehole coordinate determination module is used to determine the initial borehole coordinates of each reference borehole in the initial coordinate system; The panel matching module is used to match the initial drilling coordinates with the initial drilling coordinates of any panel in the historical database. The plate matching device further includes: The first coordinate system rotation module is used to rotate the initial coordinate system around the coordinate origin and at a first preset angle on the plane where the plate is located to obtain the first coordinate system and determine the first drill coordinate of each reference drill hole on the first coordinate system. The second coordinate system rotation module is used to rotate the initial coordinate system on the plane where the plate is located according to a second preset angle to obtain the second coordinate system and determine the second drill coordinate of each reference drill hole on the second coordinate system. The third coordinate system rotation module is used to rotate the initial coordinate system on the plane where the plate is located according to a third preset angle to obtain the third coordinate system and determine the third drilling coordinate of each reference drill hole on the third coordinate system. Correspondingly, the board matching module includes: All initial drill coordinates of the target plate are combined according to a first preset order to obtain the first drill coordinate sequence of the target plate; The first drill coordinates of all the first holes in the target plate are combined according to the first preset order to obtain the second drill coordinate sequence of the target plate; The coordinates of all the second holes in the target board are combined according to the first preset order to obtain the third hole coordinate sequence of the target board; The coordinates of all third holes in the target board are combined according to the first preset order to obtain the fourth hole coordinate sequence of the target board; Obtain the second, third, and fourth drilling coordinate sequences of any plate from the historical database; The first, second, third, and fourth drilling coordinate sequences of the target board are matched with the first, second, third, and fourth drilling coordinate sequences of any board in the historical database. The second, third, and fourth drilling coordinate sequences of the target plate are stored in the historical database.

Citation Information

Patent Citations

  • Printed circuit board detection positioning method and device, electronic equipment and storage medium

    CN116188447A

  • Hole set registration method, apparatus and device, and storage medium

    WO2022000973A1