A silicone molding quality control method and system based on machine vision

Through the combination of machine vision technology and the target silicone molding quality model, the problem that existing technology cannot detect surface defects of silicone molded parts is solved, and accurate detection and quality improvement of different silicone molding processes are achieved.

CN118314130BActive Publication Date: 2024-08-23TAYLOR (SHENZHEN) NEW MATERIALS RESEARCH TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410726400.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-08-23
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

Existing silicone molding quality control methods cannot detect surface defects of silicone molded parts, such as bubbles, cracks, foreign matter, etc., resulting in low quality.

Method used

A silicone molding quality control method based on machine vision is used to detect abnormalities in silicone molded parts through image acquisition, edge detection, feature point extraction and fusion processing, combined with the target silicone molding quality model trained in different silicone molding processes.

Benefits of technology

Accurately detect defects such as bubbles, cracks, and foreign matter during different silicone molding processes, improving the quality of silicone molding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314130B
    Figure CN118314130B
Patent Text Reader

Abstract

The present invention relates to the field of intelligent monitoring technology, and provides a silicone molding quality control method and system based on machine vision, the method comprising: collecting a silicone molding image to be detected of a target silicone based on machine vision; performing edge detection processing, feature point extraction processing, feature point registration processing and fusion processing on the silicone molding image to be detected, to obtain a target silicone molding image of the target silicone; inputting the target silicone molding image into a target silicone molding quality model, to obtain an abnormality evaluation value corresponding to the target silicone molding image output by the target silicone molding quality model; and judging whether the target silicone has an abnormality in the silicone molding process based on the abnormality evaluation value. The present invention performs silicone molding detection on the target silicone through machine vision combined with a target silicone molding quality model trained in different silicone molding processes, so that defects such as bubbles, cracks, and foreign matter can be accurately detected in different silicone molding processes, thereby improving the quality of silicone molding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent monitoring technology, and in particular to a silicone molding quality control method and system based on machine vision. Background Art

[0002] Silicone molding is a common manufacturing process used to produce a variety of silicone products, such as seals, O-rings, keyboards, medical devices, etc. The silicone molding process is characterized by complexity and refinement, and any process abnormality may lead to quality problems. The existing silicone molding quality control method mainly uses measuring instruments (such as calipers, projectors, etc.) to measure the dimensions of silicone molded parts to ensure that they meet the design requirements. The existing silicone molding quality control method can accurately measure the dimensions, but requires manual operation and is not suitable for detecting surface defects. Therefore, the existing silicone molding quality control method cannot detect defects such as bubbles, cracks, foreign matter, etc., resulting in low quality of silicone molding. Summary of the invention

[0003] In view of the technical problems existing in the prior art, the present invention provides a silicone molding quality control method and system based on machine vision, aiming to improve the quality of silicone molding.

[0004] The technical solution of the present invention to solve the above technical problems is as follows: a silicone molding quality control method based on machine vision, comprising:

[0005] Collect the silicone molding image of the target silicone based on machine vision;

[0006] Performing edge detection processing, feature point extraction processing, feature point registration processing and fusion processing on the silicone molding image to be detected to obtain a target silicone molding image of the target silicone;

[0007] Inputting the target silicone molding image into a target silicone molding quality model, and obtaining an abnormality evaluation value corresponding to the target silicone molding image output by the target silicone molding quality model;

[0008] Determine whether there is an abnormality in the silicone molding process of the target silicone based on the abnormality evaluation value;

[0009] Among them, the target silicone molding quality model is obtained by updating and training the initial silicone molding quality model based on the first silicone molding sample image, and the initial silicone molding quality model is obtained by training based on the second silicone molding sample image. The first silicone molding sample image is sample data under the first silicone molding process, and the second silicone molding sample image is sample data under the second silicone molding process. The first silicone molding process and the second silicone molding process are different molding processes in the same silicone molding process; the target silicone molding quality model is updated and trained using a first preset loss function, and the initial silicone molding quality model is trained using a second preset loss function, and the first preset loss function is determined based on the second preset loss function.

[0010] According to a method for controlling silicone molding quality based on machine vision provided by the present invention, judging whether the target silicone has an abnormality in the silicone molding process based on the abnormality evaluation value includes:

[0011] Determine whether the abnormality assessment value is greater than or equal to a preset abnormality assessment threshold;

[0012] If the abnormality assessment value is greater than or equal to the preset abnormality assessment threshold, it is determined that there is an abnormality in the silicone molding process of the target silicone.

[0013] According to a method for controlling silicone molding quality based on machine vision provided by the present invention, after judging whether the target silicone has an abnormality in the silicone molding process based on the abnormality evaluation value, the method further includes:

[0014] Determine the average accuracy metric value, the forgetting metric value and the uncompromising metric value of the target silicone molding quality model; the average accuracy metric value is determined based on the monitoring silicone molding accuracy of the target silicone molding quality model; the forgetting metric value is determined based on the monitoring silicone molding forgetting rate of the target silicone molding quality model; the uncompromising metric value is determined based on the task execution accuracy of the target silicone molding quality model when the continuous learning strategy is not adopted;

[0015] Based on the average accuracy metric value, the forgetting metric value and the uncompromising metric value, the continuous learning ability of the target silicone molding quality model is evaluated to obtain an evaluation result;

[0016] Among them, the average accuracy metric is used to evaluate the monitoring effect of the target silicone molding quality model on the first silicone molding sample image and the second silicone molding sample image, the forgetting metric is used to evaluate the degree of forgetting of the first silicone molding sample image by the target silicone molding quality model, and the uncompromising metric is used to evaluate the degree of acceptance of the second silicone molding sample image by the target silicone molding quality model.

[0017] According to a method for controlling silicone molding quality based on machine vision provided by the present invention, before inputting the target silicone molding image into a target silicone molding quality model and obtaining an abnormal evaluation value corresponding to the target silicone molding image output by the target silicone molding quality model, the method further includes:

[0018] Based on the second silicone molding sample image and the sample abnormality evaluation value corresponding to the second silicone molding sample image, training the initial model constructed based on the SSA algorithm to obtain the initial silicone molding quality model;

[0019] Based on the first silicone molding sample image and the sample abnormality evaluation value corresponding to the first silicone molding sample image, the initial silicone molding quality model is updated and trained to obtain the target silicone molding quality model.

[0020] According to a method for controlling silicone molding quality based on machine vision provided by the present invention, edge detection processing, feature point extraction processing, feature point registration processing and fusion processing are performed on the silicone molding image to be detected to obtain a target silicone molding image of the target silicone, including:

[0021] The edge information image of each silicone molding image to be detected is extracted by the target edge detection algorithm;

[0022] Extracting and registering feature points of the edge information image to obtain an initial silicone molding image; the initial silicone molding image includes an image overlapping area;

[0023] The overlapping areas of the images are subjected to regional partitioning processing and regional fusion processing to obtain a target silicone molding image of the target silicone.

[0024] According to a method for controlling silicone molding quality based on machine vision provided by the present invention, the image overlapping area is an overlapping area of ​​a first edge information image and a second edge information image, and the first edge information image and the second edge information image are images that need to be fused among a plurality of edge information images; performing regional partitioning processing and regional fusion processing on the image overlapping area to obtain a target silicone molding image of the target silicone includes:

[0025] Divide the image overlapping area into a first area, a second area and a third area; the first area is an area adjacent to the first edge information image, the second area is an area adjacent to the second edge information image, and the third area is an area in the image overlapping area excluding the first area and the second area;

[0026] The first region and the second region are subjected to regional fusion processing by a first fusion algorithm, and the third region is subjected to regional fusion processing by a second fusion algorithm to obtain a target silicone molding image of the target silicone.

[0027] According to a method for controlling silicone molding quality based on machine vision provided by the present invention, the formula for the regional fusion processing is as follows:

[0028] ;

[0029] in: Indicate point The pixel value of Represents the pixel value of the non-overlapping area of ​​the first edge information image; represents a pixel value of the first edge information image; A pixel value representing a second edge information image; represents the pixel value after fusion using the second fusion algorithm in the third area; Represents the pixel value of the non-overlapping area of ​​the second edge information image; and are the weights of the weighted fusion of the first edge information image and the second edge information image; b is the first area, d is the second area, and c is the third area; a and e represent non-overlapping areas.

[0030] The present invention also provides a silicone molding quality control system based on machine vision, comprising:

[0031] An image acquisition module, used for acquiring a silicone molding image of a target silicone to be inspected based on machine vision;

[0032] An image processing module, used for performing edge detection processing, feature point extraction processing, feature point registration processing and fusion processing on the silicone molding image to be detected, so as to obtain a target silicone molding image of the target silicone;

[0033] An abnormal evaluation value prediction module is used to input the target silicone molding image into a target silicone molding quality model to obtain an abnormal evaluation value corresponding to the target silicone molding image output by the target silicone molding quality model;

[0034] An abnormality assessment module, used for judging whether the target silicone has an abnormality in the silicone molding process based on the abnormality assessment value;

[0035] Among them, the target silicone molding quality model is obtained by updating and training the initial silicone molding quality model based on the first silicone molding sample image, and the initial silicone molding quality model is obtained by training based on the second silicone molding sample image. The first silicone molding sample image is sample data under the first silicone molding process, and the second silicone molding sample image is sample data under the second silicone molding process. The first silicone molding process and the second silicone molding process are different molding processes in the same silicone molding process; the target silicone molding quality model is updated and trained using a first preset loss function, and the initial silicone molding quality model is trained using a second preset loss function, and the first preset loss function is determined based on the second preset loss function.

[0036] The present invention also provides an electronic device, comprising: a memory for storing a computer software program; a processor for reading and executing the computer software program, thereby implementing any of the above-mentioned machine vision-based silicone molding quality control methods.

[0037] The present invention also provides a non-transitory computer-readable storage medium, characterized in that a computer software program is stored in the storage medium, and when the computer software program is executed by a processor, it implements any of the above-mentioned machine vision-based silicone molding quality control methods.

[0038] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned machine vision-based silicone molding quality control methods.

[0039] The beneficial effect of the present invention is that silicone molding detection is performed on target silicone by combining machine vision with a target silicone molding quality model trained through different silicone molding processes. Since the target silicone molding quality model is trained through different silicone molding processes, the target silicone molding quality model can cope with different silicone molding processes. Therefore, in different silicone molding processes, defects such as bubbles, cracks, foreign matter, etc. can be accurately detected, thereby improving the quality of silicone molding. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a flow chart of the silicone molding quality control method based on machine vision provided by the present invention;

[0041] Figure 2 It is a schematic diagram of the area division of the initial silicone molding image provided by the present invention;

[0042] Figure 3It is a structural diagram of the silicone molding quality control system based on machine vision provided by the present invention;

[0043] Figure 4 A schematic diagram of an electronic device according to an embodiment of the present invention;

[0044] Figure 5 A schematic diagram of an embodiment of a computer-readable storage medium provided for an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0046] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0047] In the description of the present invention, the term "for example" is used to mean "used as an example, illustration or explanation". Any embodiment described as "for example" in the present invention is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present invention.

[0048] The present invention is described in detail with a silicone molding quality control system as the execution subject. Figure 1 Describe a silicone molding quality control method based on machine vision of the present invention, Figure 1 This is a flow chart of a method for controlling the quality of silicone molding based on machine vision provided by an embodiment of the present invention. Figure 1 , specifically including steps 10 to 40:

[0049] Step 10: collecting the silicone molding image to be inspected of the target silicone based on machine vision.

[0050] Optionally, the silicone molding quality control system collects the silicone molding image to be inspected of the target silicone through machine vision, wherein the target silicone is any silicone to be inspected. One form of machine vision is a visual camera, so it can be understood that the silicone molding quality control system collects the target silicone through the visual camera to obtain the silicone molding image to be inspected of the target silicone under the visual camera.

[0051] Step 20, performing edge detection processing, feature point extraction processing, feature point registration processing and fusion processing on the silicone molding image to be detected, to obtain a target silicone molding image of the target silicone.

[0052] Optionally, the silicone molding quality control system performs edge detection processing, feature point extraction processing, feature point registration processing and fusion processing on the silicone molding image to be inspected to obtain a target silicone molding image of the target silicone, specifically: extracting an edge information image of each silicone molding image to be inspected through a target edge detection algorithm; performing feature point extraction and feature point registration on the edge information image to obtain an initial silicone molding image; the initial silicone molding image contains an image overlapping area; performing regional partitioning processing and regional fusion processing on the image overlapping area to obtain the target silicone molding image of the target silicone.

[0053] Optionally, the embodiment of the present invention adopts the Canny edge detection algorithm as the target edge detection algorithm to extract the edge information image of the silicone molding image to be detected.

[0054] Optionally, the embodiment of the present invention extracts feature points from each edge information image and determines the correspondence between feature point pairs in different edge information images. Further, the spatial transformation relationship of multiple edge information images is calculated based on the correspondence between feature point pairs, and feature point registration is performed on multiple edge information images based on the spatial transformation relationship of the multiple edge information images to obtain an initial silicone molding image.

[0055] Specifically, after the edge information images are extracted, the SIFT algorithm is applied to these edge information images to extract feature points. The SIFT algorithm searches for local extreme points in the scale space and the rotation space, and calculates the descriptors of these points, so that these descriptors have certain invariance to scale, rotation and illumination changes. Then, by matching the SIFT feature points in different edge information images, the correspondence between the feature point pairs can be established. The correspondence between the feature point pairs is used to estimate the transformation relationship between the images (such as translation, rotation, scaling, etc.). This transformation relationship can be optimized by the least squares method, the RANSAC (random sampling consensus) algorithm or other optimization algorithms. Finally, the correspondence between the feature point pairs is projected back to the original image of the silicone molding image to be detected, so that the feature point registration and processing of the image can be realized, that is, the initial silicone molding image is obtained. Therefore, in this process, the edge information image is used to replace the original image to extract features, and the sub-region with the richest edge information in the overlapping region is found to replace the entire image for SIFT feature extraction and feature point registration when the approximate overlapping region is known, and the result is mapped to the source image, which can improve efficiency.

[0056] Optionally, the image overlapping area is an overlapping area of ​​the first edge information image and the second edge information image, and the first edge information image and the second edge information image are images that need to be fused among the plurality of edge information images. Performing regional partitioning processing and regional fusion processing on the image overlapping area to obtain a target silicone molding image of the target silicone includes:

[0057] The image overlap area is divided into a first area, a second area and a third area, wherein the first area is an area adjacent to the first edge information image, the second area is an area adjacent to the second edge information image, and the third area is an area other than the first area and the second area in the image overlap area. The first area and the second area are subjected to regional fusion processing by a first fusion algorithm, and the third area is subjected to regional fusion processing by a second fusion algorithm to obtain a target silicone molding image of the target silicone.

[0058] It should be noted that, in the embodiment of the present invention, the first fusion algorithm is a weighted fusion algorithm, and the second fusion algorithm is a Laplacian pyramid fusion algorithm.

[0059] When collecting the silicone molding image to be tested, the light source will cause obvious brightness differences in the fusion area of ​​the two adjacent images obtained by rotational scanning, and directly fused images will have unnatural processing seams. The weighted fusion method generally uses fixed weights for image fusion, which has low computational complexity and fast processing speed. It may cause the processing gaps to be more conspicuous, making the fused image feel severely fragmented; the pyramid fusion method mainly reconstructs the fused image at different resolutions based on the Gaussian pyramid of the image, so that the image transition is more natural. This embodiment combines the two fusion methods. First, the overlapping area of ​​the image is divided into transition areas b, c, and d, and then different fusion methods are used in different transition areas.

[0060] In one embodiment, Figure 2 Schematic diagram of the initial silicone molding image area division provided by an embodiment of the present invention. Figure 2 As shown in the figure, b, c, and d represent the overlapping areas of the images, b is the first area, d is the second area, and c is the third area; a and e represent non-overlapping areas; the Laplace pyramid fusion algorithm is used in the transition area c, and the nonlinear weighted fusion algorithm based on the Sigmoid function is used in the transition areas b and d. The sizes of the areas b, d, and c are 1 / 4, 1 / 4, and 1 / 2 of the size of the overlapping areas of the images, respectively.

[0061] Specifically, the weighted fusion algorithm usually uses fixed weights or linear weights to fuse two images. The effect of image fusion depends greatly on the selection of weights. Figure 2 After fusion in area b, the position is relatively on the left, so the pixel value of the left image occupies a larger weight, which is beneficial to improving the fusion effect. Similarly, in area d, the pixel weight of the corresponding position of the right image should also be dominant. This embodiment selects the Sigmoid function to perform nonlinear assignment of pixel weights according to the position of the overlapping area.

[0062] The domain of the Sigmoid function is the set of all real numbers, and its range is (0,1). The function is differentiable everywhere and is a smooth curve. As the pixel position changes, the weight changes smoothly, resulting in a better fusion effect. Let the center of the overlapped area of ​​the image be the position where the pixel weights of the left and right images are equal, so as to transform the coordinates, as shown in formula (1):

[0063] (1);

[0064] Among them, min represents the leftmost column of the first area, max represents the rightmost column of the first area, and j represents the column number of a column in areas b and d.

[0065] The weights of the two graphs are further obtained, see formula (2):

[0066] (2);

[0067] The final fusion formula can be found in formula (3):

[0068] (3);

[0069] in, Indicate point The pixel value of Represents the pixel value of the non-overlapping area of ​​the first edge information image; represents a pixel value of the first edge information image; A pixel value representing a second edge information image; represents the pixel value after fusion using the second fusion algorithm in the third area; Represents the pixel value of the non-overlapping area of ​​the second edge information image; and are the weights of the weighted fusion of the first edge information image and the second edge information image respectively.

[0070] The present invention uses edge information images to replace original images to extract features, which can improve the extraction efficiency. After the feature points are aligned, the overlapping area is partitioned and regional fusion is performed, which can obtain a high-resolution image with a natural look while retaining the image details to the greatest extent.

[0071] Step 30: input the target silicone molding image into the target silicone molding quality model to obtain an abnormality assessment value corresponding to the target silicone molding image output by the target silicone molding quality model.

[0072] Among them, the target silicone molding quality model is obtained by updating and training the initial silicone molding quality model based on the first silicone molding sample image, and the initial silicone molding quality model is obtained by training based on the second silicone molding sample image. The first silicone molding sample image is sample data under the first silicone molding process, and the second silicone molding sample image is sample data under the second silicone molding process. The first silicone molding process and the second silicone molding process are different molding processes in the same silicone molding process; the target silicone molding quality model is updated and trained using the first preset loss function, and the initial silicone molding quality model is trained using the second preset loss function, and the first preset loss function is determined based on the second preset loss function.

[0073] Specifically, the second silicone molding sample image can be collected from historical silicone molding sample images. Furthermore, an initial silicone molding quality model is obtained based on the second silicone molding sample image training as a basis for subsequent model updates. It should be noted that in order to allow the model to timely update the silicone molding changes corresponding to the target silicone molding image and accurately monitor the target silicone molding image, the first silicone molding sample image can be collected from the target silicone molding image. For example, a small amount of data is selected from the target silicone molding image and the selected data is annotated with abnormal evaluation values ​​to generate the first silicone molding sample image.

[0074] Furthermore, the first silicone molding sample image is used to update and train the initial silicone molding quality model to obtain a target silicone molding quality model.

[0075] Furthermore, the target silicone molding image is input into the target silicone molding quality model to obtain an abnormality assessment value corresponding to the target silicone molding image output by the target silicone molding quality model.

[0076] Step 40, judging whether there is any abnormality in the silicone molding process of the target silicone based on the abnormality evaluation value.

[0077] Optionally, judging whether there is an abnormality in the silicone molding process of the target silicone based on the abnormality evaluation value specifically includes: judging whether the abnormality evaluation value is greater than or equal to a preset abnormality evaluation threshold.

[0078] If it is determined that the abnormality assessment value is greater than or equal to the preset abnormality assessment threshold, it is determined that there is an abnormality in the silicone molding process of the target silicone.

[0079] The embodiment of the present invention performs silicone molding detection on the target silicone through machine vision combined with the target silicone molding quality model trained through different silicone molding processes. Since the target silicone molding quality model is trained through different silicone molding processes, the target silicone molding quality model can cope with different silicone molding processes. Therefore, in different silicone molding processes, defects such as bubbles, cracks, foreign matter, etc. can be accurately detected, thereby improving the quality of silicone molding.

[0080] In one embodiment, before inputting the target silicone molding image into the target silicone molding quality model and obtaining the abnormality evaluation value corresponding to the target silicone molding image output by the target silicone molding quality model, it also includes: based on the second silicone molding sample image and the sample abnormality evaluation value corresponding to the second silicone molding sample image, training an initial model constructed based on an SSA (Singular Spectrum Analysis) algorithm to obtain an initial silicone molding quality model; based on the first silicone molding sample image and the sample abnormality evaluation value corresponding to the first silicone molding sample image, using an SLSSA (Selective Singular Spectrum Analysis) algorithm to update and train the initial silicone molding quality model to obtain a target silicone molding quality model.

[0081] In one embodiment, after determining whether there is an abnormality in the silicone molding process of the target silicone based on the abnormal evaluation value, it also includes: determining the average accuracy metric value, the forgetting metric value and the uncompromising metric value of the target silicone molding quality model; based on the average accuracy metric value, the forgetting metric value and the uncompromising metric value, evaluating the continuous learning ability of the target silicone molding quality model to obtain an evaluation result.

[0082] Among them, the average accuracy metric is used to evaluate the monitoring effect of the target silicone molding quality model on the first silicone molding sample image and the second silicone molding sample image, the forgetting metric is used to evaluate the forgetting degree of the target silicone molding quality model on the first silicone molding sample image, and the uncompromising metric is used to evaluate the acceptance degree of the target silicone molding quality model on the second silicone molding sample image. The average accuracy metric is determined based on the monitoring silicone molding accuracy of the target silicone molding quality model; the forgetting metric is determined based on the monitoring silicone molding forgetting rate of the target silicone molding quality model; and the uncompromising metric is determined based on the task execution accuracy of the target silicone molding quality model when the continuous learning strategy is not adopted.

[0083] Specifically, the embodiment of the present invention evaluates the continuous learning ability of the target silicone molding quality model through three indicators: average accuracy measurement value AAM, forgetting measurement value FM and uncompromising measurement value IM.

[0084] The calculation formula of the average accuracy metric AAM is as follows:

[0085] ;

[0086] in, represents the accuracy of model k in monitoring silicone molding j; tp represents the number of abnormal samples correctly detected by model k; fp represents the number of normal samples mistakenly detected as abnormal samples by model k; fn represents the number of abnormal samples mistakenly detected as normal samples by model k; tn represents the number of normal samples correctly detected by model k.

[0087] The calculation formula of the forgetting measure FM is as follows:

[0088] ;

[0089] in, represents the forgetting rate of model k monitoring silicone molding j, Indicates the accuracy of model j in monitoring silicone molding j.

[0090] The calculation formula of the uncompromising measure IM is as follows:

[0091] ;

[0092] in, represents the best accuracy of the target silicone molding quality model when the continuous learning strategy is not adopted. Represents the best accuracy of task execution when the target silicone molding quality model adopts a continuous learning strategy.

[0093] The following is a description of the silicone molding quality control system based on machine vision provided by the present invention. The silicone molding quality control system based on machine vision described below and the silicone molding quality control method based on machine vision described above can be referenced to each other.

[0094] like Figure 3 As shown, Figure 3 This is a structural diagram of a silicone molding quality control system based on machine vision provided by the present invention. The silicone molding quality control system based on machine vision includes:

[0095] An image acquisition module 301 is used to acquire a silicone molding image of a target silicone based on machine vision;

[0096] The image processing module 302 is used to perform edge detection processing, feature point extraction processing, feature point registration processing and fusion processing on the silicone molding image to be detected, so as to obtain a target silicone molding image of the target silicone;

[0097] The abnormal evaluation value prediction module 303 is used to input the target silicone molding image into the target silicone molding quality model to obtain the abnormal evaluation value corresponding to the target silicone molding image output by the target silicone molding quality model;

[0098] An abnormality assessment module 304, used to determine whether the target silicone has an abnormality in the silicone molding process based on the abnormality assessment value;

[0099] Among them, the target silicone molding quality model is obtained by updating and training the initial silicone molding quality model based on the first silicone molding sample image, and the initial silicone molding quality model is obtained by training based on the second silicone molding sample image. The first silicone molding sample image is sample data under the first silicone molding process, and the second silicone molding sample image is sample data under the second silicone molding process. The first silicone molding process and the second silicone molding process are different molding processes in the same silicone molding process; the target silicone molding quality model is updated and trained using the first preset loss function, and the initial silicone molding quality model is trained using the second preset loss function, and the first preset loss function is determined based on the second preset loss function.

[0100] The embodiment of the present invention performs silicone molding detection on the target silicone through machine vision combined with the target silicone molding quality model trained through different silicone molding processes. Since the target silicone molding quality model is trained through different silicone molding processes, the target silicone molding quality model can cope with different silicone molding processes. Therefore, in different silicone molding processes, defects such as bubbles, cracks, foreign matter, etc. can be accurately detected, thereby improving the quality of silicone molding.

[0101] In an optional embodiment, the abnormality assessment module 304 is further configured to:

[0102] Determine whether the abnormality assessment value is greater than or equal to a preset abnormality assessment threshold;

[0103] If the abnormality assessment value is greater than or equal to the preset abnormality assessment threshold, it is determined that there is an abnormality in the silicone molding process of the target silicone.

[0104] In an optional embodiment, the silicone molding quality control system based on machine vision is also used for:

[0105] Determine the average accuracy metric value, the forgetting metric value and the uncompromising metric value of the target silicone molding quality model; the average accuracy metric value is determined based on the monitoring silicone molding accuracy of the target silicone molding quality model; the forgetting metric value is determined based on the monitoring silicone molding forgetting rate of the target silicone molding quality model; the uncompromising metric value is determined based on the task execution accuracy of the target silicone molding quality model when the continuous learning strategy is not adopted;

[0106] Based on the average accuracy metric value, the forgetting metric value and the uncompromising metric value, the continuous learning ability of the target silicone molding quality model is evaluated to obtain an evaluation result;

[0107] Among them, the average accuracy metric is used to evaluate the monitoring effect of the target silicone molding quality model on the first silicone molding sample image and the second silicone molding sample image, the forgetting metric is used to evaluate the degree of forgetting of the first silicone molding sample image by the target silicone molding quality model, and the uncompromising metric is used to evaluate the degree of acceptance of the second silicone molding sample image by the target silicone molding quality model.

[0108] In an optional embodiment, the silicone molding quality control system based on machine vision is also used for:

[0109] Based on the second silicone molding sample image and the sample abnormality evaluation value corresponding to the second silicone molding sample image, training the initial model constructed based on the SSA algorithm to obtain the initial silicone molding quality model;

[0110] Based on the first silicone molding sample image and the sample abnormality evaluation value corresponding to the first silicone molding sample image, the initial silicone molding quality model is updated and trained to obtain the target silicone molding quality model.

[0111] In an optional embodiment, the image processing module 302 is further configured to:

[0112] The edge information image of each silicone molding image to be detected is extracted by the target edge detection algorithm;

[0113] Extracting and registering feature points of the edge information image to obtain an initial silicone molding image; the initial silicone molding image includes an image overlapping area;

[0114] The overlapping areas of the images are subjected to regional partitioning processing and regional fusion processing to obtain a target silicone molding image of the target silicone.

[0115] In an optional embodiment, the image processing module 302 is further configured to:

[0116] Divide the image overlapping area into a first area, a second area and a third area; the first area is an area adjacent to the first edge information image, the second area is an area adjacent to the second edge information image, and the third area is an area in the image overlapping area excluding the first area and the second area;

[0117] The first region and the second region are subjected to regional fusion processing by a first fusion algorithm, and the third region is subjected to regional fusion processing by a second fusion algorithm to obtain a target silicone molding image of the target silicone.

[0118] In an optional embodiment, the formula for the region fusion process is as follows:

[0119] ;

[0120] in: Indicate point The pixel value of Represents the pixel value of the non-overlapping area of ​​the first edge information image; represents a pixel value of the first edge information image; A pixel value representing a second edge information image; represents the pixel value after fusion using the second fusion algorithm in the third area; Represents the pixel value of the non-overlapping area of ​​the second edge information image; and are the weights of the weighted fusion of the first edge information image and the second edge information image; b is the first area, d is the second area, and c is the third area; a and e represent non-overlapping areas.

[0121] See also Figure 4 , Figure 4 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 4 As shown, an embodiment of the present invention provides an electronic device 400, including a memory 410, a processor 420, and a computer program 411 stored in the memory 410 and executable on the processor 420. When the processor 420 executes the computer program 411, the following steps are implemented:

[0122] Collect the silicone molding image of the target silicone based on machine vision;

[0123] Perform edge detection processing, feature point extraction processing, feature point registration processing and fusion processing on the silicone molding image to be detected to obtain the target silicone molding image of the target silicone;

[0124] Inputting the target silicone molding image into the target silicone molding quality model, and obtaining an abnormal evaluation value corresponding to the target silicone molding image output by the target silicone molding quality model;

[0125] Based on the abnormal evaluation value, it is judged whether there is an abnormality in the silicone molding process of the target silicone;

[0126] Among them, the target silicone molding quality model is obtained by updating and training the initial silicone molding quality model based on the first silicone molding sample image, and the initial silicone molding quality model is obtained by training based on the second silicone molding sample image. The first silicone molding sample image is sample data under the first silicone molding process, and the second silicone molding sample image is sample data under the second silicone molding process. The first silicone molding process and the second silicone molding process are different molding processes in the same silicone molding process; the target silicone molding quality model is updated and trained using the first preset loss function, and the initial silicone molding quality model is trained using the second preset loss function, and the first preset loss function is determined based on the second preset loss function.

[0127] See also Figure 5 , Figure 5 Schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention. Figure 5 As shown, this embodiment provides a computer-readable storage medium 500, on which a computer program 511 is stored. When the computer program 511 is executed by a processor, the following steps are implemented:

[0128] Collect the silicone molding image of the target silicone based on machine vision;

[0129] Perform edge detection processing, feature point extraction processing, feature point registration processing and fusion processing on the silicone molding image to be detected to obtain the target silicone molding image of the target silicone;

[0130] Inputting the target silicone molding image into the target silicone molding quality model, and obtaining an abnormal evaluation value corresponding to the target silicone molding image output by the target silicone molding quality model;

[0131] Based on the abnormal evaluation value, it is judged whether there is an abnormality in the silicone molding process of the target silicone;

[0132] Among them, the target silicone molding quality model is obtained by updating and training the initial silicone molding quality model based on the first silicone molding sample image, and the initial silicone molding quality model is obtained by training based on the second silicone molding sample image. The first silicone molding sample image is sample data under the first silicone molding process, and the second silicone molding sample image is sample data under the second silicone molding process. The first silicone molding process and the second silicone molding process are different molding processes in the same silicone molding process; the target silicone molding quality model is updated and trained using the first preset loss function, and the initial silicone molding quality model is trained using the second preset loss function, and the first preset loss function is determined based on the second preset loss function.

[0133] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0134] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0135] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0136] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0138] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0139] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for quality control of silicone molding based on machine vision, characterized in that: include: Collect the silicone molding image of the target silicone based on machine vision; Performing edge detection processing, feature point extraction processing, feature point registration processing and fusion processing on the silicone molding image to be detected to obtain a target silicone molding image of the target silicone; Inputting the target silicone molding image into a target silicone molding quality model, and obtaining an abnormality evaluation value corresponding to the target silicone molding image output by the target silicone molding quality model; Determine whether there is an abnormality in the silicone molding process of the target silicone based on the abnormality evaluation value; Among them, the target silicone molding quality model is obtained by updating and training the initial silicone molding quality model based on the first silicone molding sample image, and the initial silicone molding quality model is obtained by training based on the second silicone molding sample image. The first silicone molding sample image is sample data under the first silicone molding process, and the second silicone molding sample image is sample data under the second silicone molding process. The first silicone molding process and the second silicone molding process are different molding processes in the same silicone molding process; the target silicone molding quality model is updated and trained using a first preset loss function, and the initial silicone molding quality model is trained using a second preset loss function, and the first preset loss function is determined based on the second preset loss function.

2. The method for controlling the quality of silicone molding based on machine vision according to claim 1, characterized in that: The determining whether the target silicone has an abnormality in the silicone molding process based on the abnormality evaluation value includes: Determine whether the abnormality assessment value is greater than or equal to a preset abnormality assessment threshold; If the abnormality assessment value is greater than or equal to the preset abnormality assessment threshold, it is determined that there is an abnormality in the silicone molding process of the target silicone.

3. The method for controlling the quality of silicone molding based on machine vision according to claim 1, characterized in that: After judging whether the target silicone has an abnormality in the silicone molding process based on the abnormality evaluation value, the method further includes: Determine the average accuracy metric value, the forgetting metric value and the uncompromising metric value of the target silicone molding quality model; the average accuracy metric value is determined based on the monitoring silicone molding accuracy of the target silicone molding quality model; the forgetting metric value is determined based on the monitoring silicone molding forgetting rate of the target silicone molding quality model; the uncompromising metric value is determined based on the task execution accuracy of the target silicone molding quality model when the continuous learning strategy is not adopted; Based on the average accuracy metric value, the forgetting metric value and the uncompromising metric value, the continuous learning ability of the target silicone molding quality model is evaluated to obtain an evaluation result; Among them, the average accuracy metric is used to evaluate the monitoring effect of the target silicone molding quality model on the first silicone molding sample image and the second silicone molding sample image, the forgetting metric is used to evaluate the degree of forgetting of the first silicone molding sample image by the target silicone molding quality model, and the uncompromising metric is used to evaluate the degree of acceptance of the second silicone molding sample image by the target silicone molding quality model.

4. The method for controlling the quality of silicone molding based on machine vision according to claim 1, characterized in that: Before inputting the target silicone molding image into the target silicone molding quality model and obtaining the abnormality evaluation value corresponding to the target silicone molding image output by the target silicone molding quality model, the method further includes: Based on the second silicone molding sample image and the sample abnormality evaluation value corresponding to the second silicone molding sample image, training the initial model constructed based on the SSA algorithm to obtain the initial silicone molding quality model; Based on the first silicone molding sample image and the sample abnormality evaluation value corresponding to the first silicone molding sample image, the initial silicone molding quality model is updated and trained to obtain the target silicone molding quality model.

5. The method for controlling the quality of silicone molding based on machine vision according to claim 1, characterized in that: The step of performing edge detection processing, feature point extraction processing, feature point registration processing and fusion processing on the silicone molding image to be detected to obtain a target silicone molding image of the target silicone includes: The edge information image of each silicone molding image to be detected is extracted by the target edge detection algorithm; Extracting and registering feature points of the edge information image to obtain an initial silicone molding image; the initial silicone molding image includes an image overlapping area; The overlapping areas of the images are subjected to regional partitioning processing and regional fusion processing to obtain a target silicone molding image of the target silicone.

6. The method for controlling the quality of silicone molding based on machine vision according to claim 5, characterized in that: The image overlapping area is an overlapping area of ​​a first edge information image and a second edge information image, and the first edge information image and the second edge information image are images that need to be fused among a plurality of edge information images; The performing of regional partitioning and regional fusion processing on the overlapping regions of the images to obtain a target silicone molding image of the target silicone includes: Divide the image overlapping area into a first area, a second area and a third area; the first area is an area adjacent to the first edge information image, the second area is an area adjacent to the second edge information image, and the third area is an area in the image overlapping area excluding the first area and the second area; The first region and the second region are subjected to regional fusion processing by a first fusion algorithm, and the third region is subjected to regional fusion processing by a second fusion algorithm to obtain a target silicone molding image of the target silicone.

7. The method for controlling the quality of silicone molding based on machine vision according to claim 6, characterized in that: The formula for the regional fusion processing is as follows: ; in: Indicate point The pixel value of Represents the pixel value of the non-overlapping area of ​​the first edge information image; represents a pixel value of the first edge information image; A pixel value representing a second edge information image; represents the pixel value after fusion using the second fusion algorithm in the third area; Represents the pixel value of the non-overlapping area of ​​the second edge information image; and are the weights of the weighted fusion of the first edge information image and the second edge information image; b is the first area, d is the second area, and c is the third area; a and e represent non-overlapping areas.

8. A silicone molding quality control system based on machine vision, characterized in that: include: An image acquisition module, used for acquiring a silicone molding image of a target silicone to be inspected based on machine vision; An image processing module, used for performing edge detection processing, feature point extraction processing, feature point registration processing and fusion processing on the silicone molding image to be detected, so as to obtain a target silicone molding image of the target silicone; An abnormal evaluation value prediction module is used to input the target silicone molding image into a target silicone molding quality model to obtain an abnormal evaluation value corresponding to the target silicone molding image output by the target silicone molding quality model; An abnormality assessment module, used for judging whether the target silicone has an abnormality in the silicone molding process based on the abnormality assessment value; Among them, the target silicone molding quality model is obtained by updating and training the initial silicone molding quality model based on the first silicone molding sample image, and the initial silicone molding quality model is obtained by training based on the second silicone molding sample image. The first silicone molding sample image is sample data under the first silicone molding process, and the second silicone molding sample image is sample data under the second silicone molding process. The first silicone molding process and the second silicone molding process are different molding processes in the same silicone molding process; the target silicone molding quality model is updated and trained using a first preset loss function, and the initial silicone molding quality model is trained using a second preset loss function, and the first preset loss function is determined based on the second preset loss function.

9. An electronic device, characterized in that: include: Memory for storing computer software programs; A processor is used to read and execute the computer software program, thereby implementing the silicone molding quality control method based on machine vision as described in any one of claims 1-7.

10. A non-transitory computer-readable storage medium, characterized in that: The storage medium stores a computer software program, and when the computer software program is executed by the processor, the machine vision-based silicone molding quality control method as described in any one of claims 1 to 7 is implemented.