Method for detecting glue path quality based on neural network, computer program product and computing equipment

The quality of the glue path is detected through the neural network, and the similarity between the predefined glue path image and the actual glue path image is used to solve the problems of low efficiency and high cost of glue path quality detection in the existing technology, and realize the low-cost improvement of the glue path quality. , high-efficiency real-time detection, suitable for precision fields.

CN118657434APending Publication Date: 2024-09-17BEIJING PURA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411074989.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The existing technology has low efficiency and high cost in detecting the quality of the glue path after dispensing, making it difficult to achieve real-time detection.

Method used

A method based on neural networks is adopted to achieve real-time detection of glue road quality by comparing the similarity between predefined glue road images and actual glue road images, using pre-trained image instance segmentation models and conditional generation adversarial networks.

Benefits of technology

It realizes low-cost, high-efficiency real-time detection of glue path quality, saves the use of complex measuring devices, and is suitable for precision fields such as electronics, medical care, and semiconductors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657434A
    Figure CN118657434A
Patent Text Reader

Abstract

The invention provides a method for detecting glue path quality based on a neural network, a computer program product and computing equipment. The method comprises the following steps: generating a group of predefined glue path images according to a glue dispensing path graph; acquiring a second mounting surface image with a glue path; generating a glue path image from the second mounting surface image; segmenting the actual glue path image by using a pre-trained image instance segmentation model to obtain at least one glue path segmented image; and performing similarity comparison on the at least one rubber road segmentation image and a corresponding predefined rubber road image by using a pre-trained neural network model, and performing quality detection alarm according to a comparison result. According to the technical scheme provided by the invention, real-time detection of the glue path quality can be realized at relatively low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing and quality detection, and in particular to a method for detecting rubber road quality based on a neural network, a computer program product and a computing device. Background Art

[0002] With the development of intelligent manufacturing and the increasing demand for precision in the fields of electronics, medical, semiconductors, and automobiles, more and more components are assembled through dispensing to meet the requirements of compact structures.

[0003] At present, the quality of the pattern after dispensing mainly relies on visual inspection, which is inefficient. In addition, one way is to measure the glue path after the dispensing process is completed, including the length, width, position, etc. of the glue path pattern. This method is costly, time-consuming and inefficient, and it is difficult to achieve real-time detection.

[0004] Therefore, a technical solution is needed that can realize real-time detection of rubber road quality at a lower cost. Summary of the invention

[0005] The present application aims to provide a method for detecting the quality of a rubber road based on a neural network, a computer program product and a computing device, which can realize real-time detection of the quality of the rubber road at a relatively low cost.

[0006] According to one aspect of the present application, a method for detecting the quality of a rubber road based on a neural network is provided, comprising: Generate a set of predefined glue path images according to the glue dispensing path graphics; Acquire a second mounting surface image having the adhesive path; generating a glue path image from the second mounting surface image; Segmenting the actual glue road image using a pre-trained image instance segmentation model to obtain at least one glue road segmentation image; The at least one glue road segmentation image is compared with the corresponding predefined glue road image for similarity using a pre-trained neural network model, and a quality detection alarm is issued according to the comparison result.

[0007] According to some embodiments, the set of predefined glue path images includes a point group image, a closed line image, and an open continuous line image.

[0008] According to some embodiments, generating a glue path image from the second mounting surface image includes: Acquire a first mounting surface image before forming a glue path; The actual glue path image is generated by using the first installation surface image and the second installation surface image through an exclusive OR method.

[0009] According to some embodiments, generating a set of predefined glue path images according to the glue dispensing path graphics includes: A set of predefined glue path images are generated using a pre-trained conditional generative adversarial network.

[0010] According to some embodiments, the conditional generative adversarial network includes a generator and a discriminator, and additional input data is passed to the generator as a condition, so that the conditional generative adversarial network generates the set of predefined glue path images according to the glue dispensing path graphics.

[0011] According to some embodiments, using a pre-trained neural network model to compare the at least one glue road segmentation image with corresponding predefined glue road images for similarity, comprises: Using the pre-trained neural network model, respectively obtain a first feature vector of the at least one glue road segmentation image; Using the pre-trained neural network model, respectively obtain the second feature vectors of the corresponding pre-defined glue path images; Calculating the distance between the first eigenvector and the second eigenvector; The similarity between the glue path segmentation image and the corresponding predefined glue path image is determined based on the distance, thereby determining the glue path quality.

[0012] According to some embodiments, performing a quality detection alarm according to the comparison result includes: When the similarity is less than a preset similarity threshold, it is determined that the quality of the glue road does not meet the requirements and an alarm signal is generated.

[0013] According to some embodiments, the aforementioned method further comprises: The conditional generative adversarial network is pre-trained using actual dispensing path graphics and glue path images.

[0014] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, any of the above-mentioned methods is implemented.

[0015] According to another aspect of the present invention, there is provided a computing device, comprising: Processor; and A memory storing a computer program, which implements any of the above methods when the computer program is executed by the processor.

[0016] According to the embodiment of the present application, by generating a predefined glue path image, the glue path segmentation image is compared with the corresponding predefined glue path image for similarity, and a quality detection alarm can be issued according to the comparison result. This solution can be based on the image captured by the camera and the glue dispensing path graph, with low cost and high efficiency, and can detect the glue path quality in real time, and can save complex measurement devices.

[0017] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for describing the embodiments are briefly introduced below.

[0019] Figure 1A-1F Shown are some examples of dispensing path graphics generated by the dispensing pattern editing software.

[0020] Figure 2 A flow chart of a method for detecting glue road quality based on a neural network according to an example embodiment is shown.

[0021] Figure 3A-3B An image of a second mounting surface is shown with a glue path according to an example embodiment.

[0022] Figure 4 A block diagram of a computing device according to an example embodiment of the invention is shown. DETAILED DESCRIPTION

[0023] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0024] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0025] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0026] It should be understood that although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another component. Therefore, the first component discussed below can be referred to as the second component without departing from the teachings of the concepts of the present application. As used herein, the term "and / or" includes any one of the associated listed items and all combinations of one or more.

[0027] Those skilled in the art will appreciate that the drawings are merely schematic diagrams of example embodiments, and the modules or processes in the drawings are not necessarily necessary for implementing the present application, and therefore cannot be used to limit the scope of protection of the present application.

[0028] With the increasing demand for precision in the fields of electronics, medical, semiconductors, and automobiles, dispensing assembly technology has become a trend. The market has higher and higher requirements for the precision of dispensing.

[0029] To this end, the present application proposes a method for detecting the quality of a glue path based on a neural network. Based on the image captured by the camera and the glue dispensing path graph, the glue path segmentation image is compared with the corresponding predefined glue path image for similarity, and a quality detection alarm can be issued based on the comparison result. The technical solution according to the present invention has low cost and high efficiency, can detect the quality of the glue path in real time, and can save complex measuring devices.

[0030] The exemplary embodiments of the present application are described below in conjunction with the accompanying drawings.

[0031] Figure 1A-1F Shown are some examples of dispensing path graphics generated by the dispensing pattern editing software.

[0032] See also Figure 1A-1F The editing software has the ability to draw points, lines, arcs, circles, irregular curves and other graphics. After editing the dispensing path, the dispensing three-axis robot can automatically perform dispensing operations according to the edited dispensing path. In the prior art, in order to perform glue path quality inspection and monitoring, it is necessary to configure complex measuring devices, including visual positioning, width measurement, etc.

[0033] According to an embodiment of the present invention, a predefined glue path image can be generated through a neural network model based on the edited glue dispensing path. After that, after the glue dispensing is completed, the image of the mounting surface with the glue path obtained by the camera can be extracted to generate an actual glue path image. By comparing the actual glue path image with the predefined glue path image, the glue path quality can be determined.

[0034] According to the example embodiment, the dispensing path can be summarized as including a point group graph, a closed line graph, and an unclosed continuous line graph. Accordingly, the predefined glue path image can be abstractly summarized as including a point group image, a closed line image, and an unclosed continuous line image. When training the image instance segmentation model, the point group image samples, the closed line image samples, and the unclosed continuous line image samples can be used to train the model, so that the actual glue path image can be segmented.

[0035] Figure 2 A flow chart of a method for detecting glue road quality based on a neural network according to an example embodiment is shown.

[0036] See also Figure 2 , in S201, a set of predefined glue path images is generated according to the glue dispensing path graphics.

[0037] As mentioned above, the set of predefined glue path images includes a point group image, a closed line image, and an open continuous line image.

[0038] According to an example embodiment, a set of predefined glue path images may be generated using a pre-trained conditional generative adversarial network (cGAN). For example, the conditional generative adversarial network includes a generator and a discriminator, and additional input data is passed to the generator as a condition, so that the conditional generative adversarial network generates the set of predefined glue path images according to the glue dispensing path graph.

[0039] cGAN is a variant of Generative Adversarial Network (GAN) that incorporates additional conditional information in the training process of the generator and discriminator. In traditional GAN, the goal of the generator is to generate images that are as realistic as possible, while the goal of the discriminator is to distinguish between generated images and real images as accurately as possible. In cGAN, both the generator and the discriminator receive an additional conditional input. The generator receives a random noise vector and a conditional vector as input, and then generates an image. The goal of the generator is to generate images that are as realistic as possible while satisfying given conditions. The discriminator receives an image and a conditional vector as input, and then determines whether the image is generated by the generator. The goal of the discriminator is to distinguish between generated images and real images as accurately as possible. The generator and the discriminator learn through adversarial training. The generator tries to generate more and more realistic images, while the discriminator tries to distinguish between generated images and real images better and better. An important advantage of cGAN is that it can generate images that meet specific conditions, such as line width, uniformity, etc.

[0040] According to some embodiments, actual dispensing path graphics and glue path images may be used to pre-train conditional generative adversarial networks.

[0041] Those skilled in the art understand that, in addition to the cGAN network, a pre-trained variational autoencoder, U-Net or other neural network architecture may be used to generate a predefined glue path image.

[0042] In S203 , a second mounting surface image having a glue path is acquired.

[0043] According to an example embodiment, in order to subsequently extract an actual glue path image, before the glue dispensing operation, a first mounting surface image before the glue path is formed may be pre-acquired by a camera; and then after the glue dispensing operation, a second mounting surface image with the glue path may be acquired by the same camera (see Figure 3A-3B ).

[0044] In S205 , an actual glue path image is generated from the second installation surface image.

[0045] According to example embodiments, a first mounting surface image before forming the glue path may be acquired in advance, and then the actual glue path image may be generated by an exclusive OR method using the first mounting surface image and the second mounting surface image.

[0046] The typical image difference extraction method mainly compares the two images as a whole, for example, by comparing all pixel data of the two images, so as to determine the difference between the two images. This method has a large amount of computational workload and takes a long time, which is not conducive to real-time processing. According to an exemplary embodiment of the present invention, a difference image, i.e., an actual glue path image, is generated by an XOR operation.

[0047] Specifically, if the same pixel values ​​are XORed, the result is false; if different values ​​are XORed, the result is true. If the pixels of two images are XORed, the original pixel values ​​are cleared after the same pixel operation; the original pixel values ​​are retained after the different pixel operation. In this way, the difference image of the two images can be obtained.

[0048] It is easy to understand that the method of obtaining the actual glue road image is not limited to this. For example, the actual glue road image can also be extracted by image semantic recognition, image difference feature reconstruction, etc.

[0049] In S207, the actual glue road image is segmented using a pre-trained image instance segmentation model to obtain at least one glue road segmentation image.

[0050] The instance segmentation neural network model can not only classify each pixel, but also distinguish different instances. According to some embodiments, the instance segmentation neural network model adopts a mask region convolutional neural network model (Mask R-CNN). Mask R-CNN is a neural network model for instance segmentation, which is extended on the basis of Faster R-CNN and adds the ability to generate fine segmentation masks of target objects. The loss function of Mask R-CNN is a multi-task loss function because it simultaneously considers the performance of multiple subtasks, including classification, bounding box regression, and the newly added mask generation task. The total loss function of Mask R-CNN is the weighted sum of the losses of the above three tasks, and the weight of each task can be adjusted according to actual conditions to balance the importance of different tasks. During the training process, these loss functions jointly guide the network to learn to better identify, locate and segment objects.

[0051] The actual glue road image is segmented using a pre-trained image instance segmentation model, and the obtained glue road segmentation image can be one or more of a point group image, a closed line image, or an open continuous line image.

[0052] In S209, the at least one glue road segmentation image is compared with the corresponding predefined glue road images for similarity using a pre-trained neural network model, and a quality detection alarm is issued according to the comparison result.

[0053] According to an example embodiment, the first feature vector of the at least one glue road segmentation image is obtained by using the pre-trained neural network model, and the second feature vector of the corresponding pre-defined glue road image is obtained by using the pre-trained neural network model. Then, the distance between the first feature vector and the second feature vector can be calculated, and the similarity between the glue road segmentation image and the corresponding pre-defined glue road image can be determined based on the distance, so as to determine the quality of the glue road. For example, if the similarity is greater than a preset similarity threshold (for example, 0.8), it can be considered that the glue road quality meets the requirements. Otherwise, it is determined that the glue road quality does not meet the requirements and an alarm signal is generated. The on-site operator can manually confirm the glue road quality according to the alarm signal, and decide whether to stop the machine for maintenance or continue the operation based on the confirmation.

[0054] According to some embodiments, the distance between the first feature vector and the second feature vector may be Euclidean distance or cosine similarity.

[0055] According to an example embodiment, a convolutional neural network model of an architecture such as VGG or ResNet may be pre-trained. When preparing a training data set, pairs of images are prepared, one of each pair of images being a baseline image and the other being a changed image. Each pair of images is labeled to indicate differences such as line thickness and uniformity. During the training process, the network can learn which features (such as edges, thickness, uniformity, etc.) are most important for distinguishing image differences.

[0056] According to some embodiments, when training a model, a triple loss function may be used, that is, the distance between the anchor and the positive sample is made as small as possible, and the distance between the anchor and the negative sample is made as large as possible.

[0057] According to some embodiments, a Siamese network (twin neural network) is adopted, using a two-branch network structure with shared weights, each branch processes an image, and finally compares the outputs of the two.

[0058] Thus, according to an embodiment of the present invention, by generating a predefined glue path image, the glue path segmentation image is compared with the corresponding predefined glue path image for similarity, and a quality detection alarm can be issued according to the comparison result. This solution can be based on the image collected by the camera and the glue dispensing path graph, with low cost and high efficiency, and can detect the glue path quality in real time, and can save complex measurement devices.

[0059] Figure 4 A block diagram of a computing device according to an example embodiment of the invention is shown.

[0060] like Figure 4 As shown, computing device 30 includes processor 12 and memory 14. Computing device 30 may also include bus 22, network interface 16, and I / O interface 18. Processor 12, memory 14, network interface 16, and I / O interface 18 may communicate with each other via bus 22.

[0061] The processor 12 may include one or more general-purpose CPUs (Central Processing Units, processors), microprocessors, or application-specific integrated circuits, etc., for executing relevant program instructions. According to some embodiments, the computing device 30 may also include a high-performance graphics card (GPU) 20 for accelerating the processor 12.

[0062] The memory 14 may include a machine system readable medium in the form of a volatile memory, such as a random access memory (RAM), a read-only memory (ROM) and / or a cache memory. The memory 14 is used to store one or more programs including instructions and data. The processor 12 may read the instructions stored in the memory 14 to execute the above-mentioned method according to the embodiment of the present invention.

[0063] The computing device 30 may also communicate with one or more networks via the network interface 16. The network interface 16 may be a wireless network interface.

[0064] The bus 22 may include an address bus, a data bus, a control bus, etc. The bus 22 provides a path for exchanging information between components.

[0065] It should be noted that, in the specific implementation process, the computing device 30 may also include other components necessary for normal operation. In addition, those skilled in the art may understand that the above device may only include components necessary for implementing the embodiments of this specification, and need not include all components shown in the figure.

[0066] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when the program is executed by a processor. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), a network storage device, a cloud storage device, or any type of medium or device suitable for storing instructions and / or data.

[0067] An embodiment of the present invention also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any method recorded in the above method embodiments.

[0068] Those skilled in the art can clearly understand that the technical solution of the present invention can be implemented with the help of software and / or hardware. "Unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array, an integrated circuit, etc.

[0069] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0070] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0071] In the several embodiments provided by the present invention, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0072] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0073] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0074] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention.

[0075] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0076] The exemplary embodiments of the present invention are specifically shown and described above. It should be understood that the present invention is not limited to the detailed structure, configuration or implementation method described herein; on the contrary, the present invention is intended to cover various modifications and equivalent configurations included in the spirit and scope of the attached clauses.

Claims

1. A method for detecting the quality of a rubber road based on a neural network, characterized in that: include: Generate a set of predefined glue path images according to the glue dispensing path graphics; acquiring an image of a second mounting surface having a glue path; generating an actual glue path image from the second mounting surface image; Segmenting the actual glue road image using a pre-trained image instance segmentation model to obtain at least one glue road segmentation image; The at least one glue road segmentation image is compared with the corresponding predefined glue road image for similarity using a pre-trained neural network model, and a quality detection alarm is issued according to the comparison result.

2. The method according to claim 1, characterized in that: The set of predefined glue path images includes a point group image, a closed line image, and an open continuous line image.

3. The method according to claim 1, characterized in that Generating a glue path image from the second mounting surface image includes: Acquire a first mounting surface image before forming a glue path; The actual glue path image is generated by using the first installation surface image and the second installation surface image through an exclusive OR method.

4. The method according to claim 1, characterized in that: Generate a set of predefined glue path images based on the dispensing path graphics, including: A set of predefined glue path images are generated using a pre-trained conditional generative adversarial network.

5. The method according to claim 4, characterized in that The conditional generative adversarial network includes a generator and a discriminator, and additional input data is passed to the generator as a condition, so that the conditional generative adversarial network generates the set of predefined glue path images according to the dispensing path graphics.

6. The method according to claim 1, characterized in that Using a pre-trained neural network model, the at least one glue road segmentation image is respectively compared with a corresponding pre-defined glue road image for similarity, comprising: Using the pre-trained neural network model, respectively obtain a first feature vector of the at least one glue road segmentation image; Using the pre-trained neural network model, respectively obtain the second feature vectors of the corresponding pre-defined glue path images; Calculating the distance between the first eigenvector and the second eigenvector; The similarity between the glue path segmentation image and the corresponding predefined glue path image is determined based on the distance, thereby determining the glue path quality.

7. The method according to claim 6, characterized in that Quality detection alarm is performed based on the comparison results, including: When the similarity is less than a preset similarity threshold, it is determined that the quality of the glue road does not meet the requirements and an alarm signal is generated.

8. The method according to claim 4, characterized in that Also includes: The conditional generative adversarial network is pre-trained using actual dispensing path graphics and glue path images.

9. A computer program product, characterized in that The method comprises a computer program, which implements the method according to any one of claims 1 to 8 when being executed by a processor.

10. A computing device, characterized in that include: processor; as well as A memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 8 is implemented.