A product quality inspection method based on machine vision

Using machine vision technology to detect the air tightness of products solves the problem of low accuracy of the pressure drop method, enables efficient and accurate air tightness assessment and optimized usage methods, and reduces testing costs.

CN118329298BActive Publication Date: 2024-08-27温州风涌智能科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410446393.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2024-08-27
Estimated Expiration
2044-04-15

AI Technical Summary

Technical Problem

In the existing technology, the pressure drop method has low accuracy in detecting product air tightness, making it difficult to accurately find the leak point and measure the leak speed, and the detection is cumbersome and costly.

Method used

Using a product quality inspection method based on machine vision, the inspection components are placed in a vacuum transparent device, video data recorded by monitoring equipment is used, and the air leakage speed, point and amount characterization parameters are obtained through frame processing, and three-dimensional reconstruction is performed to calculate the air tightness. The air tightness evaluation parameters are combined with the air tightness impact degree model to determine the air tightness changes.

Benefits of technology

It achieves high-precision detection of product air tightness, reduces detection misjudgments, simplifies the detection process, reduces resource costs, and optimizes usage methods to reduce air tightness changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118329298B
    Figure CN118329298B
Patent Text Reader

Abstract

The present invention belongs to the field of intelligent detection technology. The present invention provides a product quality detection method based on machine vision, including: selecting video data based on the contour of the sealing part of the detection component, performing frame processing on the selected video data to obtain multiple frame images, calculating the airtightness evaluation parameter of the detection component, comparing the airtightness evaluation parameter of the detection component with a preset airtightness evaluation parameter threshold of the detection component, thereby judging the airtightness of the detection component, obtaining the use data corresponding to the detection component after the airtightness evaluation, and substituting it into an airtightness influence degree model to obtain the airtightness influence degree of the detection component during the use period, calculating the airtightness change characterization value of the detection component after the use period, and judging the degree of change of the airtightness of the detection component after use. The present invention realizes the airtightness evaluation of the detection component and the evaluation of the degree of change of the airtightness of the detection component after use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of intelligent detection, and in particular is a product quality detection method based on machine vision. Background Art

[0002] With the rapid development of modern manufacturing, product structures are becoming more and more complex, and the performance and reliability requirements of components are becoming higher and higher. Therefore, it is particularly important to conduct accurate and efficient testing of product structural components. This involves various technical means to ensure that the product's structural strength, stiffness, vibration and other performance meet the design requirements.

[0003] A patent with a Chinese publication number of CN115841463A discloses a product quality inspection method based on machine vision, including: setting features to be inspected according to the identified product information; matching corresponding auxiliary light source equipment according to the features to be inspected; setting a corresponding quality inspection area in the production of the products to be inspected, and installing the inspection equipment in the quality inspection area; setting an association scheme between the acquisition equipment, the inspection table, the auxiliary light source equipment and each feature to be inspected; inspecting the batch of products to be inspected entering the inspection table to obtain the acquisition features corresponding to each item to be inspected; comparing and analyzing the acquired acquisition features with the corresponding features to be inspected to obtain the corresponding inspection results; realizing intelligent inspection of the product, each inspection table has a fixed inspection position, realizing panoramic acquisition of dishes and batch inspection of the batch of dishes on the inspection table.

[0004] In the prior art, the air tightness test of products or product components is generally carried out through the pressure drop method. However, in actual testing, the pressure drop method will be affected by the ambient temperature, which can easily cause misjudgment of the test and lead to low detection accuracy. In addition, it is difficult to directly find the exact leakage point and measure the exact leakage rate when testing the air tightness of the product through the pressure drop method. In addition, when it is necessary to find the exact leakage point, other auxiliary methods and more detection steps are needed to complete it. The detection is relatively cumbersome and the resource cost is high.

[0005] To this end, the present invention provides a product quality detection method based on machine vision. Summary of the invention

[0006] In order to make up for the deficiencies of the prior art, at least one technical problem raised in the background technology is solved.

[0007] The technical solution adopted by the present invention to solve the technical problem is: a product quality detection method based on machine vision, comprising:

[0008] Step 1: Place the detection component in a vacuum transparent device and deliver colored gas to the detection component;

[0009] Step 2: Use monitoring equipment to monitor and record the detection component area to obtain video data;

[0010] Step 3: Selecting the video data based on the contour of the seal of the detection component;

[0011] Step 4: performing frame processing on the selected video data and the saved video data respectively to obtain a plurality of frame images, calculating the leakage velocity characterization parameters and leakage point characterization parameters of the detection component based on the frame images of the selected video data, performing three-dimensional reconstruction of the colored gas based on the frame images of all video data, and calculating the leakage amount characterization parameters of the detection component, calculating the air tightness evaluation parameters of the detection component based on the obtained leakage velocity characterization parameters, leakage point characterization parameters and leakage amount characterization parameters, comparing the air tightness evaluation parameters of the detection component with the preset air tightness evaluation parameter threshold of the detection component, and determining the air tightness of the detection component;

[0012] Step 5: Obtain the usage data corresponding to the test component after the air tightness evaluation, and substitute it into the air tightness impact degree model to obtain the air tightness impact degree of the test component within the use cycle;

[0013] Step 6: Based on the airtightness evaluation parameters of the detection component and the airtightness influence degree of the detection component, calculate the airtightness change characterization value of the detection component after the use cycle;

[0014] Step 7: Compare the airtightness change characterization value of the detection component after the use cycle with the preset threshold value to determine the degree of change of the airtightness of the detection component.

[0015] As a further technical solution of the present invention, the process of obtaining the airtightness evaluation parameters is as follows:

[0016] The detection component leakage data is obtained by frame number image calculation, and the detection component leakage data includes: leakage velocity characterization parameters, leakage point characterization parameters and leakage amount characterization parameters of the detection component;

[0017] The specific calculation is as follows: A1, obtaining the leakage velocity characterization parameter of the detection component, and marking the leakage velocity characterization parameter of the detection component as Wi;

[0018] A2, obtaining a leakage point characterization parameter of the detection component, and marking the leakage point characterization parameter of the detection component as Yi;

[0019] A3, obtaining a parameter representing the amount of air leakage of the detection component, and marking the parameter representing the amount of air leakage of the detection component as Gi;

[0020] A4, by the formula: The airtightness evaluation parameter Fi of the detection component is obtained, wherein s1, s2 and s3 are all preset proportional coefficients.

[0021] As a further technical solution of the present invention, the airtightness of the detection component is determined according to the airtightness evaluation parameter of the detection component, and the specific determination is as follows:

[0022] If the airtightness evaluation parameter Fi of the detection component is ≥ the airtightness evaluation parameter threshold of the detection component, it means that the airtightness of the detection component is good, and the greater the difference between the airtightness evaluation parameter Fi of the detection component and the airtightness evaluation parameter threshold of the detection component, the better the airtightness of the detection component;

[0023] If the airtightness evaluation parameter Fi of the detection component is less than the airtightness evaluation parameter threshold of the detection component, it means that the airtightness of the detection component is poor, and the greater the difference between the airtightness evaluation parameter Fi of the detection component and the airtightness evaluation parameter threshold of the detection component, the worse the airtightness of the detection component.

[0024] As a further technical solution of the present invention, the process of obtaining the leakage velocity characterization parameter is as follows:

[0025] A11, numbering the frame numbers of the selected video data after the frame processing in time sequence;

[0026] In the frame number image after the selected video data is processed, the contour length of the leak point in the image is measured, and the center point of the leak point contour is calculated according to the contour length;

[0027] A12, in each frame image after the selected video data is processed, the colored gas is outlined according to the outline of the colored gas in the image to obtain the outline of the colored gas in each frame image, and a number of reference points are equidistantly selected on the outline of the colored gas in each frame image;

[0028] A13, measuring the distance from each reference point in each frame image to the center point of the leak point contour, and summing and averaging the distances;

[0029] A14, performing ratio processing on the mean value corresponding to the frame number image of each frame in step A13 and the frame number value of the corresponding frame number image, summing and averaging the multiple results obtained after the ratio processing, and obtaining the leakage velocity characterization parameter.

[0030] As a further technical solution of the present invention, the process of obtaining the leakage point characterization parameters is as follows:

[0031] A101, in each frame image of the selected video data, measuring the contour length of the leak point in the image;

[0032] A102, obtaining the contour length of the sealing part of the detection component, and performing ratio processing on the contour length of the leak point in the image and the contour length of the sealing part of the detection component;

[0033] A103, summing up and averaging the processing results of the ratio of the contour length of the leak point in each frame image to the contour length of the sealing part of the detection component to obtain the leak point characterization parameter.

[0034] As a further technical solution of the present invention, the process of obtaining the leakage characterization parameter is as follows:

[0035] A110, among all the frame images, the frame images with the same frame number are classified into one category;

[0036] A120, based on each type of frame image, extracts the colored gas contour point sequence data from all edge images contained in each type of image;

[0037] A130, inputs the colored gas contour point sequence data into the 3D modeling software, constructs the 3D model of the colored gas in each type of frame image, and obtains the leakage characterization parameters based on the constructed model.

[0038] As a further technical solution of the present invention, leakage characterization parameters are obtained based on the constructed model, specifically, the three-dimensional model volume of the colored gas in each type of frame image is calculated, the three-dimensional model volume of the colored gas in each type of frame image is ratio-processed with the corresponding frame number value, and the results of the ratio processing of the three-dimensional model volume of the colored gas in each type of frame image with the corresponding frame number value are summed and averaged to obtain the leakage characterization parameters.

[0039] As a further technical solution of the present invention, the usage data corresponding to the detection component includes a usage time characterization value HM, a usage interval time characterization value JM and a usage cycle characterization value PM, and an airtightness influence degree model is constructed based on the usage time characterization value HM, the usage interval time characterization value JM and the usage cycle characterization value PM. The method of constructing the airtightness influence degree model is: Among them, α, β and θ are all proportional coefficients.

[0040] As a further technical solution of the present invention:

[0041] The process of obtaining the usage time characterization value HM is as follows:

[0042] According to the usage requirements, the single abnormal use time of the detection component within the usage cycle is obtained. The single abnormal use time of the detection component is expressed as follows: the time when the single use time of the detection component within the usage cycle is greater than or equal to the single prescribed use time of the detection component is obtained, and the single abnormal use time of all the detection components within the usage cycle is subtracted from the single prescribed use time, and the differences are summed and averaged to obtain the usage time representation value HM;

[0043] The acquisition process of the usage interval time characterization value JM is as follows:

[0044] According to the usage requirements, the abnormal interval time of the detection component within the usage cycle is obtained, and the abnormal interval time of the detection component is: the time when the interval usage time of the detection component between two times within the usage cycle is greater than or equal to the specified interval usage time of the detection component, the abnormal interval time of all detection components within the usage cycle is subtracted from the specified interval usage time of the detection component, the differences are summed and averaged to obtain the usage interval time characterization value JM.

[0045] As a further technical solution of the present invention, the process of obtaining the characterization value PM of the usage period is as follows:

[0046] The number of times that the detection component is used abnormally for a single time during the use cycle is obtained, and marked as the number of times of single use abnormality GB;

[0047] The number of abnormal interval times of the detection component within the use cycle is obtained, and marked as the number of abnormal interval times SB;

[0048] The characterization value PM of the usage period is calculated by the formula: PM=a1×GB+a2×SB, where a1 and a2 are both weight coefficients, and a1+a2=1.

[0049] The beneficial effects of the present invention are as follows:

[0050] 1. A product quality inspection method based on machine vision described in the present invention connects a valve to a pipeline connector, places the valve in a vacuum transparent device, transports colored gas in the pipeline, uses multiple high-pixel monitoring devices to simultaneously record the valve and the vacuum transparent device area at different angles, obtains video data of each monitoring device, obtains the contour of the valve seal, selects the video data based on the contour of the valve seal, saves the unselected video data, performs frame processing on the selected video data and the saved video data, and obtains multiple frame number images, calculate the leakage velocity characterization parameters and leakage point characterization parameters of the valve based on the frame number images after the selected video data is framed, collect the contours of the colored gas leaking from the valve in all the frame images based on all the video data after framing, and perform three-dimensional reconstruction of the colored gas, calculate the leakage amount characterization parameters of the valve based on the reconstructed model, calculate the air tightness evaluation parameters of the valve based on the obtained leakage velocity characterization parameters, leakage point characterization parameters and leakage amount characterization parameters, compare the valve air tightness evaluation parameters with the preset valve air tightness evaluation parameter threshold, so as to judge the air tightness of the valve.

[0051] 2. The present invention discloses a method for detecting product quality based on machine vision, which obtains the usage data corresponding to the valve after the airtightness is evaluated, and substitutes the data into the airtightness influence degree model to obtain the airtightness influence degree of the valve during the use period, and calculates the airtightness change characterization value of the valve after the use period based on the airtightness evaluation parameters of the valve and the airtightness influence degree of the valve, and compares the airtightness change characterization value with a preset threshold value to determine the degree of change of the valve airtightness after use. The present invention realizes that based on the large degree of change of the valve airtightness, when using the valve within the use period, the method of using the valve is avoided when the valve airtightness changes greatly, and the method of using the valve is continuously adjusted in the subsequent use of the valve to optimize the method of using the valve. In the subsequent use of the valve, the degree of change of the valve airtightness caused by the method of using the valve is reduced, which is beneficial to ensure that the valve is used and the influence of the method of using the valve on the airtightness of the valve is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The present invention will be further described below in conjunction with the accompanying drawings.

[0053] Figure 1 is a flow chart of the method of the present invention;

[0054] Figure 2 is a flow chart of the steps for obtaining the leakage velocity characterization parameters in the present invention;

[0055] Figure 3 It is a flow chart of the steps for obtaining the leakage characterization parameters in the present invention. DETAILED DESCRIPTION

[0056] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.

[0057] like Figure 1 As shown, a product quality detection method based on machine vision according to an embodiment of the present invention includes:

[0058] Step 1: Connect the detection component (valve) to the pipeline connector, and place the valve in a vacuum transparent device to transport colored gas in the pipeline;

[0059] Specifically, after the colored gas is transported, the pipeline is closed and the gas in the pipeline is pressurized, and the pressurized pressure is a constant value;

[0060] Step 2: Use multiple high-pixel monitoring devices to simultaneously record the valve and the vacuum transparent device area at different angles to obtain the video data of each monitoring device;

[0061] Step 3: Obtain the contour of the valve seal, select the video data based on the contour of the valve seal, and save the unselected video data;

[0062] Specifically, the contour of the valve seal can be obtained according to the appearance and design structure of the valve. The selection constraint of the video data is: the video data is selected according to whether the horizontal plane of the acquisition angle of the monitoring device is parallel to the horizontal plane of the valve seal contour. For example, if the contour of the seal is circular, the horizontal plane of the acquisition angle of the monitoring device corresponding to the selected video should be parallel to the circular plane.

[0063] Step 4: perform frame processing on the selected video data and the saved video data respectively to obtain multiple frame images, calculate the valve leakage data through the frame images, the valve leakage data includes: valve leakage velocity characterization parameters, leakage point characterization parameters and leakage volume characterization parameters, calculate the valve leakage velocity characterization parameters and leakage point characterization parameters based on the frame images after the selected video data is framed, collect the contours of the colored gas leaked from the valve in all frame images based on the images after all video data are framed, and perform three-dimensional reconstruction of the colored gas, calculate the valve leakage volume characterization parameters based on the reconstructed model, calculate the valve air tightness evaluation parameters based on the obtained leakage velocity characterization parameters, leakage point characterization parameters and leakage volume characterization parameters, compare the valve air tightness evaluation parameters with the preset valve air tightness evaluation parameter threshold value, and determine the air tightness of the valve;

[0064] Among them, the calculation process of the valve air tightness evaluation parameters is:

[0065] A1, obtaining a valve leakage velocity characterization parameter, and marking the valve leakage velocity characterization parameter as Wi;

[0066] A2, obtaining the valve leakage point characterization parameter, and marking the valve leakage point characterization parameter as Yi;

[0067] A3, obtaining a valve leakage characterization parameter, and marking the valve leakage characterization parameter as Gi;

[0068] A4, by the formula: Obtaining the airtightness evaluation parameter Fi of the detection component, wherein s1, s2 and s3 are all preset proportional coefficients;

[0069] The air tightness evaluation parameter Fi of the valve is compared with the preset air tightness evaluation parameter threshold of the valve. The specific comparison process is as follows:

[0070] If the air tightness assessment parameter Fi of the valve ≥ the air tightness assessment parameter threshold of the valve, it means that the air tightness of the valve is good, and the greater the difference between the air tightness assessment parameter Fi of the valve and the air tightness assessment parameter threshold of the valve, the better the air tightness of the valve;

[0071] If the air tightness assessment parameter Fi of the valve is less than the air tightness assessment parameter threshold of the valve, it means that the air tightness of the valve is poor, and the greater the difference between the air tightness assessment parameter Fi of the valve and the air tightness assessment parameter threshold of the valve, the worse the air tightness of the valve;

[0072] The valve leakage velocity characterization parameters and leakage point characterization parameters are calculated based on the frame number image after the selected video data is divided into frames, where: Figure 2 As shown in the figure, the process of obtaining the leakage velocity characterization parameters is as follows:

[0073] A11, numbering the frame numbers of the selected video data after the frame processing in time sequence, such as: 1, 2, 3...i;

[0074] In the frame number image after the selected video data is processed, the contour length of the leak point in the image is measured, and the center point of the leak point contour is calculated according to the contour length;

[0075] A12, in each frame image after the selected video data is processed, the colored gas is outlined according to the outline of the colored gas in the image to obtain the outline of the colored gas in each frame image, and a number of reference points are equidistantly selected on the outline of the colored gas in each frame image;

[0076] It should be noted that the same number of reference points are equally spaced and selected on the contour line of the colored gas in each frame image, and the more reference points are selected, the more accurate the calculation result is;

[0077] A13, measuring the distance from each reference point in each frame image to the center point of the leak point contour, and summing and averaging the distances;

[0078] A14, performing ratio processing on the mean value corresponding to the frame number image of each frame in step A13 and the frame number value of the corresponding frame number image, summing and averaging the multiple results obtained after the ratio processing, and obtaining the leakage velocity characterization parameter;

[0079] The process of obtaining the leakage point characterization parameters is as follows:

[0080] A101, in each frame image of the selected video data, measuring the contour length of the leak point in the image;

[0081] A102, obtaining the contour length of the valve seal, and performing ratio processing on the contour length of the leak point in the image and the contour length of the valve seal;

[0082] A103, summing and averaging the processing results of the ratio of the contour length of the leak point in the image to the contour length of the valve sealing part in each frame image to obtain the leak point characterization parameter;

[0083] Based on the images after all the video data are divided into frames, the contours of the colored gas leaking from the valve in all the divided images are collected, and the three-dimensional reconstruction of the colored gas is performed. The leakage characterization parameters of the valve are calculated based on the reconstructed model, such as Figure 3 As shown in the figure, the process of obtaining the leakage characterization parameters is as follows:

[0084] A110, among all the divided frame images, the frame images with the same frame number are divided into one category, for example, the frame image with the frame number 1 is divided into the first category of frame images, the frame image with the frame number 2 is divided into the second category of frame images, ..., the frame image with the frame number i is divided into the i-th category;

[0085] A120, use the Canny edge detection algorithm to detect the edge of colored gas in each type of frame tree image, generate edge images, input all edge images corresponding to each type of frame tree image into a computer vision library, such as OpenCV, and use the computer vision library to extract the colored gas contour point sequence data in all edge images;

[0086] A130, inputting the colored gas contour point sequence data in all edge images corresponding to each type of frame number image into the 3D modeling software, constructing the 3D model of the colored gas in each type of frame number image, calculating the 3D model volume of the colored gas in each type of frame number image, performing ratio processing on the 3D model volume of the colored gas in each type of frame number image and the corresponding frame number value, summing and averaging the results of the ratio processing of the 3D model volume of the colored gas in each type of frame number image and the corresponding frame number value, and obtaining the leakage amount characterization parameter;

[0087] Step 5: Obtain the usage data corresponding to the valve after the air tightness evaluation, and substitute it into the air tightness impact degree model to obtain the valve air tightness impact degree of the use cycle;

[0088] The usage data includes a usage time characterization value HM, a usage interval time characterization value JM, and a usage period characterization value PM;

[0089] The process of obtaining the usage time characterization value HM is as follows:

[0090] According to the usage requirements, the abnormal single use time of the valve in the usage cycle is obtained. The abnormal single use time of the valve is expressed as follows: the time when the single use time of the valve in the usage cycle is greater than or equal to the specified single use time of the valve is obtained, and the single abnormal use time of all valves in the usage cycle is processed with the single specified use time respectively, and the difference is summed and averaged to obtain the usage time representation value HM;

[0091] Based on this, the number of times the valve is used abnormally for a single time within the use cycle is obtained and marked as the number of single-use abnormal times GB;

[0092] The process of obtaining the interval time characterization value JM is as follows:

[0093] According to the usage requirements, the abnormal interval time of the valve within the usage cycle is obtained. The abnormal interval time of the valve: the time when the interval between two usage times of the valve within the usage cycle is greater than or equal to the specified interval between two usage times of the valve is obtained. The abnormal interval time of all valves within the usage cycle is processed with the difference between the specified interval between two usage times of the valve, and the difference is summed and averaged to obtain the usage interval time representation value JM;

[0094] Based on this, the number of abnormal interval times of the valve within the use cycle is obtained, which is marked as the number of abnormal interval times SB;

[0095] The process of obtaining the characterization value PM of the usage period is as follows:

[0096] Obtain the single use abnormal number GB and the interval use abnormal number SB, and calculate the characterization value PM of the use period by the formula: PM = a1 × GB + a2 × SB, where a1 and a2 are weight coefficients, a1 + a2 = 1;

[0097] The airtightness impact model is constructed as follows: Among them, α, β and θ are all proportional coefficients, α is 0.25964, β is 0.65243, and θ is 0.48796;

[0098] Step 6: Based on the air tightness evaluation parameters of the valve and the air tightness impact degree of the valve, calculate the air tightness change characterization value of the valve after the use cycle;

[0099] Specifically, the valve air tightness evaluation parameter in step 4 and the air tightness influence degree parameter in step 5 are obtained, and the valve air tightness evaluation parameter and the air tightness influence degree parameter are multiplied to obtain the air tightness change characterization value after the valve use cycle;

[0100] Step 7: Compare the air tightness change characterization value with the preset threshold value to determine the degree of change in the air tightness of the valve, and optimize the subsequent use of the valve based on the determination result;

[0101] If the air tightness change representation value is less than the preset threshold, it means that the degree of change in the air tightness of the valve is small;

[0102] If the air tightness change representation value is ≥ the preset threshold, it means that the air tightness of the valve has changed greatly;

[0103] Due to the large degree of change in valve air tightness, avoid using the valve in a way that causes a large degree of change in valve air tightness during the valve's service life. Continuously adjust the valve usage method in subsequent valve use to optimize the valve usage method. Reduce the degree of change in valve air tightness caused by the valve usage method in subsequent valve use, which is beneficial to ensuring that after the valve is used, reduce the impact of the valve usage method on the valve air tightness.

[0104] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A product quality detection method based on machine vision, characterized in that: include: Step 1: Place the detection component in a vacuum transparent device and deliver colored gas to the detection component; Step 2: Use monitoring equipment to monitor and record the detection component area to obtain video data; Step 3: Selecting the video data based on the contour of the seal of the detection component; Step 4: performing frame processing on the selected video data and the saved video data respectively to obtain a plurality of frame images, calculating the leakage velocity characterization parameters and leakage point characterization parameters of the detection component based on the frame images of the selected video data, performing three-dimensional reconstruction of the colored gas based on the frame images of all video data, and calculating the leakage amount characterization parameters of the detection component, calculating the air tightness evaluation parameters of the detection component based on the obtained leakage velocity characterization parameters, leakage point characterization parameters and leakage amount characterization parameters, comparing the air tightness evaluation parameters of the detection component with the preset air tightness evaluation parameter threshold of the detection component, and determining the air tightness of the detection component; The process of obtaining the leakage velocity characterization parameter is as follows: A11, numbering the frame numbers of the selected video data after the frame processing in time sequence; In the frame number image after the selected video data is processed, the contour length of the leak point in the image is measured, and the center point of the leak point contour is calculated according to the contour length; A12, in each frame image after the selected video data is processed, the colored gas is outlined according to the outline of the colored gas in the image to obtain the outline of the colored gas in each frame image, and a number of reference points are equidistantly selected on the outline of the colored gas in each frame image; A13, measuring the distance from each reference point in each frame image to the center point of the leak point contour, and summing and averaging the distances; A14, performing ratio processing on the mean value corresponding to the frame number image of each frame in step A13 and the frame number value of the corresponding frame number image, summing and averaging the multiple results obtained after the ratio processing, and obtaining the leakage velocity characterization parameter; The process of obtaining the leakage point characterization parameters is as follows: A101, in each frame image of the selected video data, measuring the contour length of the leak point in the image; A102, obtaining the contour length of the sealing part of the detection component, and performing ratio processing on the contour length of the leak point in the image and the contour length of the sealing part of the detection component; A103, summing and averaging the processing results of the ratio of the contour length of the leak point in the image to the contour length of the sealing part of the detection component in each frame of the frame image to obtain the leak point characterization parameter; The process of obtaining the leakage characterization parameter is as follows: A110, among all the frame images, the frame images with the same frame number are classified into one category; A120, based on each type of frame image, extracts the colored gas contour point sequence data from all edge images contained in each type of image; A130, inputting the colored gas contour point sequence data into the three-dimensional modeling software, constructing the three-dimensional model of the colored gas in each type of frame image, and obtaining the leakage characterization parameter based on the constructed model, specifically: calculating the three-dimensional model volume of the colored gas in each type of frame image, performing ratio processing on the three-dimensional model volume of the colored gas in each type of frame image and the corresponding frame number value, summing and averaging the results of the ratio processing of the three-dimensional model volume of the colored gas in each type of frame image and the corresponding frame number value, and obtaining the leakage characterization parameter; Step 5: Obtain the usage data corresponding to the test component after the air tightness evaluation, and substitute it into the air tightness impact degree model to obtain the air tightness impact degree of the test component within the use cycle; Step 6: Based on the airtightness evaluation parameters of the detection component and the airtightness influence degree of the detection component, calculate the airtightness change characterization value of the detection component after the use cycle; Step 7: Compare the airtightness change characterization value of the detection component after the use cycle with the preset threshold value to determine the degree of change of the airtightness of the detection component.

2. The method for detecting product quality based on machine vision according to claim 1, characterized in that: The process of obtaining the airtightness evaluation parameters is as follows: The detection component leakage data is obtained by frame number image calculation, and the detection component leakage data includes: leakage velocity characterization parameters, leakage point characterization parameters and leakage amount characterization parameters of the detection component; The specific calculation is as follows: A1, obtaining the leakage velocity characterization parameter of the detection component, and marking the leakage velocity characterization parameter of the detection component as Wi; A2, obtaining a leakage point characterization parameter of the detection component, and marking the leakage point characterization parameter of the detection component as Yi; A3, obtaining a parameter representing the amount of air leakage of the detection component, and marking the parameter representing the amount of air leakage of the detection component as Gi; A4, through the formula: Fi = The airtightness evaluation parameter Fi of the detection component is obtained, wherein s1, s2 and s3 are all preset proportional coefficients.

3. The method for detecting product quality based on machine vision according to claim 2, characterized in that: The air tightness of the detection component is determined according to the air tightness evaluation parameters of the detection component, and the specific determination is as follows: If the airtightness evaluation parameter Fi of the detection component is ≥ the airtightness evaluation parameter threshold of the detection component, it means that the airtightness of the detection component is good, and the greater the difference between the airtightness evaluation parameter Fi of the detection component and the airtightness evaluation parameter threshold of the detection component, the better the airtightness of the detection component; If the airtightness evaluation parameter Fi of the detection component is less than the airtightness evaluation parameter threshold of the detection component, it means that the airtightness of the detection component is poor, and the greater the difference between the airtightness evaluation parameter Fi of the detection component and the airtightness evaluation parameter threshold of the detection component, the worse the airtightness of the detection component.

4. The method for detecting product quality based on machine vision according to claim 1, characterized in that: The usage data corresponding to the detection component includes a usage time characterization value HM, a usage interval time characterization value JM, and a usage period characterization value PM. An airtightness influence degree model is constructed based on the usage time characterization value HM, the usage interval time characterization value JM, and the usage period characterization value PM. The airtightness influence degree model is constructed in the following manner: XS= ;in, , as well as All are proportional coefficients.

5. The method for detecting product quality based on machine vision according to claim 4, characterized in that: The process of obtaining the usage time characterization value HM is as follows: According to the usage requirements, the single abnormal use time of the detection component within the usage cycle is obtained. The single abnormal use time of the detection component is expressed as follows: the time when the single use time of the detection component within the usage cycle is greater than or equal to the single prescribed use time of the detection component is obtained, and the single abnormal use time of all the detection components within the usage cycle is subtracted from the single prescribed use time, and the differences are summed and averaged to obtain the usage time representation value HM; The acquisition process of the usage interval time characterization value JM is as follows: According to the usage requirements, the abnormal interval time of the detection component within the usage cycle is obtained, and the abnormal interval time of the detection component is: the time when the interval usage time of the detection component between two times within the usage cycle is greater than or equal to the specified interval usage time of the detection component, the abnormal interval time of all detection components within the usage cycle is subtracted from the specified interval usage time of the detection component, the differences are summed and averaged to obtain the usage interval time characterization value JM.

6. The method for detecting product quality based on machine vision according to claim 4, characterized in that: The process of obtaining the characterization value PM of the usage period is as follows: The number of times that the detection component is used abnormally for a single time during the use cycle is obtained, and marked as the number of times of single use abnormality GB; The number of abnormal interval times of the detection component within the use cycle is obtained, and marked as the number of abnormal interval times SB; Through the formula: PM = The characterization value PM of the usage period is calculated, where a1 and a2 are weight coefficients, and a1+a2=1.