Adaptive dispensing control system and method based on machine vision

Through the adaptive dispensing control system based on machine vision, it automatically identifies and adjusts the dispensing position, solving the problems of traditional equipment in adapting to diverse needs and stability, achieving an efficient and accurate dispensing process, and improving production efficiency. and product quality.

CN118226786BActive Publication Date: 2024-09-13DONGGUAN YIHUI IND INVESTMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410433235.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-11
Publication Date
2024-09-13
Estimated Expiration
2044-04-11

AI Technical Summary

Technical Problem

Traditional dispensing equipment relies on preset programs and manual adjustments, which is difficult to adapt to the needs of product diversity on the production line, resulting in unstable dispensing quality and poor consistency, affecting efficiency and product quality.

Method used

An adaptive dispensing control system based on machine vision is used to obtain the dispensing surface image of the circuit board through the camera, and uses artificial intelligence and machine vision algorithms to analyze the image, automatically identify the dispensing position and adjust the movement of the robotic arm to ensure accurate dispensing of glue.

Benefits of technology

It improves the accuracy and consistency of dispensing, reduces material waste, saves costs, and improves the efficiency of the production line and product quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118226786B
    Figure CN118226786B
Patent Text Reader

Abstract

The present application relates to the field of intelligent control, and specifically discloses an adaptive dispensing control system and method based on machine vision, which acquires the dispensing surface image of the circuit board captured by a camera, and analyzes the dispensing surface image using an image analysis and processing algorithm based on artificial intelligence and machine vision, thereby automatically identifying the dispensing position according to the surface state of each dispensing area and matching it with a predefined click position template image, and adjusting the movement of the dispensing robot arm. In this way, the dispensing position can be identified more accurately, errors caused by human factors can be avoided, while reducing material waste and saving costs, thereby improving product quality and consistency, and improving the efficiency and production speed of the production line.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent control, and more specifically, to an adaptive dispensing control system and method based on machine vision. Background Art

[0002] Adaptive dispensing control system is a control system that can automatically adjust the parameters of the dispensing process according to real-time process conditions and product requirements. The main advantage of this system is that it can achieve high-precision and high-efficiency dispensing operations while improving product quality and production efficiency.

[0003] However, traditional dispensing equipment often relies on preset programs and manual adjustments, and usually relies on the operator's experience and skills to adjust parameters and monitor the dispensing process. This is not only inefficient, but also difficult to adapt to the needs of product diversity on the production line, and easily leads to unstable dispensing quality, thus affecting the dispensing effect and consistency.

[0004] Therefore, an adaptive dispensing control system based on machine vision is desired. Summary of the invention

[0005] In order to solve the above technical problems, the present application is proposed. The embodiment of the present application provides an adaptive dispensing control system and method based on machine vision, which acquires the dispensing surface image of the circuit board captured by the camera, and uses the image analysis and processing algorithm based on artificial intelligence and machine vision to analyze the dispensing surface image, so as to automatically identify the dispensing position according to the surface state of each dispensing area and match it with the predefined click position template image, and adjust the movement of the dispensing robot arm. In this way, the dispensing position can be identified more accurately, and errors caused by human factors can be avoided. At the same time, material waste can be reduced, and costs can be saved, thereby improving product quality and consistency, and improving the efficiency and production speed of the production line.

[0006] According to one aspect of the present application, there is provided an adaptive dispensing control system based on machine vision, which includes:

[0007] A glue dispensing surface image acquisition module is used to acquire a glue dispensing surface image of the circuit board captured by a camera;

[0008] A glue dispensing surface image segmentation module, used to segment the glue dispensing surface image into different regions using threshold segmentation to obtain a plurality of region images, wherein each region image in the plurality of region images respectively represents a different component on the circuit board;

[0009] A component feature extraction module, used for performing component feature extraction on each of the plurality of region images to obtain a plurality of region component feature vectors;

[0010] An autocorrelation feature enhancement module is used to obtain multiple enhanced regional component feature vectors by passing the multiple regional component feature vectors through an inter-component autocorrelation feature enhancement expressor based on an autocorrelation attention network;

[0011] A feature global fusion module, used for globally fusing the feature vectors of the plurality of strengthening area components to obtain a global feature matrix of the dispensing surface state;

[0012] A matching module, used for matching the global feature matrix of the dispensing surface state with a predefined click position template image to identify the dispensing position on the circuit board;

[0013] The glue dispensing robot arm adjustment module is used to automatically adjust the movement of the glue dispensing robot arm based on the glue dispensing position on the circuit board to ensure that the glue is accurately dispensed to the specified position.

[0014] According to another aspect of the present application, there is provided an adaptive dispensing control method based on machine vision, which includes:

[0015] Acquire a dispensing surface image of the circuit board captured by a camera;

[0016] Using threshold segmentation to segment the dispensing surface image into different regions to obtain a plurality of region images, wherein each region image in the plurality of region images represents a different component on the circuit board;

[0017] Performing component feature extraction on each of the plurality of region images to obtain a plurality of region component feature vectors;

[0018] Passing the plurality of regional component feature vectors through an inter-component autocorrelation feature enhancement expressor based on an autocorrelation attention network to obtain a plurality of enhanced regional component feature vectors;

[0019] Globally fusing the plurality of enhanced region component feature vectors to obtain a global feature matrix of the dispensing surface state;

[0020] Based on the global feature matrix of the dispensing surface state, matching is performed with a predefined click position template image to identify the dispensing position on the circuit board;

[0021] Based on the glue dispensing position on the circuit board, the movement of the glue dispensing robot arm is automatically adjusted to ensure that the glue is accurately dispensed to the designated position.

[0022] Compared with the prior art, the present application provides an adaptive dispensing control system and method based on machine vision, which acquires the dispensing surface image of the circuit board captured by the camera, and analyzes the dispensing surface image using an image analysis and processing algorithm based on artificial intelligence and machine vision, thereby automatically identifying the dispensing position according to the surface state of each dispensing area and matching it with the predefined click position template image, and adjusting the movement of the dispensing robot arm. In this way, the dispensing position can be identified more accurately, errors caused by human factors can be avoided, while reducing material waste and saving costs, thereby improving product quality and consistency, and improving the efficiency and production speed of the production line. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0024] Figure 1 It is a block diagram of an adaptive dispensing control system based on machine vision according to an embodiment of the present application.

[0025] Figure 2 Schematic diagram of the architecture of a machine vision-based adaptive dispensing control system according to an embodiment of the present application.

[0026] Figure 3 It is a block diagram of a training module in a machine vision-based adaptive dispensing control system according to an embodiment of the present application.

[0027] Figure 4 Flow chart of an adaptive dispensing control method based on machine vision according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] The embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, but rather these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0030] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0031] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0032] Adaptive dispensing control system is a control system that can automatically adjust the parameters of the dispensing process according to real-time process conditions and product requirements. The main advantage of this system is that it can achieve high-precision and high-efficiency dispensing operations while improving product quality and production efficiency.

[0033] However, traditional dispensing equipment often relies on preset programs and manual adjustments, and usually relies on the operator's experience and skills to adjust parameters and monitor the dispensing process. This is not only inefficient, but also difficult to adapt to the needs of product diversity on the production line, and easily leads to unstable dispensing quality, thus affecting the dispensing effect and consistency.

[0034] It should be understood that machine vision is a technology that uses computers and specialized algorithms to process and interpret digital images and videos. In detail, it involves taking images or videos from the real world and analyzing them through computer algorithms to simulate the capabilities of human vision. Machine vision can be used in many different application areas, including self-driving cars, medical image analysis, security monitoring, industrial quality control, face recognition, etc. In the field of dispensing control, the machine vision system can capture image data during the dispensing process in real time, analyze and identify the position, shape and size of the glue strip, so as to achieve precise control of the dispensing amount, ensure that each dispensing area is coated with a glue strip that meets the specifications, and reduce inconsistencies caused by human operation or equipment errors.

[0035] Accordingly, the technical concept of the present application is to obtain the dispensing surface image of the circuit board captured by the camera, and analyze the dispensing surface image using an image analysis and processing algorithm based on artificial intelligence and machine vision, so as to automatically identify the dispensing position according to the surface state of each dispensing area and match it with the predefined click position template image, and adjust the movement of the dispensing robot arm. In this way, the dispensing position can be identified more accurately, errors caused by human factors can be avoided, and material waste can be reduced, costs can be saved, thereby improving product quality and consistency, and improving the efficiency and production speed of the production line.

[0036] Figure 1 It is a block diagram of an adaptive dispensing control system based on machine vision according to an embodiment of the present application. Figure 2 FIG. 1 is a schematic diagram of the architecture of an adaptive dispensing control system based on machine vision according to an embodiment of the present application. Figure 1 and Figure 2 As shown, according to the embodiment of the present application, the adaptive dispensing control system 100 based on machine vision includes: a dispensing surface image acquisition module 110, which is used to acquire a dispensing surface image of a circuit board captured by a camera; a dispensing surface image segmentation module 120, which is used to segment the dispensing surface image into different regions using threshold segmentation to obtain a plurality of region images, wherein each region image in the plurality of region images respectively represents a different component on the circuit board; a component feature extraction module 130, which is used to extract component features from each region image in the plurality of region images respectively to obtain a plurality of region component feature vectors; and an autocorrelation feature enhancement module 140, which is used to The multiple regional component feature vectors are passed through an inter-component autocorrelation feature enhancement expressor based on an autocorrelation attention network to obtain multiple enhanced regional component feature vectors; a feature global fusion module 150 is used to globally fuse the multiple enhanced regional component feature vectors to obtain a global feature matrix of the dispensing surface state; a matching module 160 is used to match the global feature matrix of the dispensing surface state with a predefined click position template image to identify the dispensing position on the circuit board; and a dispensing robot arm adjustment module 170 is used to automatically adjust the movement of the dispensing robot arm based on the dispensing position on the circuit board to ensure that the glue is accurately dispensed to the specified position.

[0037] In an embodiment of the present application, the glue dispensing surface image acquisition module 110 is used to acquire the glue dispensing surface image of the circuit board captured by the camera. It should be understood that, considering that the glue dispensing surface image is an image of the glue dispensing part on the circuit board captured by the camera, these images reflect the actual situation of glue dispensing, including the position, shape and other information of glue dispensing. Based on this, in the technical solution of the present application, the glue dispensing surface image of the circuit board captured by the camera is acquired, and the glue dispensing surface image is analyzed, so as to determine the exact position of glue dispensing, help adjust the movement of the glue dispensing robot arm, ensure that glue dispensing is performed in the correct position, so as to ensure the stability and reliability of the production process, thereby helping to improve the glue dispensing process and improve production efficiency.

[0038] In an embodiment of the present application, the dispensing surface image segmentation module 120 is used to use threshold segmentation to segment the dispensing surface image into different regions to obtain multiple regional images, wherein each of the multiple regional images represents different components on the circuit board. Accordingly, considering that different regions in the dispensing surface image, that is, different components on the circuit board, reflect different dispensing conditions, including information such as the shape and position of the dispensing. Therefore, in order to separate the regions with different brightness or color in the dispensing surface image, and facilitate the subsequent analysis and processing of the feature information in each regional image, in the technical solution of the present application, the dispensing surface image is segmented into different regions to obtain multiple regional images using threshold segmentation, wherein each of the multiple regional images represents different components on the circuit board. It is worth mentioning that the threshold segmentation is a simple and commonly used image segmentation method, and its basic idea is to compare the grayscale value of the pixel in the image with a pre-set threshold value to divide the pixel into two or more categories. Specifically, the threshold segmentation divides the pixels in the image into two categories: one is the pixel greater than the threshold, and the other is the pixel less than or equal to the threshold. That is to say, by using threshold segmentation to segment the dispensing surface image into different regions, the entire dispensing surface image can be segmented into multiple regional images with different brightness or color, so that each regional image is more representative, and each regional image after segmentation can more easily extract feature information, such as position, range and other features, which is helpful for further image analysis and identification of each component.

[0039] In an embodiment of the present application, the component feature extraction module 130 is used to perform component feature extraction on each of the multiple region images to obtain multiple region component feature vectors. Specifically, in an embodiment of the present application, the component feature extraction module is used to: pass each of the multiple region images through a component feature extractor based on a deep neural network model to obtain the multiple region component feature vectors. In particular, the component feature extractor based on the deep neural network model described here is a component feature extractor based on a convolutional neural network model. It should be understood that, considering that each of the multiple region images contains implicit feature information to varying degrees, such as different dispensing positions, sizes, etc., these implicit features have an important influence on the subsequent identification of the dispensing position, and considering that the convolutional neural network is a neural network structure specially designed for processing images, it can effectively capture the implicit features in the image and analyze and process them. Therefore, in the technical solution of the present application, each of the multiple area images is passed through a component feature extractor based on a convolutional neural network model to capture and mine out the implicit feature information about the dispensing position of each area image, thereby obtaining multiple area component feature vectors with higher discrimination and representation capabilities.

[0040] In an embodiment of the present application, the autocorrelation feature enhancement module 140 is used to obtain multiple enhanced regional component feature vectors by passing the multiple regional component feature vectors through an inter-component autocorrelation feature enhancement expressor based on an autocorrelation attention network. Accordingly, it is considered that different regional component feature vectors in the multiple regional component feature vectors have different mutual semantic associations and dependencies regarding regional component features. Therefore, in order to better capture the mutual correlation and dependency between each regional component feature vector in the multiple regional component feature vectors, so as to better focus on the semantic feature representation of each regional component feature in the global area, so as to perform accurate dispensing position identification later, in the technical solution of the present application, the multiple regional component feature vectors are passed through an inter-component autocorrelation feature enhancement expressor based on an autocorrelation attention network to obtain multiple enhanced regional component feature vectors. It should be understandable that the autocorrelation attention network can effectively capture the autocorrelation between feature vectors of different regional components, that is, the semantic correlation and interaction between the feature vectors of each regional component, and assign corresponding weights based on the different degrees of semantic correlation and association between the feature vectors of each regional component. This helps to better express the semantic association relationship between the feature vectors of each regional component about the regions, thereby improving the model's understanding and utilization of the features of different components, and obtaining multiple enhanced regional component feature vectors.

[0041] Specifically, in an embodiment of the present application, the autocorrelation feature enhancement module is used to: use the inter-component autocorrelation feature enhancement expressor based on the autocorrelation attention network to process the multiple regional component feature vectors with the following autocorrelation enhancement formula to obtain the multiple enhanced regional component feature vectors; wherein the autocorrelation enhancement formula is:

[0042]

[0043]

[0044] in, Represents the first of the plurality of regional component feature vectors The attention scoring mechanism value of the feature vector of the regional component, Represents the first of the plurality of regional component feature vectors The region component feature vector and represents the weight coefficient vector and weight coefficient matrix, is the offset vector, express function, , represents the hyperparameter, Represents the first of the plurality of regional component feature vectors The attention weight value of the feature vector of the regional component, Represents the first of the plurality of regional component feature vectors The attention scoring mechanism value of the feature vector of the regional component, Represents the first of multiple enhanced region component feature vectors The enhanced region component feature vectors, Represents an exponential function with the natural constant e as the base.

[0045] In an embodiment of the present application, the feature global fusion module 150 is used to globally fuse the multiple enhanced region component feature vectors to obtain a global feature matrix of the dispensing surface state. Specifically, in an embodiment of the present application, the feature global fusion module is used to aggregate the multiple enhanced region component feature vectors to obtain the global feature matrix of the dispensing surface state. It should be understood that, considering that the multiple enhanced region component feature vectors contain local feature information of component feature vectors in different regions, therefore, in order to better reflect the overall state of the dispensing surface, to more comprehensively describe the state characteristics of the entire dispensing surface, and to improve the accuracy of subsequent matching and identification of the dispensing position, in the technical solution of the present application, the multiple enhanced region component feature vectors are aggregated to obtain a global feature matrix of the dispensing surface state. That is, by aggregating multiple enhanced region component feature vectors, the dispensing surface state feature information of each local region can be integrated, which helps the model to more effectively learn and understand the state of the overall dispensing surface, and obtain a more global global feature representation of the dispensing surface state.

[0046] In the embodiment of the present application, the matching module 160 is used to match the global feature matrix of the dispensing surface state with the predefined click position template image to identify the dispensing position on the circuit board. It should be understood that the global feature matrix of the dispensing surface state contains the comprehensive semantic feature information of the entire dispensing surface, and the predefined click position template image is used to represent the desired dispensing position feature. Therefore, in the technical solution of the present application, the dispensing position on the circuit board is identified by matching the global feature matrix of the dispensing surface state with the predefined click position template image, and the best matching position can be found to achieve accurate positioning of the dispensing position, thereby realizing the identification of the dispensing position.

[0047] In an embodiment of the present application, the dispensing robot arm adjustment module 170 is used to automatically adjust the movement of the dispensing robot arm based on the dispensing position on the circuit board to ensure that the glue is accurately dispensed to the specified position. That is, the global features of the dispensing surface state obtained by aggregating multiple reinforcement area component feature vectors are matched with the predefined click position template image to automatically identify the dispensing position and adjust the movement of the dispensing robot arm. In this way, the dispensing position can be identified more accurately, errors caused by human factors can be avoided, and material waste can be reduced, costs can be saved, thereby improving product quality and consistency, and improving the efficiency and production speed of the production line.

[0048] It is worth mentioning that those skilled in the art should be aware that before applying a deep neural network model for inference, the deep neural network model must be trained so that the deep neural network can implement specific functional capabilities.

[0049] Specifically, in the technical solution of the present application, the machine vision-based adaptive dispensing control system also includes a training module for training the component feature extractor based on the convolutional neural network model and the inter-component autocorrelation feature enhancement expressor based on the autocorrelation attention network.

[0050] Figure 3 is a block diagram of a training module in an adaptive dispensing control system based on machine vision according to an embodiment of the present application. Specifically, in the embodiment of the present application, Figure 3 As shown, the training module 200 includes: a training data acquisition unit 210, which is used to obtain training data, and the training data includes a training dispensing surface image of a circuit board captured by a camera, and an actual dispensing position; a training dispensing surface image segmentation unit 220, which is used to segment the training dispensing surface image into different areas using threshold segmentation to obtain a plurality of training area images, wherein each of the plurality of training area images respectively represents a different component on the circuit board; a training area component feature extraction unit 230, which is used to pass each of the plurality of training area images through the component feature extractor based on the convolutional neural network model to obtain a plurality of training area component feature vectors; a training enhancement area component feature extraction unit 240, which is used to pass the plurality of training area component feature vectors through the component inter-autocorrelation feature enhancement expressor based on the autocorrelation attention network to obtain a plurality of training area component feature vectors. training reinforcement area component feature vectors; a feature optimization unit 250, used to perform feature optimization on the multiple training reinforcement area component feature vectors to obtain an optimized training dispensing surface state global feature matrix; a predicted dispensing position unit 260, used to match the optimized training dispensing surface state global feature matrix with a predefined click position template image to identify the predicted dispensing position on the circuit board; a difference loss function value calculation unit 270, used to calculate the difference loss function value between the predicted dispensing position and the actual dispensing position; and a training unit 280, used to train the component feature extractor based on the convolutional neural network model and the component inter-autocorrelation feature enhancement expressor based on the autocorrelation attention network based on the difference loss function value and through back propagation of gradient descent, wherein the multiple training reinforcement area component feature vectors are optimized as a whole during each iterative training of the model.

[0051] Specifically, the feature optimization unit 250 is used to perform feature optimization on the multiple training reinforcement area component feature vectors to obtain an optimized training glue spot surface state global feature matrix. It should be understood that in the above technical solution, the multiple training area component feature vectors express the image semantic feature representation of the training glue spot surface image in the local source image semantic space domain determined by threshold segmentation under the global source image semantic space domain. Therefore, considering the uneven distribution of source image semantics under each local source image semantic space domain in the global source image semantic space domain, the multiple training area component feature vectors will also have significant image feature semantic distribution imbalance. In this way, after the multiple training area component feature vectors are weighted by autocorrelation reinforcement based on the overall distribution of the local image feature semantic space domain through the component inter-autocorrelation feature reinforcement expressor based on the autocorrelation attention network, the multiple training reinforcement area component feature vectors will also have more significant image semantic feature distribution non-uniformity, thereby affecting the mapping effect of the aggregated image semantic space of the global feature matrix of the training glue spot surface state, and affecting the accuracy of the glue spot position on the circuit board identified by matching the training glue spot surface state global feature matrix with the predefined click position template image. Based on this, in the technical solution of the present application, during each iterative training of the model, the feature vectors of the multiple training reinforcement area components are optimized as a whole.

[0052] Specifically, in an embodiment of the present application, the feature optimization unit 250 includes: a feature cascade subunit, used to cascade the multiple training reinforcement area component feature vectors to obtain a cascade feature vector; a feature overall optimization subunit, used to optimize the multiple training reinforcement area component feature vectors as a whole based on the cascade feature vector to obtain an optimized training reinforcement area component cascade feature vector; a vector decomposition subunit, used to decompose the optimized training reinforcement area component cascade feature vector to obtain multiple optimized training reinforcement area component feature vectors; and an optimized feature aggregation subunit, used to aggregate the multiple optimized training reinforcement area component feature vectors to obtain the optimized training dispensing surface state global feature matrix.

[0053] More specifically, in the embodiment of the present application, the feature overall optimization subunit is used to: based on the cascade feature vector, perform overall optimization on the multiple training reinforcement region component feature vectors using the following optimization formula to obtain an optimized training reinforcement region component cascade feature vector; wherein the optimization formula is:

[0054] in, represents the concatenated feature vector, and are the concatenated feature vectors No. and The eigenvalues ​​of the positions, The first matrix representing the mean value of the concatenated eigenvectors The eigenvalues ​​of the positions, represents the mean difference matrix of the concatenated eigenvectors The eigenvalues ​​of the positions, represents the cascade feature vector of the optimized training reinforcement region component, represents matrix multiplication, Indicates addition by position.

[0055] That is, by introducing the cascade feature vector The local statistical information distribution is used as an external information source to enhance the retrieval of feature vectors, so as to avoid the local overflow information distribution leading to the cascade feature vector based on the local statistical dense information structure. The distribution hallucination of , thereby obtaining the cascade feature vector Information credible response reasoning based on local distribution group dimension preservation to obtain the cascade feature vector Based on the distribution of non-uniform image semantic features, a credible distribution mapping response is generated in the aggregate image semantic space of the training glue dispensing surface state global feature matrix to improve the accuracy of the glue dispensing position on the circuit board identified by matching the training glue dispensing surface state global feature matrix with the predefined click position template image. In this way, the glue dispensing position can be identified more accurately, errors caused by human factors can be avoided, while reducing material waste and saving costs, thereby improving product quality and consistency, and improving the efficiency and production speed of the production line.

[0056] In summary, the adaptive dispensing control system 100 based on machine vision according to the embodiment of the present application is explained, which acquires the dispensing surface image of the circuit board captured by the camera, and analyzes the dispensing surface image using an image analysis and processing algorithm based on artificial intelligence and machine vision, so as to automatically identify the dispensing position according to the surface state of each dispensing area and match it with the predefined click position template image, and adjust the movement of the dispensing robot arm. In this way, the dispensing position can be identified more accurately, errors caused by human factors can be avoided, and material waste can be reduced, costs can be saved, thereby improving product quality and consistency, and improving the efficiency and production speed of the production line.

[0057] As described above, the adaptive dispensing control system 100 based on machine vision according to the embodiment of the present application can be implemented in various wireless terminals, such as a server with an adaptive dispensing control algorithm based on machine vision. In one possible implementation, the adaptive dispensing control system 100 based on machine vision according to the embodiment of the present application can be integrated into the wireless terminal as a software module and / or a hardware module. For example, the adaptive dispensing control system 100 based on machine vision can be a software module in the operating system of the wireless terminal, or it can be an application developed for the wireless terminal; of course, the adaptive dispensing control system 100 based on machine vision can also be one of the many hardware modules of the wireless terminal.

[0058] Alternatively, in another example, the machine vision-based adaptive dispensing control system 100 and the wireless terminal may also be separate devices, and the machine vision-based adaptive dispensing control system 100 may be connected to the wireless terminal via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.

[0059] Figure 4 FIG. 1 is a flow chart of an adaptive dispensing control method based on machine vision according to an embodiment of the present application. Figure 4 As shown, according to the embodiment of the present application, the adaptive dispensing control method based on machine vision includes: S110, acquiring a dispensing surface image of a circuit board captured by a camera; S120, using threshold segmentation to segment the dispensing surface image into different regions to obtain a plurality of region images, wherein each region image in the plurality of region images respectively represents a different component on the circuit board; S130, performing component feature extraction on each region image in the plurality of region images respectively to obtain a plurality of region component feature vectors; S140, performing a component inter-autocorrelation feature enhancement expressor based on an autocorrelation attention network on the plurality of region component feature vectors to obtain a plurality of enhanced region component feature vectors; S150, globally fusing the plurality of enhanced region component feature vectors to obtain a global feature matrix of the dispensing surface state; S160, matching the global feature matrix of the dispensing surface state with a predefined click position template image to identify the dispensing position on the circuit board; and, S170, automatically adjusting the movement of the dispensing robot arm based on the dispensing position on the circuit board to ensure that the glue is accurately dispensed to the specified position.

[0060] Here, those skilled in the art can understand that the specific operations of each step in the above-mentioned adaptive dispensing control method based on machine vision have been referred to above. Figures 1 to 3 The invention has been introduced in detail in the description of the machine vision-based adaptive dispensing control system, and therefore, its repeated description will be omitted.

[0061] The above descriptions of various implementations of the present disclosure are exemplary and not exhaustive. The disclosure is not limited to the disclosed implementations, and many modifications and variations are obvious to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The terms used herein are selected to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various practical methods disclosed herein.

Claims

1. An adaptive dispensing control system based on machine vision, characterized in that: include: A glue dispensing surface image acquisition module is used to acquire a glue dispensing surface image of the circuit board captured by a camera; A glue dispensing surface image segmentation module, used to segment the glue dispensing surface image into different regions using threshold segmentation to obtain a plurality of region images, wherein each region image in the plurality of region images respectively represents a different component on the circuit board; A component feature extraction module, used for performing component feature extraction on each of the plurality of region images to obtain a plurality of region component feature vectors; An autocorrelation feature enhancement module is used to obtain multiple enhanced regional component feature vectors by passing the multiple regional component feature vectors through an inter-component autocorrelation feature enhancement expressor based on an autocorrelation attention network; A feature global fusion module, used for globally fusing the feature vectors of the plurality of strengthening area components to obtain a global feature matrix of the dispensing surface state; A matching module, used for matching the glue dispensing position template image based on the global feature matrix of the glue dispensing surface state with the predefined glue dispensing position template image to identify the glue dispensing position on the circuit board; The glue dispensing robot arm adjustment module is used to automatically adjust the movement of the glue dispensing robot arm based on the glue dispensing position on the circuit board to ensure that the glue is accurately dispensed to the specified position.

2. The adaptive dispensing control system based on machine vision according to claim 1 is characterized in that: The component feature extraction module is used to: pass each of the multiple region images through a component feature extractor based on a deep neural network model to obtain the multiple region component feature vectors.

3. The adaptive dispensing control system based on machine vision according to claim 2 is characterized in that: The component feature extractor based on the deep neural network model is a component feature extractor based on the convolutional neural network model.

4. The adaptive dispensing control system based on machine vision according to claim 3 is characterized in that: The autocorrelation feature enhancement module is used to: use the inter-component autocorrelation feature enhancement expressor based on the autocorrelation attention network to process the multiple regional component feature vectors with the following autocorrelation enhancement formula to obtain the multiple enhanced regional component feature vectors; Wherein, the autocorrelation enhancement formula is: , , , ,in, Represents the first of the plurality of regional component feature vectors The attention scoring mechanism value of the feature vector of the regional component, Represents the first of the plurality of regional component feature vectors The region component feature vector and represents the weight coefficient vector and weight coefficient matrix, is the offset vector, express function, , represents the hyperparameter, Represents the first of the plurality of regional component feature vectors The attention weight value of the feature vector of the regional component, Represents the first of the plurality of regional component feature vectors The attention scoring mechanism value of the feature vector of the regional component, Represents the first of multiple enhanced region component feature vectors The enhanced region component feature vectors, Represents an exponential function with the natural constant e as the base.

5. The adaptive dispensing control system based on machine vision according to claim 4 is characterized in that: The feature global fusion module is used to aggregate the feature vectors of the multiple enhanced area components to obtain the global feature matrix of the dispensing surface state.

6. The adaptive dispensing control system based on machine vision according to claim 5 is characterized in that: It also includes a training module for training the component feature extractor based on the convolutional neural network model and the inter-component autocorrelation feature enhancement expressor based on the autocorrelation attention network.

7. The machine vision-based adaptive dispensing control system according to claim 6, characterized in that: The training module comprises: A training data acquisition unit, used to acquire training data, wherein the training data includes a training dispensing surface image of a circuit board captured by a camera, and an actual dispensing position; A training glue dispensing surface image segmentation unit, used for segmenting the training glue dispensing surface image into different regions using threshold segmentation to obtain a plurality of training region images, wherein each of the plurality of training region images respectively represents a different component on the circuit board; A training area component feature extraction unit, used for passing each of the multiple training area images through the component feature extractor based on the convolutional neural network model to obtain multiple training area component feature vectors; A training enhanced region component feature extraction unit, used for obtaining a plurality of training enhanced region component feature vectors by passing the plurality of training region component feature vectors through the inter-component autocorrelation feature enhanced expressor based on the autocorrelation attention network; A feature optimization unit, used for performing feature optimization on the feature vectors of the plurality of training reinforcement area components to obtain a global feature matrix of the optimized training dispensing surface state; A glue dispensing position prediction unit, used for matching the optimized training glue dispensing surface state global feature matrix with the predefined glue dispensing position template image to identify the predicted glue dispensing position on the circuit board; A difference loss function value calculation unit, used to calculate the difference loss function value between the predicted dispensing position and the actual dispensing position; A training unit is used to train the component feature extractor based on the convolutional neural network model and the inter-component autocorrelation feature enhancement expressor based on the autocorrelation attention network based on the difference loss function value and through back propagation of gradient descent, wherein, in each iterative training of the model, the component feature vectors of the multiple training enhancement areas are optimized as a whole.

8. The adaptive dispensing control system based on machine vision according to claim 7 is characterized in that: The feature optimization unit comprises: A feature cascading subunit, configured to cascade the plurality of training reinforcement region component feature vectors to obtain a cascade feature vector; A feature overall optimization subunit, configured to perform overall optimization on the plurality of training reinforcement region component feature vectors based on the cascade feature vector to obtain an optimized training reinforcement region component cascade feature vector; A vector decomposition subunit, used for decomposing the optimized training enhanced region component cascade feature vector to obtain a plurality of optimized training enhanced region component feature vectors; The optimized feature aggregation subunit is used to aggregate the feature vectors of the multiple optimized training reinforcement area components to obtain the global feature matrix of the optimized training dispensing surface state.

9. An adaptive dispensing control method based on machine vision, characterized in that: include: Acquire a dispensing surface image of the circuit board captured by a camera; Using threshold segmentation to segment the dispensing surface image into different regions to obtain a plurality of region images, wherein each region image in the plurality of region images represents a different component on the circuit board; Performing component feature extraction on each of the plurality of region images to obtain a plurality of region component feature vectors; Passing the plurality of regional component feature vectors through an inter-component autocorrelation feature enhancement expressor based on an autocorrelation attention network to obtain a plurality of enhanced regional component feature vectors; Globally fusing the plurality of enhanced region component feature vectors to obtain a global feature matrix of the dispensing surface state; Based on the global feature matrix of the dispensing surface state, matching is performed with a predefined dispensing position template image to identify the dispensing position on the circuit board; Based on the glue dispensing position on the circuit board, the movement of the glue dispensing robot arm is automatically adjusted to ensure that the glue is accurately dispensed to the designated position.

10. The method for adaptive dispensing control based on machine vision according to claim 9, characterized in that: Component features are extracted from each of the multiple region images to obtain multiple region component feature vectors, including: each of the multiple region images is passed through a component feature extractor based on a deep neural network model to obtain the multiple region component feature vectors.