A field calibration method and system for SMT 3D AOI equipment
By using on-site calibration methods, the system parameters of the SMT 3D AOI equipment were optimized using a calibration board and phase-shifting method, which solved the problem of decreased equipment accuracy and enabled rapid recovery of detection accuracy and improved detection rate.
Patent Information
- Application Number
- CN202510712129.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2045-05-30
AI Technical Summary
SMT 3D AOI equipment suffers from decreased imaging system accuracy due to factors such as mechanical vibration or temperature changes, resulting in reduced detection accuracy. Existing calibration processes are complex and time-consuming.
By employing on-site calibration methods, the coordinates of the center of the circle are calculated using a calibration plate and the phase-shift method. Combined with Z-axis movement to optimize system parameters, the accuracy of the imaging system is quickly restored.
It simplifies the calibration process, shortens equipment maintenance time, improves detection accuracy, and avoids detection errors caused by decreased precision.
Smart Images

Figure CN120707646B_ABST
Abstract
Description
Technical Field
[0001] This application relates to surface mount technology and data processing technology, and in particular to a field calibration method and system for SMT 3D AOI equipment. Background Technology
[0002] In SMT (Surface Mount Technology) scenarios, it is necessary to inspect the components among the surface-mount components on the PCB (Printed Circuit Board). 3D AOI (Automated Optical Inspection) equipment is an automated inspection device used for quality control during PCB manufacturing. The 3D imaging system in a 3D AOI device typically consists of four projectors and a camera. The camera is placed downwards in the center, and the four projectors are positioned at approximately the same horizontal height around the camera, projecting downwards and inwards, so that the five devices (projectors, cameras, and 3D AOI) form a common field of view at the center. The camera is usually equipped with a telecentric lens, while the projectors use standard industrial lenses and employ a SAM projection method, ensuring that the focal planes of the four projectors coincide with the focal plane of the camera.
[0003] Cameras and projectors typically use structured light 3D reconstruction technology to reconstruct 3D point clouds. This requires system calibration of the camera and four projectors to obtain the intrinsic and extrinsic parameters of the equipment. Because SMT 3D AOI equipment has high requirements for calibration accuracy, the system calibration process is relatively complex. If the camera or any projector experiences mechanical structural changes due to external factors such as vibration or temperature variations, it will affect the quality and accuracy of the reconstructed 3D point cloud, impacting the accuracy of AOI inspection. Recalibrating the system can solve this problem, but the process is complex and time-consuming. Summary of the Invention
[0004] This application provides a field calibration method and system for SMT 3D AOI equipment. When the accuracy of the imaging system of the SMT 3D AOI equipment changes and no longer meets the detection requirements, the intrinsic and extrinsic parameters of the equipment are quickly optimized to restore the accuracy of the imaging system to its initial state.
[0005] This application provides a field calibration method for an SMT 3D AOI device. The 3D AOI device imaging system includes a camera, a lens, and multiple projectors. The camera is placed at the center, the lens is mounted at the front of the camera, and the projectors are arranged in multiple specified directions around the camera, symmetrical about the camera's optical axis. The optical axes of the projectors and the camera are set at an angle. The field calibration method includes:
[0006] The calibration board is fed into the SMT 3D AOI equipment in the same way as a regular PCB for initialization. The calibration board has a regular shape and its surface has a regular arrangement of circular patterns.
[0007] The calibration board image is acquired, and the projector is controlled to project a set of horizontal and vertical phase-shifted structured light stripe grating images onto the calibration board surface in sequence. The camera acquires multiple sets of horizontal and vertical grating images in sequence.
[0008] Phase calculations were performed on the grating images captured by the camera using the phase-shifting method to obtain multiple sets of horizontal and vertical phase maps.
[0009] Image processing is performed on the calibration board images captured by the camera to calculate the center coordinates of all circular patterns, and to calculate the corresponding point coordinates of the center coordinates on the imaging plane of each projector.
[0010] Based on the Z-axis height and the spacing of the circular patterns on the calibration plate, calculate the coordinates of all the centers on the calibration plate in the world coordinate system.
[0011] Move the imaging module along the Z-axis to K different heights z k Repeated calculations were performed to obtain the camera pixel coordinates of the center of K groups of circles, the corresponding pixel coordinates of K groups of projectors, and the world coordinates.
[0012] The optimized system parameters are determined based on the projection process of the world coordinate system coordinate values to the camera pixel coordinate system.
[0013] This application embodiment also provides a field calibration system for SMT 3D AOI equipment. The 3D AOI equipment imaging system includes a camera, a lens, and multiple projectors. The camera is placed in the center, the lens is installed in front of the camera, and the projectors are arranged in multiple specified directions around the camera, symmetrical about the camera's optical axis. The optical axes of the projectors and the camera's optical axis are set at an angle. The field calibration system includes a processor and a memory. The memory stores a computer program. When the computer program is executed by the processor, it implements the steps of the aforementioned field calibration method for SMT 3D AOI equipment.
[0014] The method in this application embodiment can quickly optimize the intrinsic and extrinsic parameters of the SMT 3D AOI equipment imaging system after the accuracy changes and no longer meets the detection requirements, thereby restoring the accuracy of the imaging system to its initial state.
[0015] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0016] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0017] Figure 1 This is a schematic diagram of a 3D AOI device imaging system according to an embodiment of this application;
[0018] Figure 2 This is a schematic diagram of the basic process of the on-site calibration method for SMT 3D AOI equipment according to an embodiment of this application.
[0019] Figure 3 This application describes an SMT 3D AOI device. Detailed Implementation
[0020] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0021] This application provides a field calibration method for an SMT 3D AOI device. The 3D AOI device imaging system includes a camera, a lens, and multiple projectors. The camera is placed in the center, the lens is installed in front of the camera, and the projectors are set in multiple specified directions around the camera, are centrally symmetrical about the camera's optical axis, and the projector optical axis and the camera optical axis are set at an angle.
[0022] In subsequent embodiments of this application, an example is given of a 3D AOI device imaging system comprising four projectors. In a specific example, such as... Figure 1 As shown, the camera is placed in the center with a telecentric lens mounted at its front. Projectors are placed around the camera on four sides, symmetrically about the camera's optical axis, with their optical axes at an angle to the camera's. The fields of view of the camera and the four projectors coincide in front of the camera lens; this overlapping area is the measurement area. All four projectors use the Sham projection method, ensuring their focal planes coincide with the camera's focal plane. The projectors above and below the camera are designated Projector 1 and Projector 2; the projectors to the left and right of the camera are designated Projector 3 and Projector 4. Figure 2 As shown in the embodiments of this application, the on-site calibration method includes the following steps:
[0023] In step S201, the calibration board is fed into the SMT 3D AOI equipment using the same board feeding method as a regular PCB for initialization. The calibration board has a regular shape and its surface has regularly arranged circular patterns. For example... Figure 3 As shown, in a specific example, the calibration plate is rectangular with a dark background and a surface with equally spaced light-colored circular patterns. The radius of the central circle is larger than that of the other circles, which is used to locate the center of the calibration plate. The calibration plate is surrounded by a border marking. In some more specific examples, the calibration plate is square with a dark background and an equally spaced white circular pattern, or it can have a light background and an equally spaced dark (e.g., black) circular pattern.
[0024] like Figure 3 As shown, the surface features 25x25 white circular patterns evenly spaced. The radius of the central circle is slightly larger than the others, used to locate the center of the calibration board. A white border surrounds the calibration board for positioning and identification. The calibration board covers the entire measurement area. The thickness of the calibration board is the same as a standard PCB.
[0025] In step S202, the calibration plate image is acquired, and the projector is controlled to sequentially project a set of horizontal and vertical phase-shifted structured light stripe grating images onto the calibration plate surface. The camera sequentially acquires multiple sets of horizontal and vertical grating images.
[0026] In step S203, phase calculation is performed on the grating images acquired by the camera using the phase-shifting method to obtain multiple sets of horizontal and vertical phase maps. This embodiment uses four projectors as an example, with the camera acquiring one calibration plate image. Projectors 1-4 sequentially project a set of horizontal and vertical phase-shifted structured light stripe grating images onto the calibration plate surface, and the camera sequentially acquires these images, obtaining four sets of horizontal and vertical grating images. Phase calculation is performed on the grating images acquired by the camera using the phase-shifting method, which is a method for obtaining phase information by projecting multiple structured light images with phase differences.
[0027] In step S204, image processing is performed on the calibration board image captured by the camera to calculate the center coordinates of all circular patterns, and to calculate the corresponding point coordinates of the center coordinates on the imaging planes of each projector. Specifically, image processing and analysis are performed on the calibration board image captured by the camera to identify and calculate the center coordinates of all circles. N represents the total number of circles. Using the horizontal and vertical phase maps obtained in step S103, the coordinates of the circle centers on the corresponding points on the imaging plane of projector 1-4 can be calculated. (This example uses 25x25 circles, N=625).
[0028] In step S205, the coordinates of all the centers of the circles on the calibration plate in the world coordinate system are calculated based on the Z-axis height and the spacing of the circular patterns on the calibration plate.
[0029] In step S206, the imaging module is moved along the Z-axis to K different heights z. k The camera pixel coordinates of the centers of K groups of circles, the corresponding pixel coordinates of K groups of projectors, and the world coordinates are obtained through repeated calculations. In a specific example, the imaging module is moved along the Z-axis to K different heights z. k Let k = 1, 2, ..., K. Repeat steps S202-S204 to obtain the camera pixel coordinates of the center of each of the K groups of circles, the corresponding pixel coordinates of the projectors 1-4, and the world coordinates. Let the camera pixel coordinates of the center of the circle be denoted as... The pixel coordinates of the point corresponding to the center of the circle on the imaging plane 1-4 of the projector are: Coordinates of the center of the circle in the world coordinate system In this specific example, three different heights can be used, K=3.
[0030] In step S207, the optimized system parameters are determined based on the projection process of the world coordinate system coordinate values to the camera pixel coordinate system.
[0031] The method in this application embodiment can quickly optimize the intrinsic and extrinsic parameters of the SMT 3D AOI equipment imaging system after the accuracy changes and no longer meets the detection requirements, thereby restoring the accuracy of the imaging system to its initial state.
[0032] In some embodiments, initialization includes: adjusting the Z-axis height of the imaging device to a height within any measurement range, adjusting the XY-axis position to align with the center of the calibration plate, and ensuring that the field of view covers the entire calibration plate, with the calibration plate plane perpendicular to the camera optical axis.
[0033] In some embodiments, calculating the coordinates of all centers of the calibration plate in the world coordinate system, based on the adopted Z-axis height and the spacing of the circular patterns on the calibration plate, includes:
[0034] A world coordinate system is established with the specified center position of the calibration plate and the specified height of the imaging device as the origin. Based on the currently used Z-axis height and the circle spacing of the calibration plate, the coordinate values of all the circle centers on the calibration plate in the world coordinate system are calculated. For example, the world coordinate system is established with the XY position of the center of the upper left corner of the calibration plate and the height of the imaging device at Z=0 as the origin. Based on the Z-axis height used in step S201 and the circle spacing of the calibration plate, the coordinate values of all the circle centers on the calibration plate in the world coordinate system are calculated.
[0035] In some embodiments, the optimized system parameters are determined based on the projection process of the world coordinate system coordinate values to the camera pixel coordinate system, including:
[0036] The projection process that transforms coordinate values from the world coordinate system to the camera pixel coordinate system is defined as follows: Its calculation process can be expressed as follows: in These are the parameters of the camera's telecentric lens model, i.e., the camera's system parameters.
[0037] The process of projecting coordinate values from the world coordinate system to the projector pixel coordinate system is defined as follows: Where K p ,θ,K d , These are the system parameters of the projector, namely the rotation matrix and translation vector.
[0038] In some embodiments, determining the optimized system parameters based on the projection process of transforming coordinate values from the world coordinate system to the camera pixel coordinate system specifically includes:
[0039] Set the world coordinate system (x) w ,y w ,z w Convert to projector coordinate system (x) p ,y p ,z p ), in and These are the external parameters of the projector;
[0040] Projector coordinate system (x) p ,y p ,z p Convert to projector imaging plane coordinates (x) n ,y n ), x n =x p / z p y n =y p / z p ;
[0041] Based on the projector's imaging plane, the projector lens distortion parameter K is added. d =(k1,k2,p1,p2):
[0042]
[0043] Further add the Sham projection angle parameter θ:
[0044]
[0045] The distorted projector imaging plane coordinates (x) s ,y s Using the projector's internal parameter K p = Convert to pixel coordinates (u p ,v p ):
[0046]
[0047] Jointly optimize the system parameters of the camera and each projector.
[0048] In some embodiments, jointly optimizing the system parameters of the camera and each projector includes:
[0049] The system parameters of the camera and each projector are optimized using the Levenberg-Marquardt nonlinear optimization algorithm:
[0050]
[0051] The initial optimization uses the existing system parameters of the camera and projector. Optimization is complete if the calculated joint backprojection error is less than a certain threshold T. After optimization, the optimized system parameters replace the existing parameters.
[0052] Compared to existing solutions, the method in this application simplifies the calibration process of SMT 3D AOI equipment, enabling high-precision calibration to be completed automatically, similar to PCB inspection. It eliminates the need for manual operation by the user and requires no prior knowledge of machine vision.
[0053] The method described in this application can restore the accuracy of SMT 3D AOI equipment to its factory state within minutes, shorten the equipment's offline maintenance time, and avoid a decrease in AOI detection accuracy due to a drop in equipment accuracy.
[0054] This application also proposes an on-site calibration system for SMT 3D AOI equipment. The 3D AOI equipment imaging system includes a camera, a lens, and multiple projectors. The camera is placed in the center, the lens is mounted in front of the camera, and the projectors are arranged in multiple designated directions around the camera, symmetrical about the camera's optical axis. The optical axes of the projectors and the camera are set at an angle. The on-site calibration system includes a processor and a memory. The memory stores a computer program, which, when executed by the processor, implements the steps of the on-site calibration method for SMT 3D AOI equipment as described above.
[0055] It should be noted that, in the embodiments of this application, 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 one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0056] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0057] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0058] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims. All of these forms are within the protection scope of this application.
Claims
1. A method for on-site calibration of SMT 3D AOI equipment, characterized in that, The 3D AOI imaging system includes a camera, a lens, and multiple projectors. The camera is placed in the center, the lens is mounted in front of the camera, and the projectors are positioned in multiple designated directions around the camera, symmetrical about the camera's optical axis. The projector optical axes are set at an angle to the camera's optical axis. The on-site calibration method includes: The calibration board is fed into the SMT 3D AOI equipment in the same way as a regular PCB for initialization. The calibration board has a regular shape and its surface has a regular arrangement of circular patterns. The calibration board image is acquired, and the projector is controlled to project a set of horizontal and vertical phase-shifted structured light stripe grating images onto the calibration board surface in sequence. The camera acquires multiple sets of horizontal and vertical grating images in sequence. Phase calculations were performed on the grating images captured by the camera using the phase-shifting method to obtain multiple sets of horizontal and vertical phase maps. Image processing is performed on the calibration board images captured by the camera to calculate the center coordinates of all circular patterns, and to calculate the corresponding point coordinates of the center coordinates on the imaging plane of each projector. Based on the Z-axis height and the spacing of the circular patterns on the calibration plate, calculate the coordinates of all the centers on the calibration plate in the world coordinate system. Move the imaging module along the Z-axis to K different heights The calculation is repeated to obtain the camera pixel coordinates of the center of K groups of circles, the corresponding pixel coordinates of K groups of projectors, and the world coordinates, where K is the number of different heights moved along the Z-axis. ; Based on the projection process of the world coordinate system coordinates to the camera pixel coordinate system, the optimized system parameters are determined, including: The projection process that transforms coordinate values from the world coordinate system to the camera pixel coordinate system is defined as follows: Its calculation process can be expressed as follows: ,in For the parameters of the camera telecentric lens model, As a world coordinate system, Camera pixel coordinates; The process of projecting coordinate values from the world coordinate system to the projector pixel coordinate system is defined as follows: ,in These are the projector's internal parameters. For the Sham projection angle parameters, These are the distortion parameters for the projector lens. and Let be the rotation matrix and translation vector of the projector; world coordinate system Convert to projector coordinate system , ; Projector coordinate system Convert to projector imaging plane coordinates , , ; Add projector lens distortion parameters : Add Sham projection angle parameters : The distorted projector imaging plane coordinates Using projector internal parameters Convert to pixel coordinates : Jointly optimize the system parameters of the camera and each projector.
2. The on-site calibration method for SMT 3D AOI equipment as described in claim 1, characterized in that, The calibration plate is rectangular with a dark background and light-colored circular patterns evenly distributed on its surface. The radius of the central circle is larger than that of the other circles to locate the center of the calibration plate. The calibration plate is surrounded by a border marking.
3. The on-site calibration method for SMT 3D AOI equipment as described in claim 2, characterized in that, Initialization includes: Adjust the Z-axis height of the imaging device to any measurement range, adjust the XY-axis position to align with the center of the calibration plate, and ensure that the field of view covers the entire calibration plate, with the calibration plate plane perpendicular to the camera optical axis.
4. The on-site calibration method for SMT 3D AOI equipment as described in claim 1, characterized in that, Based on the Z-axis height and the spacing of the circular patterns on the calibration plate, the coordinate values of all the centers on the calibration plate in the world coordinate system are calculated, including: A world coordinate system is established with the center position specified by the calibration plate and the specified height of the imaging device as the origin. Based on the currently used Z-axis height and the circle spacing of the calibration plate, calculate the coordinate values of all the circle centers on the calibration plate in the world coordinate system.
5. The on-site calibration method for SMT 3D AOI equipment as described in claim 1, characterized in that, Jointly optimizing the system parameters of the camera and each projector includes: The system parameters of the camera and each projector are optimized using the Levenberg-Marquardt nonlinear optimization algorithm: The initial values are optimized using the existing system parameters of the camera and projector. If the calculated joint backprojection error is less than a certain threshold T, the optimization is complete.
6. A field calibration system for SMT 3D AOI equipment, characterized in that, The 3D AOI equipment imaging system includes a camera, a lens, and multiple projectors. The camera is placed in the center, the lens is mounted in front of the camera, and the projectors are arranged in multiple designated directions around the camera, symmetrical about the camera's optical axis. The optical axes of the projectors and the camera are set at an angle. The field calibration system includes a processor and a memory. The memory stores a computer program, which, when executed by the processor, implements the steps of the field calibration method for SMT 3D AOI equipment as described in any one of claims 1-5.
Citation Information
Patent Citations
Projector calibration method, calibration system and device based on Gremer's law
CN115965697A
Industrial field-oriented structured light system rapid calibration method
CN117315042A
