PCB character printing positioning point determination method and device, equipment and storage medium
Through automated methods, the positioning points for PCB character printing are determined in the Gerber file, which solves the problem of cumbersome and time-consuming manual selection of positioning points in the prior art, and improves the user experience and positioning point selection efficiency.
Patent Information
- Application Number
- CN202311275631.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2043-09-28
AI Technical Summary
In the prior art, manual selection of positioning points in Gerber files is cumbersome and time-consuming and has poor user experience.
By acquiring the PCB image in the Gerber file, the first positioning point selection area and the first positioning point are automatically determined, and the second positioning point selection area and the second positioning point selection point are automatically obtained according to the first positioning point and the preset point selection direction.
It improves the efficiency and user experience of positioning point selection, and reduces the complexity and time-consuming of manual operations.
Smart Images

Figure CN119722791A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of inkjet printing, and in particular to a method, device, equipment and storage medium for determining PCB character printing positioning points. Background Art
[0002] Printed Circuit Boards (PCB) are the most basic component of electronic devices and are the support for electronic components. PCB is based on an insulating board, cut into a certain size, and printed with some circuits, pads / vias, solder resists, characters, and some conductive patterns to achieve interconnection between electronic components.
[0003] Gerber file is a two-dimensional vector image file format. It is a standard format used in software for printed circuit board industry to describe PCB images, such as circuit layer, solder mask layer, character layer, drilling layer, etc. The first step for digital printers to print vector Gerber files is to parse the vector image file format and convert it into a dot matrix bitmap file format. Only in this way can the printer use the bitmap file for printing.
[0004] PCB character printers need to print characters accurately on specific locations on PCB circuit boards, and no large position deviation is allowed. The industry allows position errors to be controlled below 0.05mm. To accurately print characters on the board, at least two positioning points must first be determined in the PCB image of the Gerber file, generally three or four positioning points. In the prior art, when selecting positioning points, the PCB image is often enlarged in the CAM software first. After enlargement, the human-computer interaction interface in the software can only display a certain area in the PCB image. The mouse is controlled to drag the PCB image. The PCB image is generally a rectangle. The area near any vertex of the four vertices of the rectangle is selected. These areas often include several candidate positioning points. Then, after manually selecting or determining a positioning point from these positioning points, the mouse is controlled to move the PCB image so that the human-computer interaction interface displays the area near the next vertex. The next positioning point is selected from this area, and this process is repeated until three or four positioning points are selected. This method of selecting points requires manual participation, and it is cumbersome and time-consuming to control the mouse to move or drag the enlarged PCB image, which greatly reduces the user experience. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method, device, equipment and storage medium for determining PCB character printing positioning points, so as to solve the problem in the prior art that manual selection of positioning points in Gerber files is cumbersome and time-consuming and has a poor user experience.
[0006] In a first aspect, an embodiment of the present invention provides a method for determining a PCB character printing positioning point, the method comprising:
[0007] Get the PCB image in the Gerber file;
[0008] Acquire a first positioning point selection area from the PCB image, and determine a first positioning point from the first positioning point selection area;
[0009] Acquire a second positioning point selection area in the PCB image according to the first positioning point and a preset point selection direction, and determine the second positioning point from the second positioning point selection area;
[0010] The first positioning point and the second positioning point are used to provide positioning information of the PCB circuit board when performing PCB character printing according to the Gerber file.
[0011] Preferably, acquiring a first positioning point selection area from the PCB image, and determining a first positioning point from the first positioning point selection area comprises:
[0012] Acquire first external input information and determine the first positioning point selection area according to the first external input information, wherein the first positioning point selection area includes a plurality of first candidate positioning points;
[0013] Second external input information is obtained and the first positioning point is determined from the plurality of first candidate positioning points according to the second external input information.
[0014] Preferably, acquiring a first positioning point selection area from the PCB image, and determining a first positioning point from the first positioning point selection area comprises:
[0015] Obtain four vertices of the PCB image and their surrounding areas, which are recorded as vertex position areas;
[0016] Select any one of the four vertex position areas as a first positioning point selection area; wherein the first positioning point selection area includes a plurality of first candidate positioning points;
[0017] Acquiring a collection range of an image acquisition device, wherein the image acquisition device is used to acquire a positioning point image in a PCB circuit board during PCB character printing and to locate the PCB circuit board according to the acquired positioning point image;
[0018] The first positioning point is determined from the plurality of first candidate positioning points according to the acquisition range.
[0019] Preferably, acquiring a second positioning point selection area of the PCB image according to the first positioning point and a preset point selection direction, and determining the second positioning point from the second positioning point selection area comprises:
[0020] Acquire a plurality of preselected areas satisfying preset conditions according to the position of the first positioning point in the PCB image and the size of the PCB image;
[0021] Determining the second positioning point selection area from the plurality of pre-selected areas according to the preset point selection direction, wherein the second positioning point selection area includes a plurality of second candidate positioning points;
[0022] The second positioning point is determined from the plurality of second candidate positioning points.
[0023] Preferably, the determining the second positioning point from the plurality of second candidate positioning points comprises:
[0024] Acquire third external input information and determine the second positioning point from the plurality of second candidate positioning points according to the third external input information.
[0025] Preferably, the determining the second positioning point from the plurality of second candidate positioning points comprises:
[0026] Acquire the acquisition range of the image acquisition device;
[0027] The second positioning point is determined from the plurality of second candidate positioning points according to the acquisition range.
[0028] Preferably, the method further comprises:
[0029] Acquire a third positioning point selection area in the PCB image according to the second positioning point and the preset point selection direction, and determine the third positioning point from the third positioning point selection area;
[0030] A fourth positioning point selection area in the PCB image is acquired according to the third positioning point and the preset point selection direction, and the fourth positioning point is determined from the fourth positioning point selection area.
[0031] In a second aspect, an embodiment of the present invention provides a device for determining a PCB character printing positioning point, the device comprising:
[0032] PCB image acquisition module, used to obtain PCB images in Gerber files;
[0033] A first selection module, used for acquiring a first positioning point selection area from the PCB image, and determining a first positioning point from the first positioning point selection area;
[0034] A second selection module, used for acquiring a second positioning point selection area of the PCB image according to the first positioning point and a preset point selection direction, and determining the second positioning point from the second positioning point selection area;
[0035] Among them, the preset point selection direction includes a clockwise direction or a counterclockwise direction, and the first positioning point and the second positioning point are used to provide positioning information of the PCB circuit board when performing PCB character printing according to the Gerber file.
[0036] In a third aspect, an embodiment of the present invention provides a PCB character printing positioning point determination device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the method of the first aspect in the above-mentioned embodiment is implemented.
[0037] In a fourth aspect, an embodiment of the present invention provides a storage medium having computer program instructions stored thereon, which implements the method of the first aspect in the above-mentioned embodiment when the computer program instructions are executed by a processor.
[0038] In summary, the beneficial effects of the present invention are as follows:
[0039] The PCB character printing positioning point determination method, device, equipment and storage medium provided by the embodiment of the present invention obtain a PCB image in a Gerber file; obtain a first positioning point selection area from the PCB image, and determine a first positioning point from the first positioning point selection area; automatically select a second positioning point selection area of the PCB image according to the first positioning point and a preset point selection direction, and determine the second positioning point from the second positioning point selection area. After selecting the first positioning point, the method of the present invention automatically identifies and jumps to the second positioning point selection area according to the preset point selection direction. In the second positioning point selection area, the second positioning point can be manually selected or automatically selected according to the actual application situation. Compared with the existing method of dragging the PCB image to select a partial area and then manually selecting the positioning point, the method of the present invention is more convenient and quick, and improves the efficiency of positioning point selection and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.
[0041] Figure 1 The present invention is a flowchart of a method for determining a PCB character printing positioning point according to an embodiment of the present invention.
[0042] Figure 2 It is a schematic diagram of a PCB image and candidate positioning points and a first positioning point selection area therein according to an embodiment of the present invention.
[0043] Figure 3 It is a schematic diagram of a first positioning point and a first positioning point selection area according to an embodiment of the present invention.
[0044] Figure 4 Schematic diagram of a main window and a sub-window according to an embodiment of the present invention.
[0045] Figure 5 Schematic diagram of a main window and a sub-window according to an embodiment of the present invention.
[0046] Figure 6 Schematic diagram of a first positioning point according to an embodiment of the present invention.
[0047] Figure 7 4 is a schematic diagram of a second positioning point according to an embodiment of the present invention.
[0048] Figure 8 is a schematic diagram of a third positioning point in an embodiment of the present invention.
[0049] Fig. 9 4 is a schematic diagram of a fourth positioning point according to an embodiment of the present invention.
[0050] Fig.10 Schematic diagram of a first positioning point according to an embodiment of the present invention.
[0051] Fig.11 is a schematic diagram of a second positioning point according to an embodiment of the present invention.
[0052] Fig.12 is a schematic diagram of a third positioning point in an embodiment of the present invention.
[0053] Fig.13 4 is a schematic diagram of a fourth positioning point according to an embodiment of the present invention.
[0054] Fig.14 It is a schematic diagram of a device for determining a PCB character printing positioning point according to an embodiment of the present invention.
[0055] Fig.15 It is a structural schematic diagram of a device for determining PCB character printing positioning points according to an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0057] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0058] Embodiment 1
[0059] The embodiment of the present invention provides a method for determining PCB character printing positioning points, which is applicable to the application scenario of using inkjet printing technology to print characters on a PCB circuit board. PCB character printing is to use an inkjet printing device to print characters, lines, color blocks, etc. (collectively referred to as character printing) on a PCB circuit board. When printing, first, according to the Gerber file produced by the computer-aided manufacturing (CAM) software before the printed circuit board is made, the Gerber file is parsed and converted into printing data through auxiliary software, and the PCB circuit board on the printing platform is positioned through an image acquisition device such as a CCD camera, and a specific ink is sprayed on the printed circuit board through inkjet technology, thereby completing the PCB character printing process. When making a Gerber file, at least two positioning points must be determined on the PCB image in the Gerber file, generally three positioning points or four positioning points, which will be made on the PCB circuit board and used to locate the placement position of the PCB circuit board during the character printing process.
[0060] See also Figure 1 The method for determining the PCB character printing positioning point specifically comprises the following steps:
[0061] S1: Get the PCB image in the Gerber file;
[0062] S2: acquiring a first positioning point selection area from the PCB image, and determining a first positioning point from the first positioning point selection area;
[0063] S3: acquiring a second positioning point selection area in the PCB image according to the first positioning point and a preset point selection direction, and determining the second positioning point from the second positioning point selection area;
[0064] The first positioning point and the second positioning point are used to provide positioning information of the PCB circuit board when performing PCB character printing according to the Gerber file.
[0065] For details, see Figure 2 , input the Gerber file to be processed into the GAM software or the customized Gerber production software, and obtain the PCB image in the Gerber file, which is a two-dimensional vector image. Set multiple points as candidate positioning points D0 (hereinafter referred to as candidate positioning points) near the edge of the PCB image, and then select the positioning points used for printing positioning when printing PCB characters from these candidate positioning points. Generally, more than two positioning points need to be selected. When selecting the positioning points, first determine the area where the first positioning point is located, which is recorded as the first positioning point selection area. For example, Figure 2 The areas H0, H1, H2, H3, etc. shown can all be used as the first positioning point selection areas.
[0066] In one embodiment, determining a first positioning point selection area from the PCB image, and determining a first positioning point from the first positioning point selection area comprises:
[0067] Acquire first external input information and determine the first positioning point selection area according to the first external input information, wherein the first positioning point selection area includes a plurality of first candidate positioning points;
[0068] Second external input information is obtained and the first positioning point is determined from the plurality of first candidate positioning points according to the second external input information.
[0069] Specifically, in this embodiment, the first positioning point selection area and the first positioning point are determined by means of external input information. Exemplarily, the area near a vertex of the PCB image is displayed through the human-computer interaction interface according to the user zooming in on the PCB image and selecting (first external input information). This area is the first positioning point selection area, and the first positioning point selection area includes several first candidate positioning points. One of the several first candidate positioning points is manually selected (second external input information) as the first positioning point. Preferably, the point closest to the vertex is selected as the first positioning point. By obtaining external input information, such as manually selecting by the user, the first positioning point candidate area and the first positioning point are determined, so that too much computing power burden does not need to be imposed on the system, but manual participation is required.
[0070] In another embodiment, the first positioning point selection area and the first positioning point are automatically calculated and selected. The obtaining of the first positioning point selection area from the PCB image and determining the first positioning point from the first positioning point selection area comprises:
[0071] Obtain four vertices of the PCB image and their surrounding areas, which are recorded as vertex position areas;
[0072] Select any one of the four vertex position areas as a first positioning point selection area; wherein the first positioning point selection area includes a plurality of first candidate positioning points;
[0073] Acquiring a collection range of an image acquisition device, wherein the image acquisition device is used to acquire a positioning point image in a PCB circuit board during PCB character printing and to locate the PCB circuit board according to the acquired positioning point image;
[0074] The first positioning point is determined from the plurality of first candidate positioning points according to the acquisition range.
[0075] Preferably, the area near the four vertices of the PCB image is selected as the first positioning point selection area. The four vertices of the PCB image and the area near the four vertices are identified by an image recognition algorithm, which is recorded as the vertex position area. The size of the vertex position area can be determined according to the acquisition range size of the image acquisition device such as a CCD camera, or determined according to the actual application situation. The image acquisition device here, such as a CCD camera, is mainly used to acquire the positioning points on the PCB circuit board when printing PCB characters, so as to locate the placement position of the PCB circuit board and determine whether it is placed accurately. Due to the limited acquisition range of the image acquisition device, it is often difficult to capture the image of the entire PCB circuit board at the same time and then identify each positioning point separately. The method is to first acquire one of the positioning points on the PCB circuit board, and then move to the position where the next positioning point is located to acquire the next positioning point. In this embodiment, the size of the vertex position area is determined according to the acquisition range size of the image acquisition device. Preferably, the size of the vertex position area is less than or equal to the acquisition range size of the image acquisition device.
[0076] After acquiring the four vertex position areas, any one of the four vertex position areas can be selected as the first positioning point selection area. The first positioning point selection area includes several first candidate positioning points. When selecting the first positioning point from the first positioning point selection area, if the first positioning point selection area is within the acquisition range of the image acquisition device, any one of the first candidate positioning points can be selected as the first positioning point; if the size of the vertex position area is larger than the acquisition range of the image acquisition device when determining the vertex position area, then when selecting the first positioning point, only the first candidate positioning points in the corresponding area within the acquisition range of the image acquisition device can be selected. Preferably, the first candidate positioning point closest to the center point of the image acquisition range is selected as the first positioning point. The closer to the center point of the image acquisition range, the clearer the image of the first positioning point is acquired. The positioning of the PCB circuit board is more accurate when printing PCB characters according to the first positioning point, thereby ensuring that the PCB character printing position is more accurate.
[0077] After obtaining the first positioning point, the second positioning point selection area and the second positioning point in the Gerber file are obtained according to the first positioning point and the preset point selection direction. The specific steps include:
[0078] Acquire a plurality of preselected areas satisfying preset conditions according to the position of the first positioning point in the PCB image and the size of the PCB image;
[0079] Determining the second positioning point selection area from the plurality of pre-selected areas according to the preset point selection direction, wherein the second positioning point selection area includes a plurality of second candidate positioning points;
[0080] The second positioning point is determined from the plurality of second candidate positioning points.
[0081] Specifically, after the first positioning point is obtained, several pre-selected areas are automatically calculated and determined according to the position of the first positioning point on the PCB image and the size of the PCB image. These pre-selected areas must meet preset conditions. For example, the preset conditions are set as follows: the pre-selected area should contain at least one candidate positioning point, and the distance between the candidate positioning point and its nearest vertex (of the PCB image) is the same as or similar to the distance between the first positioning point and its nearest vertex (such as the distance difference is less than or equal to the first preset threshold, and the first preset threshold can be determined according to actual conditions). The distance between the first positioning point and its nearest vertex is determined according to its position in the PCB image. In another embodiment, the preset conditions can also be set as follows: the pre-selected area should contain at least one candidate positioning point, and the distance between the candidate positioning point and its nearest PCB image edge is the same as or similar to the distance between the first positioning point and its nearest edge (such as the distance difference is less than or equal to the second preset threshold, and the second preset threshold can be determined according to actual conditions). The size of the pre-selected area can be set to be the same as or similar to the size of the first positioning point selection area, or it can be set according to actual conditions. In one embodiment, the pre-selected area is obtained as the area near the other three vertices except the vertex area where the first positioning point is located, and which of the three pre-selected areas is selected as the second positioning point selection area is determined according to the preset point selection direction. The preset point selection direction here is counterclockwise or clockwise. Figure 3 As shown, the first positioning point D1 is located in the first positioning point selection area A0. When the preset point selection direction is counterclockwise, the system automatically identifies and calculates the pre-selected area A1 as the second positioning point selection area based on the position of the first positioning point and the PCB image size; and when the preset point selection direction is clockwise, the system automatically identifies and calculates the pre-selected area A3 as the second positioning point selection area based on the position of the first positioning point and the PCB image size. In one embodiment, Figure 4 , Figure 5 Two human-computer interaction interface windows are set in the software, one is a main window C1, which is used to display the specific image of the currently selected positioning point selection area in the PCB image, such as the candidate positioning points contained in the positioning point selection area. The other sub-window C2 is used to display the overall contour image of the PCB image, and the specific position of the currently selected positioning point selection area in the PCB image is included in the overall contour image.
[0082] After the second positioning point selection area is obtained according to the first positioning point, one of the several second candidate positioning points included in the second positioning point selection is selected as the second positioning point. In one embodiment, the third external input information is obtained and the second positioning point is determined from the several second candidate positioning points according to the third external input information. Exemplarily, one of the several second candidate positioning points (third external input information) is manually selected as the second positioning point. Preferably, the point closest to the vertex in the second positioning point selection area is selected as the second positioning point. In another embodiment, the second positioning point is determined according to the acquisition range of the image acquisition device. Preferably, the second candidate positioning point closest to the center point of the image acquisition range is selected as the second positioning point. The closer to the center point of the image acquisition range, the clearer the image of the second positioning point is acquired, and the positioning of the PCB circuit board is more accurate when printing PCB characters according to the second positioning point.
[0083] After obtaining the second positioning point, further, according to the second positioning point and the preset point selection direction, a third positioning point selection area in the PCB image is obtained, and the third positioning point is determined from the third positioning point selection area. Further, according to the third positioning point and the preset point selection direction, a fourth positioning point is obtained from the fourth positioning point selection area. The specific process is similar to the above-mentioned acquisition of the second positioning point according to the first positioning point, and will not be repeated here. Figures 6 to 9 FIG. 1 is a schematic diagram showing how the second positioning point D2, the third positioning point D3 and the fourth positioning point D4 are automatically determined based on the first positioning point D1 when the preset point selection direction is clockwise. Figures 10 to 13As shown, it is a schematic diagram of automatically determining the second positioning point D2, the third positioning point D3 and the fourth positioning point D4 according to the first positioning point D1 when the preset point selection direction is counterclockwise. The first positioning point D1 can be manually selected by the user or automatically selected by the system according to the acquisition range of the image acquisition device. After the first positioning point D1 is determined, the main window in the software automatically jumps to the second positioning point selection area where the second positioning point D2 is located, and the sub-window in the software also automatically highlights the second positioning point selection area in the PCB outline. The second positioning point D2 can be manually selected by the user or automatically selected by the system according to the acquisition range of the image acquisition device; after the second positioning point D2 is determined, the main window in the software automatically jumps to the third positioning point selection area where the third positioning point D3 is located, and the sub-window in the software also automatically highlights the third positioning point selection area in the PCB outline; the third positioning point D3 can be manually selected by the user or automatically selected by the system according to the acquisition range of the image acquisition device; after the third positioning point D3 is determined, the main window in the software automatically jumps to the fourth positioning point selection area where the fourth positioning point D4 is located, and the sub-window in the software also automatically highlights the fourth positioning point selection area in the PCB outline; the fourth positioning point D4 can be manually selected by the user or automatically selected by the system according to the acquisition range of the image acquisition device, thereby completing the selection of all positioning points. The embodiment of the present invention automatically identifies and jumps to the second positioning point selection area according to the point selection direction after selecting the first positioning point. In the second positioning point selection area, the second positioning point can be manually selected or automatically selected according to the actual application situation. There is no need to drag the PCB image for selection, which is more convenient and quick, and improves the positioning point selection efficiency and user experience.
[0084] In summary, the method for determining PCB character printing positioning points provided by the embodiment of the present invention obtains a PCB image in a Gerber file; obtains a first positioning point selection area from the PCB image, and determines a first positioning point from the first positioning point selection area; automatically selects a second positioning point selection area of the PCB image according to the first positioning point and a preset point selection direction, and determines the second positioning point from the second positioning point selection area. After selecting the first positioning point, the method of the present invention automatically identifies and jumps to the second positioning point selection area according to the preset point selection direction. In the second positioning point selection area, the second positioning point can be manually or automatically selected according to the actual application situation. Furthermore, the third positioning point is automatically selected according to the second positioning point and the preset point selection direction, and the fourth positioning point is automatically selected according to the third positioning point and the preset point selection direction, thereby completing the selection of the positioning point. Compared with the existing method of manually selecting positioning points after dragging the PCB image to select a partial area, the method of the present invention is more convenient and quick, and improves the efficiency of positioning point selection and user experience. In addition, the optimal positioning points can be determined according to the acquisition range of the image acquisition device to ensure that the positioning points on the PCB circuit board acquired by the image acquisition device when printing PCB characters are clearer, and the positioning of the PCB circuit board is more accurate according to these positioning points, thereby ensuring that the PCB character printing position is more accurate and greatly improving the PCB character printing quality.
[0085] Embodiment 2
[0086] See also Fig.14 The embodiment of the present invention provides a PCB character printing positioning point determination device 200, the device 200 comprising:
[0087] PCB image acquisition module 201, used to acquire the PCB image in the Gerber file;
[0088] A first selection module 202 is used to obtain a first positioning point selection area from the PCB image, and determine a first positioning point from the first positioning point selection area;
[0089] A second selection module 203 is used to obtain a second positioning point selection area of the PCB image according to the first positioning point and a preset point selection direction, and determine the second positioning point from the second positioning point selection area;
[0090] Among them, the preset point selection direction includes a clockwise direction or a counterclockwise direction, and the first positioning point and the second positioning point are used to provide positioning information of the PCB circuit board when performing PCB character printing according to the Gerber file.
[0091] Preferably, the first selection module 202 includes:
[0092] A first external information acquisition unit, configured to acquire first external input information and determine the first positioning point selection area according to the first external input information, wherein the first positioning point selection area includes a plurality of first candidate positioning points;
[0093] The second external information acquisition unit is used to acquire second external input information and determine the first positioning point from the plurality of first candidate positioning points according to the second external input information.
[0094] Preferably, the first selection module 202 includes:
[0095] A vertex position acquisition unit, used for acquiring four vertices of the PCB image and their vicinity areas, recorded as vertex position areas;
[0096] A first selection unit, used to select any one of the four vertex position areas as a first positioning point selection area; wherein the first positioning point selection area includes a plurality of first candidate positioning points;
[0097] A first acquisition range acquisition unit, used to acquire an acquisition range of an image acquisition device, wherein the image acquisition device is used to acquire a positioning point image in a PCB circuit board during PCB character printing and to locate the PCB circuit board according to the acquired positioning point image;
[0098] The first determining unit is configured to determine the first positioning point from the plurality of first candidate positioning points according to the acquisition range.
[0099] Preferably, the second selection module 203 includes:
[0100] A pre-selected area acquisition unit, used to acquire a number of pre-selected areas that meet preset conditions according to the position of the first positioning point in the PCB image and the size of the PCB image;
[0101] A second selection unit, configured to determine the second positioning point selection area from the plurality of pre-selected areas according to the preset point selection direction, wherein the second positioning point selection area includes a plurality of second candidate positioning points;
[0102] The second determining unit is configured to determine the second positioning point from the plurality of second candidate positioning points.
[0103] Preferably, the second determining unit includes:
[0104] The third external information acquisition unit is used to acquire third external input information and determine the second positioning point from the plurality of second candidate positioning points according to the third external input information.
[0105] Preferably, the second determining unit includes:
[0106] A second acquisition range acquisition unit, used to acquire the acquisition range of the image acquisition device;
[0107] The third determining unit is used to determine the second positioning point from the plurality of second candidate positioning points according to the acquisition range.
[0108] Preferably, the PCB character printing positioning point determination device 200 further includes:
[0109] A third selection module, used for acquiring a third positioning point selection area in the PCB image according to the second positioning point and the preset point selection direction, and determining the third positioning point from the third positioning point selection area;
[0110] The fourth selection module is used to obtain a fourth positioning point selection area in the PCB image according to the third positioning point and the preset point selection direction, and determine the fourth positioning point from the fourth positioning point selection area.
[0111] In summary, the PCB character printing positioning point determination device provided by the embodiment of the present invention obtains the PCB image in the Gerber file; obtains the first positioning point selection area from the PCB image, and determines the first positioning point from the first positioning point selection area; automatically selects the second positioning point selection area of the PCB image according to the first positioning point and the preset point selection direction, and determines the second positioning point from the second positioning point selection area. After selecting the first positioning point, the method of the present invention automatically identifies and jumps to the second positioning point selection area according to the preset point selection direction. In the second positioning point selection area, the second positioning point can be manually selected or automatically selected according to the actual application situation. Further, the third positioning point is automatically selected according to the second positioning point and the preset point selection direction, and the fourth positioning point is automatically selected according to the third positioning point and the preset point selection direction, thereby completing the selection of the positioning point. Compared with the existing method of dragging the PCB image to select a partial area and then manually selecting the positioning point, the method of the present invention is more convenient and quick, and improves the efficiency of positioning point selection and user experience. In addition, the optimal positioning points can be determined according to the acquisition range of the image acquisition device to ensure that the positioning points on the PCB circuit board acquired by the image acquisition device when printing PCB characters are clearer, and the positioning of the PCB circuit board is more accurate according to these positioning points, thereby ensuring that the PCB character printing position is more accurate and greatly improving the PCB character printing quality.
[0112] Embodiment 3
[0113] In addition, the PCB character printing positioning point determination method of the embodiment of the present invention can be implemented by a PCB character printing positioning point determination device. Fig.15A schematic diagram of the hardware structure of a device for determining PCB character printing positioning points provided by an embodiment of the present invention is shown.
[0114] The PCB character printing positioning point determination device may include a processor 301 and a memory 302 storing computer program instructions.
[0115] Specifically, the processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0116] The memory 302 may include a large capacity memory for data or instructions. For example, but not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 302 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 302 may be inside or outside the data processing device. In a specific embodiment, the memory 302 is a non-volatile solid-state memory. In a specific embodiment, the memory 302 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0117] The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement any one of the PCB character printing positioning point determination methods in the above embodiments.
[0118] In one example, the PCB character printing positioning point determination device may further include a communication interface 303 and a bus 310. Fig.15 As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 310 and communicate with each other.
[0119] The communication interface 303 is mainly used to implement the communication between the modules, devices, units and / or equipment in the embodiment of the present invention.
[0120] Bus 310 includes hardware, software or both, and the parts of PCB character printing positioning point determination device are coupled to each other. For example, but not limitation, bus 310 may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0121] Embodiment 4
[0122] In addition, in combination with the PCB character printing positioning point determination method in the above embodiment, the embodiment of the present invention can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor 301, any one of the PCB character printing positioning point determination methods in the above embodiment is implemented.
[0123] In summary, the PCB character printing positioning point determination method, device, equipment and storage medium provided by the embodiment of the present invention obtains the PCB image in the Gerber file; obtains the first positioning point selection area from the PCB image, and determines the first positioning point from the first positioning point selection area; automatically selects the second positioning point selection area of the PCB image according to the first positioning point and the preset point selection direction, and determines the second positioning point from the second positioning point selection area. After selecting the first positioning point, the method of the present invention automatically identifies and jumps to the second positioning point selection area according to the preset point selection direction. In the second positioning point selection area, the second positioning point can be manually selected or automatically selected according to the actual application situation. Further, the third positioning point is automatically selected according to the second positioning point and the preset point selection direction, and the fourth positioning point is automatically selected according to the third positioning point and the preset point selection direction, thereby completing the selection of the positioning point. Compared with the existing method of dragging the PCB image to select a partial area and then manually selecting the positioning point, the method of the present invention is more convenient and quick, and improves the efficiency of positioning point selection and user experience. In addition, the optimal positioning points can be determined according to the acquisition range of the image acquisition device to ensure that the positioning points on the PCB circuit board acquired by the image acquisition device when printing PCB characters are clearer, and the positioning of the PCB circuit board is more accurate according to these positioning points, thereby ensuring that the PCB character printing position is more accurate and greatly improving the PCB character printing quality.
[0124] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0125] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0126] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0127] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A method for determining a PCB character printing positioning point, characterized in that: The method comprises: Get the PCB image in the Gerber file; Acquire a first positioning point selection area from the PCB image, and determine a first positioning point from the first positioning point selection area; Acquire a second positioning point selection area in the PCB image according to the first positioning point and a preset point selection direction, and determine the second positioning point from the second positioning point selection area; The first positioning point and the second positioning point are used to provide positioning information of the PCB circuit board when performing PCB character printing according to the Gerber file.
2. The method for determining PCB character printing positioning points according to claim 1, characterized in that: The acquiring a first positioning point selection area from the PCB image and determining a first positioning point from the first positioning point selection area comprises: Acquire first external input information and determine the first positioning point selection area according to the first external input information, wherein the first positioning point selection area includes a plurality of first candidate positioning points; Second external input information is obtained and the first positioning point is determined from the plurality of first candidate positioning points according to the second external input information.
3. The method for determining PCB character printing positioning points according to claim 1, characterized in that: The acquiring a first positioning point selection area from the PCB image and determining a first positioning point from the first positioning point selection area comprises: Obtain four vertices of the PCB image and their surrounding areas, which are recorded as vertex position areas; Select any one of the four vertex position areas as a first positioning point selection area; wherein the first positioning point selection area includes a plurality of first candidate positioning points; Acquiring a collection range of an image acquisition device, wherein the image acquisition device is used to acquire a positioning point image in a PCB circuit board during PCB character printing and to locate the PCB circuit board according to the acquired positioning point image; The first positioning point is determined from the plurality of first candidate positioning points according to the acquisition range.
4. The method for determining PCB character printing positioning points according to claim 1, characterized in that: The step of acquiring a second positioning point selection area of the PCB image according to the first positioning point and a preset point selection direction, and determining the second positioning point from the second positioning point selection area comprises: Acquire a plurality of preselected areas satisfying preset conditions according to the position of the first positioning point in the PCB image and the size of the PCB image; Determining the second positioning point selection area from the plurality of pre-selected areas according to the preset point selection direction, wherein the second positioning point selection area includes a plurality of second candidate positioning points; The second positioning point is determined from the plurality of second candidate positioning points.
5. The method for determining PCB character printing positioning points according to claim 3, characterized in that: The determining the second positioning point from the plurality of second candidate positioning points comprises: Acquire third external input information and determine the second positioning point from the plurality of second candidate positioning points according to the third external input information.
6. The method for determining PCB character printing positioning points according to claim 3, characterized in that: The determining the second positioning point from the plurality of second candidate positioning points comprises: Acquire the acquisition range of the image acquisition device; The second positioning point is determined from the plurality of second candidate positioning points according to the acquisition range.
7. The method for determining PCB character printing positioning points according to claim 1, characterized in that: The method further comprises: Acquire a third positioning point selection area in the PCB image according to the second positioning point and the preset point selection direction, and determine the third positioning point from the third positioning point selection area; A fourth positioning point selection area in the PCB image is acquired according to the third positioning point and the preset point selection direction, and the fourth positioning point is determined from the fourth positioning point selection area.
8. A device for determining PCB character printing positioning points, characterized in that: The device comprises: PCB image acquisition module, used to obtain PCB images in Gerber files; A first selection module, used for acquiring a first positioning point selection area from the PCB image, and determining a first positioning point from the first positioning point selection area; A second selection module, used for acquiring a second positioning point selection area of the PCB image according to the first positioning point and a preset point selection direction, and determining the second positioning point from the second positioning point selection area; Among them, the preset point selection direction includes a clockwise direction or a counterclockwise direction, and the first positioning point and the second positioning point are used to provide positioning information of the PCB circuit board when performing PCB character printing according to the Gerber file.
9. A device for determining PCB character printing positioning points, characterized in that: include: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 7.
10. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Image calibration method and apparatus
CN105427297A
Gerber file processing method and device and computer readable storage medium
CN109614059A
Large-breadth PCB positioning method
CN109785324A
Method for selecting detection test point
CN110187262A
Circuit board design data processing method and device, electronic equipment and storage medium
CN112507651A