Multi-axis precision platform calibration method and system based on AR image and dispensing calibration
By using AR images and dispensing calibration, multiple AR cameras are used to calculate and compensate for droplet parameters, thus solving the positional offset problem of multi-axis dispensing platforms and achieving real-time accuracy correction and consistency of droplet landing points.
Patent Information
- Application Number
- CN202611082445.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-21
- Publication Date
- 2026-11-24
AI Technical Summary
After prolonged operation, multi-axis dispensing platforms may experience dispensing position shifts due to lead screw wear, temperature changes, and other factors. Existing checkerboard calibration methods are cumbersome and cannot be corrected in real time, resulting in skewed glue lines and product scrap.
An AR image-based dispensing calibration method is adopted, which uses multiple AR cameras to calculate the center coordinates of the glue droplets, obtain the morphology parameters of the glue droplets, calculate the deviation vector and perform velocity feedforward compensation, so as to realize the synchronous detection and real-time correction of the dispensing nozzle position and tilt angle.
It achieves stable accuracy of multi-axis precision platform during continuous dispensing, avoids measurement distortion caused by droplet deformation, ensures consistent droplet placement, and optimizes motion trajectory.
Smart Images

Figure CN123154751A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of multi-axis precision platform calibration technology, and in particular to a multi-axis precision platform calibration method and system based on AR images and dispensing calibration. Background Technology
[0002] Currently, factories commonly use multi-axis dispensing platforms to automate dispensing processes. However, during prolonged operation, multi-axis dispensing platforms may experience positional shifts due to factors such as lead screw wear, thermal expansion and contraction caused by temperature changes, and replacement of adhesive dispensing nozzles. When this positional shift exceeds a certain range, the applied adhesive line will become skewed, ultimately leading to product scrap.
[0003] To address this issue, existing technologies employ a hand-eye calibration method using a checkerboard calibration board. This method establishes a coordinate mapping relationship between the camera and the multi-axis dispensing platform. However, while this method can resolve the coordinate alignment problem during initial installation, it still has the following drawbacks: First, the calibration process is cumbersome, requiring the use of a dedicated calibration board to acquire images from more than nine different poses, which is time-consuming. Second, the multi-axis dispensing platform is only calibrated once at the factory and then used continuously. Subsequent use of the multi-axis dispensing platform, including temperature changes and component wear, will gradually reduce its detection accuracy, and real-time correction and compensation are not possible.
[0004] Therefore, how to simultaneously detect the positional deviation and tilt angle deviation of the dispensing nozzle is a technical problem that urgently needs to be solved. Summary of the Invention
[0005] This invention provides a multi-axis precision platform calibration method and system based on AR images and dispensing calibration, the main purpose of which is to achieve synchronous detection of dispensing nozzle position deviation and tilt angle deviation.
[0006] To achieve the above objectives, the present invention provides a multi-axis precision platform calibration method based on AR images and dispensing calibration, comprising:
[0007] Acquire a multi-axis precision platform, a substrate, and multiple AR cameras. The multi-axis precision platform is equipped with a dispensing nozzle.
[0008] The coordinates of the center of the standard glue droplet were calculated using multiple AR cameras to determine the movement path of the glue head and the interpolation cycle sequence.
[0009] Interpolation periods are extracted sequentially from the interpolation period sequence, and adjacent interpolation periods are identified from the interpolation period sequence based on the extracted interpolation periods.
[0010] Based on the extracted interpolation period, dispensing head movement path, and dispensing nozzle, adhesive droplets are sprayed onto the substrate to obtain uncured adhesive droplets. Based on the uncured adhesive droplets, the contour coordinate set of the uncured adhesive droplets is obtained.
[0011] The droplet morphology parameter set is calculated based on the uncured droplet contour coordinate set, which includes: the length of the droplet's major axis, the length of the droplet's minor axis, and the direction angle of the major axis.
[0012] The deviation vector is obtained based on the standard droplet center coordinates and droplet morphology parameter set;
[0013] The speed feedforward compensation value is calculated based on the deviation vector, and the speed feedforward compensation value is fed back to the dispensing nozzle to obtain the fed-back dispensing nozzle. The residual deviation value is then calculated based on the fed-back dispensing nozzle.
[0014] The adjacent interpolation cycle is taken as the extracted interpolation cycle, and the dispensing nozzle that has been fed back is taken as the dispensing nozzle. The process is repeated until all interpolation cycles in the interpolation cycle sequence have been extracted.
[0015] The residual deviation values are summarized to obtain a residual deviation value set, and the calibrated multi-axis precision platform is confirmed based on the residual deviation value set.
[0016] Optionally, the calculation of the standard droplet center coordinates based on multiple AR cameras includes:
[0017] Multiple AR cameras are deployed in multiple directions to obtain multiple deployed AR cameras, including a first AR camera and a second AR camera, and the first AR camera and the second AR camera are deployed in different locations.
[0018] A dispensing nozzle is used to spray adhesive droplets onto a substrate to obtain standard adhesive droplets. A first AR camera is used to capture images of the standard adhesive droplets to obtain standard adhesive droplet images.
[0019] The coordinates of the center of a standard glue droplet are obtained from a standard glue droplet image.
[0020] Optionally, obtaining the center coordinates of the standard droplet based on the standard droplet image includes:
[0021] Gaussian filtering is applied to the standard droplet image to obtain the filtered droplet image, and the optimal binarization threshold is obtained.
[0022] The pixel set of the droplet image is identified based on the filtered droplet image. Binarization is then performed based on the pixel set of the droplet image and the optimal binarization threshold to obtain a binarized image.
[0023] Edge detection is performed on the binarized image to obtain a detected binarized image, and the connected component contour set is extracted from the detected binarized image;
[0024] Calculate the area of each connected component contour in the connected component contour set to obtain the connected component contour area set;
[0025] Extract the maximum connected component contour area from the set of connected component contour areas, and use the connected component contour corresponding to the maximum connected component contour area as the standard droplet contour.
[0026] Based on the standard droplet profile, obtain the droplet profile coordinate set, perform ellipse fitting operation on the droplet profile coordinate set, and obtain the optimal ellipse equation.
[0027] Extract the center coordinates of the standard droplet from the optimal ellipse equation.
[0028] Optionally, the step of performing a binarization operation based on the pixel set of the droplet image and the optimal binarization threshold to obtain a binarized image includes:
[0029] For each pixel in the droplet image pixel set, perform the following operation:
[0030] The pixel values of the droplet image are determined based on the pixel values of the droplet image.
[0031] If the pixel value of the droplet image is greater than or equal to the optimal binarization threshold, then the droplet image pixel is taken as the droplet pixel.
[0032] If the pixel value of the droplet image is less than the optimal binarization threshold, then the droplet image pixel is used as the substrate pixel.
[0033] The pixels of the adhesive droplets and the pixels of the substrate are summarized separately to obtain the pixel set of the adhesive droplets and the pixel set of the substrate. An initial binary image is constructed based on the pixel set of the adhesive droplets and the pixel set of the substrate.
[0034] A morphological opening operation is performed on the initial binarized image to obtain a new binarized image.
[0035] Optionally, obtaining the deviation vector based on the standard droplet center coordinates and the droplet morphology parameter set includes:
[0036] The tilt angles of the transverse and longitudinal axes are calculated based on the droplet major axis length, droplet minor axis length, and major axis direction angle from the droplet morphology parameter set.
[0037] The coordinates of the center of the uncured adhesive droplet are obtained based on the coordinate set of the uncured adhesive droplet profile. The difference between the coordinates of the center of the uncured adhesive droplet and the coordinates of the center of the standard adhesive droplet is calculated to obtain the horizontal axis plane deviation and the vertical axis plane deviation.
[0038] Side view images are acquired using a second AR camera, and the side view pixel spacing is calculated based on the side view images. The installation angle and camera intrinsic parameters are obtained based on the second AR camera.
[0039] The physical height is obtained by converting the side-view pixel spacing using the installation angle and camera intrinsic parameters;
[0040] The difference between the physical height and the preset theoretical height is calculated to obtain the height deviation;
[0041] A deviation vector is constructed based on the horizontal axis tilt angle, the vertical axis tilt angle, the horizontal axis plane deviation, the vertical axis plane deviation, and the height deviation.
[0042] Optionally, the formulas for calculating the tilt angle in the horizontal direction and the tilt angle in the vertical direction are as follows:
[0043] ;
[0044] ;
[0045] in, Indicates the tilt angle along the horizontal axis. This indicates the preset horizontal axis tilt angle calibration coefficient. Represents the arcsine function. Indicates the length of the major axis of the glue droplet. Indicates the length of the minor axis of the droplet. Represents the cosine function. Indicates the tilt angle along the vertical axis. This indicates the preset vertical axis tilt angle calibration coefficient. Represents the sine function. Indicates the direction angle of the major axis.
[0046] Optionally, calculating the side-view pixel spacing based on the side-view image includes:
[0047] Preprocessing is performed on the side view image to obtain a preprocessed side view region image;
[0048] Extract the outline edge image of the dispensing nozzle from the preprocessed side view image, and perform Hough line transform on the outline edge image of the dispensing nozzle to obtain a set of line segments;
[0049] The intersection of lines is calculated based on the set of line segments. Sub-pixel precision corner point detection is performed based on the intersection of lines and a preset local window to obtain the coordinates of the center point of the dispensing nozzle tip.
[0050] The initial position of the substrate surface is determined based on the coordinates of the center point of the dispensing nozzle tip. Sub-pixel edge positioning is performed based on the initial position of the substrate surface and the local window to obtain the sub-pixel ordinates of the substrate surface.
[0051] The ordinate of the center point of the dispensing nozzle is extracted from the coordinates of the center point of the dispensing nozzle tip. The absolute value of the difference between the ordinate of the center point of the dispensing nozzle tip and the ordinate of the sub-pixel on the substrate surface is calculated to obtain the side-view pixel spacing.
[0052] Optionally, the calculation formula for the velocity feedforward compensation value includes the following:
[0053] ;
[0054] in, This represents the velocity feedforward compensation value. This represents the preset multi-axis coupling gain matrix. Represents the deviation vector. This indicates the interpolation period.
[0055] Optionally, the step of identifying the calibrated multi-axis precision platform based on the residual deviation value set includes:
[0056] The residual deviation value set is sorted according to the order in which the interpolation periods are extracted from the interpolation period sequence to obtain the residual deviation value sequence.
[0057] The absolute value of each residual deviation value in the residual deviation value sequence is taken to obtain the residual deviation absolute value sequence.
[0058] If there is no residual deviation absolute value in the residual deviation absolute value sequence that is greater than the preset accuracy threshold, then the feedback dispensing nozzle is regarded as the calibrated dispensing nozzle, and the calibrated multi-axis precision platform is confirmed based on the calibrated dispensing nozzle.
[0059] To achieve the above objectives, the present invention also provides a multi-axis precision platform calibration system based on AR image and dispensing calibration, comprising:
[0060] The dispensing path planning module is used to acquire information about the multi-axis precision platform, substrate, and multiple AR cameras. The multi-axis precision platform is equipped with a dispensing nozzle. Based on the coordinates of the center of the standard glue droplet, the module calculates the movement path and interpolation cycle sequence of the dispensing nozzle.
[0061] The droplet contour extraction module is used to sequentially extract interpolation periods from the interpolation period sequence, identify adjacent interpolation periods from the interpolation period sequence based on the extracted interpolation periods, spray droplets onto the substrate according to the extracted interpolation periods, the dispensing head movement path, and the dispensing nozzle to obtain uncured droplets, obtain an uncured droplet contour coordinate set based on the uncured droplets, and calculate a droplet morphology parameter set based on the uncured droplet contour coordinate set. The droplet morphology parameter set includes: droplet major axis length, droplet minor axis length, and major axis direction angle.
[0062] The velocity feedforward compensation module is used to obtain the deviation vector based on the standard droplet center coordinates and droplet morphology parameter set, calculate the velocity feedforward compensation value based on the deviation vector, feed the velocity feedforward compensation value back to the dispensing nozzle, obtain the fed-back dispensing nozzle, and calculate the residual deviation value based on the fed-back dispensing nozzle.
[0063] The platform calibration completion module is used to take adjacent interpolation cycles as the extracted interpolation cycles, take the feedback dispensing nozzle as the dispensing nozzle, and return to the step of spraying adhesive droplets onto the substrate according to the extracted interpolation cycles, the movement path of the dispensing nozzle, and the dispensing nozzle, until all interpolation cycles in the interpolation cycle sequence have been extracted. The residual deviation values are summarized to obtain a residual deviation value set, and the calibrated multi-axis precision platform is confirmed based on the residual deviation value set.
[0064] To address the above problems, the present invention also provides an electronic device, the electronic device comprising:
[0065] Memory, storing at least one instruction;
[0066] The processor executes the instructions stored in the memory to implement the multi-axis precision platform calibration method based on AR images and dispensing calibration described above.
[0067] To address the aforementioned issues, the present invention also provides a computer-readable storage medium storing at least one instruction, which is executed by a processor in an electronic device to implement the aforementioned multi-axis precision platform calibration method based on AR image and dispensing calibration.
[0068] To address the problems described in the background, this invention first utilizes an AR vision system to acquire the geometric feature parameters of the droplet contour in real time. Based on these parameters, it calculates the deviation vector and velocity feedforward compensation value, enabling error identification and real-time correction even before the droplet solidifies. This avoids measurement distortion caused by droplet solidification deformation in traditional calibration methods. Simultaneously, this invention iteratively compensates each time according to the interpolation cycle, directly using the velocity feedforward compensation value calculated in the previous cycle for the next cycle. This allows the accuracy of the multi-axis precision platform to gradually stabilize during continuous droplet dispensing. Finally, all residual deviation values are summarized to confirm the calibration is complete, thereby optimizing the motion trajectory of the multi-axis precision platform during continuous dispensing and ensuring consistent droplet placement. Therefore, this invention enables simultaneous detection of nozzle position deviation and tilt angle deviation. Attached Figure Description
[0069] Figure 1 This is a flowchart illustrating a multi-axis precision platform calibration method based on AR images and dispensing calibration according to an embodiment of the present invention.
[0070] Figure 2 This is a functional block diagram of a multi-axis precision platform calibration system based on AR image and dispensing calibration provided in an embodiment of the present invention;
[0071] Figure 3A schematic diagram of an electronic device for implementing the multi-axis precision platform calibration method based on AR image and dispensing calibration according to an embodiment of the present invention;
[0072] Figure 4 This is a schematic diagram of a multi-axis precision platform calibration structure provided by an embodiment of the present invention, which is a multi-axis precision platform calibration method based on AR image and dispensing calibration.
[0073] Explanation of reference numerals in the attached figures:
[0074] 1. Electronic device; 10. Processor; 11. Memory; 12. Bus; 300. Dispensing nozzle; 301. Dispensing nozzle outlet; 302. First AR camera; 303. Second AR camera; 304. Uncured adhesive droplet; 305. Calibration position; 306. Substrate; 307. Optical axis of camera.
[0075] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0076] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0077] This application provides a multi-axis precision platform calibration method based on AR image and dispensing calibration. The execution entity of the multi-axis precision platform calibration method based on AR image and dispensing calibration includes, but is not limited to, at least one of the following electronic devices that can be configured to execute the method provided in this application: a server, a terminal, etc. In other words, the multi-axis precision platform calibration method based on AR image and dispensing calibration can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster.
[0078] Reference Figure 1 The diagram shown is a flowchart illustrating a multi-axis precision platform calibration method based on AR images and dispensing calibration according to an embodiment of the present invention. In this embodiment, the multi-axis precision platform calibration method based on AR images and dispensing calibration includes:
[0079] S1. Obtain a multi-axis precision platform, a substrate, and multiple AR cameras. The multi-axis precision platform is equipped with a dispensing nozzle.
[0080] It should be explained that a multi-axis precision platform is a movable platform containing a dispensing nozzle. The multi-axis precision platform includes three linear axes, each orthogonal to the others, corresponding to the X, Y, and Z axes in a Cartesian coordinate system. The substrate is a plate used to place the workpiece to be dispensed. The AR camera is an industrial camera containing an image sensor. The dispensing nozzle is a nozzle mounted on the multi-axis precision platform used to perform the dispensing operation. It should be noted that the schematic diagram of the multi-axis precision platform calibration structure is shown below. Figure 4 As shown, both the first AR camera and the second AR camera are mounted on the same multi-axis precision platform, and in the following... Figure 4 In this design, the first AR camera is located in the same 3D coordinate system as the second AR camera. Both the first and second AR cameras can move vertically along the Z-axis, and the Z-axis can also move horizontally along the Y and X axes. The substrate is a cuboid, with two mutually perpendicular edges... and ,in, Parallel to the X-axis, and Parallel to the Y-axis.
[0081] S2. Calculate the center coordinates of the standard glue droplet based on multiple AR cameras to confirm the movement path of the glue head and the interpolation cycle sequence.
[0082] Specifically, the calculation of the standard droplet center coordinates based on multiple AR cameras includes:
[0083] Multiple AR cameras are deployed in multiple directions to obtain multiple deployed AR cameras, including a first AR camera and a second AR camera, and the first AR camera and the second AR camera are deployed in different locations.
[0084] A dispensing nozzle is used to spray adhesive droplets onto a substrate to obtain standard adhesive droplets. A first AR camera is used to capture images of the standard adhesive droplets to obtain standard adhesive droplet images.
[0085] The coordinates of the center of a standard glue droplet are obtained from a standard glue droplet image.
[0086] It should be explained that the first AR camera is mounted on a multi-axis precision platform and is located directly above the substrate. The second AR camera is mounted on a side pillar of the multi-axis precision platform, with its lens angled towards the dispensing nozzle, and its optical axis at a 45-degree angle to the substrate plane. The process of using the dispensing nozzle to spray adhesive droplets onto the substrate involves moving the dispensing nozzle to a designated position on the substrate surface (e.g., ...). Figure 4After the calibration position is shown in the diagram, the dispensing nozzle is activated, allowing adhesive to be extruded from the nozzle and drip onto the substrate surface. The calibration position is located at the edge of the substrate and at the center of the image captured by the first AR camera. It should be noted that the calibration position is established to create a reference point on the substrate, allowing the coordinates of the droplet center measured in each subsequent interpolation cycle to be compared with the standard droplet corresponding to the calibration position. The standard droplet is a single drop of adhesive extruded by the dispensing nozzle in a stationary state. The standard droplet image is a grayscale image captured by the first AR camera 100ms after the standard droplet is extruded.
[0087] Specifically, obtaining the center coordinates of the standard droplet based on the standard droplet image includes:
[0088] Gaussian filtering is applied to the standard droplet image to obtain the filtered droplet image, and the optimal binarization threshold is obtained.
[0089] The pixel set of the droplet image is identified based on the filtered droplet image. Binarization is then performed based on the pixel set of the droplet image and the optimal binarization threshold to obtain a binarized image.
[0090] Edge detection is performed on the binarized image to obtain a detected binarized image, and the connected component contour set is extracted from the detected binarized image;
[0091] Calculate the area of each connected component contour in the connected component contour set to obtain the connected component contour area set;
[0092] Extract the maximum connected component contour area from the set of connected component contour areas, and use the connected component contour corresponding to the maximum connected component contour area as the standard droplet contour.
[0093] Based on the standard droplet profile, obtain the droplet profile coordinate set, perform ellipse fitting operation on the droplet profile coordinate set, and obtain the optimal ellipse equation.
[0094] Extract the center coordinates of the standard droplet from the optimal ellipse equation.
[0095] It should be explained that the step of performing Gaussian filtering on the standard droplet image is as follows: The GaussianBlur function in the OpenCV image processing library is used to perform Gaussian filtering on the standard droplet image, where the convolution kernel size is 5×5 pixels and the standard deviation is 1.0. The filtered droplet image is the image obtained after the standard droplet image has undergone Gaussian filtering. The step of obtaining the optimal binarization threshold is as follows: A grayscale value set is obtained based on the filtered droplet image, multiple grayscale levels are identified, and grayscale levels are extracted sequentially from these multiple grayscale levels.
[0096] Based on the extracted gray levels and gray value sets, the gray level gray value sets are identified, and the number of gray level gray values in the gray level gray value sets is counted.
[0097] Summarize the number of gray values at each gray level to obtain the number of gray values at multiple gray levels;
[0098] A grayscale histogram is generated based on the number of grayscale values at multiple grayscale levels. The maximum inter-class variance is calculated from the grayscale histogram to obtain the optimal binarization threshold.
[0099] Understandably, the grayscale value set is a collection of grayscale values corresponding to each pixel in the filtered droplet image. A grayscale level is a level used to represent the brightness level of a pixel; multiple grayscale levels refer to the 256 grayscale levels from 0 to 255. The grayscale value set of a grayscale level is the collection of grayscale values of all pixels in the filtered droplet image that have the same grayscale level. The number of grayscale values at a grayscale level is the number of grayscale values at each grayscale level in the grayscale value set. The grayscale histogram is a histogram constructed with the 256 grayscale levels as the horizontal axis and the number of grayscale values at each grayscale level as the vertical axis. The Otsu's method for calculating the grayscale histogram is an operation performed using the Otsu's method. This operation of calculating the grayscale histogram using the Otsu's method can be implemented using existing technology and will not be elaborated upon here. The optimal binarization threshold is the gray level corresponding to the maximum inter-class variance between pixels in the droplet region (i.e., pixels with gray values greater than or equal to the optimal binarization threshold) and pixels in the substrate region (i.e., pixels with gray values less than the optimal binarization threshold) in the filtered droplet image.
[0100] Further, the droplet image pixel set is the set of all pixels in the filtered droplet image. Edge detection of the binarized image is performed using the Canny edge detection algorithm. The detected binarized image is the output image after processing the binarized image using the Canny edge detection algorithm. In the detected binarized image, edge pixels located at the boundary between the droplet region and the substrate region have a grayscale value of 255, while non-edge pixels have a grayscale value of 0. The connected component contour set is the set of connected component contours extracted from the detected binarized image using the Suzuki-Aoi contour tracking algorithm. Calculating the area of each connected component contour in the connected component contour set is an operation that counts the number of pixels contained in each connected component contour. The connected component contour area set is a set composed of connected component contour areas, where the connected component contour area represents the number of pixels contained in the connected component contour. The maximum connected component contour area is the largest connected component contour area in the connected component contour area set. The standard droplet contour is the connected component contour corresponding to the maximum connected component contour area.
[0101] Specifically, the step of obtaining the droplet contour coordinate set based on the standard droplet contour is as follows: extract the coordinates of all white pixels (i.e., grayscale values of 255) contained in the standard droplet contour from the detected binary image, and summarize the coordinates of all white pixels to obtain the droplet contour coordinate set. The ellipse fitting operation on the droplet contour coordinate set is performed using the ellipse fitting method. The optimal ellipse equation is the parametric equation of the ellipse obtained after performing the ellipse fitting operation on the droplet contour coordinate set. The center coordinates of the standard droplet are the center coordinates corresponding to the optimal ellipse equation.
[0102] Specifically, the step of performing a binarization operation based on the pixel set of the droplet image and the optimal binarization threshold to obtain a binarized image includes:
[0103] For each pixel in the droplet image pixel set, perform the following operation:
[0104] The pixel values of the droplet image are determined based on the pixel values of the droplet image.
[0105] If the pixel value of the droplet image is greater than or equal to the optimal binarization threshold, then the droplet image pixel is taken as the droplet pixel.
[0106] If the pixel value of the droplet image is less than the optimal binarization threshold, then the droplet image pixel is used as the substrate pixel.
[0107] The pixels of the adhesive droplets and the pixels of the substrate are summarized separately to obtain the pixel set of the adhesive droplets and the pixel set of the substrate. An initial binary image is constructed based on the pixel set of the adhesive droplets and the pixel set of the substrate.
[0108] A morphological opening operation is performed on the initial binarized image to obtain a new binarized image.
[0109] It should be explained that the pixel value of the glue drop image is the grayscale value corresponding to the pixel in the glue drop image. If the pixel value of the glue drop image is greater than or equal to the optimal binarization threshold, it indicates that the pixel value of the glue drop image at that location is relatively bright and should belong to the glue drop area. It should be noted that the glue in this embodiment is white, while the substrate surface is black.
[0110] Further, a droplet pixel is the droplet image pixel whose pixel value is greater than or equal to the optimal binarization threshold. If the droplet image pixel value is less than the optimal binarization threshold, it indicates that the droplet image pixel value at that location is relatively dark and should belong to the substrate region. A substrate pixel is the droplet image pixel whose pixel value is less than the optimal binarization threshold. A droplet pixel set is a collection of droplet pixels. A substrate pixel set is a collection of substrate pixels. The initial binarized image is an image generated by arranging the coordinate positions of the droplet pixel set and the substrate pixel set in the filtered droplet image. In the initial binarized image, the grayscale value of the droplet pixels is 255, and the grayscale value of the substrate pixels is 0. The morphological opening operation on the initial binarized image is performed using the morphologyEx function in the OpenCV image processing library, which can be implemented using existing technology and will not be elaborated here.
[0111] It should also be explained that after binarizing the filtered droplet image, the edges of the droplets in the initial binarized image may have jagged and uneven edges, and there may also be some noise. These will interfere with the subsequent ellipse fitting operation. Therefore, a morphological opening operation is performed on the initial binarized image to make the droplet contour smoother and more complete.
[0112] S3. Extract interpolation periods sequentially from the interpolation period sequence, and identify adjacent interpolation periods from the interpolation period sequence based on the extracted interpolation periods.
[0113] It should be explained that the interpolation cycle sequence is a set of interpolation cycles arranged in chronological order. An interpolation cycle is the time interval between two consecutive position movement commands issued by the motion controller. An adjacent interpolation cycle is the next interpolation cycle in the interpolation cycle sequence that is temporally adjacent to the currently extracted interpolation cycle.
[0114] S4. Based on the extracted interpolation period, dispensing head movement path and dispensing nozzle, the substrate is sprayed with adhesive droplets to obtain uncured adhesive droplets, and the uncured adhesive droplet contour coordinate set is obtained based on the uncured adhesive droplets.
[0115] It should be explained that uncured adhesive droplets are adhesive droplets located on the substrate surface that have not yet cured. The method for obtaining the uncured adhesive droplet contour coordinate set based on uncured adhesive droplets is the same as the method for obtaining the adhesive droplet contour coordinate set based on standard adhesive droplets, and will not be described again here. The uncured adhesive droplet contour coordinate set is the set of all coordinates of the uncured adhesive droplet in the image of the uncured adhesive droplet.
[0116] S5. Calculate the droplet morphology parameter set based on the uncured droplet profile coordinate set, wherein the droplet morphology parameter set includes: droplet major axis length, droplet minor axis length, and major axis direction angle.
[0117] It should be explained that the steps for calculating the droplet morphology parameter set based on the uncured droplet contour coordinate set are as follows: The uncured droplet contour coordinate set is fitted using an ellipse fitting method to obtain an ellipse equation. The major axis radius, minor axis radius, and major axis direction angle are extracted from the ellipse equation. These are then multiplied by 2 to obtain the major axis length and minor axis length of the droplet. The major axis direction angle is the angle between the major axis of the ellipse and the horizontal direction of the image.
[0118] S6. Obtain the deviation vector based on the standard droplet center coordinates and droplet morphology parameter set.
[0119] Specifically, obtaining the deviation vector based on the standard droplet center coordinates and the droplet morphology parameter set includes:
[0120] The tilt angles of the transverse and longitudinal axes are calculated based on the droplet major axis length, droplet minor axis length, and major axis direction angle from the droplet morphology parameter set.
[0121] The coordinates of the center of the uncured adhesive droplet are obtained based on the coordinate set of the uncured adhesive droplet profile. The difference between the coordinates of the center of the uncured adhesive droplet and the coordinates of the center of the standard adhesive droplet is calculated to obtain the horizontal axis plane deviation and the vertical axis plane deviation.
[0122] Side view images are acquired using a second AR camera, and the side view pixel spacing is calculated based on the side view images. The installation angle and camera intrinsic parameters are obtained based on the second AR camera.
[0123] The physical height is obtained by converting the side-view pixel spacing using the installation angle and camera intrinsic parameters;
[0124] The difference between the physical height and the preset theoretical height is calculated to obtain the height deviation;
[0125] A deviation vector is constructed based on the horizontal axis tilt angle, the vertical axis tilt angle, the horizontal axis plane deviation, the vertical axis plane deviation, and the height deviation.
[0126] It should be explained that the coordinates of the uncured droplet center are the coordinates of the center of the ellipse obtained after image acquisition and ellipse fitting of the uncured droplet. The method for obtaining the coordinates of the uncured droplet center based on the uncured droplet contour coordinate set is the same as the method for obtaining the coordinates of the standard droplet center based on the droplet contour coordinate set, and will not be repeated here. The horizontal axis plane deviation is the difference obtained by subtracting the horizontal coordinate of the standard droplet center from the horizontal coordinate of the uncured droplet center. The vertical axis plane deviation is the difference obtained by subtracting the vertical coordinate of the standard droplet center from the vertical coordinate of the uncured droplet center. The side view image is a grayscale image acquired by the second AR camera from a side viewpoint. The mounting angle is the angle between the optical axis of the second AR camera and the substrate surface. The camera intrinsic parameters are a set including the equivalent focal length in the vertical direction, the radial distortion coefficient, and the tangential distortion coefficient. The formula for calculating the physical height is as follows:
[0127] ;
[0128] in, Indicates physical height. Indicates the side-view pixel spacing. This indicates the preset physical pixel size of the second AR camera. Indicates the equivalent focal length in the vertical direction. Indicates the installation angle.
[0129] Specifically, physical height is the vertical distance from the dispensing nozzle to the substrate surface. Pixel physical size is the actual area represented by each pixel on the substrate from the image sensor of the second AR camera. Height deviation is the difference between the physical height and the theoretical height. Theoretical height is the vertical distance from the dispensing nozzle to the substrate surface. Deviation vector is a vector composed of the horizontal axis tilt angle, the vertical axis tilt angle, the horizontal axis plane deviation, the vertical axis plane deviation, and the height deviation. For example, deviation vector... ,in, Indicates the deviation in the horizontal plane. Indicates the deviation in the vertical axis plane. Indicates height deviation. This represents the transpose symbol.
[0130] In detail, the calculation formulas for the tilt angles in the horizontal and vertical directions are as follows:
[0131] ;
[0132] ;
[0133] in, Indicates the tilt angle along the horizontal axis. This indicates the preset horizontal axis tilt angle calibration coefficient. Represents the arcsine function. Indicates the length of the major axis of the glue droplet. Indicates the length of the minor axis of the droplet. Represents the cosine function. Indicates the tilt angle along the vertical axis. This indicates the preset vertical axis tilt angle calibration coefficient. Represents the sine function. Indicates the direction angle of the major axis.
[0134] It should be explained that the horizontal axis tilt angle calibration factor is used to convert the component of the elliptical deformation of the uncured adhesive droplet in the X-axis direction into the component of the dispensing nozzle around the X-axis (e.g., ...). Figure 4 The actual tilt angle of the coordinate system (in the diagram), that is, the angle at which the dispensing nozzle swings about the X-axis, can be understood as the actual angle formed in space between the central axis of the dispensing nozzle and the Z-axis. Similarly, the vertical axis tilt angle calibration coefficient is used to convert the component of the elliptical deformation of the uncured adhesive droplet in the Y-axis direction into the component of the dispensing nozzle about the Y-axis (e.g., the vertical axis tilt angle calibration coefficient). Figure 4 The actual tilt angle of the coordinate system in the coordinate system.
[0135] For example, if the dispensing nozzle is completely vertical, the actual tilt angle is 0 degrees. If the dispensing nozzle rotates 2 degrees around the X-axis, the nozzle of the dispensing nozzle will be offset in the positive direction of the Y-axis. Here, 2 degrees is the actual tilt angle around the X-axis, that is, the angle value in real physical space.
[0136] Furthermore, in the calculation formulas for the tilt angles along the horizontal and vertical axes, ideally, when the dispensing nozzle is perpendicular to the substrate surface, the adhesive droplet should appear as a perfect circle when viewed from above. When the dispensing nozzle is tilted, the nozzle outlet squeezes the adhesive droplet, thus forming an ellipse. This ratio indicates the degree of deformation of the adhesive droplet. The larger the ratio, the more severe the droplet deformation and the greater the tilt angle of the dispensing nozzle. Therefore, this invention first... The degree of droplet deformation is converted into an angle from 0 to 90 degrees. This angle represents the size of the droplet deformation, but it does not represent the actual tilt angle of the dispensing nozzle. Furthermore, the angle is decomposed using the major axis direction angle, cosine function, and sine function to calculate the actual tilt angle of the dispensing nozzle in the horizontal and vertical directions.
[0137] Specifically, the calculation of the side view pixel spacing based on the side view image includes:
[0138] Preprocessing is performed on the side view image to obtain a preprocessed side view region image;
[0139] Extract the outline edge image of the dispensing nozzle from the preprocessed side view image, and perform Hough line transform on the outline edge image of the dispensing nozzle to obtain a set of line segments;
[0140] The intersection of lines is calculated based on the set of line segments. Sub-pixel precision corner point detection is performed based on the intersection of lines and a preset local window to obtain the coordinates of the center point of the dispensing nozzle tip.
[0141] The initial position of the substrate surface is determined based on the coordinates of the center point of the dispensing nozzle tip. Sub-pixel edge positioning is performed based on the initial position of the substrate surface and the local window to obtain the sub-pixel ordinates of the substrate surface.
[0142] The ordinate of the center point of the dispensing nozzle is extracted from the coordinates of the center point of the dispensing nozzle tip. The absolute value of the difference between the ordinate of the center point of the dispensing nozzle tip and the ordinate of the sub-pixel on the substrate surface is calculated to obtain the side-view pixel spacing.
[0143] It should be explained that the preprocessing operation on the side view image to obtain the preprocessed side view region image is as follows: first, Gaussian filtering is applied to the side view image, and then histogram equalization is applied to the Gaussian-filtered side view image to obtain the image, which is the preprocessed side view region image. The method of Gaussian filtering on the side view image is the same as the method of Gaussian filtering on the standard glue drop image, and will not be repeated here. The edge image of the dispensing nozzle body contour is the edge image of the dispensing nozzle extracted from the preprocessed side view region image using the Canny edge detection algorithm. In the edge image, the gray value of the pixels representing the edge of the dispensing nozzle is 255 (white), and the gray value of the other non-edge pixels is 0 (black). The step of performing Hough line transform on the edge image of the dispensing nozzle body contour to obtain the set of line segments is as follows: using Hough transform, pixels that are approximately located on the same straight line on both sides of the dispensing nozzle body contour edge image are detected. Pixels that are approximately located on the same straight line are connected to form a line segment. The two line segments are combined to obtain the set of line segments. The steps for calculating the intersection point of two lines based on the set of line segments are as follows: calculate the equations of the parallel lines of the two line segments in the set of line segments respectively, solve the equations of the parallel lines of the two line segments simultaneously to obtain the coordinates of the intersection point of the two line segments. The coordinates of the intersection point of the two line segments are the position of the center point of the end of the dispensing nozzle, that is, the intersection point of the lines.
[0144] It should be noted that because the center point of the dispensing nozzle tip occupies only a small pixel area within the side view image, directly searching for the center point within the side view image would require traversing a large number of image pixels, resulting in excessively long computation time. Furthermore, scratches and stains on the substrate can easily be misidentified as the center point of the dispensing nozzle tip, thus reducing the accuracy of localization. Therefore, this invention uses a local window to locate the coordinates of the center point of the dispensing nozzle tip.
[0145] It should also be explained that the local window is a pre-defined rectangular area. The setup method is as follows: move the dispensing nozzle to the center of the second AR camera's field of view, acquire a side view image containing the nozzle's outlet, find the pixel location of the center point of the nozzle's end in the side view image, and expand outwards from this location along both the horizontal and vertical directions of the side view image until the nozzle's outlet (e.g., ...) is included. Figure 4 The complete local region (as shown) is fully contained within the local window. The required number of expanded pixels in the horizontal and vertical directions is recorded. The larger value of the expanded pixel count in the horizontal and vertical directions is extracted as the radius of the local window, and the size of the local window is finally determined.
[0146] It should also be explained that the step of obtaining the coordinates of the center point of the dispensing nozzle tip by performing sub-pixel precision corner detection based on the intersection of straight lines and a preset local window is as follows: using the intersection of straight lines as the center, the Forstner corner positioning algorithm is used to perform sub-pixel precision corner detection in the local window, and the position of the detected sub-pixel precision corner is used as the coordinates of the center point of the dispensing nozzle tip. The step of determining the initial position of the substrate surface based on the coordinates of the center point of the dispensing nozzle tip is as follows: using the abscissa of the coordinates of the center point of the dispensing nozzle tip as the center, the coordinates of the center point of the dispensing nozzle tip are extended by 5 pixels on both sides along the X-axis to form a narrow band region. In the preprocessed side-view image, the gray value of each row of pixels in the narrow band region is obtained along the ordinate, and the average gray value of each row of pixels in the narrow band region is calculated. When the average gray value of a certain row first exceeds a preset brightness threshold (e.g., 170), the ordinate position of the corresponding row is used as the ordinate of the initial position of the substrate surface. The sub-pixel ordinate of the substrate surface is the ordinate of the sub-pixel precision of the substrate surface in the preprocessed side-view image. The ordinate of the center point of the dispensing nozzle tip is the ordinate in the coordinate system of the center point of the dispensing nozzle tip. The side-view pixel spacing is the absolute value of the difference between the ordinate of the center point of the dispensing nozzle tip and the ordinate of the sub-pixel on the substrate surface. It should be noted that the X-axis direction is the horizontal direction in the image coordinate system constructed based on the side-view image.
[0147] S7. Calculate the speed feedforward compensation value based on the deviation vector, feed the speed feedforward compensation value back to the dispensing nozzle, obtain the fed-back dispensing nozzle, and calculate the residual deviation value based on the fed-back dispensing nozzle.
[0148] Understandably, the step of calculating the residual deviation value based on the feedback dispensing nozzle is as follows: after the feedback dispensing nozzle performs movement according to the speed feedforward compensation value, the uncured glue droplet image under the current interpolation cycle is re-acquired, the actual deviation vector after compensation is calculated, the calculation method of the actual deviation vector after compensation is the same as that of the deviation vector, the actual deviation vector after compensation is used as the residual deviation vector, the modulus of the residual deviation vector is calculated, and the modulus is used as the residual deviation value.
[0149] In detail, the calculation formula for the velocity feedforward compensation value is as follows:
[0150] ;
[0151] in, This represents the velocity feedforward compensation value. This represents the preset multi-axis coupling gain matrix. Represents the deviation vector. This indicates the interpolation period.
[0152] It should be explained that the multi-axis coupling gain matrix is a pre-defined matrix. Each value in this matrix represents the response coefficient that the corresponding linear motion axis should produce when a certain deviation component deviates. Specifically, the multi-axis coupling gain matrix is a five-row, five-column matrix. The first row corresponds to the X-axis, the second row to the Y-axis, and the third row to the Z-axis. Each column corresponds one-to-one with each element in the deviation vector.
[0153] Furthermore, the multi-axis coupling gain matrix is set as follows: First, create a blank matrix, setting the first row and third column, the second row and fourth column, and the third row and fifth column of the blank matrix to 1, and setting all other elements to 0 as initial values. Then, perform calibration tests sequentially on the horizontal axis plane deviation, the vertical axis plane deviation, and the height deviation. The calibration test method for the horizontal axis plane deviation is as follows: Apply a known offset on the X-axis to cause the dispensing nozzle to produce a known positional offset in the horizontal direction, and then read the offsets on the X, Y, and Z axes. For example, apply a known offset on the X-axis (e.g., ... After (mm), if the dispensing nozzle is offset by (mm) on the X-axis If mm, then the response coefficient of the X-axis to the deviation of the horizontal plane is: ,Will Fill in the first row and third column of the matrix if the dispensing nozzle produces [something] on the Y-axis. If the offset is mm, then the response coefficient of the Y-axis to the deviation of the horizontal plane is: ,Will Fill in the second row and third column of the matrix if the dispensing nozzle produces [something] on the Z-axis. If the offset is mm, then the response coefficient of the Z-axis to the deviation of the horizontal plane is: ,Will Fill in the 3rd row and 3rd column of the matrix. The calibration test method for the vertical axis plane deviation is: apply a [missing information] on the Y-axis. The offset in mm is recorded, and the offset of the dispensing nozzle in the X, Y, and Z axes is also read and entered into the 1st row, 4th column, 2nd row, 4th column, and 3rd row, 4th column of the matrix, respectively. The calibration test method for height deviation is as follows: apply a [missing value] on the Z-axis. The offsets in mm are read, and the offsets of the X, Y, and Z axes are filled into the 1st row and 5th column, the 2nd row and 5th column, and the 3rd row and 5th column of the matrix, respectively. Finally, the multi-axis coupling gain matrix is obtained.
[0154] S8. Take the adjacent interpolation cycle as the extracted interpolation cycle, take the feedback dispensing nozzle as the dispensing nozzle, and return to the step of spraying adhesive droplets onto the substrate according to the extracted interpolation cycle, the dispensing head movement path and the dispensing nozzle, until all interpolation cycles in the interpolation cycle sequence have been extracted.
[0155] It should be noted that this invention uses the nozzle state after the previous cycle compensation and the next interpolation cycle as new inputs to make the calibration accuracy continuously more precise.
[0156] S9. Summarize the residual deviation values to obtain the residual deviation value set, and confirm the calibrated multi-axis precision platform based on the residual deviation value set.
[0157] Specifically, the process of identifying the calibrated multi-axis precision platform based on the residual deviation value set includes:
[0158] The residual deviation value set is sorted according to the order in which the interpolation periods are extracted from the interpolation period sequence to obtain the residual deviation value sequence.
[0159] The absolute value of each residual deviation value in the residual deviation value sequence is taken to obtain the residual deviation absolute value sequence.
[0160] If there is no residual deviation absolute value in the residual deviation absolute value sequence that is greater than the preset accuracy threshold, then the feedback dispensing nozzle is regarded as the calibrated dispensing nozzle, and the calibrated multi-axis precision platform is confirmed based on the calibrated dispensing nozzle.
[0161] It should be explained that the residual deviation value set is a collection of residual deviation values. The residual deviation value sequence is a sequence obtained by sorting the residual deviation value set according to the order in which the interpolation periods were extracted from the interpolation period sequence. The residual deviation absolute value sequence is a sequence obtained by taking the absolute value of each residual deviation value in the residual deviation value sequence. The accuracy threshold is a preset threshold for determining whether the multi-axis precision platform has been calibrated. The calibrated dispensing nozzle is the dispensing nozzle that has been fed back when there is no residual deviation absolute value in the residual deviation absolute value sequence that is greater than the preset accuracy threshold. The calibrated multi-axis precision platform is the multi-axis precision platform confirmed based on the status of the calibrated dispensing nozzle. The accuracy threshold is set as follows: First, take a substrate identical to that of this invention. On this substrate, using the theoretical position as a reference, measure the actual deviation values between the center of the glue droplet and the theoretical position of a group of qualified products under normal production conditions. Take the largest actual deviation value among all actual deviation values as the actual deviation reference value. Then, according to the deviation range of the product, set the accuracy threshold to half of the actual deviation reference value. The theoretical position is a coordinate value that is pre-defined by the user during the dispensing trajectory planning.
[0162] To address the problems described in the background, this invention first utilizes an AR vision system to acquire the geometric feature parameters of the droplet contour in real time. Based on these parameters, it calculates the deviation vector and velocity feedforward compensation value, enabling error identification and real-time correction even before the droplet solidifies. This avoids measurement distortion caused by droplet solidification deformation in traditional calibration methods. Simultaneously, this invention iteratively compensates each time according to the interpolation cycle, directly using the velocity feedforward compensation value calculated in the previous cycle for the next cycle. This allows the accuracy of the multi-axis precision platform to gradually stabilize during continuous droplet dispensing. Finally, all residual deviation values are summarized to confirm the calibration is complete, thereby optimizing the motion trajectory of the multi-axis precision platform during continuous dispensing and ensuring consistent droplet placement. Therefore, this invention enables simultaneous detection of nozzle position deviation and tilt angle deviation.
[0163] like Figure 2 The diagram shown is a functional block diagram of a multi-axis precision platform calibration system based on AR image and dispensing calibration provided in an embodiment of the present invention.
[0164] The multi-axis precision platform calibration system 100 based on AR image and dispensing calibration described in this invention can be installed in an electronic device. Depending on the functions implemented, the multi-axis precision platform calibration system 100 based on AR image and dispensing calibration may include a dispensing path planning module 101, a droplet contour extraction module 102, a velocity feedforward compensation module 103, and a platform calibration completion module 104. The module described in this invention can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and which are stored in the memory of the electronic device.
[0165] The dispensing path planning module 101 is used to acquire a multi-axis precision platform, a substrate and multiple AR cameras. The multi-axis precision platform is equipped with a dispensing nozzle. Based on the multiple AR cameras, the center coordinates of the standard glue droplet are calculated to determine the movement path and interpolation cycle sequence of the dispensing nozzle.
[0166] The droplet contour extraction module 102 is used to sequentially extract interpolation cycles from the interpolation cycle sequence, identify adjacent interpolation cycles from the interpolation cycle sequence based on the extracted interpolation cycles, spray droplets onto the substrate according to the extracted interpolation cycles, the dispensing head movement path and the dispensing nozzle to obtain uncured droplets, obtain an uncured droplet contour coordinate set based on the uncured droplets, and calculate a droplet morphology parameter set based on the uncured droplet contour coordinate set, wherein the droplet morphology parameter set includes: droplet major axis length, droplet minor axis length and major axis direction angle;
[0167] The velocity feedforward compensation module 103 is used to obtain the deviation vector according to the standard droplet center coordinates and droplet morphology parameter set, calculate the velocity feedforward compensation value based on the deviation vector, feed the velocity feedforward compensation value back to the dispensing nozzle, obtain the fed-back dispensing nozzle, and calculate the residual deviation value based on the fed-back dispensing nozzle.
[0168] The platform calibration completion module 104 is used to take adjacent interpolation cycles as the extracted interpolation cycles, take the feedback dispensing nozzle as the dispensing nozzle, return to the step of spraying adhesive droplets onto the substrate according to the extracted interpolation cycles, the movement path of the dispensing nozzle, and the dispensing nozzle, until all interpolation cycles in the interpolation cycle sequence have been extracted, summarize the residual deviation values, obtain the residual deviation value set, and confirm the calibrated multi-axis precision platform based on the residual deviation value set.
[0169] In detail, the modules in the multi-axis precision platform calibration system 100 based on AR image and dispensing calibration described in this embodiment of the invention employ the same methods as described above. Figure 1 The multi-axis precision platform calibration method based on AR images and dispensing calibration described herein uses the same technical means and can produce the same technical effect, so it will not be repeated here.
[0170] like Figure 3The diagram shown is a structural schematic of an electronic device that implements a multi-axis precision platform calibration method based on AR images and dispensing calibration according to an embodiment of the present invention.
[0171] The electronic device 1 may include a processor 10, a memory 11 and a bus 12, and may also include a computer program stored in the memory 11 and capable of running on the processor 10, such as a multi-axis precision platform calibration method program based on AR image and dispensing calibration.
[0172] The memory 11 includes at least one type of readable storage medium, such as flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 1, such as a portable hard drive. In other embodiments, the memory 11 can be an external storage device of the electronic device 1, such as a plug-in portable hard drive, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the electronic device 1. Furthermore, the memory 11 includes both internal storage units and external storage devices of the electronic device 1. The memory 11 can be used not only to store application software and various types of data installed on the electronic device 1, such as the code of a multi-axis precision platform calibration method program based on AR images and dispensing calibration, but also to temporarily store data that has been output or will be output.
[0173] In some embodiments, the processor 10 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 10 is the control unit of the electronic device, connecting various components of the entire electronic device through various interfaces and lines. It executes programs or modules stored in the memory 11 (e.g., a multi-axis precision platform calibration method program based on AR image and dispensing calibration) and calls data stored in the memory 11 to perform various functions of the electronic device 1 and process data.
[0174] The bus 12 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 12 can be divided into an address bus, a data bus, a control bus, etc. The bus 12 is configured to realize the connection and communication between the memory 11 and at least one processor 10, etc.
[0175] Figure 3 Only electronic devices with components are shown; it will be understood by those skilled in the art that... Figure 3 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown, or combine certain components, or have different component arrangements.
[0176] For example, although not shown, the electronic device 1 may also include a power supply (such as a battery) to power the various components. Preferably, the power supply can be logically connected to the at least one processor 10 through a power management device, thereby enabling functions such as charging management, discharging management, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0177] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a Wi-Fi interface, a Bluetooth interface, etc.), which is typically used to establish communication connections between the electronic device 1 and other electronic devices.
[0178] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), and optionally, a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen, etc. The display may also be appropriately referred to as a screen or display unit, used to display information processed in the electronic device 1 and to display a visual user interface.
[0179] The multi-axis precision platform calibration method program based on AR image and dispensing calibration stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When run in the processor 10, it can achieve the following:
[0180] Acquire a multi-axis precision platform, a substrate, and multiple AR cameras. The multi-axis precision platform is equipped with a dispensing nozzle.
[0181] The coordinates of the center of the standard glue droplet were calculated using multiple AR cameras to determine the movement path of the glue head and the interpolation cycle sequence.
[0182] Interpolation periods are extracted sequentially from the interpolation period sequence, and adjacent interpolation periods are identified from the interpolation period sequence based on the extracted interpolation periods.
[0183] Based on the extracted interpolation period, dispensing head movement path, and dispensing nozzle, adhesive droplets are sprayed onto the substrate to obtain uncured adhesive droplets. Based on the uncured adhesive droplets, the contour coordinate set of the uncured adhesive droplets is obtained.
[0184] The droplet morphology parameter set is calculated based on the uncured droplet contour coordinate set, which includes: the length of the droplet's major axis, the length of the droplet's minor axis, and the direction angle of the major axis.
[0185] The deviation vector is obtained based on the standard droplet center coordinates and droplet morphology parameter set;
[0186] The speed feedforward compensation value is calculated based on the deviation vector, and the speed feedforward compensation value is fed back to the dispensing nozzle to obtain the fed-back dispensing nozzle. The residual deviation value is then calculated based on the fed-back dispensing nozzle.
[0187] The adjacent interpolation cycle is taken as the extracted interpolation cycle, and the dispensing nozzle that has been fed back is taken as the dispensing nozzle. The process is repeated until all interpolation cycles in the interpolation cycle sequence have been extracted.
[0188] The residual deviation values are summarized to obtain a residual deviation value set, and the calibrated multi-axis precision platform is confirmed based on the residual deviation value set.
[0189] Specifically, the processor 10's implementation method for the above instructions can be found in [reference needed]. Figures 1 to 4 The descriptions of the relevant steps in the corresponding embodiments are not repeated here.
[0190] Furthermore, if the modules / units integrated in the electronic device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).
[0191] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor of an electronic device, can perform the following:
[0192] Acquire a multi-axis precision platform, a substrate, and multiple AR cameras. The multi-axis precision platform is equipped with a dispensing nozzle.
[0193] The coordinates of the center of the standard glue droplet were calculated using multiple AR cameras to determine the movement path of the glue head and the interpolation cycle sequence.
[0194] Interpolation periods are extracted sequentially from the interpolation period sequence, and adjacent interpolation periods are identified from the interpolation period sequence based on the extracted interpolation periods.
[0195] Based on the extracted interpolation period, dispensing head movement path, and dispensing nozzle, adhesive droplets are sprayed onto the substrate to obtain uncured adhesive droplets. Based on the uncured adhesive droplets, the contour coordinate set of the uncured adhesive droplets is obtained.
[0196] The droplet morphology parameter set is calculated based on the uncured droplet contour coordinate set, which includes: the length of the droplet's major axis, the length of the droplet's minor axis, and the direction angle of the major axis.
[0197] The deviation vector is obtained based on the standard droplet center coordinates and droplet morphology parameter set;
[0198] The speed feedforward compensation value is calculated based on the deviation vector, and the speed feedforward compensation value is fed back to the dispensing nozzle to obtain the fed-back dispensing nozzle. The residual deviation value is then calculated based on the fed-back dispensing nozzle.
[0199] The adjacent interpolation cycle is taken as the extracted interpolation cycle, and the dispensing nozzle that has been fed back is taken as the dispensing nozzle. The process is repeated until all interpolation cycles in the interpolation cycle sequence have been extracted.
[0200] The residual deviation values are summarized to obtain a residual deviation value set, and the calibrated multi-axis precision platform is confirmed based on the residual deviation value set.
[0201] In the embodiments provided by this invention, it should be understood that the disclosed devices, systems, and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative, and actual implementations may have other classification methods.
[0202] The modules described as separate components may or may not be physically separate. The components shown as modules 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 modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0203] Furthermore, the functional modules 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 modules.
[0204] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0205] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A multi-axis precision platform calibration method based on AR images and dispensing calibration, characterized in that, The method includes: Acquire a multi-axis precision platform, a substrate, and multiple AR cameras. The multi-axis precision platform is equipped with a dispensing nozzle. The coordinates of the center of the standard glue droplet were calculated using multiple AR cameras to determine the movement path of the glue head and the interpolation cycle sequence. Interpolation periods are extracted sequentially from the interpolation period sequence, and adjacent interpolation periods are identified from the interpolation period sequence based on the extracted interpolation periods. Based on the extracted interpolation period, dispensing head movement path, and dispensing nozzle, adhesive droplets are sprayed onto the substrate to obtain uncured adhesive droplets. Based on the uncured adhesive droplets, the contour coordinate set of the uncured adhesive droplets is obtained. The droplet morphology parameter set is calculated based on the uncured droplet contour coordinate set, which includes: the length of the droplet's major axis, the length of the droplet's minor axis, and the direction angle of the major axis. The deviation vector is obtained based on the standard droplet center coordinates and droplet morphology parameter set; The speed feedforward compensation value is calculated based on the deviation vector, and the speed feedforward compensation value is fed back to the dispensing nozzle to obtain the fed-back dispensing nozzle. The residual deviation value is then calculated based on the fed-back dispensing nozzle. The adjacent interpolation cycle is taken as the extracted interpolation cycle, and the dispensing nozzle that has been fed back is taken as the dispensing nozzle. The process is repeated until all interpolation cycles in the interpolation cycle sequence have been extracted. The residual deviation values are summarized to obtain a residual deviation value set, and the calibrated multi-axis precision platform is confirmed based on the residual deviation value set.
2. The multi-axis precision platform calibration method based on AR image and dispensing calibration as described in claim 1, characterized in that, The calculation of the standard droplet center coordinates based on multiple AR cameras includes: Multiple AR cameras are deployed in multiple directions to obtain multiple deployed AR cameras, including a first AR camera and a second AR camera, and the first AR camera and the second AR camera are deployed in different locations. A dispensing nozzle is used to spray adhesive droplets onto a substrate to obtain standard adhesive droplets. A first AR camera is used to capture images of the standard adhesive droplets to obtain standard adhesive droplet images. The coordinates of the center of a standard glue droplet are obtained from a standard glue droplet image.
3. The multi-axis precision platform calibration method based on AR image and dispensing calibration as described in claim 2, characterized in that, The step of obtaining the center coordinates of a standard glue droplet based on a standard glue droplet image includes: Gaussian filtering is applied to the standard droplet image to obtain the filtered droplet image, and the optimal binarization threshold is obtained. The pixel set of the droplet image is identified based on the filtered droplet image. Binarization is then performed based on the pixel set of the droplet image and the optimal binarization threshold to obtain a binarized image. Edge detection is performed on the binarized image to obtain a detected binarized image, and the connected component contour set is extracted from the detected binarized image; Calculate the area of each connected component contour in the connected component contour set to obtain the connected component contour area set; Extract the maximum connected component contour area from the set of connected component contour areas, and use the connected component contour corresponding to the maximum connected component contour area as the standard droplet contour. Based on the standard droplet profile, obtain the droplet profile coordinate set, perform ellipse fitting operation on the droplet profile coordinate set, and obtain the optimal ellipse equation. Extract the center coordinates of the standard droplet from the optimal ellipse equation.
4. The multi-axis precision platform calibration method based on AR image and dispensing calibration as described in claim 3, characterized in that, The step of performing a binarization operation based on the pixel set of the droplet image and the optimal binarization threshold to obtain a binarized image includes: For each pixel in the droplet image pixel set, perform the following operation: The pixel values of the droplet image are determined based on the pixel values of the droplet image. If the pixel value of the droplet image is greater than or equal to the optimal binarization threshold, then the droplet image pixel is taken as the droplet pixel. If the pixel value of the droplet image is less than the optimal binarization threshold, then the droplet image pixel is used as the substrate pixel. The pixels of the adhesive droplets and the pixels of the substrate are summarized separately to obtain the pixel set of the adhesive droplets and the pixel set of the substrate. An initial binary image is constructed based on the pixel set of the adhesive droplets and the pixel set of the substrate. A morphological opening operation is performed on the initial binarized image to obtain a new binarized image.
5. The multi-axis precision platform calibration method based on AR image and dispensing calibration as described in claim 4, characterized in that, The step of obtaining the deviation vector based on the standard droplet center coordinates and droplet morphology parameter set includes: The tilt angles of the transverse and longitudinal axes are calculated based on the droplet major axis length, droplet minor axis length, and major axis direction angle from the droplet morphology parameter set. The coordinates of the center of the uncured adhesive droplet are obtained based on the coordinate set of the uncured adhesive droplet profile. The difference between the coordinates of the center of the uncured adhesive droplet and the coordinates of the center of the standard adhesive droplet is calculated to obtain the horizontal axis plane deviation and the vertical axis plane deviation. Side view images are acquired using a second AR camera, and the side view pixel spacing is calculated based on the side view images. The installation angle and camera intrinsic parameters are obtained based on the second AR camera. The physical height is obtained by converting the side-view pixel spacing using the installation angle and camera intrinsic parameters; The difference between the physical height and the preset theoretical height is calculated to obtain the height deviation; A deviation vector is constructed based on the horizontal axis tilt angle, the vertical axis tilt angle, the horizontal axis plane deviation, the vertical axis plane deviation, and the height deviation.
6. The multi-axis precision platform calibration method based on AR image and dispensing calibration as described in claim 5, characterized in that, The formulas for calculating the tilt angles along the horizontal and vertical axes are as follows: ; ; in, Indicates the tilt angle along the horizontal axis. This indicates the preset horizontal axis tilt angle calibration coefficient. Represents the arcsine function. Indicates the length of the major axis of the glue droplet. Indicates the length of the minor axis of the droplet. Represents the cosine function. Indicates the tilt angle along the vertical axis. This indicates the preset vertical axis tilt angle calibration coefficient. Represents the sine function. Indicates the direction angle of the major axis.
7. The multi-axis precision platform calibration method based on AR image and dispensing calibration as described in claim 6, characterized in that, The calculation of the side view pixel spacing based on the side view image includes: Preprocessing is performed on the side view image to obtain a preprocessed side view region image; Extract the outline edge image of the dispensing nozzle from the preprocessed side view image, and perform Hough line transform on the outline edge image of the dispensing nozzle to obtain a set of line segments; The intersection of lines is calculated based on the set of line segments. Sub-pixel precision corner point detection is performed based on the intersection of lines and a preset local window to obtain the coordinates of the center point of the dispensing nozzle tip. The initial position of the substrate surface is determined based on the coordinates of the center point of the dispensing nozzle tip. Sub-pixel edge positioning is performed based on the initial position of the substrate surface and the local window to obtain the sub-pixel ordinates of the substrate surface. The ordinate of the center point of the dispensing nozzle is extracted from the coordinates of the center point of the dispensing nozzle tip. The absolute value of the difference between the ordinate of the center point of the dispensing nozzle tip and the ordinate of the sub-pixel on the substrate surface is calculated to obtain the side-view pixel spacing.
8. The multi-axis precision platform calibration method based on AR image and dispensing calibration as described in claim 7, characterized in that, The calculation formula for the velocity feedforward compensation value is as follows: ; in, This represents the velocity feedforward compensation value. This represents the preset multi-axis coupling gain matrix. Represents the deviation vector. This indicates the interpolation period.
9. The multi-axis precision platform calibration method based on AR image and dispensing calibration as described in claim 8, characterized in that, The process of identifying the calibrated multi-axis precision platform based on the residual deviation value set includes: The residual deviation value set is sorted according to the order in which the interpolation periods are extracted from the interpolation period sequence to obtain the residual deviation value sequence. The absolute value of each residual deviation value in the residual deviation value sequence is taken to obtain the residual deviation absolute value sequence. If there is no residual deviation absolute value in the residual deviation absolute value sequence that is greater than the preset accuracy threshold, then the feedback dispensing nozzle is regarded as the calibrated dispensing nozzle, and the calibrated multi-axis precision platform is confirmed based on the calibrated dispensing nozzle.
10. A multi-axis precision platform calibration system based on AR image and dispensing calibration, characterized in that, The system includes: The dispensing path planning module is used to acquire information about the multi-axis precision platform, substrate, and multiple AR cameras. The multi-axis precision platform is equipped with a dispensing nozzle. Based on the coordinates of the center of the standard glue droplet, the module calculates the movement path and interpolation cycle sequence of the dispensing nozzle. The droplet contour extraction module is used to sequentially extract interpolation periods from the interpolation period sequence, identify adjacent interpolation periods from the interpolation period sequence based on the extracted interpolation periods, spray droplets onto the substrate according to the extracted interpolation periods, the dispensing head movement path, and the dispensing nozzle to obtain uncured droplets, obtain an uncured droplet contour coordinate set based on the uncured droplets, and calculate a droplet morphology parameter set based on the uncured droplet contour coordinate set. The droplet morphology parameter set includes: droplet major axis length, droplet minor axis length, and major axis direction angle. The velocity feedforward compensation module is used to obtain the deviation vector based on the standard droplet center coordinates and droplet morphology parameter set, calculate the velocity feedforward compensation value based on the deviation vector, feed the velocity feedforward compensation value back to the dispensing nozzle, obtain the fed-back dispensing nozzle, and calculate the residual deviation value based on the fed-back dispensing nozzle. The platform calibration completion module is used to take adjacent interpolation cycles as the extracted interpolation cycles, take the feedback dispensing nozzle as the dispensing nozzle, and return to the step of spraying adhesive droplets onto the substrate according to the extracted interpolation cycles, the movement path of the dispensing nozzle, and the dispensing nozzle, until all interpolation cycles in the interpolation cycle sequence have been extracted. The residual deviation values are summarized to obtain a residual deviation value set, and the calibrated multi-axis precision platform is confirmed based on the residual deviation value set.
