Methods, devices, and storage media for determining the compensation accuracy of a camera system
By acquiring and analyzing images of the calibration board, pixel equivalents and local compensation accuracy values are generated, solving the problem of poor laser accuracy in laser systems and achieving high-precision target capture by camera systems.
Patent Information
- Application Number
- CN202310379009.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2043-03-31
AI Technical Summary
When laser marking products such as IC substrates, laser systems suffer from poor laser accuracy, with actual accuracy deviations reaching 70-80µm.
By acquiring images of the calibration board, the actual information of the graphic is generated, and pixel equivalents and local compensation accuracy values are generated based on theoretical and actual information. Overall and local accuracy compensation is then performed to improve the target-grabbing accuracy of the camera system.
This improves the laser accuracy of the camera system when capturing targets, ensuring that the laser accuracy is within 50µm.
Smart Images

Figure CN116402900B_ABST
Abstract
Description
[Technical Field]
[0001] The embodiments of the present invention relate to the field of laser application technology, specifically to a method, apparatus and storage medium for determining the compensation accuracy of a camera system. [Background Technology]
[0002] When laser marking products such as IC substrates (packaging substrates), laser systems typically use green nanosecond lasers with a spot size of 50 micrometers (µm) or larger, large field lenses of 160 mm x 160 mm, and a line scan camera to quickly capture and position the target in order to ensure laser accuracy within 50 µm.
[0003] However, in practical applications, the actual laser results will deviate from the theoretical laser results by 70-80µm, resulting in poor laser accuracy. [Summary of the Invention]
[0004] In view of this, embodiments of the present invention provide a method, apparatus and storage medium for determining the compensation accuracy of a camera system, in order to solve the problem of poor laser accuracy in the prior art.
[0005] In a first aspect, embodiments of the present invention provide a method for determining the compensation accuracy of a camera system, comprising:
[0006] Acquire a first image of a calibration plate, the first image including a first pattern laser-etched on the calibration plate by a laser marking device according to the acquired first theoretical information;
[0007] Generate first actual information of the first graphic based on the first image;
[0008] Pixel equivalents are generated to compensate for overall accuracy based on the first theoretical information and the first actual information.
[0009] Acquire a second image of the calibration plate, the second image including a second pattern laser-etched on the calibration plate by a laser marking device according to the acquired second theoretical information;
[0010] Based on the second image and the pixel equivalent, generate the second actual information of the second graphic;
[0011] A local compensation accuracy value is generated based on the second theoretical information and the second actual information.
[0012] In one possible implementation, the first graphic includes a plurality of first shape graphics, the first actual information includes first actual coordinates corresponding to the plurality of first shape graphics, and the first theoretical information includes first theoretical coordinates corresponding to the plurality of first shape graphics; the step of generating a pixel equivalent to compensate for overall accuracy based on the first theoretical information and the first actual information includes:
[0013] Multiple theoretical graphic spacing values are generated based on the first theoretical coordinates corresponding to multiple first shape graphics;
[0014] Generate the actual graphic spacing value corresponding to each of the theoretical graphic spacing values based on the first actual coordinates corresponding to the multiple first shape graphics;
[0015] The pixel equivalent is generated based on the plurality of theoretical graphic spacing values and the actual graphic spacing value corresponding to each of the theoretical graphic spacing values.
[0016] In one possible implementation, generating the pixel equivalent based on a plurality of theoretical graphic spacing values and an actual graphic spacing value corresponding to each theoretical graphic spacing value includes:
[0017] The actual graphic spacing value corresponding to the multiple theoretical graphic spacing values is compared with the theoretical graphic spacing value to generate a first ratio value corresponding to each theoretical graphic spacing value.
[0018] The average of the multiple first ratios is taken as the pixel equivalent.
[0019] In one possible implementation, the second graphic includes multiple second shape graphics, the second actual information includes second actual coordinates corresponding to the multiple second shape graphics, the second theoretical information includes second theoretical coordinates corresponding to the multiple second shape graphics, and the local compensation accuracy value includes multiple local coordinate compensation accuracy values; generating the local compensation accuracy value based on the second theoretical information and the second actual information includes:
[0020] Based on the second theoretical coordinates and the second actual coordinates corresponding to each second shape, a local coordinate compensation accuracy value is generated for each second shape.
[0021] In one possible implementation, the local compensation accuracy value includes multiple local coordinate compensation accuracy values. After generating the local compensation accuracy value based on the second theoretical information and the second actual information, the method further includes:
[0022] Obtain a circuit board image of the circuit board to be processed, wherein the circuit board image includes a target;
[0023] The first precision coordinates corresponding to the target are determined based on the acquired laser information and pixel equivalent.
[0024] Based on the first precision coordinate, the target local coordinate compensation precision value corresponding to the first precision coordinate is determined from a plurality of local coordinate compensation precision values;
[0025] The second precision coordinates corresponding to the target are generated based on the target local coordinate compensation precision value and the first precision coordinates.
[0026] In one possible implementation, the circuit board to be processed is an IC carrier board;
[0027] The laser information includes at least one of the following: search box ratio, error prevention radius, and sheet error value.
[0028] Secondly, embodiments of the present invention provide a device for determining the compensation accuracy of a camera system, comprising:
[0029] The first acquisition module is used to acquire a first image of the calibration board, the first image including a first pattern laser-etched on the calibration board by a laser marking device according to the acquired first theoretical information;
[0030] The first generation module is used to generate first actual information of the first graphic based on the first image;
[0031] The second generation module is used to generate pixel equivalents to compensate for overall accuracy based on the first theoretical information and the first actual information.
[0032] The second acquisition module is used to acquire a second image of the calibration plate, the second image including a second pattern laser-etched on the calibration plate by a laser marking device according to the acquired second theoretical information;
[0033] The third generation module is used to generate the second actual information of the second graphic based on the second image and the pixel equivalent;
[0034] The fourth generation module is used to generate local compensation accuracy values based on the second theoretical information and the second actual information.
[0035] In one possible implementation, the first graphic includes a plurality of first shape graphics, the first actual information includes first actual coordinates corresponding to the plurality of first shape graphics, and the first theoretical information includes first theoretical coordinates corresponding to the plurality of first shape graphics; the second generation module includes a first generation submodule, a second generation submodule, and a third generation submodule.
[0036] The first generation submodule is used to generate multiple theoretical graphic spacing values based on the first theoretical coordinates corresponding to the multiple first shape graphics;
[0037] The second generation submodule is used to generate an actual graphic spacing value corresponding to each of the theoretical graphic spacing values based on the first actual coordinates corresponding to the multiple first shape graphics.
[0038] The third generation submodule is used to generate the pixel equivalent based on the plurality of theoretical graphic spacing values and the actual graphic spacing value corresponding to each of the theoretical graphic spacing values.
[0039] Thirdly, embodiments of the present invention provide a storage medium comprising a stored program, wherein, when the program is executed, the device on which the storage medium is located executes the method for determining the compensation accuracy of the camera system in the first aspect or any possible implementation thereof.
[0040] Fourthly, embodiments of the present invention provide a camera device, including a memory and a processor. The memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions. When the program instructions are loaded and executed by the processor, they implement the steps of the method for determining the compensation accuracy of the camera system in the first aspect or any possible implementation of the first aspect.
[0041] The present invention provides a method, apparatus, and storage medium for determining the compensation accuracy of a camera system. The method involves: acquiring a first image of a calibration board, including a first pattern laser-marked on the calibration board by a laser marking device based on acquired first theoretical information; generating first actual information of the first pattern based on the first image; generating a pixel equivalent to compensate for overall accuracy based on the first theoretical information and the first actual information; acquiring a second image of the calibration board, including a second pattern laser-marked on the calibration board by a laser marking device based on acquired second theoretical information; generating second actual information of the second pattern based on the second image and the pixel equivalent; and generating a local compensation accuracy value based on the second theoretical information and the second actual information. The pixel equivalent represents the overall offset compensation accuracy of the camera system for the target's graphic coordinates during target capture. The local compensation accuracy value includes the local offset compensation accuracy value corresponding to the target's graphic coordinates, thereby enabling the camera system to re-determine the pixel size and determine more accurate graphic coordinates based on the pixel equivalent and the local offset compensation accuracy value during target capture, thus improving the target capture laser accuracy of the camera system. [Attached Image Description]
[0042] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 A flowchart illustrating a method for determining the compensation accuracy of a camera system, provided as an embodiment of the present invention;
[0044] Figure 2 This is a schematic diagram of a first image provided in an embodiment of the present invention;
[0045] Figure 3 This is a schematic diagram of a second image provided in an embodiment of the present invention;
[0046] Figure 4 A flowchart for generating pixel equivalents is provided in an embodiment of the present invention;
[0047] Figure 5 This is a schematic diagram of a page for setting the search box ratio and error prevention radius, provided as an embodiment of the present invention.
[0048] Figure 6 A schematic diagram of a circuit board image provided for an embodiment of the present invention;
[0049] Figure 7 A schematic diagram of a device for determining the compensation accuracy of a camera system provided in an embodiment of the present invention;
[0050] Figure 8 This is a schematic diagram of a camera system provided in an embodiment of the present invention.
Detailed Implementation Methods
[0051] To better understand the technical solution of the present invention, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0052] It should be understood that the described embodiments are merely some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0053] The terminology used in the embodiments of this invention is for the purpose of describing particular embodiments only and is not intended to limit the invention. The singular forms “a,” “the,” and “the” as used in the embodiments of this invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0054] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0055] It should be understood that although terms such as first, second, third, etc., may be used to describe numbers in embodiments of the present invention, these numbers should not be limited to these terms. These terms are only used to distinguish numbers from each other. For example, without departing from the scope of embodiments of the present invention, a first number may also be referred to as a second number, and similarly, a second number may also be referred to as a first number.
[0056] Depending on the context, the word "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection." Similarly, depending on the context, the phrase "if determination" or "if detection (of the stated condition or event)" can be interpreted as "when determination," "in response to determination," "when detection (of the stated condition or event)," or "in response to detection (of the stated condition or event)."
[0057] Figure 1 A flowchart illustrating a method for determining the compensation accuracy of a camera system, as provided in an embodiment of the present invention, is shown below. Figure 1 As shown, the method includes:
[0058] Step 101: The camera system acquires a first image of the calibration plate. The first image includes a first pattern laser-etched on the calibration plate by the laser marking device based on the acquired first theoretical information.
[0059] In this embodiment of the invention, the camera system includes a camera, which may be a line scan camera or a line array camera. The laser marking device includes an IC substrate laser marking device and a galvanometer. The first pattern includes multiple first shape patterns, and the first theoretical information includes at least one of the first theoretical coordinates, pattern spacing, and pattern shape of the multiple first shape patterns. Light is emitted from the center of the galvanometer, and the IC substrate laser marking device laser-marks multiple first shape patterns on a calibration board according to the first theoretical information. The camera scans the laser-marked calibration board to obtain a first image. For example, the scanning range of the camera is 250*315mm.
[0060] Figure 2 A schematic diagram of a first image provided for an embodiment of the present invention, such as... Figure 2 As shown, the calibration plate is black. The first image includes nine circles with a diameter of 2mm, and also nine circle-finding tool icons. Figure 2 As shown, the first shape is a circle with a diameter of 2mm.
[0061] Step 102: The camera system generates the first actual information of the first graphic based on the first image.
[0062] In this embodiment of the invention, the first actual information includes the first actual coordinates corresponding to multiple first shape graphics. The camera system captures multiple first shape graphics in the first image and generates the first actual coordinates corresponding to the captured first shape graphics.
[0063] The camera system includes a target-grabbing tool. For example... Figure 2 As shown, the target-grabbing tool is a circle-finding tool. The camera system uses the circle-finding tool to identify circles with a diameter of 2mm and generates the first actual coordinates corresponding to each circle.
[0064] Step 103: The camera system generates a pixel equivalent to compensate for the overall accuracy based on the first theoretical information and the first actual information.
[0065] In this embodiment of the invention, the pixel equivalent can also be referred to as the overall compensation accuracy value, which represents the value of the overall offset compensation accuracy of the target graphic coordinates when the camera system captures the target. Thus, the camera system will perform offset correction on the size of the pixels in the image, making the overall accuracy of the image more accurate.
[0066] Step 104: The camera system acquires a second image of the calibration plate. The second image includes a second pattern laser-etched on the calibration plate by the laser marking device based on the acquired second theoretical information.
[0067] In this embodiment of the invention, the second graphic includes multiple second shape graphics, the second theoretical information includes the second theoretical coordinates corresponding to the multiple second shape graphics, and the local compensation accuracy value includes multiple local coordinate compensation accuracy values. An IC substrate laser marking device laser-marks multiple second shape graphics on a calibration board according to the second theoretical information. A camera scans the re-lasered calibration board to obtain a second image. For example, the laser marking device laser-marks 1035 crosses with a spacing of 6mm and a size of 2mm on the calibration board.
[0068] Figure 3 This is a schematic diagram of a second image provided in an embodiment of the present invention. Figure 3 The corresponding calibration board and Figure 2 The corresponding calibration plate is the same calibration plate. For example... Figure 3 As shown, the second image contains 1035 crosses, each cross measuring 2mm in size (length and width); the distance between adjacent crosses is 6mm. Figure 3 As shown, the second shape is a cross with a size of 2mm.
[0069] Step 105: The camera system generates second actual information of the second image based on the second image and pixel equivalent.
[0070] In this embodiment of the invention, the second actual information includes the second actual coordinates corresponding to multiple second shape graphics. The camera system captures multiple second shape graphics in the second image and generates the second actual coordinates of the captured second shape graphics.
[0071] like Figure 3 As shown, the camera system performs target acquisition on each crosshair based on the pixel equivalent generated in step 103, generating the second actual coordinates corresponding to each crosshair.
[0072] Step 106: The camera system generates a local compensation accuracy value based on the second theoretical information and the second actual information.
[0073] In this embodiment of the invention, the local compensation accuracy value includes multiple local coordinate compensation accuracy values. For example... Figure 3 As shown, the camera system generates the local coordinate compensation accuracy value for each cross based on the second actual coordinate and the second theoretical coordinate of each cross.
[0074] This invention provides a method for determining the compensation accuracy of a camera system. The camera system acquires a first image of a calibration board, including a first pattern laser-marked on the calibration board by a laser marking device based on acquired first theoretical information. First actual information of the first pattern is generated based on the first image. A pixel equivalent for compensating for overall accuracy is generated based on the first theoretical information and the first actual information. A second image of the calibration board is acquired, including a second pattern laser-marked on the calibration board by a laser marking device based on acquired second theoretical information. Second actual information of the second pattern is generated based on the second image and the pixel equivalent. A local compensation accuracy value is generated based on the second theoretical information and the second actual information. The pixel equivalent represents the overall offset compensation accuracy of the target's graphic coordinates during target capture. The local compensation accuracy value includes the local offset compensation accuracy value corresponding to the target's graphic coordinates, thereby enabling the camera system to re-determine the pixel size and determine more accurate graphic coordinates based on the pixel equivalent and the local offset compensation accuracy value during target capture, thus improving the target capture laser accuracy of the camera system.
[0075] In one possible implementation, the first graphic includes multiple first shape graphics, the first actual information includes the first actual coordinates corresponding to the multiple first shape graphics, and the first theoretical information includes the first theoretical coordinates corresponding to the multiple first shape graphics. Figure 4 A flowchart for generating pixel equivalents is provided as an embodiment of the present invention, such as... Figure 4 As shown, step 103 may specifically include:
[0076] Step 1031: The camera system generates multiple theoretical graphic spacing values based on the first theoretical coordinates corresponding to multiple first shape graphics.
[0077] In embodiments of the present invention, such as Figure 2 As shown, the camera system generates the theoretical graphic spacing value corresponding to each surrounding circle based on the first theoretical coordinates corresponding to multiple circles; the theoretical graphic spacing value corresponding to the surrounding circle is the theoretical distance between the surrounding circle and the central circle; the central circle is the circle corresponding to the image finding tool 5 among the 9 circles; the surrounding circles are the circles other than the central circle among the 9 circles.
[0078] Step 1032: The camera system generates the actual graphic spacing value corresponding to each theoretical graphic spacing value based on the first actual coordinates corresponding to the multiple first shape graphics.
[0079] In embodiments of the present invention, such as Figure 2 As shown, the camera system generates the actual graphic spacing value corresponding to each surrounding circle based on the first actual coordinates corresponding to multiple circles; the actual graphic spacing value corresponding to the surrounding circle is the actual distance between that surrounding circle and the central circle. Since the theoretical graphic spacing value corresponds to the surrounding circle, and the actual graphic spacing value corresponds to the surrounding circle, the theoretical graphic spacing value corresponding to the same surrounding circle corresponds to the actual graphic spacing value.
[0080] Step 1033: The camera system generates pixel equivalents based on multiple theoretical graphic spacing values and the actual graphic spacing values corresponding to each theoretical graphic spacing value.
[0081] In this embodiment of the invention, the camera system compares the actual graphic spacing value corresponding to multiple theoretical graphic spacing values with the theoretical graphic spacing value to generate a first ratio value corresponding to each theoretical graphic spacing value; and uses the average of multiple first ratio values as the pixel equivalent.
[0082] like Figure 2 As shown, the camera system compares the actual graphic spacing value corresponding to each surrounding circle with the theoretical graphic spacing value to generate eight first ratios; the average of the eight first ratios is used as the pixel equivalent. If the theoretical graphic spacing value corresponding to each surrounding circle is equal to the actual graphic spacing value, then the first ratio is 1, and the pixel equivalent is also 1.
[0083] In this embodiment of the invention, the execution order of steps 1031 and 1032 is not limited. Step 1031 may be executed before step 1032, or after step 1032, or step 1031 and step 1032 may be executed simultaneously.
[0084] In one possible implementation, the second graphic includes multiple second shape graphics, the second actual information includes the second actual coordinates corresponding to the multiple second shape graphics, the second theoretical information includes the second theoretical coordinates corresponding to the multiple second shape graphics, and the local compensation accuracy value includes multiple local coordinate compensation accuracy values; step 106 may specifically include: the camera system generates the local coordinate compensation accuracy value corresponding to each second shape graphic based on the second theoretical coordinates and the second actual coordinates corresponding to each second shape graphic.
[0085] In this embodiment of the invention, the camera system uses the ratio of the second actual coordinates to the second theoretical coordinates corresponding to each second shape as the local coordinate compensation accuracy value. The second actual coordinates and / or the second theoretical coordinates corresponding to the second shape correspond to a coordinate range, which includes multiple coordinates, and this coordinate range also corresponds to the local coordinate compensation accuracy value.
[0086] like Figure 3 As shown, the camera system compares the second actual coordinates corresponding to each crosshair with the second theoretical coordinates to generate a local coordinate compensation accuracy value for each crosshair.
[0087] In one possible implementation, the local compensation accuracy value includes multiple local coordinate compensation accuracy values. After step 106, the method further includes: acquiring a circuit board image of the circuit board to be processed, the circuit board image including a target; determining the first accuracy coordinates corresponding to the target based on the acquired laser information and pixel equivalent; determining the target local coordinate compensation accuracy value corresponding to the first accuracy coordinate from multiple local coordinate compensation accuracy values based on the first accuracy coordinate; and generating the second accuracy coordinates corresponding to the target based on the target local coordinate compensation accuracy value and the first accuracy coordinate.
[0088] In this embodiment of the invention, the circuit board to be processed is an IC carrier board; the laser information includes at least one of the following: search box ratio, error prevention radius, and sheet error value.
[0089] When the circuit board to be processed is a standard circuit board, the laser information includes the search box ratio and the error-proof radius. After the laser marking equipment laser-marks multiple targets on the circuit board, the camera system performs a line scan to capture an image of the entire circuit board, which includes the targets. Then, the camera system captures the targets based on the circuit board image. During the target capture process, multiple targets of similar size may exist in adjacent positions, leading to target capture errors. Therefore, by setting the search box ratio and error-proof radius, the camera system can ensure correct target capture. The search box ratio is typically set to 3-5 times the theoretical target size; for example, the camera system determines the search range to be 3*3mm based on the search box ratio.
[0090] Figure 5This is a schematic diagram of a page for setting the search box ratio and error prevention radius, provided by an embodiment of the present invention. Figure 5 As shown, the X-axis scaling ratio of the mark search area is 4.0; the Y-axis scaling ratio of the mark search area is 4.0; the allowable range for the mark radius to prevent mistakes is 1.0; the search box ratio includes the X-axis search box ratio and the Y-axis search box ratio, with the X-axis search box ratio being 4.0; the Y-axis search box ratio being 4.0; and the mistake-proof radius being 1.0.
[0091] The camera system determines the first precision coordinates of the target by setting the search box ratio, the error-proof radius, and the pixel equivalent. Based on the first precision coordinates, it determines the corresponding coordinate range of the target. Based on this coordinate range, it determines the corresponding local coordinate compensation precision value from the local compensation precision value. Finally, it generates the second precision coordinates based on the local coordinate compensation precision value and the first precision coordinates. The camera system determines whether the target capture is correct by comparing the second precision coordinates of the target with the theoretical target coordinates. For example, if the camera system determines that the difference between the second precision coordinates and the theoretical target coordinates is greater than ±0.5mm, it determines that the target capture is incorrect; if the difference is less than or equal to 0.5mm and greater than or equal to -0.5mm, it determines that the target capture is successful. This allows the camera system to capture targets on a standard circuit board using the search box ratio and error-proof radius, and to determine the actual second precision coordinates of the target using the pixel equivalent and local compensation precision value. The error between the determined second precision coordinates and the theoretical target coordinates is less than or equal to 50µm, improving laser accuracy.
[0092] When the circuit board to be processed is non-standard, the laser information includes the search box ratio, the error-proof radius, and the material error value. For example, a circuit board affected by its own material expansion and contraction is defined as a non-standard circuit board. After the laser marking equipment laser-marks multiple targets on the circuit board to be processed, the camera system performs a line scan of the entire circuit board to generate a circuit board image, which includes the targets; then, the camera system performs target grabbing based on the circuit board image. During the target grabbing process, because there may be multiple targets of similar size in adjacent positions, the camera system may grab the target incorrectly. Therefore, by setting the search box ratio and the error-proof radius, the camera system can ensure correct target grabbing. Since non-standard circuit boards are affected by their own material expansion and contraction, resulting in a certain overall misalignment, the error caused by the circuit board to be processed can be compensated by setting the material error value to ensure that the target position of the camera system is correct.
[0093] For example, the camera system has a configuration file Table0CompenX or Table0CompenY. Users can perform reverse overall compensation based on the actual laser precision deviation by modifying the set error value in the configuration file Table0CompenX or Table0CompenY, and then using this modified set error value as the material error value. Figure 6 A schematic diagram of a circuit board image provided in an embodiment of the present invention, such as... Figure 6 As shown, the circuit board to be processed is non-standard, and the target is circular. When the camera system performs target positioning, if the laser information only includes the search box ratio and the error prevention radius, the camera system will experience a certain overall misalignment of the target when grasping the circular target using the circle-finding tool, as shown in the diagram to the left of the arrow. This is due to the expansion and contraction of the circuit board itself. If the laser information includes the search box ratio, the error prevention radius, and the material error value, the camera system will be able to center the collected circle on the target-finding tool, as shown in the diagram to the right of the arrow. This allows the camera system to grasp the target on the non-standard circuit board using the search box ratio and the error prevention radius, and determine the target coordinates using pixel equivalent and local compensation accuracy values. By precisely controlling the accuracy issues caused by material target differences through the modified error values in the configuration file, the camera system can reduce the laser accuracy difference range to within 50µm, thus improving laser accuracy.
[0094] This invention provides a method for determining the compensation accuracy of a camera system. The camera system acquires a first image of a calibration board, including a first pattern laser-marked on the calibration board by a laser marking device based on acquired first theoretical information. Based on the first image, first actual information of the first pattern is generated. A pixel equivalent is generated to compensate for overall accuracy based on the first theoretical information and the first actual information. A second image of the calibration board is acquired, including a second pattern laser-marked on the calibration board by a laser marking device based on acquired second theoretical information. Based on the second image and the pixel equivalent, second actual information of the second pattern is generated. A local compensation accuracy value is generated based on the second theoretical information and the second actual information. The pixel equivalent represents the overall offset compensation accuracy of the target's graphic coordinates when the camera system is capturing the target. The local compensation accuracy value includes the local offset compensation accuracy value corresponding to the target's graphic coordinates, thereby enabling the camera system to re-determine the pixel size. This allows the camera system to perform a first compensation on the target's coordinates based on the pixel equivalent and a second compensation on the target's coordinates based on the local offset compensation accuracy value to determine more accurate graphic coordinates, thus improving the laser-marking accuracy of the camera system.
[0095] Figure 7This is a schematic diagram of a device for determining the compensation accuracy of a camera system according to an embodiment of the present invention, as shown below. Figure 7 As shown, the device includes: a first acquisition module 11, a first generation module 12, a second generation module 13, a second acquisition module 14, a third generation module 15, and a fourth generation module 16. The first acquisition module 11 is connected to the first generation module 12, the first generation module 12 is connected to the second generation module 13, the second generation module 13 is connected to the second acquisition module 14, the second acquisition module 14 is connected to the third generation module 15, and the third generation module 15 is connected to the fourth generation module 16.
[0096] The first acquisition module 11 is used to acquire a first image of the calibration board, the first image including a first pattern laser-etched on the calibration board by a laser marking device according to the acquired first theoretical information; the first generation module 12 is used to generate first actual information of the first pattern based on the first image; the second generation module 13 is used to generate a pixel equivalent to compensate for the overall accuracy based on the first theoretical information and the first actual information; the second acquisition module 14 is used to acquire a second image of the calibration board, the second image including a second pattern laser-etched on the calibration board by a laser marking device according to the acquired second theoretical information; the third generation module 15 is used to generate second actual information of the second pattern based on the second image and the pixel equivalent; the fourth generation module 16 is used to generate a local compensation accuracy value based on the second theoretical information and the second actual information.
[0097] In this embodiment of the invention, the first graphic includes multiple first shape graphics, the first actual information includes the first actual coordinates corresponding to the multiple first shape graphics, and the first theoretical information includes the first theoretical coordinates corresponding to the multiple first shape graphics; the second generation module 13 includes a first generation submodule 131, a second generation submodule 132, and a third generation submodule 133; the first generation submodule 131 is connected to the second generation submodule 132, and the second generation submodule 132 is connected to the third generation submodule 133.
[0098] The first generation submodule 131 is used to generate multiple theoretical graphic spacing values based on the first theoretical coordinates corresponding to multiple first shape graphics; the second generation submodule 132 is used to generate the actual graphic spacing value corresponding to each theoretical graphic spacing value based on the first actual coordinates corresponding to multiple first shape graphics; the third generation submodule 133 is used to generate pixel equivalents based on the multiple theoretical graphic spacing values and the actual graphic spacing value corresponding to each theoretical graphic spacing value.
[0099] In this embodiment of the invention, the third generation submodule 133 is specifically used to compare the actual graphic spacing value corresponding to the multiple theoretical graphic spacing values with the theoretical graphic spacing value to generate a first ratio value corresponding to each theoretical graphic spacing value; and to use the average of the multiple first ratio values as the pixel equivalent.
[0100] In this embodiment of the invention, the second graphic includes multiple second shape graphics, the second actual information includes the second actual coordinates corresponding to the multiple second shape graphics, the second theoretical information includes the second theoretical coordinates corresponding to the multiple second shape graphics, and the fourth generation module 16 is specifically used to generate a local coordinate compensation accuracy value corresponding to each second shape graphic based on the second theoretical coordinates and the second actual coordinates corresponding to each second shape graphic.
[0101] In this embodiment of the invention, the device further includes a second acquisition module 17, a first determination module 18, a second determination module 19, and a fifth generation module 20. The fourth generation module 16 is connected to the second acquisition module 17, the second acquisition module 17 is connected to the first determination module 18, the first determination module 18 is connected to the second determination module 19, and the second determination module 19 is connected to the fifth generation module 20.
[0102] The local compensation accuracy value includes multiple local coordinate compensation accuracy values. The second acquisition module 17 is used to acquire a circuit board image of the circuit board to be processed, and the circuit board image includes a target. The first determination module 18 is used to determine the first accuracy coordinates corresponding to the target based on the acquired laser information and pixel equivalent. The second determination module 19 is used to determine the target local coordinate compensation accuracy value corresponding to the first accuracy coordinate from multiple local coordinate compensation accuracy values based on the first accuracy coordinate. The fifth generation module 20 is used to generate the second accuracy coordinates corresponding to the target based on the target local coordinate compensation accuracy value and the first accuracy coordinate.
[0103] In this embodiment of the invention, the circuit board to be processed is an IC carrier board; the laser information includes at least one of the following: search box ratio, error prevention radius, and sheet error value.
[0104] This invention provides a device for determining the compensation accuracy of a camera system. The camera system acquires a first image of a calibration board, the first image including a first pattern laser-etched on the calibration board by a laser marking device based on acquired first theoretical information; generates first actual information of the first pattern based on the first image; generates a pixel equivalent to compensate for overall accuracy based on the first theoretical information and the first actual information; acquires a second image of the calibration board, the second image including a second pattern laser-etched on the calibration board by a laser marking device based on acquired second theoretical information; generates second actual information of the second pattern based on the second image and the pixel equivalent; and generates a local compensation accuracy value based on the second theoretical information and the second actual information. The pixel equivalent represents the overall offset compensation accuracy of the camera system for the target's graphic coordinates during target acquisition; the local compensation accuracy value includes the local offset compensation accuracy value corresponding to the target's graphic coordinates, thereby enabling the camera system to re-determine the pixel size and determine more accurate graphic coordinates based on the pixel equivalent and the local offset compensation accuracy value during target acquisition, thus improving the target acquisition laser accuracy of the camera system.
[0105] This invention provides a storage medium including a stored program, wherein, when the program runs, it controls the device where the storage medium is located to execute the steps of the above-described method for determining the compensation of a camera system with the aforementioned accuracy. For a detailed description, please refer to the embodiments of the above-described method for determining the compensation of a camera system with the aforementioned accuracy.
[0106] This invention provides a camera system including a memory and a processor. The memory stores information including program instructions, and the processor controls the execution of the program instructions. When the program instructions are loaded and executed by the processor, the various steps of the compensation accuracy determination method for the camera system described above are implemented. For a detailed description, please refer to the embodiments of the compensation accuracy determination method for the camera system described above.
[0107] Figure 8 This is a schematic diagram of a camera system provided in an embodiment of the present invention. Figure 8 As shown, the camera system 30 of this embodiment includes a processor 31, a memory 32, and a computer program 33 stored in the memory 32 and executable on the processor 31. When the processor 31 executes the computer program 33, it implements the method for determining the compensation accuracy of the camera system in this embodiment. To avoid repetition, these methods will not be described in detail here. Alternatively, when the processor 31 executes the computer program, it implements the functions of each model / unit in the device for determining the compensation accuracy of the camera system in this embodiment. To avoid repetition, these functions will not be described in detail here.
[0108] The camera system 30 includes, but is not limited to, a processor 31 and a memory 32. Those skilled in the art will understand that... Figure 8 This is merely an example of camera system 30 and does not constitute a limitation on camera system 30. It may include more or fewer components than shown, or combine certain components, or different components. For example, camera system 30 may also include input / output devices, network access devices, buses, etc.
[0109] The processor 31 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0110] The memory 32 can be an internal storage unit of the camera system 30, such as a hard disk or RAM of the camera system 30. The memory 32 can also be an external storage device of the camera system 30, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the camera system 30. Furthermore, the memory 32 can include both internal storage units and external storage devices of the camera system 30. The memory 32 is used to store computer programs and other programs and data required by the camera system 30. The memory 32 can also be used to temporarily store data that has been output or will be output.
[0111] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0112] In the embodiments provided by this invention, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units through some interfaces, and may be electrical, mechanical, or other forms.
[0113] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0114] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0115] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0116] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for determining the compensation accuracy of a camera system, characterized in that, include: Acquire a first image of a calibration plate, the first image including a first pattern laser-etched on the calibration plate by a laser marking device according to the acquired first theoretical information; Generate first actual information of the first graphic based on the first image; Pixel equivalents are generated to compensate for overall accuracy based on the first theoretical information and the first actual information. Acquire a second image of the calibration plate, the second image including a second pattern laser-etched on the calibration plate by a laser marking device according to the acquired second theoretical information; Based on the second image and the pixel equivalent, generate the second actual information of the second graphic; A local compensation accuracy value is generated based on the second theoretical information and the second actual information.
2. The method according to claim 1, characterized in that, The first graphic includes multiple first shape graphics, the first actual information includes first actual coordinates corresponding to the multiple first shape graphics, and the first theoretical information includes first theoretical coordinates corresponding to the multiple first shape graphics. The step of generating a pixel equivalent to compensate for overall accuracy based on the first theoretical information and the first actual information includes: Multiple theoretical graphic spacing values are generated based on the first theoretical coordinates corresponding to multiple first shape graphics; Generate the actual graphic spacing value corresponding to each of the theoretical graphic spacing values based on the first actual coordinates corresponding to the multiple first shape graphics; The pixel equivalent is generated based on the plurality of theoretical graphic spacing values and the actual graphic spacing value corresponding to each of the theoretical graphic spacing values.
3. The method according to claim 2, characterized in that, The step of generating the pixel equivalent based on a plurality of theoretical graphic spacing values and the actual graphic spacing value corresponding to each theoretical graphic spacing value includes: The actual graphic spacing value corresponding to the multiple theoretical graphic spacing values is compared with the theoretical graphic spacing value to generate a first ratio value corresponding to each theoretical graphic spacing value. The average of the multiple first ratios is taken as the pixel equivalent.
4. The method according to claim 1, characterized in that, The second graphic includes multiple second shape graphics, the second actual information includes second actual coordinates corresponding to the multiple second shape graphics, the second theoretical information includes second theoretical coordinates corresponding to the multiple second shape graphics, and the local compensation accuracy value includes multiple local coordinate compensation accuracy values; the step of generating local compensation accuracy values based on the second theoretical information and the second actual information includes: Based on the second theoretical coordinates and the second actual coordinates corresponding to each second shape, a local coordinate compensation accuracy value is generated for each second shape.
5. The method according to claim 1, characterized in that, The local compensation accuracy value includes multiple local coordinate compensation accuracy values. After generating the local compensation accuracy value based on the second theoretical information and the second actual information, the method further includes: Obtain a circuit board image of the circuit board to be processed, wherein the circuit board image includes a target; The first precision coordinates corresponding to the target are determined based on the acquired laser information and pixel equivalent. Based on the first precision coordinate, the target local coordinate compensation precision value corresponding to the first precision coordinate is determined from a plurality of local coordinate compensation precision values; The second precision coordinates corresponding to the target are generated based on the target local coordinate compensation precision value and the first precision coordinates.
6. The method according to claim 5, characterized in that, The circuit board to be processed is an IC carrier board; The laser information includes at least one of the following: search box ratio, error prevention radius, and sheet error value.
7. A device for determining the compensation accuracy of a camera system, characterized in that, include: The first acquisition module is used to acquire a first image of the calibration board, the first image including a first pattern laser-etched on the calibration board by a laser marking device according to the acquired first theoretical information; The first generation module is used to generate first actual information of the first graphic based on the first image; The second generation module is used to generate a complete DD224362I based on the first theoretical information and the first actual information. Pixel equivalents for accuracy compensation; The second acquisition module is used to acquire a second image of the calibration plate, the second image including a second pattern laser-etched on the calibration plate by a laser marking device according to the acquired second theoretical information; The third generation module is used to generate the second actual information of the second graphic based on the second image and the pixel equivalent; The fourth generation module is used to generate local compensation accuracy values based on the second theoretical information and the second actual information.
8. The apparatus according to claim 7, characterized in that, The first graphic includes multiple first shape graphics, the first actual information includes first actual coordinates corresponding to the multiple first shape graphics, and the first theoretical information includes first theoretical coordinates corresponding to the multiple first shape graphics. The second generation module includes a first generation submodule, a second generation submodule, and a third generation submodule; The first generation submodule is used to generate multiple theoretical graphic spacing values based on the first theoretical coordinates corresponding to the multiple first shape graphics; The second generation submodule is used to generate an actual graphic spacing value corresponding to each of the theoretical graphic spacing values based on the first actual coordinates corresponding to the multiple first shape graphics. The third generation submodule is used to generate the pixel equivalent based on the plurality of theoretical graphic spacing values and the actual graphic spacing value corresponding to each of the theoretical graphic spacing values.
9. A storage medium, characterized in that, The storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the storage medium to perform the method for determining the compensation accuracy of the camera system according to any one of claims 1 to 6.
10. A camera system comprising a memory and a processor, the memory for storing information including program instructions, the processor for controlling the execution of the program instructions, characterized in that, When the program instructions are loaded and executed by the processor, they implement the steps of the method for determining the compensation accuracy of the camera system according to any one of claims 1 to 6.
Citation Information
Patent Citations
Mobile operation robot large-scale space high-precision online calibration system
CN110355788A
Accuracy compensation method, system, and device
US20150055852A1