PCB character printing positioning point determination method, device, equipment and storage medium

By automatically identifying and selecting the positioning point selection area in the Gerber file, combined with the image acquisition device and preset selection direction, the problem of tedious and time-consuming positioning point selection for PCB character printing is solved, achieving efficient and accurate positioning point selection and improving printing quality.

CN119722791BActive Publication Date: 2026-02-24SHENZHEN HOSONSOFT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311275631.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2026-02-24
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

The selection process for PCB character printing positioning points in existing technologies is cumbersome and time-consuming, resulting in a poor user experience and failing to meet the positional error requirements of less than 0.05mm.

Method used

By acquiring PCB images from Gerber files, the system automatically identifies and selects the location point selection area. Using image acquisition devices and preset selection directions, the system automatically or manually selects the location points, reducing manual intervention.

Benefits of technology

It improves the efficiency of positioning point selection and user experience, ensures the positional accuracy and quality of PCB character printing, and meets the positional error requirement of less than 0.05mm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119722791B_ABST
    Figure CN119722791B_ABST
Patent Text Reader

Abstract

The application discloses a kind of PCB character printing positioning point determination method, device, equipment and storage medium, it is related to inkjet printing technical field.The method is by obtaining PCB image in Gerber file;From the first positioning point selection area in the PCB image, determine first positioning point from the first positioning point selection area;According to the first positioning point and preset point direction, the second positioning point selection area of the PCB image is automatically selected, and the second positioning point is determined from the second positioning point selection area.The method of the application is after selecting first positioning point, according to preset point direction, automatically identified and jump to second positioning point selection area, and in second positioning point selection area, second positioning point can be manually selected or automatically selected according to actual application situation, the method of the application is more convenient and fast relative to the method that part area is selected after dragging PCB image by existing, and positioning point is manually selected, and positioning point selection efficiency and user experience are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of inkjet printing technology, and in particular to a PCB character printing positioning point determination method, device, equipment and storage medium. BACKGROUND

[0002] Printed circuit board (PCB) is the most basic component of electronic equipment, and is the support of electronic components. The PCB is based on an insulating plate as a base material, cut into a certain size, and some lines, pads / vias, solder masks, characters and some conductive patterns are printed thereon to realize the mutual connection between electronic components.

[0003] The Gerber file is a two-dimensional vector image file format. It is a standard format used in printed circuit board industry software to describe PCB images, such as: circuit layer, solder mask layer, character layer, drilling layer, etc. The first step for a digital printer to print a vector Gerber file is to parse and convert the vector image file format into a bitmap file format. In this way, the printer can use the bitmap file to print.

[0004] The PCB character printer needs to accurately print characters on the specific position of the PCB circuit board without too much position deviation, and the industry allows the position error to be controlled below 0.05mm. To accurately print characters on the accurate position on the board, at least two positioning points, generally three or four positioning points, need to be determined in the PCB image of the Gerber file. In the prior art, when selecting the positioning points, the PCB image is first enlarged in the CAM software. After enlargement, the man-machine interface in the software can only display a certain part of the area in the PCB image. The mouse is controlled to drag the PCB image, and the PCB image is generally rectangular. Any one of the four corners of the rectangle is selected. These areas often include several candidate positioning points. Then, a positioning point is manually selected or determined from these positioning points. The mouse is controlled to move the PCB image to make the man-machine interface display the area near the next corner. The next positioning point is selected from this area. The process is repeated until three or four positioning points are selected. This method of selecting points requires human intervention, and it is relatively tedious and time-consuming to control the mouse to move or drag the enlarged PCB image, which greatly reduces the user experience. SUMMARY

[0005] Therefore, the embodiments of the present application provide a PCB character printing positioning point determination method, device, equipment and storage medium to solve the problem of tedious and time-consuming manual selection of positioning points in the Gerber file in the prior art and poor user experience.

[0006] In a first aspect, the embodiments of the present application provide a method for determining a printing positioning point of a PCB character, the method comprising:

[0007] obtaining a PCB image in a Gerber file;

[0008] obtaining a first positioning point selection area from the PCB image, and determining a first positioning point from the first positioning point selection area;

[0009] obtaining a second positioning point selection area from the PCB image according to the first positioning point and a preset point selection direction, and determining a 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 a PCB circuit board when performing PCB character printing according to the Gerber file.

[0011] Preferably, the method for obtaining the first positioning point selection area from the PCB image, and determining the first positioning point from the first positioning point selection area comprises:

[0012] obtaining first external input information, and determining the first positioning point selection area according to the first external input information, wherein the first positioning point selection area comprises a plurality of first candidate positioning points;

[0013] obtaining second external input information, and determining the first positioning point from the plurality of first candidate positioning points according to the second external input information.

[0014] Preferably, the method for obtaining the first positioning point selection area from the PCB image, and determining the first positioning point from the first positioning point selection area comprises:

[0015] obtaining four vertices of the PCB image and a region near the four vertices, denoted as a vertex position area;

[0016] selecting any one of the four vertex position areas as the first positioning point selection area, wherein the first positioning point selection area comprises a plurality of first candidate positioning points;

[0017] obtaining a capture range of an image capture device, wherein the image capture device is used to capture a positioning point image in a PCB circuit board during PCB character printing, and perform positioning of the PCB circuit board according to the captured positioning point image;

[0018] determining the first positioning point from the plurality of first candidate positioning points according to the capture range.

[0019] Preferably, the step of obtaining a second positioning point selection area of ​​the PCB image based on the first positioning point and a preset selection direction, and determining the second positioning point from the second positioning point selection area, includes:

[0020] Based on the position of the first positioning point in the PCB image and the size of the PCB image, several pre-selected areas that meet preset conditions are obtained;

[0021] The second positioning point selection area is determined from the plurality of pre-selected areas according to the preset 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, determining the second location point from the plurality of second candidate location points includes:

[0024] Obtain third external input information and determine the second positioning point from the plurality of second candidate positioning points based on the third external input information.

[0025] Preferably, determining the second location point from the plurality of second candidate location points includes:

[0026] Obtain the acquisition range of the image acquisition device;

[0027] The second location point is determined from the plurality of second candidate location points according to the acquisition range.

[0028] Preferably, the method further includes:

[0029] Based on the second positioning point and the preset selection direction, obtain the third positioning point selection area in the PCB image, and determine the third positioning point from the third positioning point selection area;

[0030] The fourth positioning point is selected from the PCB image based on the third positioning point and the preset selection direction, and the fourth positioning point is determined from the fourth positioning point selection area.

[0031] Secondly, embodiments of the present invention provide a PCB character printing positioning point determination device, the device comprising:

[0032] PCB image acquisition module, used to acquire PCB images from Gerber files;

[0033] The first selection module 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;

[0034] The second selection module is used to obtain a second positioning point selection area of ​​the PCB image based on the first positioning point and the preset selection point direction, and to determine the second positioning point from the second positioning point selection area.

[0035] The preset selection point direction includes a clockwise direction or a counterclockwise direction. 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] Thirdly, embodiments of the present invention provide 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, wherein when the computer program instructions are executed by the processor, the method of the first aspect described above is implemented.

[0037] Fourthly, embodiments of the present invention provide a storage medium storing computer program instructions, which, when executed by a processor, implement the method of the first aspect described above.

[0038] In summary, the beneficial effects of the present invention are as follows:

[0039] This invention provides a method, apparatus, device, and storage medium for determining PCB character printing positioning points. The method acquires a PCB image from a Gerber file; obtains a first positioning point selection area from the PCB image; determines a first positioning point from the first positioning point selection area; automatically selects a second positioning point selection area from the PCB image based on the first positioning point and a preset selection direction; and determines a second positioning point from the second positioning point selection area. After selecting the first positioning point, the method automatically identifies and jumps to the second positioning point selection area based on the preset selection direction. The second positioning point can be manually or automatically selected within the second positioning point selection area according to the actual application. Compared to existing methods that involve dragging the PCB image to select a portion of the area and then manually selecting positioning points, this method is more convenient and faster, improving positioning point selection efficiency and user experience. Attached Figure Description

[0040] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, and these are all within the protection scope of the present invention.

[0041] Figure 1 This is a flowchart illustrating the PCB character printing positioning point determination method according to an embodiment of the present invention.

[0042] Figure 2 This is a schematic diagram of a PCB image and its candidate positioning points and the first positioning point selection area according to an embodiment of the present invention.

[0043] Figure 3 This is a schematic diagram of the first positioning point and the selected area of ​​the first positioning point in an embodiment of the present invention.

[0044] Figure 4 This is a schematic diagram of the main window and the sub-window in an embodiment of the present invention.

[0045] Figure 5 This is a schematic diagram of the main window and the sub-window in an embodiment of the present invention.

[0046] Figure 6 This is a schematic diagram of the first positioning point in an embodiment of the present invention.

[0047] Figure 7 This is a schematic diagram of the second positioning point in an embodiment of the present invention.

[0048] Figure 8 This is a schematic diagram of the third positioning point in an embodiment of the present invention.

[0049] Figure 9 This is a schematic diagram of the fourth positioning point in an embodiment of the present invention.

[0050] Figure 10 This is a schematic diagram of the first positioning point in an embodiment of the present invention.

[0051] Figure 11 This is a schematic diagram of the second positioning point in an embodiment of the present invention.

[0052] Figure 12 This is a schematic diagram of the third positioning point in an embodiment of the present invention.

[0053] Figure 13 This is a schematic diagram of the fourth positioning point in an embodiment of the present invention.

[0054] Figure 14 This is a schematic diagram of a PCB character printing positioning point determination device according to an embodiment of the present invention.

[0055] Figure 15 This is a schematic diagram of the PCB character printing positioning point determination device according to an embodiment of the present invention. Detailed Implementation

[0056] The features and exemplary embodiments of various aspects of the present invention will now be described in detail. To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. 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 practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the invention.

[0057] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0058] Example 1

[0059] This invention provides a method for determining positioning points in PCB character printing. This method is applicable to applications where inkjet printing technology is used to print characters on PCB circuit boards. PCB character printing involves using inkjet printing equipment to print characters, lines, color blocks, etc. (collectively referred to as character printing) on ​​a PCB circuit board. During printing, a Gerber file created using computer-aided manufacturing (CAM) software is first used. The Gerber file is then parsed and converted into printing data using auxiliary software. An image acquisition device such as a CCD camera is used to position the PCB circuit board on the printing platform. Specific ink is then sprayed onto the printed circuit board using inkjet technology, thus completing the PCB character printing process. When creating the Gerber file, at least two positioning points, typically three or four, must be determined on the PCB image within the Gerber file. These positioning points are fabricated on the PCB circuit board and used to position the PCB circuit board during the character printing process.

[0060] Please see Figure 1 The method for determining the PCB character printing positioning points specifically includes the following steps:

[0061] S1: Obtain the PCB image from the Gerber file;

[0062] S2: Obtain a first positioning point selection area from the PCB image, and determine a first positioning point from the first positioning point selection area;

[0063] S3: Obtain the second positioning point selection area in the PCB image based on the first positioning point and the preset selection direction, and determine 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 for the PCB circuit board when performing PCB character printing according to the Gerber file.

[0065] For details, please see Figure 2 The Gerber file to be processed is input into GAM software or a custom Gerber creation software to obtain the PCB image from the Gerber file. This PCB image is a two-dimensional vector image. Multiple points are set near the edges of the PCB image as candidate positioning points D0 (hereinafter referred to as candidate positioning points). Then, the positioning points used for printing positioning during PCB character printing are selected from these candidate positioning points. Generally, more than two positioning points need to be selected. When selecting positioning points, the area where the first positioning point is located is first determined, denoted as the first positioning point selection area. For example, such as... Figure 2 The regions H0, H1, H2, H3, etc. shown can all be selected as the first positioning point.

[0066] In one embodiment, determining the first positioning point selection area from the PCB image, and determining the first positioning point from the first positioning point selection area, includes:

[0067] Acquire first external input information and determine the first location point selection area based on the first external input information, wherein the first location point selection area includes a plurality of first candidate location points;

[0068] Obtain second external input information and determine the first positioning point from the plurality of first candidate positioning points based on the second external input information.

[0069] Specifically, in this embodiment, the first positioning point selection area and the first positioning point are determined based on external input information. For example, the user zooms in on the PCB image and selects an area near a vertex of the PCB image (based on the first external input information), which is then displayed through a human-computer interaction interface. This area is the first positioning point selection area. The first positioning point selection area includes several first candidate positioning points. One point (based on the second external input information) is manually selected from these candidate points as the first positioning point. Preferably, the point closest to the vertex is selected as the first positioning point. Determining the first positioning point candidate area and the first positioning point by obtaining external input information, such as through manual selection by the user, does not place a heavy computational burden on the system, but it requires manual intervention.

[0070] In another embodiment, a first positioning point selection area and a first positioning point are automatically calculated and selected. The step of obtaining the first positioning point selection area from the PCB image and determining the first positioning point from the first positioning point selection area includes:

[0071] Obtain the four vertices of the PCB image and their surrounding areas, and denote them as vertex position regions;

[0072] Select any one of the four vertex position regions as the first positioning point selection region; wherein, the first positioning point selection region includes a plurality of first candidate positioning points;

[0073] The acquisition range of the image acquisition device is obtained, wherein the image acquisition device is used to acquire positioning point images in the PCB circuit board during PCB character printing and to position the PCB circuit board based on the acquired positioning point images.

[0074] The first location point is determined from the plurality of first candidate location points according to the collection range.

[0075] Preferably, the area near the four vertices of the PCB image is selected as the first positioning point selection area. An image recognition algorithm is used to identify the four vertices of the PCB image and the areas near them, denoted as the vertex position area. The size of the vertex position area can be determined based on the acquisition range of the image acquisition device, such as a CCD camera, or according to the actual application. Here, the image acquisition device, such as a CCD camera, is mainly used during PCB character printing to acquire positioning points on the PCB circuit board, thereby locating the PCB circuit board and determining whether its placement is accurate. Since the acquisition range of the image acquisition device is limited, it is often difficult to simultaneously acquire the image of the entire PCB circuit board and then identify each positioning point separately. The common practice is to first acquire one positioning point on the PCB circuit board, and then move to the location of the next positioning point and acquire the next positioning point. In this embodiment, the size of the vertex position area is determined according to the acquisition range of the image acquisition device. Preferably, the size of the vertex position area is less than or equal to the acquisition range of the image acquisition device.

[0076] After obtaining the four vertex position regions, any one of these four vertex position regions can be selected as the first positioning point selection region. The first positioning point selection region includes several first candidate positioning points. When selecting the first positioning point from the first positioning point selection region, if the first positioning point selection region is within the acquisition range of the image acquisition device, any one of these first candidate positioning points can be selected as the first positioning point; if the size of the vertex position region is larger than the acquisition range of the image acquisition device when determining it, then the first positioning point can only be selected from the first candidate positioning points in the corresponding region within the acquisition range of the image acquisition device. 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 it is to the center point of the image acquisition range, the clearer the image of the acquired first positioning point is. Based on this first positioning point, the positioning of the PCB circuit board is more accurate during PCB character printing, thereby ensuring more accurate PCB character printing position.

[0077] After obtaining the first positioning point, the second positioning point selection area and the second positioning point in the Gerber file are obtained based on the first positioning point and the preset selection direction. Specific steps include:

[0078] Based on the position of the first positioning point in the PCB image and the size of the PCB image, several pre-selected areas that meet preset conditions are obtained;

[0079] The second positioning point selection area is determined from the plurality of pre-selected areas according to the preset 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 obtaining the first positioning point, several pre-selected regions are automatically calculated and determined based on the position of the first positioning point on the PCB image and the size of the PCB image. These pre-selected regions must meet preset conditions. For example, the preset conditions are set as follows: the pre-selected region should contain at least one candidate positioning point, and the distance of the candidate positioning point to its nearest vertex (on the PCB image) is the same as or similar to the distance of the first positioning point to its nearest vertex (e.g., the distance difference is less than or equal to a first preset threshold, which can be determined according to the actual situation). The distance of the first positioning point to its nearest vertex is determined based on its position on the PCB image. In another embodiment, the preset conditions can also be set as follows: the pre-selected region should contain at least one candidate positioning point, and the distance of the candidate positioning point to its nearest edge on the PCB image is the same as or similar to the distance of the first positioning point to its nearest edge (e.g., the distance difference is less than or equal to a second preset threshold, which can be determined according to the actual situation). The size of the pre-selected region can be set to be the same as or similar to the size of the region selected by the first positioning point, or it can be set according to the actual situation. In one embodiment, the pre-selected region is the area near three vertices other than the vertex region where the first positioning point is located. Which of the three pre-selected regions is chosen as the second positioning point selection area is determined according to a preset selection direction. This preset selection direction is either counter-clockwise or clockwise. For example... Figure 3 As shown, the first positioning point D1 is located in the first positioning point selection area A0. When the preset 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 location of the first positioning point and the PCB image size; while when the preset 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 location of the first positioning point and the PCB image size. In one embodiment, as... Figure 4 , Figure 5 The software includes two interactive interface windows: a main window (C1) displaying the specific image of the currently selected location point area in the PCB image, including candidate location points within that area; and a secondary window (C2) displaying the overall outline of the PCB image, including the specific location of the currently selected location point area within the PCB image.

[0082] After obtaining the second positioning point selection area based on 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, third external input information is obtained, and the second positioning point is determined from the several second candidate positioning points based on the third external input information. For example, one point (based on the third external input information) is manually selected from the several second candidate positioning points 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 based on 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 acquired image of the second positioning point, and the more accurate the positioning of the PCB circuit board is when printing PCB characters based on this second positioning point.

[0083] After obtaining the second positioning point, the next step is to obtain a selection area for the third positioning point in the PCB image based on the second positioning point and a preset selection direction, and then determine the third positioning point from this selection area. Furthermore, the next step is to obtain a selection area for the fourth positioning point in the PCB image based on the third positioning point and a preset selection direction, and then determine the fourth positioning point from this selection area. The specific process is similar to that described above for obtaining the second positioning point from the first positioning point, and will not be repeated here. Figure 6 to Figure 9 The diagram shows how, when the preset selection direction is clockwise, 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. Figure 10 to Figure 13The diagram shows how, when the preset selection direction is counterclockwise, 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. The first positioning point D1 can be manually selected by the user or automatically selected by the system based on the acquisition range of the image acquisition device. After the first positioning point D1 is determined, the main window of the software automatically jumps to the second positioning point selection area where the second positioning point D2 is located. Similarly, the secondary window of the software 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 based on the acquisition range of the image acquisition device. After the second positioning point D2 is determined, the main window of the software automatically jumps to the third positioning point selection area where the third positioning point D3 is located. Similarly, the secondary window of the software 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 based on the acquisition range of the image acquisition device. After the third positioning point D3 is determined, the main window of the software automatically jumps to the fourth positioning point selection area where the fourth positioning point D4 is located. Similarly, the secondary window of the software 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 based on the acquisition range of the image acquisition device, thereby completing the selection of all positioning points. In this embodiment of the invention, after selecting the first positioning point, the system automatically identifies and jumps to the second positioning point selection area based on the 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. There is no need to drag the PCB image to make the selection, which is more convenient and faster, and improves the positioning point selection efficiency and user experience.

[0084] In summary, the PCB character printing positioning point determination method provided by this invention involves: acquiring a PCB image from a Gerber file; obtaining a first positioning point selection area from the PCB image; determining a first positioning point from the first positioning point selection area; automatically selecting a second positioning point selection area from the PCB image based on the first positioning point and a preset selection direction; and determining a second positioning point from the second positioning point selection area. After selecting the first positioning point, this method automatically identifies and jumps to the second positioning point selection area based on the preset selection direction. Within the second positioning point selection area, the second positioning point can be manually or automatically selected according to the actual application. Furthermore, a third positioning point is automatically selected based on the second positioning point and the preset selection direction, and a fourth positioning point is automatically selected based on the third positioning point and the preset selection direction, thereby completing the positioning point selection. Compared to existing methods that involve dragging the PCB image to select a portion of the area and then manually selecting positioning points, this method is more convenient and faster, improving positioning point selection efficiency and user experience. In addition, the optimal positioning point can be determined based on 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 are clearer when printing PCB characters. Based on these positioning points, the positioning of the PCB circuit board is more accurate, thereby ensuring more accurate PCB character printing position and greatly improving PCB character printing quality.

[0085] Example 2

[0086] Please see Figure 14 This invention provides a PCB character printing positioning point determination device 200, the device 200 comprising:

[0087] PCB image acquisition module 201 is used to acquire PCB images from Gerber files;

[0088] The 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] The second selection module 203 is used to obtain a second positioning point selection area of ​​the PCB image based on the first positioning point and the preset selection point direction, and to determine the second positioning point from the second positioning point selection area.

[0090] The preset selection point direction includes a clockwise direction or a counterclockwise direction. 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] The first external information acquisition unit is used to acquire first external input information and determine the first positioning point selection area based on 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 based on the second external input information.

[0094] Preferably, the first selection module 202 includes:

[0095] The vertex position acquisition unit is used to acquire the four vertices of the PCB image and their surrounding areas, which are denoted as the vertex position areas.

[0096] The first selection unit is used to select any one of the four vertex position regions as the first positioning point selection region; wherein, the first positioning point selection region includes a plurality of first candidate positioning points;

[0097] The first acquisition range acquisition unit is used to acquire the acquisition range of the image acquisition device, wherein the image acquisition device is used to acquire positioning point images in the PCB circuit board during PCB character printing and to position the PCB circuit board according to the acquired positioning point images.

[0098] The first determining unit is used 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] The pre-selected area acquisition unit is used to acquire a number of pre-selected areas that meet preset conditions based on the position of the first positioning point in the PCB image and the size of the PCB image.

[0101] The second selection unit is used to determine the second positioning point selection area from the plurality of pre-selected areas according to the preset selection direction, wherein the second positioning point selection area includes a plurality of second candidate positioning points;

[0102] The second determining unit is used 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 based on the third external input information.

[0105] Preferably, the second determining unit includes:

[0106] The second acquisition range acquisition unit is 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] The third selection module is used to obtain a third positioning point selection area in the PCB image based on the second positioning point and the preset selection point direction, and to determine 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 based on the third positioning point and the preset selection point direction, and to determine the fourth positioning point from the fourth positioning point selection area.

[0111] In summary, the PCB character printing positioning point determination device provided in this embodiment of the invention acquires a PCB image from a Gerber file; obtains a first positioning point selection area from the PCB image; determines a first positioning point from the first positioning point selection area; automatically selects a second positioning point selection area from the PCB image based on the first positioning point and a preset selection direction; and determines a second positioning point from the second positioning point selection area. After selecting the first positioning point, the method automatically identifies and jumps to the second positioning point selection area based on the preset selection direction. Within the second positioning point selection area, the second positioning point can be manually or automatically selected according to the actual application. Furthermore, a third positioning point is automatically selected based on the second positioning point and the preset selection direction, and a fourth positioning point is automatically selected based on the third positioning point and the preset selection direction, thereby completing the selection of positioning points. Compared to existing methods that involve dragging the PCB image to select a portion of the area and then manually selecting positioning points, this method is more convenient and faster, improving positioning point selection efficiency and user experience. In addition, the optimal positioning point can be determined based on 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 are clearer when printing PCB characters. Based on these positioning points, the positioning of the PCB circuit board is more accurate, thereby ensuring more accurate PCB character printing position and greatly improving PCB character printing quality.

[0112] Example 3

[0113] In addition, the PCB character printing positioning point determination method of this embodiment of the invention can be implemented by a PCB character printing positioning point determination device. Figure 15A schematic diagram of the hardware structure of the PCB character printing positioning point determination device provided in 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), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of the present invention.

[0116] Memory 302 may include mass storage for data or instructions. For example, and not limitingly, memory 302 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 302 may include removable or non-removable (or fixed) media. Where appropriate, memory 302 may be internal or external to a data processing device. In a particular embodiment, memory 302 is a non-volatile solid-state memory. In a particular embodiment, memory 302 includes read-only memory (ROM). Where appropriate, 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 flash memory, or a combination of two or more of these.

[0117] The processor 301 reads and executes computer program instructions stored in the memory 302 to implement any 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 also include a communication interface 303 and a bus 310. For example, Figure 15 As shown, the processor 301, memory 302, and communication interface 303 are connected through bus 310 and complete communication with each other.

[0119] The communication interface 303 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of the present invention.

[0120] Bus 310 includes hardware, software, or both, that couples components of a PCB character printing positioning device together. For example, and not as a limitation, bus 310 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 310 may include one or more buses. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.

[0121] Example 4

[0122] Furthermore, in conjunction with the PCB character printing positioning point determination method in the above embodiments, this invention can be implemented using a computer-readable storage medium. This computer-readable storage medium stores computer program instructions; when these computer program instructions are executed by the processor 301, they implement any of the PCB character printing positioning point determination methods in the above embodiments.

[0123] In summary, the PCB character printing positioning point determination method, apparatus, device, and storage medium provided in this embodiment of the invention acquire a PCB image from a Gerber file; obtain a first positioning point selection area from the PCB image; determine a first positioning point from the first positioning point selection area; automatically select a second positioning point selection area from the PCB image based on the first positioning point and a preset selection direction; and determine a second positioning point from the second positioning point selection area. After selecting the first positioning point, the method automatically identifies and jumps to the second positioning point selection area based on the preset selection direction. Within the second positioning point selection area, the second positioning point can be manually or automatically selected according to the actual application. Furthermore, a third positioning point is automatically selected based on the second positioning point and the preset selection direction, and a fourth positioning point is automatically selected based on the third positioning point and the preset selection direction, thereby completing the selection of positioning points. Compared to existing methods that involve dragging the PCB image to select a portion of the area and then manually selecting positioning points, this method is more convenient and faster, improving positioning point selection efficiency and user experience. In addition, the optimal positioning point can be determined based on 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 are clearer when printing PCB characters. Based on these positioning points, the positioning of the PCB circuit board is more accurate, thereby ensuring more accurate PCB character printing position and greatly improving PCB character printing quality.

[0124] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are 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. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.

[0125] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals 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, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0126] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0127] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.

Claims

1. A method for determining PCB character printing positioning points, characterized in that, The method includes: Obtain the PCB image from the 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 identify and jump to the second positioning point selection area in the PCB image based on the first positioning point and the preset selection direction, and determine the second positioning point from the second positioning point selection area, including: obtaining a plurality of pre-selected areas that meet preset conditions based on 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 based on the preset selection direction, wherein the second positioning point selection area includes a plurality of second candidate positioning points; and determining the second positioning point from the plurality of second candidate positioning points. The first positioning point and the second positioning point are used to provide positioning information for the PCB circuit board when performing PCB character printing according to the Gerber file.

2. The PCB character printing positioning point determination method according to claim 1, characterized in that, The step of obtaining the first positioning point selection area from the PCB image and determining the first positioning point from the first positioning point selection area includes: Acquire first external input information and determine the first location point selection area based on the first external input information, wherein the first location point selection area includes a plurality of first candidate location points; Obtain second external input information and determine the first positioning point from the plurality of first candidate positioning points based on the second external input information.

3. The PCB character printing positioning point determination method according to claim 1, characterized in that, The step of obtaining the first positioning point selection area from the PCB image and determining the first positioning point from the first positioning point selection area includes: Obtain the four vertices of the PCB image and their surrounding areas, and denote them as vertex position regions; Select any one of the four vertex position regions as the first positioning point selection region; wherein, the first positioning point selection region includes a plurality of first candidate positioning points; The acquisition range of the image acquisition device is obtained, wherein the image acquisition device is used to acquire positioning point images in the PCB circuit board during PCB character printing and to position the PCB circuit board based on the acquired positioning point images. The first location point is determined from the plurality of first candidate location points according to the collection range.

4. The PCB character printing positioning point determination method according to claim 3, characterized in that, Determining the second location point from the plurality of second candidate location points includes: Obtain third external input information and determine the second positioning point from the plurality of second candidate positioning points based on the third external input information.

5. The PCB character printing positioning point determination method according to claim 3, characterized in that, Determining the second location point from the plurality of second candidate location points includes: Obtain the acquisition range of the image acquisition device; The second location point is determined from the plurality of second candidate location points according to the acquisition range.

6. The PCB character printing positioning point determination method according to claim 1, characterized in that, The method further includes: Based on the second positioning point and the preset selection direction, obtain the third positioning point selection area in the PCB image, and determine the third positioning point from the third positioning point selection area; The fourth positioning point is selected from the PCB image based on the third positioning point and the preset selection direction, and the fourth positioning point is determined from the fourth positioning point selection area.

7. A PCB character printing positioning point determination device, characterized in that, The device includes: PCB image acquisition module, used to acquire PCB images from Gerber files; The first selection module 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; The second selection module is used to automatically identify and jump to the second positioning point selection area of ​​the PCB image based on the first positioning point and the preset selection point direction, and to determine the second positioning point from the second positioning point selection area. This includes: obtaining several pre-selected areas that meet preset conditions based on 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 several pre-selected areas based on the preset selection point direction, wherein the second positioning point selection area includes several second candidate positioning points; and determining the second positioning point from the several second candidate positioning points. The preset selection point direction includes a clockwise direction or a counterclockwise direction. 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.

8. A PCB character printing positioning point determination device, characterized in that, include: At least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method as described in any one of claims 1-6.

9. A storage medium storing computer program instructions thereon, characterized in that, The method as described in any one of claims 1-6 is implemented when the computer program instructions are executed by the processor.

Citation Information

Patent Citations

  • Image calibration method and apparatus

    CN105427297A

  • Gerber file processing method and device and computer readable storage medium

    CN109614059A