Vision-based dispensing control method, apparatus, equipment, and storage medium

By generating template-camera and design-template transformation matrices and combining them with camera-machine transformation, the dispensing position is accurately transformed from the design image to the machine coordinate system, solving the problem of low dispensing position calibration accuracy and improving the dispensing control effect.

CN123181556APending Publication Date: 2026-11-27GUANGZHOU RAYER ACOUSTIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510684185.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The calibration accuracy of the dispensing position in the existing technology is low, and the dispensing control effect is poor, especially when the visual projection of the component is obscured, it is difficult to achieve precise control.

Method used

By acquiring workpiece images and preset template images, a template-camera transformation matrix is ​​generated. Combined with the design-template and camera-machine transformation matrices, the dispensing position is accurately transformed from the design image to the machine coordinate system, avoiding the influence of visual projection occlusion of components.

Benefits of technology

It improves the calibration accuracy and control effect of dispensing position, reduces repeated calibration and programming steps, and ensures the accuracy of dispensing position.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181556A_ABST
    Figure CN123181556A_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a dispensing control method and device based on visual positioning, equipment and a storage medium. The technical scheme provided by the embodiments of the present application generates a template-camera conversion matrix according to a workpiece image and a preset template image, converts a plurality of first dispensing positions to a camera coordinate system to obtain a plurality of second dispensing positions according to the template-camera conversion matrix, converts the plurality of second dispensing positions to a machine coordinate system according to a camera-machine conversion matrix to obtain a plurality of third dispensing positions, and performs dispensing processing on a target workpiece according to the plurality of third dispensing positions. A plurality of design dispensing positions are set in a design image, and the design dispensing positions on the design image are converted to the first dispensing positions on the preset template image through a design-template conversion matrix. The determination of the dispensing position is not affected by the visual projection shielding of the components, which can effectively improve the calibration accuracy of the dispensing position and improve the dispensing control effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of industrial control technology, and in particular to a dispensing control method, apparatus, equipment and storage medium based on vision positioning. Background Technology

[0002] A dispensing machine is an important piece of equipment used in fields such as electronics manufacturing and mechanical assembly. It can precisely coat adhesives or other fluids at designated locations. As the precision and automation of electronic component assembly continue to improve, the requirements for precise control of the dispensing position are also becoming increasingly stringent.

[0003] In current dispensing production processes, the dispensing position is usually obtained through manual or semi-automatic programming. Once the product model or board structure changes, the dispensing position needs to be recalibrated and set. Human error can easily lead to insufficient dispensing accuracy. For products with height, the visual projection of components can easily obscure the dispensing position, greatly affecting the calibration accuracy of the dispensing position and resulting in poor dispensing control. Summary of the Invention

[0004] This application provides a visual positioning-based dispensing control method, apparatus, device, and storage medium to solve the technical problems of low calibration accuracy of dispensing position and poor dispensing control effect in related technologies. It can effectively improve the calibration accuracy of dispensing position and enhance the dispensing control effect.

[0005] In a first aspect, embodiments of this application provide a vision-based dispensing control method, comprising: Acquire a workpiece image obtained by photographing the target workpiece in the dispensing station area, and generate a template-camera conversion matrix based on the workpiece image and a preset template image; Multiple first glue-dispensing positions are determined in a preset template image, and the multiple first glue-dispensing positions are transformed to the camera coordinate system according to the template-camera transformation matrix to obtain multiple second glue-dispensing positions. The multiple first glue-dispensing positions are obtained by transforming multiple design glue-dispensing positions in a design image based on a design-template transformation matrix. The design-template transformation matrix records the transformation relationship between the design image and the preset template image. Multiple second dispensing positions are transformed to the machine coordinate system according to the camera-machine transformation matrix to obtain multiple third dispensing positions. The camera-machine transformation matrix records the transformation relationship between the camera coordinate system and the machine coordinate system. The target workpiece is dispensing adhesive according to multiple third dispensing locations.

[0006] This application embodiment acquires a workpiece image by photographing the target workpiece in the dispensing station area. A template-camera transformation matrix is ​​generated based on the workpiece image and a preset template image to determine multiple first dispensing positions in the preset template image. These first dispensing positions are then transformed to the camera coordinate system using the template-camera transformation matrix to obtain multiple second dispensing positions. Finally, the multiple second dispensing positions are transformed to the machine coordinate system using the camera-machine transformation matrix to obtain multiple third dispensing positions. Dispensing is then performed on the target workpiece based on these third dispensing positions. The design-template transformation matrix records the transformation relationship between the design image and the preset template image, while the camera-machine transformation matrix records the transformation relationship between the camera coordinate system and the machine coordinate system. The multiple first dispensing positions are obtained by transforming multiple design dispensing positions in the design image using the design-template transformation matrix. Multiple design dispensing positions can be set in the design image, and the design dispensing positions in the design image can be converted to first dispensing positions in the preset template image using the design-template transformation matrix. The determination of the dispensing positions is not affected by the visual projection occlusion of components, effectively improving the calibration accuracy of the dispensing positions and enhancing the dispensing control effect.

[0007] Furthermore, before acquiring the workpiece image obtained by photographing the target workpiece in the dispensing station area, the method further includes: Determine multiple design dispensing locations on the design image; A preset template image is obtained by taking a picture of the workpiece template in the dispensing station area, and a design-template conversion matrix is ​​generated based on the preset template image and the design image. The multiple design dispensing positions are transformed to the template coordinate system according to the design-template transformation matrix to obtain multiple first dispensing positions.

[0008] The above-mentioned method determines multiple design dispensing positions on the design image, generates a design-template transformation matrix based on the preset template image and the design image, and transforms the multiple design dispensing positions to the template coordinate system based on the design-template transformation matrix to obtain multiple first dispensing positions. This ensures the accurate transformation of the dispensing positions from the design drawing to the preset template image and improves the calibration accuracy of the dispensing positions.

[0009] Furthermore, the step of generating a design-template transformation matrix based on the preset template image and the design image includes: Multiple first marker points are determined in the preset template image, and multiple second marker points that match the first marker points are determined in the design image; Generate a design-template transformation matrix based on the first and second marker points.

[0010] As described above, by generating a design-template conversion matrix based on multiple first marker points in the preset template image and multiple second marker points matching the design image, the accurate conversion of the dispensing position from the design drawing to the preset template image is ensured.

[0011] Furthermore, the step of generating a template-camera transformation matrix based on the workpiece image and the preset template image includes: Feature matching is performed on the workpiece image and the preset template image; Generate a template-camera transformation matrix based on the feature matching results.

[0012] The above-mentioned method accurately determines the conversion relationship between the template and the camera by performing feature matching on the workpiece image and the preset template image and generating a template-camera conversion matrix based on the feature matching results, thereby effectively improving the calibration accuracy of the dispensing position.

[0013] Furthermore, the step of transforming the multiple first dispensing positions to the camera coordinate system according to the template-camera transformation matrix to obtain multiple second dispensing positions includes: Multiple first dispensing positions are multiplied by the template-camera transformation matrix to obtain multiple second dispensing positions.

[0014] As described above, the second dispensing position is obtained by multiplying the first dispensing position by the template-camera transformation matrix, thereby achieving an accurate transformation of the dispensing position from the preset template image to the camera coordinate system and ensuring the calibration accuracy of the dispensing position.

[0015] Furthermore, the dispensing process on the target workpiece according to the plurality of third dispensing positions includes: Dispensing path planning is performed based on multiple third dispensing locations; The target workpiece is dispensing adhesive according to the dispensing path planning results.

[0016] The above describes a dispensing path planning based on multiple third dispensing positions, followed by dispensing the target workpiece based on the planning results. The third dispensing positions are obtained through conversion using template-camera conversion matrices, design-template conversion matrices, and camera-machine conversion matrices. These positions accurately correspond to the actual dispensing locations, reducing repetitive calibration and programming steps. The determination of the third dispensing positions is unaffected by visual projection occlusion from components on the target workpiece, effectively improving the calibration accuracy of the dispensing positions.

[0017] Furthermore, before acquiring the workpiece image obtained by photographing the target workpiece in the dispensing station area, the method further includes: Obtain a calibration image of a calibration template placed on the dispensing station area, and determine the image positioning coordinates on the calibration image corresponding to multiple calibration points in the calibration template; Determine the machine positioning coordinates corresponding to the positions of the multiple calibration points when the dispensing operation component moves to the corresponding positions, wherein the dispensing operation component is used to perform dispensing processing; A camera-machine transformation matrix is ​​generated based on the machine positioning coordinates and the image positioning coordinates.

[0018] The above-mentioned method, by determining the image positioning coordinates corresponding to multiple calibration points in the calibration template on the calibration image, and the machine positioning coordinates corresponding to the positions of the dispensing operation component when it moves to the corresponding positions of multiple calibration points, and generating a camera-machine transformation matrix based on the machine positioning coordinates and image positioning coordinates, can effectively ensure the accurate transformation from the camera to the machine coordinate system and improve the calibration accuracy of the dispensing position.

[0019] In a second aspect, embodiments of this application provide a vision-based dispensing control device, including a matrix determination module, a first conversion module, a second conversion module, and a dispensing processing module, wherein: The matrix determination module is used to acquire a workpiece image obtained by taking a picture of the target workpiece in the dispensing station area, and to generate a template-camera conversion matrix based on the workpiece image and a preset template image. The first conversion module is used to determine multiple first glue-dispensing positions in a preset template image, and convert the multiple first glue-dispensing positions to the camera coordinate system according to the template-camera conversion matrix to obtain multiple second glue-dispensing positions. The multiple first glue-dispensing positions are obtained by converting multiple design glue-dispensing positions in a design image based on a design-template conversion matrix. The design-template conversion matrix records the conversion relationship between the design image and the preset template image. The second conversion module is used to convert multiple second dispensing positions to the machine coordinate system according to the camera-machine conversion matrix to obtain multiple third dispensing positions. The camera-machine conversion matrix records the conversion relationship between the camera coordinate system and the machine coordinate system. The dispensing module is used to dispense adhesive onto the target workpiece according to multiple third dispensing positions.

[0020] This application embodiment acquires a workpiece image by photographing the target workpiece in the dispensing station area. A template-camera transformation matrix is ​​generated based on the workpiece image and a preset template image to determine multiple first dispensing positions in the preset template image. These first dispensing positions are then transformed to the camera coordinate system using the template-camera transformation matrix to obtain multiple second dispensing positions. Finally, the multiple second dispensing positions are transformed to the machine coordinate system using the camera-machine transformation matrix to obtain multiple third dispensing positions. Dispensing is then performed on the target workpiece based on these third dispensing positions. The design-template transformation matrix records the transformation relationship between the design image and the preset template image, while the camera-machine transformation matrix records the transformation relationship between the camera coordinate system and the machine coordinate system. The multiple first dispensing positions are obtained by transforming multiple design dispensing positions in the design image using the design-template transformation matrix. Multiple design dispensing positions can be set in the design image, and the design dispensing positions in the design image can be converted to first dispensing positions in the preset template image using the design-template transformation matrix. The determination of the dispensing positions is not affected by the visual projection occlusion of components, effectively improving the calibration accuracy of the dispensing positions and enhancing the dispensing control effect.

[0021] In a third aspect, embodiments of this application provide a vision-based dispensing control device, including: a memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the vision-based dispensing control method as described in the first aspect.

[0022] In a fourth aspect, embodiments of this application provide a storage medium for storing computer-executable instructions, which, when executed by a computer processor, are used to perform the vision-based dispensing control method as described in the first aspect. Attached Figure Description

[0023] Figure 1 This is a flowchart of a vision-based dispensing control method provided in an embodiment of this application; Figure 2 This is a flowchart of another vision-based dispensing control method provided in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of a vision-based dispensing control device provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of a vision-based dispensing control device provided in an embodiment of this application. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but additional steps not included in the drawings may also be present. The above processes can correspond to methods, functions, procedures, subroutines, subroutines, etc.

[0025] In existing dispensing production processes, manual or semi-automatic programming is typically required to obtain the dispensing position. Once the product model or board structure changes, the dispensing position needs to be recalibrated and set, which is highly susceptible to human error leading to insufficient dispensing accuracy, affecting product capacity and quality. Furthermore, existing vision-based dispensing technologies are prone to issues with tall products, where the visual projection of components (such as multiple tall capacitors on a printed circuit board) can obscure the dispensing position, causing significant discrepancies between the calibrated and actual dispensing positions. Therefore, this application provides a vision-based positioning-based dispensing control method to address the technical problems of low calibration accuracy and poor dispensing control performance in existing dispensing control solutions.

[0026] Figure 1 A flowchart of a vision-based dispensing control method provided in this application embodiment is given. The vision-based dispensing control method provided in this application embodiment can be executed by a vision-based dispensing control device, which can be implemented by hardware and / or software and integrated into a vision-based dispensing control equipment.

[0027] The following description uses a vision-based dispensing control device to illustrate the vision-based dispensing control method. (Reference) Figure 1 The vision-based dispensing control method includes: S110: Acquire a workpiece image obtained by taking a picture of the target workpiece in the dispensing station area, and generate a template-camera conversion matrix based on the workpiece image and a preset template image.

[0028] The vision-based dispensing control device provided in this application is equipped with dispensing operation components (e.g., a movable and dispensing robotic arm) for dispensing processing. The device also includes a dispensing station area (e.g., a worktable on the device) for placing target workpieces (e.g., circuit boards or PCBs requiring dispensing) and using the robotic arm to perform dispensing on the workpieces. The device is further connected to a camera device for capturing images of the dispensing station area.

[0029] For example, a target workpiece is placed on the dispensing station area, and an image of the workpiece is obtained by capturing it using a camera device. Further, a template-camera transformation matrix is ​​generated based on the acquired workpiece image and a corresponding preset template image. The template-camera transformation matrix records the transformation relationship between the coordinate system of the preset template image and the camera coordinate system of the camera device. The preset template image provided in this application can be an image obtained by capturing a workpiece template (e.g., a standard workpiece made based on a product design image) on the dispensing station area.

[0030] S120: Determine multiple first dispensing positions in the preset template image, and transform the multiple first dispensing positions to the camera coordinate system according to the template-camera transformation matrix to obtain multiple second dispensing positions.

[0031] For example, multiple first dispensing positions are determined in a preset template image. These multiple first dispensing positions are obtained by transforming multiple design dispensing positions in the design image based on a design-template transformation matrix. The design-template transformation matrix records the transformation relationship between the design image and the preset template image. The design dispensing position can be understood as the position configured on the design image according to dispensing requirements during the design process. The first dispensing position can be understood as the position after transforming the design dispensing position from the coordinate system corresponding to the design image to the coordinate system corresponding to the preset template image. Optionally, the design image can be a standard format file of a printed circuit board (PCB), such as a Gerber file. A standard format file of a printed circuit board can record detailed coordinate information of the dispensing position (i.e., the first dispensing position), pads, circuits, solder mask, etc., of the printed circuit board design.

[0032] The design-template transformation matrix provided in this application records the transformation relationship between the coordinate system corresponding to the design image and the coordinate system corresponding to the preset template image. This matrix can be used to transform coordinate points in the design image to coordinate points corresponding to the preset template image. Specifically, after determining multiple design dispensing positions in the design image, the design-template transformation matrix can be used to transform these positions to the coordinate system corresponding to the preset template image, thus obtaining multiple first dispensing positions in the preset template image.

[0033] Furthermore, after determining multiple first glue application positions in the design image, the multiple first glue application positions can be transformed to the camera coordinate system according to the template-camera transformation matrix to obtain the corresponding second glue application positions after each first glue application position is transformed to the camera coordinate system.

[0034] In one possible embodiment, the vision-based dispensing control method provided in this application transforms multiple first dispensing positions to the camera coordinate system according to the template-camera transformation matrix to obtain multiple second dispensing positions. This can be achieved by multiplying each of the multiple first dispensing positions by the template-camera transformation matrix to obtain the multiple second dispensing positions. For example, the second dispensing positions can be determined based on the following formula: P(camera)=T(template)^camera×P(template) Wherein, P(camera) is the second dispensing position, T(template)^camera is the template-camera transformation matrix, and P(template) is the first dispensing position. This application obtains the second dispensing position by multiplying the first dispensing position by the template-camera transformation matrix, thereby achieving an accurate transformation of the dispensing position from the preset template image to the camera coordinate system and ensuring the calibration accuracy of the dispensing position.

[0035] S130: Based on the camera-machine transformation matrix, multiple second glue application positions are transformed to the machine coordinate system to obtain multiple third glue application positions. The camera-machine transformation matrix records the transformation relationship between the camera coordinate system and the machine coordinate system.

[0036] The camera-machine transformation matrix provided in this application records the transformation relationship between the camera coordinate system and the machine coordinate system (the coordinate system corresponding to the movement of the dispensing operation component). The camera-machine transformation matrix can be used to transform the coordinate points in the camera coordinate system to the corresponding coordinate points in the machine coordinate system.

[0037] For example, after converting multiple first adhesive dots into multiple second adhesive dots in the camera coordinate system, the camera-machine transformation matrix can be used to transform the multiple second adhesive dots into the machine coordinate system to obtain the third adhesive dots corresponding to each second adhesive dot.

[0038] In one possible embodiment, the vision-based dispensing control method provided in this application transforms multiple second dispensing positions to the machine coordinate system according to a camera-machine transformation matrix to obtain multiple third dispensing positions. This can be achieved by multiplying each of the multiple second dispensing positions by the camera-machine transformation matrix to obtain the third dispensing position. For example, the third dispensing position can be determined based on the following formula: P(robot)=T(camera)^robot×P(camera) Wherein, P(robot) is the third dispensing position, T(camera)^robot is the camera-to-machine transformation matrix, and P(camera) is the second dispensing position. This application obtains the third dispensing position by multiplying the second dispensing position by the camera-to-machine transformation matrix, thereby achieving an accurate transformation of the dispensing position from the camera coordinate system to the machine coordinate system and ensuring the calibration accuracy of the dispensing position.

[0039] S140: Perform dispensing treatment on the target workpiece based on multiple third dispensing positions.

[0040] For example, after converting multiple first dispensing positions in the design image into multiple third dispensing positions, accurate calibration of the dispensing positions has been achieved, and dispensing can be performed on the target workpiece based on the multiple third dispensing positions. For instance, the dispensing operation component is controlled to move to each of the third dispensing positions, and dispensing is performed on the target workpiece at each of the third dispensing positions.

[0041] In one possible embodiment, the vision-based dispensing control method provided in this application performs dispensing processing on a target workpiece according to multiple third dispensing positions, which may include: planning a dispensing path according to the multiple third dispensing positions; and performing dispensing processing on the target workpiece according to the dispensing path planning result.

[0042] For example, after obtaining multiple third dispensing positions, a dispensing path planning result can be obtained by performing dispensing path planning based on the current position of the dispensing operation component and the multiple third dispensing positions. The dispensing operation component moves according to the dispensing path planning result, starting from the current position and sequentially passing through each third dispensing position. Further, the dispensing operation component moves according to the dispensing path planning result, and after reaching each third dispensing position, it is controlled to perform a dispensing operation on the target workpiece. Dispensing parameters such as dwell time, dispensing sequence, dispensing volume, and dispensing speed are also configured in the design image, which can control the dispensing operation component to move according to the dispensing path planning result and perform a dispensing operation on the target workpiece according to the configured dwell time, dispensing sequence, dispensing volume, and dispensing speed. Optionally, the target workpiece can be divided into multiple working areas, and path planning and dispensing operations can be performed in each working area according to the third dispensing positions, thus rationally arranging the dispensing task of the target workpiece.

[0043] Optionally, dispensing path planning can be performed based on multiple third dispensing positions using a preset path generation algorithm (such as Dijkstra's algorithm, A* algorithm, etc.), or a trained path planning model can be used to plan dispensing paths for multiple third dispensing positions. This application plans dispensing paths based on multiple third dispensing positions and performs dispensing processing on the target workpiece based on the dispensing path planning results. The third dispensing positions are obtained through template-camera conversion matrices, design-template conversion matrices, and camera-machine conversion matrices. These third dispensing positions can accurately correspond to the actual dispensing locations, reducing repetitive calibration and programming steps. The determination of the third dispensing positions is not affected by the visual projection occlusion of components on the target workpiece, effectively improving the calibration accuracy of the dispensing positions. Optionally, the dispensing results on the target workpiece can be monitored in real time, and dispensing parameters can be corrected based on the results to improve dispensing accuracy and stability.

[0044] The above describes a process where a workpiece image is captured by photographing the target workpiece in the dispensing station area. A template-camera transformation matrix is ​​generated based on the workpiece image and a preset template image to determine multiple first dispensing positions in the preset template image. These first dispensing positions are then transformed to the camera coordinate system using the template-camera transformation matrix to obtain multiple second dispensing positions. Finally, the multiple second dispensing positions are transformed to the machine coordinate system using the camera-machine transformation matrix to obtain multiple third dispensing positions. The target workpiece is then dispensed based on these third dispensing positions. The design-template transformation matrix records the transformation relationship between the design image and the preset template image, while the camera-machine transformation matrix records the transformation relationship between the camera coordinate system and the machine coordinate system. The multiple first dispensing positions are obtained by transforming multiple design dispensing positions in the design image using the design-template transformation matrix. This allows for setting multiple design dispensing positions in the design image and converting them to first dispensing positions in the preset template image using the design-template transformation matrix. The determination of the dispensing positions is not affected by the visual projection occlusion of components, effectively improving the calibration accuracy of the dispensing positions and enhancing the dispensing control effect.

[0045] Based on the above embodiments, Figure 2 A flowchart of another vision-based dispensing control method provided in this application embodiment is given, which is a concretization of the aforementioned vision-based dispensing control method. (Reference) Figure 2 The vision-based dispensing control method includes: S210: Acquire a workpiece image obtained by taking a picture of the target workpiece in the dispensing station area, perform feature matching on the workpiece image and the preset template image, and generate a template-camera transformation matrix based on the feature matching results.

[0046] For example, after acquiring an image of the target workpiece in the dispensing station area, feature matching is performed on the workpiece image and a preset template image to determine multiple (e.g., more than three) matching point pairs between the workpiece image and the preset template image. These multiple matching point pairs can be used as the feature matching results. Further, a template-camera transformation matrix can be generated based on the multiple matching point pairs corresponding to the feature matching results. This application accurately determines the transformation relationship between the template and the camera by performing feature matching on the workpiece image and the preset template image and generating a template-camera transformation matrix based on the feature matching results, effectively improving the calibration accuracy of the dispensing position.

[0047] In one embodiment, the transformation matrix provided by this solution (e.g., template-camera transformation matrix, design-template transformation matrix, and camera-machine transformation matrix) can be generated by calculating multiple matching point pairs based on a preset transformation matrix generation algorithm. This algorithm can be a combination of one or more of the following: Direct Linear Transform (DLT), Random Sample Consensus Algorithm (RANSAC), Least Squares, and nonlinear optimization algorithms (e.g., the Levenberg-Marquardt algorithm).

[0048] In one possible embodiment, the vision-based dispensing control method provided in this application further includes, before acquiring an image of the target workpiece captured by photographing it in the dispensing station area: S201: Obtain a calibration image of the calibration template placed on the dispensing station area and determine the image positioning coordinates of the multiple calibration points in the calibration template on the calibration image.

[0049] S202: Determine the machine positioning coordinates corresponding to the positions of multiple calibration points when the dispensing operation component moves to the corresponding positions, wherein the dispensing operation component is used to perform dispensing processing.

[0050] S203: Generate the camera-machine transformation matrix based on the machine positioning coordinates and the image positioning coordinates.

[0051] For example, a calibration template is placed in the dispensing station area, and a calibration image is obtained by photographing the calibration template placed in the dispensing station area. The calibration template has multiple calibration points. For example, the calibration model can be a checkerboard, and multiple positions on the checkerboard can be designated as calibration points. After obtaining the calibration image, image positioning coordinates corresponding to the positions of the multiple calibration points in the calibration template can be determined on the calibration image.

[0052] Furthermore, the dispensing operation component is controlled to move sequentially to the corresponding positions of multiple calibration points, and the machine positioning coordinates (i.e., coordinates in the machine coordinate system) corresponding to the movement of the dispensing operation component to each calibration point are determined. After obtaining the image positioning coordinates and machine positioning coordinates corresponding to multiple calibration points, a camera-machine transformation matrix can be generated based on the matching image positioning coordinates and machine positioning coordinates (i.e., the image positioning coordinates and machine positioning coordinates corresponding to the same calibration point are considered as a matching point pair).

[0053] Optionally, nine calibration points can be configured on the calibration template. Correspondingly, nine image positioning coordinates and nine machine positioning coordinates, each corresponding to one of the calibration points, can be determined. A nine-point calibration algorithm can be used to generate a camera-machine transformation matrix based on the nine pairs of corresponding image positioning coordinates and machine positioning coordinates as matching point pairs.

[0054] The camera-to-machine transformation matrix can be established after the installation or maintenance of the vision-based dispensing control equipment. When the transformation relationship between the camera coordinate system and the machine coordinate system remains unchanged, subsequent dispensing control on this vision-based dispensing control equipment can be based on the newly determined camera-to-machine transformation matrix. This application determines the image positioning coordinates corresponding to multiple calibration points in the calibration template on the calibration image, and the machine positioning coordinates corresponding to the positions of the dispensing operation component when it moves to the corresponding positions of the multiple calibration points. Based on the machine positioning coordinates and the image positioning coordinates, a camera-to-machine transformation matrix is ​​generated, effectively ensuring accurate transformation from the camera to the machine coordinate system and improving the calibration accuracy of the dispensing position.

[0055] In one possible embodiment, the vision-based dispensing control method provided in this application further includes, before acquiring an image of the target workpiece captured by photographing it in the dispensing station area: S204: Determine multiple design dispensing locations on the design image.

[0056] S205: Obtain a preset template image obtained by taking a picture of the workpiece template in the dispensing station area, and generate a design-template conversion matrix based on the preset template image and the design image.

[0057] S206: Based on the design-template transformation matrix, transform multiple design dispensing positions to the template coordinate system to obtain multiple first dispensing positions.

[0058] For example, multiple design dispensing positions can be determined on the design image according to dispensing requirements. For instance, a user can parse and open the design image and specify multiple design dispensing positions on it. It should be explained that in related technologies, visual positioning-based dispensing position calibration typically involves photographing a workpiece template to obtain a template image and specifying the dispensing position on the template image. However, due to visual projections caused by components on the workpiece template, when the actual dispensing position is obscured by these components and therefore invisible on the template image, users often specify the dispensing position on the template image based on a rough approximation, resulting in significant deviations in the dispensing position determination and poor dispensing performance. This application, by introducing a design image, determining the design dispensing positions on the design image, converting the design dispensing positions to a preset template image, and then using the preset template image to perform the dispensing operation on the target workpiece, effectively avoids deviations in the dispensing position caused by visual projections.

[0059] Further, the workpiece template is placed on the dispensing station area, and a preset template image is acquired by photographing the workpiece template on the dispensing station area. The workpiece template can be a standard workpiece made based on the product's design image. Further, a design-template conversion matrix is ​​generated based on the preset template image and the design image. For example, the design-template conversion matrix is ​​generated based on multiple (more than 3) matching point pairs corresponding to the preset template image and the design image.

[0060] The design-template conversion matrix can be generated for different design images. When creating or updating a design image, it is necessary to recalibrate the dispensing position. At this time, the design-template conversion matrix can be generated based on the preset template image and the design image. The dispensing control of the target workpiece corresponding to the design image can then be based on the design-template conversion matrix.

[0061] After determining the design-template transformation matrix, multiple design dispensing positions can be transformed to the template coordinate system based on the design-template transformation matrix to obtain multiple first dispensing positions. For example, multiple design dispensing positions can be obtained by multiplying each design dispensing position by the design-template transformation matrix. Optionally, the first dispensing position can be determined based on the following formula: P(template)=T(gerber)^template×P(gerber) Where P(template) is the first dispensing position, T(gerber)^template is the design-template transformation matrix, and P(gerber) is the design dispensing position.

[0062] This application determines multiple design dispensing positions on a design image, generates a design-template transformation matrix based on a preset template image and the design image, and transforms the multiple design dispensing positions to the template coordinate system based on the design-template transformation matrix to obtain multiple first dispensing positions. This ensures the accurate transformation of dispensing positions from design drawings to preset template images and improves the calibration accuracy of dispensing positions.

[0063] In one embodiment, the visual positioning-based dispensing control method provided in this application generates a design-template conversion matrix based on a preset template image and a design image, including: determining a plurality of first marker points in the preset template image and determining a plurality of second marker points in the design image that match the first marker points; and generating a design-template conversion matrix based on the first marker points and the second marker points.

[0064] For example, after obtaining the preset template image, multiple (at least 3) first marker points can be specified in the preset template image, and multiple second marker points matching the first marker points can be specified in the design image according to the correspondence between the target workpiece and the design image.

[0065] Furthermore, after determining multiple matching first and second marker points, the matching first and second marker points can be used as matching point pairs to generate a design-template transformation matrix based on a preset transformation matrix generation algorithm. This application ensures accurate conversion of the dispensing position from the design drawing to the preset template image by generating a design-template transformation matrix based on multiple first marker points in the preset template image and multiple matching second marker points in the design image.

[0066] S220: Determine multiple first dispensing positions in the preset template image, and transform the multiple first dispensing positions to the camera coordinate system according to the template-camera transformation matrix to obtain multiple second dispensing positions.

[0067] Among them, multiple first dispensing positions are obtained by transforming multiple design dispensing positions in the design image based on the design-template transformation matrix. The design-template transformation matrix records the transformation relationship between the design image and the preset template image.

[0068] S230: Based on the camera-machine transformation matrix, multiple second glue application positions are transformed to the machine coordinate system to obtain multiple third glue application positions. The camera-machine transformation matrix records the transformation relationship between the camera coordinate system and the machine coordinate system.

[0069] S240: Perform dispensing treatment on the target workpiece based on multiple third dispensing locations.

[0070] The above describes a process where a workpiece image is captured by photographing the target workpiece in the dispensing station area. A template-camera transformation matrix is ​​generated based on the workpiece image and a preset template image to determine multiple first dispensing positions in the preset template image. These first dispensing positions are then transformed to the camera coordinate system using the template-camera transformation matrix to obtain multiple second dispensing positions. Finally, the multiple second dispensing positions are transformed to the machine coordinate system using the camera-machine transformation matrix to obtain multiple third dispensing positions. The target workpiece is then dispensed based on these third dispensing positions. The design-template transformation matrix records the transformation relationship between the design image and the preset template image, while the camera-machine transformation matrix records the transformation relationship between the camera coordinate system and the machine coordinate system. The multiple first dispensing positions are obtained by transforming multiple design dispensing positions in the design image using the design-template transformation matrix. This allows for setting multiple design dispensing positions in the design image and converting them to first dispensing positions in the preset template image using the design-template transformation matrix. The determination of the dispensing positions is not affected by the visual projection occlusion of components, effectively improving the calibration accuracy of the dispensing positions and enhancing the dispensing control effect. Meanwhile, by determining the image positioning coordinates corresponding to multiple calibration points in the calibration template on the calibration image, and the machine positioning coordinates corresponding to the positions of the dispensing operation component when it moves to the corresponding positions of multiple calibration points, and generating a camera-machine transformation matrix based on the machine positioning coordinates and image positioning coordinates, accurate transformation from the camera to the machine coordinate system can be effectively guaranteed, improving the calibration accuracy of the dispensing position. Furthermore, by generating a design-template transformation matrix based on the preset template image and the design image, accurate transformation from the design drawing to the workpiece template is guaranteed, further improving the calibration accuracy of the dispensing position.

[0071] Figure 3 A schematic diagram of a vision-based dispensing control device according to an embodiment of this application is provided. (Reference) Figure 3 The vision-based dispensing control device includes a matrix determination module 31, a first conversion module 32, a second conversion module 33, and a dispensing processing module 34.

[0072] The system includes: a matrix determination module 31, which acquires a workpiece image captured by a camera on the target workpiece in the dispensing station area, and generates a template-camera transformation matrix based on the workpiece image and a preset template image; a first transformation module 32, which determines multiple first dispensing positions in the preset template image and transforms these positions to the camera coordinate system based on the template-camera transformation matrix to obtain multiple second dispensing positions, wherein the multiple first dispensing positions are obtained by transforming multiple design dispensing positions in the design image based on the design-template transformation matrix, and the design-template transformation matrix records the transformation relationship between the design image and the preset template image; a second transformation module 33, which transforms the multiple second dispensing positions to the machine coordinate system based on the camera-machine transformation matrix to obtain multiple third dispensing positions, and the camera-machine transformation matrix records the transformation relationship between the camera coordinate system and the machine coordinate system; and a dispensing processing module 34, which performs dispensing processing on the target workpiece based on the multiple third dispensing positions.

[0073] The above describes a process where a workpiece image is captured by photographing the target workpiece in the dispensing station area. A template-camera transformation matrix is ​​generated based on the workpiece image and a preset template image to determine multiple first dispensing positions in the preset template image. These first dispensing positions are then transformed to the camera coordinate system using the template-camera transformation matrix to obtain multiple second dispensing positions. Finally, the multiple second dispensing positions are transformed to the machine coordinate system using the camera-machine transformation matrix to obtain multiple third dispensing positions. The target workpiece is then dispensed based on these third dispensing positions. The design-template transformation matrix records the transformation relationship between the design image and the preset template image, while the camera-machine transformation matrix records the transformation relationship between the camera coordinate system and the machine coordinate system. The multiple first dispensing positions are obtained by transforming multiple design dispensing positions in the design image using the design-template transformation matrix. This allows for setting multiple design dispensing positions in the design image and converting them to first dispensing positions in the preset template image using the design-template transformation matrix. The determination of the dispensing positions is not affected by the visual projection occlusion of components, effectively improving the calibration accuracy of the dispensing positions and enhancing the dispensing control effect.

[0074] In one possible embodiment, the vision-based dispensing control device further includes a third conversion module, which is used for: Determine multiple design dispensing locations on the design image; Acquire a preset template image obtained by photographing the workpiece template in the dispensing station area, and generate a design-template conversion matrix based on the preset template image and the design image; Based on the design-template transformation matrix, multiple design dispensing positions are transformed to the template coordinate system to obtain multiple first dispensing positions.

[0075] In one possible embodiment, the third conversion module generates a design-template conversion matrix based on a preset template image and a design image, including: Multiple first marker points are determined in a preset template image, and multiple second marker points that match the first marker points are determined in a design image; Generate a design-template transformation matrix based on the first and second marker points.

[0076] In one possible embodiment, the matrix determination module 31 generates a template-camera transformation matrix based on the workpiece image and a preset template image, including: Perform feature matching between the workpiece image and the preset template image; Generate a template-camera transformation matrix based on the feature matching results.

[0077] In one possible embodiment, the first transformation module 32 transforms multiple first dispensing positions to the camera coordinate system according to the template-camera transformation matrix, resulting in multiple second dispensing positions, including: Multiple first dispensing positions are multiplied by the template-camera transformation matrix to obtain multiple second dispensing positions.

[0078] In one possible embodiment, the dispensing module 34 performs dispensing processing on the target workpiece according to a plurality of third dispensing locations, including: Plan the dispensing path based on multiple third dispensing locations; The dispensing process is performed on the target workpiece based on the dispensing path planning results.

[0079] In one possible embodiment, the vision-based dispensing control device further includes a machine calibration module, which is used for: Obtain a calibration image of the calibration template placed on the dispensing station area, and determine the image positioning coordinates on the calibration image corresponding to multiple calibration points in the calibration template; Determine the machine positioning coordinates corresponding to the positions of multiple calibration points when the dispensing operation component moves to the corresponding positions, wherein the dispensing operation component is used to perform dispensing processing; A camera-machine transformation matrix is ​​generated based on the machine positioning coordinates and the image positioning coordinates.

[0080] It is worth noting that in the above embodiments of the visual positioning-based dispensing control device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this application.

[0081] This application also provides a vision-based dispensing control device, which can integrate the vision-based dispensing control apparatus provided in this application. Figure 4 This is a schematic diagram of a vision-based dispensing control device provided in an embodiment of this application. (Reference) Figure 4 The vision-based dispensing control device includes: an input device 43, an output device 44, a memory 42, and one or more processors 41; the memory 42 is used to store one or more programs; when one or more programs are executed by one or more processors 41, the one or more processors 41 implement the vision-based dispensing control method provided in the above embodiments. The input device 43, output device 44, memory 42, and processors 41 can be connected via a bus or other means. Figure 4 Taking the example of a connection between China and Israel via a bus.

[0082] The memory 42, as a computing device readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the vision-based dispensing control method provided in any embodiment of this application (e.g., the matrix determination module 31, the first conversion module 32, the second conversion module 33, and the dispensing processing module 34 in the vision-based dispensing control device). The memory 42 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on the use of the device, etc. Furthermore, the memory 42 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 42 may further include memory remotely located relative to the processor 41, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0083] Input device 43 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the device. Output device 44 may include display devices such as a display screen.

[0084] The processor 41 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 42, thereby realizing the above-mentioned vision-based dispensing control method.

[0085] The vision-based dispensing control device, equipment, and computer provided above can be used to execute the vision-based dispensing control method provided in any of the above embodiments, and have corresponding functions and beneficial effects.

[0086] This application embodiment also provides a storage medium for storing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to execute the vision-based dispensing control method provided in the above embodiment. The vision-based dispensing control method includes: acquiring a workpiece image obtained by photographing a target workpiece in a dispensing station area; generating a template-camera transformation matrix based on the workpiece image and a preset template image; determining multiple first dispensing positions in the preset template image; and transforming the multiple first dispensing positions to a camera coordinate system according to the template-camera transformation matrix to obtain multiple second dispensing positions, wherein the multiple first dispensing positions are obtained by transforming multiple design dispensing positions in a design image based on a design-template transformation matrix, and the design-template transformation matrix records the transformation relationship between the design image and the preset template image; transforming the multiple second dispensing positions to a machine coordinate system according to a camera-machine transformation matrix to obtain multiple third dispensing positions, and the camera-machine transformation matrix records the transformation relationship between the camera coordinate system and the machine coordinate system; and performing dispensing processing on the target workpiece according to the multiple third dispensing positions.

[0087] Storage medium – any type of memory device or storage device. The term “storage medium” is intended to include: mounting media, such as CD-ROMs, floppy disks, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disks or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. Furthermore, storage media may reside in a first computer system in which a program is executed, or may reside in a different second computer system connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term “storage medium” can include two or more storage media that may reside in different locations (e.g., in different computer systems connected via a network). Storage media may store program instructions (e.g., specifically implemented as a computer program) executable by one or more processors.

[0088] Of course, the computer-executable instructions stored in the storage medium provided in the embodiments of this application are not limited to the visual positioning-based dispensing control method provided above, but can also perform related operations in the visual positioning-based dispensing control method provided in any embodiment of this application.

[0089] The visual positioning-based dispensing control device, equipment, and storage medium provided in the above embodiments can execute the visual positioning-based dispensing control method provided in any embodiment of this application. For technical details not described in detail in the above embodiments, please refer to the visual positioning-based dispensing control method provided in any embodiment of this application.

[0090] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments provided herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the claims.

Claims

1. A dispensing control method based on vision positioning, characterized in that, include: Acquire a workpiece image obtained by photographing the target workpiece in the dispensing station area, and generate a template-camera conversion matrix based on the workpiece image and a preset template image; Multiple first glue-dispensing positions are determined in a preset template image, and the multiple first glue-dispensing positions are transformed to the camera coordinate system according to the template-camera transformation matrix to obtain multiple second glue-dispensing positions. The multiple first glue-dispensing positions are obtained by transforming multiple design glue-dispensing positions in a design image based on a design-template transformation matrix. The design-template transformation matrix records the transformation relationship between the design image and the preset template image. Multiple second dispensing positions are transformed to the machine coordinate system according to the camera-machine transformation matrix to obtain multiple third dispensing positions. The camera-machine transformation matrix records the transformation relationship between the camera coordinate system and the machine coordinate system. The target workpiece is dispensing adhesive according to multiple third dispensing locations.

2. The dispensing control method based on vision positioning according to claim 1, characterized in that, Before acquiring the workpiece image obtained by photographing the target workpiece in the dispensing station area, the method further includes: Determine multiple design dispensing locations on the design image; A preset template image is obtained by taking a picture of the workpiece template in the dispensing station area, and a design-template conversion matrix is ​​generated based on the preset template image and the design image. The design-template transformation matrix is ​​used to transform multiple design dispensing positions to the template coordinate system, resulting in multiple first dispensing positions.

3. The dispensing control method based on vision positioning according to claim 2, characterized in that, The step of generating a design-template transformation matrix based on the preset template image and the design image includes: Multiple first marker points are determined in the preset template image, and multiple second marker points that match the first marker points are determined in the design image; Generate a design-template transformation matrix based on the first and second marker points.

4. The dispensing control method based on vision positioning according to claim 1, characterized in that, The step of generating a template-camera transformation matrix based on the workpiece image and a preset template image includes: Feature matching is performed on the workpiece image and the preset template image; Generate a template-camera transformation matrix based on the feature matching results.

5. The dispensing control method based on vision positioning according to claim 1, characterized in that, The step of transforming multiple first dispensing positions to the camera coordinate system according to the template-camera transformation matrix to obtain multiple second dispensing positions includes: Multiple first dispensing positions are multiplied by the template-camera transformation matrix to obtain multiple second dispensing positions.

6. The dispensing control method based on vision positioning according to claim 1, characterized in that, The dispensing process on the target workpiece according to multiple third dispensing positions includes: Dispensing path planning is performed based on multiple third dispensing locations; The target workpiece is dispensing adhesive according to the dispensing path planning results.

7. The dispensing control method based on vision positioning according to claim 1, characterized in that, Before acquiring the workpiece image obtained by photographing the target workpiece in the dispensing station area, the method further includes: Obtain a calibration image of a calibration template placed on the dispensing station area, and determine the image positioning coordinates on the calibration image corresponding to multiple calibration points in the calibration template; Determine the machine positioning coordinates corresponding to the positions of the multiple calibration points when the dispensing operation component moves to the corresponding positions, wherein the dispensing operation component is used to perform dispensing processing; A camera-machine transformation matrix is ​​generated based on the machine positioning coordinates and the image positioning coordinates.

8. A vision-based dispensing control device, characterized in that, It includes a matrix determination module, a first conversion module, a second conversion module, and a dispensing processing module, wherein: The matrix determination module is used to acquire a workpiece image obtained by taking a picture of the target workpiece in the dispensing station area, and to generate a template-camera conversion matrix based on the workpiece image and a preset template image. The first conversion module is used to determine multiple first glue-dispensing positions in a preset template image, and convert the multiple first glue-dispensing positions to the camera coordinate system according to the template-camera conversion matrix to obtain multiple second glue-dispensing positions. The multiple first glue-dispensing positions are obtained by converting multiple design glue-dispensing positions in a design image based on a design-template conversion matrix. The design-template conversion matrix records the conversion relationship between the design image and the preset template image. The second conversion module is used to convert multiple second dispensing positions to the machine coordinate system according to the camera-machine conversion matrix to obtain multiple third dispensing positions. The camera-machine conversion matrix records the conversion relationship between the camera coordinate system and the machine coordinate system. The dispensing module is used to dispense adhesive onto the target workpiece according to multiple third dispensing positions.

9. A vision-based dispensing control device, characterized in that, include: Memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the vision-based dispensing control method as described in any one of claims 1-7.

10. A storage medium for storing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the vision-based dispensing control method as described in any one of claims 1-7.