A shower head component defect detection method and system based on machine vision

Through the shower component defect detection method based on machine vision, using the nine-point calibration method and intelligent analysis algorithm, the problem of low manual inspection efficiency and strong subjectivity has been solved, efficient and accurate shower quality inspection has been achieved, and tiny defects can be automatically identified. Defect and water performance assessment improves the reliability and efficiency of quality control.

CN118329425BActive Publication Date: 2024-08-27ZHANGZHOU INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing showerhead quality inspection relies on manual visual inspection and manual operation, which is inefficient and the results are highly subjective. It is difficult to meet the needs of high-quality and efficient production, especially the inability to identify small defects and subtle differences in water discharge performance.

Method used

Adopt a machine vision-based shower component defect detection method, use the nine-point calibration method for image collection and preprocessing, combine the water outlet test data, use intelligent analysis algorithms to conduct defect detection and water outlet performance analysis, and generate an analysis report through defect feature fusion .

Benefits of technology

It has significantly improved the efficiency and accuracy of shower product quality testing. Automated testing can identify minor defects, comprehensively evaluate water discharge performance, reduce labor costs, improve the reliability and efficiency of quality control, and provide scientific data support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118329425B
    Figure CN118329425B
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and discloses a method and system for defect detection of shower parts based on machine vision, which are used to improve the accuracy of defect detection of shower parts based on machine vision. The method comprises: performing image acquisition on the shower to be detected to obtain a static image set of the shower; performing a water injection test on the shower to be detected, and collecting the water outlet image of the shower to be detected in real time to obtain a water outlet image set; performing image preprocessing on the static image set of the shower and the water outlet image set to obtain a first processed image set and a second processed image set; performing shower defect detection on the first processed image set to obtain a defect detection result; performing water outlet performance analysis on the second processed image set to obtain a water outlet performance recognition result; performing defect feature fusion on the defect detection result and the water outlet performance recognition result to obtain a defect fusion feature; and generating a shower defect analysis report based on the defect fusion feature.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method and system for detecting shower head component defects based on machine vision. Background Art

[0002] In the existing shower production process, quality control is the key link to ensure that the product meets user expectations. Especially for high-end bathroom brands, the requirements for the water performance and component quality of showers are extremely strict. At present, the quality inspection of showers mainly relies on manual visual inspection and manually operated water test, which ensure the quality of showers to a certain extent. Manual inspection relies on experienced quality inspectors to evaluate the appearance, structure and water performance of the shower, and identify defects and performance problems through intuitive observation and manual testing.

[0003] However, manual inspection has the problems of low efficiency and strong subjectivity. Since manual inspection relies heavily on personal experience and subjective judgment, it is easy to vary from person to person, resulting in inconsistent test results. At the same time, the efficiency of manual inspection is relatively low and it is difficult to meet the needs of mass production. In addition, some minor defects or subtle differences in water performance may exceed the resolution ability of the human eye, thus missing important quality issues. Therefore, the existing manual inspection methods cannot fully meet the needs of high-quality and efficient production. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method and system for detecting defects in shower components based on machine vision, which are used to improve the accuracy of detecting defects in shower components based on machine vision.

[0005] The present invention provides a method for detecting defects of shower head parts based on machine vision, comprising:

[0006] S101, based on the nine-point calibration method, using a preset image acquisition device to acquire images of the shower head to be detected, to obtain a static image set of the shower head;

[0007] S102, performing a water injection test on the shower head to be tested, and at the same time, collecting water outlet images of the shower head to be tested in real time to obtain a water outlet image set;

[0008] S103, performing image preprocessing on the shower static image set and the water outlet image set to obtain a first processed image set corresponding to the shower static image set and a second processed image set corresponding to the water outlet image set;

[0009] S104, performing shower defect detection on the first processed image set to obtain a defect detection result;

[0010] S105, inputting the second processed image set into a preset water discharge performance analysis model to perform water discharge performance analysis to obtain a water discharge performance recognition result; performing defect feature fusion on the defect detection result and the water discharge performance recognition result to obtain a defect fusion feature;

[0011] S106: Generate a shower defect analysis report based on the defect fusion feature, and transmit the shower defect analysis report to a preset defect alarm terminal.

[0012] In the present invention, step S101 includes:

[0013] S11, placing the shower head to be detected in a preset plane area, and illuminating the shower head to be detected by the LED array light source of the image acquisition device;

[0014] S12, calibrating the camera angle of the image acquisition device based on the nine-point calibration method to obtain camera angle data;

[0015] S13, based on the nine-point calibration method, calibrating the camera position of the image acquisition device to obtain camera position data;

[0016] S14, calibrating the camera position of the image acquisition device using the camera angle data and the camera position data;

[0017] S15, collecting images of the shower head to be detected by the image collection device to obtain an initial image set;

[0018] S16: Screening the initial image set for effective images to obtain the shower static image set.

[0019] In the present invention, step S103 includes:

[0020] S31, collecting real-time light intensity data, and at the same time, extracting camera parameters of the image acquisition device to obtain a camera parameter set;

[0021] S32, performing data fusion on the illumination intensity data and the camera parameter set to obtain fused parameter data;

[0022] S33, obtaining a target filtering algorithm based on the fusion parameter data matching data filtering algorithm;

[0023] S34, performing image denoising on the static image of the shower head by using the target filtering algorithm to obtain the first processed image set;

[0024] S35, performing water flow region segmentation on the water outlet image set to obtain a water flow region image set;

[0025] S36. Perform contrast enhancement on the water flow area image set to obtain the second processed image set.

[0026] In the present invention, step S104 includes:

[0027] S41, performing showerhead water hole segmentation on the first processed image set to obtain a plurality of showerhead water hole images;

[0028] S42, performing image halo elimination on the plurality of showerhead water outlet images to obtain a plurality of processed water outlet images;

[0029] S43, performing pore spacing analysis on each of the processed water outlet hole images respectively to obtain pore spacing data corresponding to each of the processed water outlet hole images;

[0030] S44, performing inter-hole impurity identification on each of the processed water outlet hole images to obtain inter-hole impurity data of each of the processed water outlet hole images;

[0031] S45, performing a water outlet clogging analysis on the first processed image set according to the pore spacing data corresponding to each of the processed water outlet pore images and the inter-pore impurity data of each of the processed water outlet pore images, to obtain clogging analysis data;

[0032] S46: performing showerhead defect identification on the first processed image set based on the blockage analysis data to obtain the defect detection result.

[0033] In the present invention, step S105 includes:

[0034] S51a, inputting the second processed image set into the water discharge performance analysis model to perform water flow line detection to obtain a plurality of water flow line diagrams;

[0035] S52a, performing water outlet uniformity analysis on the second processed image set based on a plurality of water flow line diagrams to obtain a water outlet uniformity analysis result;

[0036] S53a, performing water flow distribution area analysis on the second processed image set based on a plurality of water flow line diagrams to obtain a water flow distribution area;

[0037] S54a, performing water flow spray angle analysis on the second processed image set based on a plurality of water flow line graphs to obtain spray angle data;

[0038] S55a, performing water outlet performance analysis based on the water outlet uniformity analysis result, the water flow distribution area and the injection angle data to obtain a water outlet performance identification result.

[0039] In the present invention, step S105 includes:

[0040] S51b, performing standardization processing on the defect detection result to obtain a first standardized result;

[0041] S52b, performing standardization processing on the water output performance identification result to obtain a second standardized result;

[0042] S53b, performing data synchronization on the first standardization result and the second standardization result to obtain a synchronization result;

[0043] S54b, splitting the synchronization result into data pairs to obtain multiple data pairs;

[0044] S55b, performing defect feature fusion on the plurality of data pairs to obtain the defect fusion feature.

[0045] In the present invention, step S106 includes:

[0046] S61, performing defect data matching on the defect fusion feature to obtain target defect data;

[0047] S62, traversing the target defect data to obtain defect type, defect location, defect degree and injection index data;

[0048] S63, generating a defect report according to the defect type, the defect location, the defect degree and the injection index data to obtain the shower defect analysis report;

[0049] S64: Transmit the shower defect analysis report to the defect alarm terminal.

[0050] The present invention also provides a shower head component defect detection system based on machine vision, comprising:

[0051] An acquisition module is used to acquire images of the shower head to be inspected through a preset image acquisition device based on a nine-point calibration method to obtain a static image set of the shower head;

[0052] A test module, used to perform a water injection test on the shower to be tested, and at the same time, to collect water outlet images of the shower to be tested in real time to obtain a water outlet image set;

[0053] A processing module, used for performing image preprocessing on the shower static image set and the water outlet image set to obtain a first processed image set corresponding to the shower static image set and a second processed image set corresponding to the water outlet image set;

[0054] A detection module, used to perform showerhead defect detection on the first processed image set to obtain a defect detection result;

[0055] an analysis module, configured to input the second processed image set into a preset water discharge performance analysis model to perform water discharge performance analysis to obtain a water discharge performance recognition result; and to perform defect feature fusion on the defect detection result and the water discharge performance recognition result to obtain a defect fusion feature;

[0056] A generation module is used to generate a shower defect analysis report based on the defect fusion feature, and transmit the shower defect analysis report to a preset defect alarm terminal.

[0057] Compared with the prior art, the present invention has the following beneficial effects:

[0058] The technical solution provided by the present invention can significantly improve the efficiency and accuracy of shower product quality inspection, reduce the inspection errors caused by human factors, and ensure that each product meets high quality standards. By adopting advanced image acquisition technology and intelligent analysis algorithms, the method can automatically complete the inspection of shower parts, not only can it identify tiny defects such as cracks, scratches, pore blockage, etc., but also can comprehensively evaluate the water output performance of the shower, including water output uniformity, spray force and water output. This automated inspection process greatly reduces labor costs, improves the efficiency of inspection work, and makes quality control in mass production more reliable and efficient. In addition, the method ensures the accuracy of image acquisition through the nine-point calibration method, improves the image quality through the preprocessing algorithm, and thus improves the accuracy of defect detection and water output performance analysis. Through defect feature fusion technology, the method can comprehensively consider the relationship between the physical defects of components and water output performance, generate a comprehensive defect analysis report, and provide scientific data support for quality control and subsequent improvements in the production process. Ultimately, by transmitting the defect analysis report to the preset defect alarm terminal, it can ensure that relevant quality management personnel can obtain the test results in a timely manner, respond quickly, and take corresponding improvement measures. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0060] Figure 1 The figure is a flow chart of a method for detecting shower head component defects based on machine vision in an embodiment of the present invention.

[0061] Figure 2 The flowchart is a flowchart of image preprocessing of a shower static image set and a water outlet image set in an embodiment of the present invention.

[0062] Figure 3 Schematic diagram of a shower head component defect detection system based on machine vision in an embodiment of the present invention.

[0063] Reference numerals:

[0064] 301, acquisition module; 302, test module; 303, processing module; 304, detection module; 305, analysis module; 306, generation module. DETAILED DESCRIPTION

[0065] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0066] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0067] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0068] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , Figure 1 is a flow chart of a method for detecting shower head parts defects based on machine vision according to an embodiment of the present invention. Figure 1 As shown, the following steps are included:

[0069] S101, based on the nine-point calibration method, using a preset image acquisition device to acquire images of the shower head to be detected, to obtain a static image set of the shower head;

[0070] S102, performing a water injection test on the shower head to be tested, and at the same time, collecting water outlet images of the shower head to be tested in real time to obtain a water outlet image set;

[0071] S103, performing image preprocessing on the static image set of the shower and the water outlet image set to obtain a first processed image set corresponding to the static image set of the shower and a second processed image set corresponding to the water outlet image set;

[0072] S104, performing showerhead defect detection on the first processed image set to obtain a defect detection result;

[0073] S105, inputting the second processed image set into a preset water discharge performance analysis model to perform water discharge performance analysis to obtain a water discharge performance recognition result; performing defect feature fusion on the defect detection result and the water discharge performance recognition result to obtain a defect fusion feature;

[0074] S106: Generate a shower defect analysis report based on the defect fusion feature, and transmit the shower defect analysis report to a preset defect alarm terminal.

[0075] It should be noted that, first of all, a preset image acquisition device needs to be set up to acquire images of the shower to be inspected. These static images will become the basis for analysis. For example, when it is necessary to detect whether there is a defect in the nozzle of the shower, the preset image acquisition device can be used to shoot the shower to obtain its static image set. These images will contain images of the shower at various angles and locations, providing sufficient data support for subsequent defect detection.

[0076] Secondly, it is necessary to perform a water injection test on the shower to be inspected and collect water output images in real time. This step is to obtain image data of the shower in its actual working state in order to further analyze the water output performance of the shower. For example, when performing nozzle defect detection, a water injection test can be performed and water output images can be collected in real time to ensure that the detection results are consistent with actual usage. Next, image preprocessing is performed on the collected static image set and water output image set. This includes operations such as image denoising, grayscale processing, and edge detection to improve the accuracy and efficiency of subsequent processing. For example, edge detection can be performed on the static image set to ensure that the edge contour of the shower can be accurately identified during the defect detection process.

[0077] Subsequently, the preprocessed image set is processed to obtain a first processed image set and a second processed image set, respectively. The first processed image set is used for shower defect detection, while the second processed image set is used for water outlet performance analysis. For example, when performing nozzle defect detection, the first processed image set can be used to detect whether the nozzle has defects such as cracks or blockages, while the second processed image set can be input into the water outlet performance analysis model to analyze whether the water spraying effect of the shower meets the standard. In terms of shower defect detection, the first processed image set is used to perform defect detection to obtain defect detection results. For example, by analyzing the image of the nozzle, it can be detected whether there are defects such as abnormal shape or water leakage.

[0078] At the same time, the second processed image set is also used to input the water outlet performance analysis model to perform water outlet performance analysis and obtain water outlet performance recognition results. For example, the model can be used to analyze parameters such as the water outlet speed and uniformity of the shower to evaluate whether the water outlet performance of the shower is qualified.

[0079] Next, the defect detection results and the water performance identification results are fused into defect features to obtain defect fusion features. This step is to comprehensively consider the various performance indicators of the shower head and evaluate its quality status more comprehensively. For example, if there is a defect in the nozzle that causes uneven water discharge, this information can be combined with the detection result of the abnormal nozzle shape to form a comprehensive defect feature. Finally, a shower defect analysis report is generated based on the defect fusion feature and transmitted to the preset defect alarm terminal. This report will include the defect status of the shower head, the water performance analysis results, and the corresponding suggestions or treatment opinions. For example, if the shower head has serious defects that affect the use effect, the report will recommend replacement or repair and provide corresponding solutions.

[0080] By executing the above steps, the efficiency and accuracy of shower product quality inspection can be significantly improved, the inspection errors caused by human factors can be reduced, and each product can be ensured to meet high quality standards. By adopting advanced image acquisition technology and intelligent analysis algorithms, this method can automatically complete the inspection of shower parts, not only identifying tiny defects such as cracks, scratches, pore blockage, etc., but also comprehensively evaluating the water output performance of the shower, including water output uniformity, jet force and water output. This automated inspection process greatly reduces labor costs and improves the efficiency of inspection work, making quality control in mass production more reliable and efficient. In addition, this method ensures the accuracy of image acquisition through the nine-point calibration method, improves image quality through the preprocessing algorithm, and thus improves the accuracy of defect detection and water output performance analysis. Through defect feature fusion technology, this method can comprehensively consider the relationship between physical defects of components and water output performance, generate a comprehensive defect analysis report, and provide scientific data support for quality control and subsequent improvements in the production process. Ultimately, by transmitting the defect analysis report to the preset defect alarm terminal, it can ensure that relevant quality management personnel can obtain the test results in a timely manner, respond quickly, and take corresponding improvement measures.

[0081] In a specific embodiment, the process of executing step S101 may specifically include the following steps:

[0082] S11, placing the shower head to be inspected in a preset plane area, and illuminating the shower head to be inspected through the LED array light source of the image acquisition device;

[0083] S12, calibrating the camera angle of the image acquisition device based on a nine-point calibration method to obtain camera angle data;

[0084] S13, calibrating the camera position of the image acquisition device based on a nine-point calibration method to obtain camera position data;

[0085] S14, calibrating the camera position of the image acquisition device using the camera angle data and the camera position data;

[0086] S15, collecting images of the shower head to be inspected by an image collection device to obtain an initial image set;

[0087] S16, screening the initial image set for effective images to obtain a shower static image set.

[0088] Specifically, for example, when a defect detection is required for a shower nozzle, placing the shower on a flat area can ensure that the position and angle of the nozzle are relatively stable, which is conducive to obtaining a clear image.

[0089] When illuminating the shower to be inspected, it is very effective to use the LED array light source of the image acquisition device for illumination. Such a light source can provide uniform light, which helps to reduce shadows and reflections in the image and improve the image quality. For example, when taking an image of a shower, the LED array light source can ensure uniform light on the shower surface, which is conducive to subsequent image processing and analysis.

[0090] Calibration of the camera angle and position of the image acquisition device based on the nine-point calibration method is a key step to ensure the accuracy and reliability of image acquisition. By accurately calibrating the camera angle and position, accurate camera parameters can be obtained, thereby ensuring the accuracy of subsequent image acquisition and processing. For example, by calibrating the camera using the nine-point calibration method, the distortion parameters and internal and external parameters of the camera can be accurately obtained, so that the image of the shower can be captured more accurately.

[0091] When implementing camera position calibration, the camera position data can be accurately determined by using the nine-point calibration method. Such a calibration process can ensure that the position of the image acquisition device relative to the shower to be detected is fixed, thereby ensuring the accuracy and reliability of subsequent image acquisition. For example, by calibrating the camera position, it can be ensured that the distance and angle between the camera and the shower are fixed, which is conducive to subsequent image acquisition and analysis.

[0092] By collecting images of the shower head to be inspected and performing effective image screening on the initial image set, a static image set of the shower head can be obtained. This step is to ensure that the collected images are of high quality and can provide reliable data support for subsequent defect detection and analysis. For example, when screening images, blurred, poorly lit, or angled images can be excluded to ensure that the final static image set is of high quality and can meet the needs of subsequent analysis.

[0093] In a specific embodiment, if Figure 2 As shown, the process of executing step S103 may specifically include the following steps:

[0094] S31, collecting real-time light intensity data, and at the same time, extracting camera parameters of the image acquisition device to obtain a camera parameter set;

[0095] S32, performing data fusion on the illumination intensity data and the camera parameter set to obtain fused parameter data;

[0096] S33, obtaining a target filtering algorithm based on the fusion parameter data matching data filtering algorithm;

[0097] S34, performing image denoising on the static image of the shower head by using a target filtering algorithm to obtain a first processed image set;

[0098] S35, performing water flow region segmentation on the water outflow image set to obtain a water flow region image set;

[0099] S36, performing contrast enhancement on the water flow area image set to obtain a second processed image set.

[0100] It should be noted that, for example, when collecting shower images in real time, by collecting real-time light intensity data, we can understand whether the light conditions in the current environment are bright enough and whether additional lighting equipment is needed. At the same time, by extracting camera parameters, we can obtain parameters such as camera exposure time and aperture size, which is helpful for the accuracy and effect of subsequent image processing.

[0101] Next, the light intensity data and the camera parameter set are fused to obtain fused parameter data. This step can help to more fully understand the environmental factors in the image acquisition process and provide a more accurate reference for subsequent image processing. For example, by fusing the light intensity data and the camera parameter set, the lighting conditions in the image acquisition process can be more accurately evaluated, and the image can be adjusted and processed according to the actual situation.

[0102] Based on the fusion parameter data, the matched data filtering algorithm can be used to obtain the target filtering algorithm. This algorithm can help better deal with the noise and interference in the image and improve the clarity and quality of the image. For example, when processing a static image of a shower head, by applying the target filtering algorithm, the noise and spots in the image can be effectively removed to obtain a clearer and more accurate image.

[0103] By performing image denoising on the static image of the shower head through the target filtering algorithm, the first processed image set can be obtained. This image set will serve as the basis for subsequent defect detection and can provide high-quality image data support for the detection algorithm. For example, when it is necessary to detect defects such as cracks or blockages in the shower nozzle, the first processed image set will provide clear, noise-free images, which will help to accurately analyze and identify potential defects.

[0104] At the same time, the water flow region is segmented on the water outflow image set to obtain a water flow region image set. This step is to better analyze the water outflow performance of the shower and provide data support for subsequent performance analysis. For example, by performing water flow region segmentation on the water outflow image, the water flow can be distinguished from the background, which helps to accurately evaluate the water outflow of the shower.

[0105] Finally, the contrast of the water flow area image set is enhanced to obtain the second processed image set. This image set will be used for water discharge performance analysis, which will help to more comprehensively evaluate the water discharge of the shower. For example, by enhancing the contrast of the water flow area image, the details and characteristics of the water flow can be observed more clearly, thereby more accurately analyzing the water discharge performance of the shower.

[0106] In a specific embodiment, the process of executing step S104 may specifically include the following steps:

[0107] S41, performing showerhead water hole segmentation on the first processed image set to obtain a plurality of showerhead water hole images;

[0108] S42, performing image halo elimination on a plurality of showerhead water outlet images to obtain a plurality of processed water outlet images;

[0109] S43, performing pore spacing analysis on each processed water outlet image respectively to obtain pore spacing data corresponding to each processed water outlet image;

[0110] S44, performing inter-hole impurity identification on each processed water outlet hole image to obtain inter-hole impurity data of each processed water outlet hole image;

[0111] S45, performing a water outlet clogging analysis on the first processed image set according to the pore spacing data corresponding to each processed water outlet image and the inter-pore impurity data of each processed water outlet image, to obtain clogging analysis data;

[0112] S46. Perform showerhead defect recognition on the first processed image set based on the blockage analysis data to obtain a defect detection result.

[0113] Specifically, for example, when it is necessary to detect whether a showerhead water hole is blocked or damaged, the water hole needs to be segmented from the showerhead image first, and then further analyzed and identified.

[0114] After the water holes are segmented, the image halo removal is performed on each shower hole image to eliminate the halo phenomenon that may exist in the image and improve the image clarity and quality. For example, when analyzing the shower hole image, if there is a halo phenomenon in the image, it may affect the analysis of the shape and details of the water hole, so halo removal processing is required to ensure image clarity.

[0115] Subsequently, the pore spacing analysis is performed on each processed water outlet image to obtain the pore spacing data corresponding to each processed water outlet image. This step is to analyze the distance between the shower outlet holes to evaluate the uniformity and stability of the shower water discharge. For example, by performing pore spacing analysis on the shower outlet image, it can be understood whether the distance between the shower outlet holes is uniform or whether there is any abnormality.

[0116] At the same time, the impurities between holes are identified for each processed water outlet image to obtain the impurity data between holes for each processed water outlet image. This step is to analyze whether there are impurities or blockages in the shower outlet to evaluate the cleanliness and smoothness of the shower outlet. For example, by identifying impurities between holes in the shower outlet image, it can be detected whether impurities or dirt block the outlet, thereby affecting the normal use of the shower.

[0117] Based on the pore spacing data and the impurity data between the holes, the first processed image set is analyzed for water outlet blockage. This analysis will help evaluate whether the showerhead water outlet is blocked or abnormal, and further processing and repair will be performed accordingly. For example, by analyzing the spacing data and impurity conditions of the water outlet, it can be determined whether the water outlet is blocked or damaged, and a corresponding repair plan can be formulated accordingly.

[0118] Finally, based on the blockage analysis data, the first processed image set is used to identify shower defects and obtain defect detection results. This step is to comprehensively consider the situation of the water outlet and identify possible shower defects. For example, by analyzing the blockage situation and morphological characteristics of the water outlet, it can be determined whether the shower has defects such as poor water flow or uneven water flow.

[0119] In a specific embodiment, the process of executing step S105 may specifically include the following steps:

[0120] S51a, inputting the second processed image set into the water performance analysis model to perform water flow line detection, and obtaining a plurality of water flow line diagrams;

[0121] S52a, performing water outlet uniformity analysis on the second processed image set based on the multiple water flow line diagrams to obtain a water outlet uniformity analysis result;

[0122] S53a, performing water flow distribution area analysis on the second processed image set based on a plurality of water flow line graphs to obtain a water flow distribution area;

[0123] S54a, performing water flow spray angle analysis on the second processed image set based on a plurality of water flow line graphs to obtain spray angle data;

[0124] S55a, performing water discharge performance analysis based on the water discharge uniformity analysis results, water flow distribution area, and injection angle data to obtain water discharge performance identification results.

[0125] Specifically, the distribution of water flow lines is detected to determine whether the water flow is uniform. By performing a water flow uniformity analysis on the second processed image set based on multiple water flow line graphs, a water flow uniformity analysis result can be obtained to further evaluate the water flow of the shower. For example, if the water flow lines are evenly distributed, the water flow uniformity analysis result may show that the water is relatively uniform; conversely, if the water flow lines are unevenly distributed, the water flow uniformity analysis result may show that the water is uneven.

[0126] The purpose of analyzing the water flow distribution area based on multiple water flow line graphs is to further understand the spatial distribution characteristics of the water discharge of the shower. By analyzing the distribution area of ​​the water flow lines, the coverage and distribution of the water discharge can be determined. For example, when it is necessary to evaluate the water discharge range of the shower, the water flow distribution area can be analyzed to understand whether the distribution range of the water flow meets the design requirements. The purpose of analyzing the water flow spray angle based on multiple water flow line graphs is to evaluate the water discharge angle of the shower. By analyzing the angle of the water flow lines, the spray direction and angle of the water flow can be understood. For example, when it is necessary to evaluate whether the water spray angle of the shower is correct, the water flow spray angle can be analyzed to determine whether the spray direction of the water flow meets the design requirements.

[0127] By analyzing the water discharge performance through the water discharge uniformity analysis results, water flow distribution area, and spray angle data, the water discharge of the shower can be comprehensively evaluated and the water discharge performance identification results can be obtained. For example, if the water discharge uniformity is good, the water flow distribution range is moderate, and the spray angle meets the design requirements, the water discharge performance identification results may show good water performance; conversely, if the water discharge uniformity is poor, the water flow distribution is uneven, and the spray angle deviates from the design requirements, the water discharge performance identification results may show poor water performance.

[0128] In a specific embodiment, the process of executing step S105 may specifically include the following steps:

[0129] S51b, performing standardization processing on the defect detection result to obtain a first standardized result;

[0130] S52b, performing standardization processing on the water output performance identification result to obtain a second standardized result;

[0131] S53b, performing data synchronization on the first standardization result and the second standardization result to obtain a synchronization result;

[0132] S54b, splitting the synchronization result into data pairs to obtain multiple data pairs;

[0133] S55b, perform defect feature fusion on multiple data pairs to obtain defect fusion features.

[0134] Specifically, first, the defect detection results are standardized, and different types of defect results can be unified into the same quantitative index, which is convenient for subsequent comparison and analysis. For example, if the defect detection results include multiple different types of defects such as cracks and blockages, standardization can convert them into a unified defect index, such as the severity of the defect or the number of defects.

[0135] Similarly, standardizing the water discharge performance identification results can convert different performance identification results into a unified metric for subsequent comparison and analysis. For example, if the water discharge performance identification results include multiple indicators such as water discharge uniformity, water discharge range, and spray angle, standardizing them can convert them into a unified performance score or performance level to facilitate subsequent data analysis and comparison.

[0136] Next, the first standardized result and the second standardized result are synchronized in order to correlate and compare the defect detection results and the water output performance identification results. By synchronizing the standardized results of the two, we can better understand the relationship between defects and water output performance, thereby providing a basis for subsequent defect analysis and performance improvement. For example, if a shower head component has a serious defect, it may lead to poor water output performance. By synchronizing the data of the two, we can find the correlation between the defect and performance and formulate corresponding improvement measures accordingly.

[0137] Furthermore, the purpose of splitting the synchronization results into data pairs is to decompose the overall data results into multiple data pairs for more detailed defect feature fusion. By analyzing the data pairs, the defect features in each data pair can be more accurately evaluated, and the defect fusion features can be extracted and analyzed accordingly. For example, if the data pairs include indicators such as defect severity and water uniformity, the key features that affect defects and performance can be extracted by analyzing them, thereby providing a basis for subsequent comprehensive analysis and decision-making.

[0138] In a specific embodiment, the process of executing step S106 may specifically include the following steps:

[0139] S61, performing defect data matching on the defect fusion feature to obtain target defect data;

[0140] S62, traversing the target defect data to obtain defect type, defect location, defect degree and injection index data;

[0141] S63, generating a defect report according to the defect type, defect location, defect degree and injection index data to obtain a shower defect analysis report;

[0142] S64, transmitting the shower defect analysis report to the defect alarm terminal.

[0143] It should be noted that by matching the defect fusion features with the known defect database, the target defect data can be determined, that is, the specific defect type, location and degree can be identified. For example, when a crack is detected on a shower head component and the location and degree of the crack are determined by the defect fusion features, these features can be matched with the existing crack defect data to confirm the target defect data.

[0144] Next, the target defect data is traversed to obtain the defect type, defect location, defect degree and injection index data. By traversing the target defect data, the type, location and degree of each defect and the related injection index data can be analyzed one by one. For example, if the target defect data includes crack-type defects, the specific location, size and depth of the crack can be determined, and its impact on the shower spray performance can be evaluated accordingly.

[0145] According to the defect type, defect location, defect degree and injection index data, a defect report is generated to obtain a shower defect analysis report. When generating a defect report, a detailed defect analysis report can be compiled in combination with the defect type, location and degree, as well as the related injection index data. For example, if there is a crack defect on a shower component, the report can describe the specific location, size and depth of the crack, as well as the impact of the crack on the injection performance, and put forward corresponding maintenance suggestions or improvement measures.

[0146] Finally, the shower defect analysis report is transmitted to the defect alarm terminal. By transmitting the defect analysis report to the defect alarm terminal, relevant personnel or departments can be notified in a timely manner so that they can take appropriate measures to repair or improve. For example, if there are serious defects in the shower parts that affect the safety or effect of use, the alarm terminal can issue an alarm in time to notify relevant personnel to repair or replace it.

[0147] The embodiment of the present invention also provides a shower head component defect detection system based on machine vision, such as Figure 3 As shown, the shower head component defect detection system based on machine vision specifically includes:

[0148] The acquisition module 301 is used to acquire images of the shower to be detected by a preset image acquisition device based on a nine-point calibration method to obtain a static image set of the shower;

[0149] The testing module 302 is used to perform a water filling test on the shower to be tested, and at the same time, collect the water outlet image of the shower to be tested in real time to obtain a water outlet image set;

[0150] A processing module 303 is used to perform image preprocessing on the static image set of the shower and the water outlet image set to obtain a first processed image set corresponding to the static image set of the shower and a second processed image set corresponding to the water outlet image set;

[0151] A detection module 304 is used to perform shower defect detection on the first processed image set to obtain a defect detection result;

[0152] The analysis module 305 is used to input the second processed image set into a preset water discharge performance analysis model to perform water discharge performance analysis to obtain a water discharge performance recognition result; perform defect feature fusion on the defect detection result and the water discharge performance recognition result to obtain a defect fusion feature;

[0153] The generation module 306 is used to generate a shower defect analysis report based on the defect fusion feature, and transmit the shower defect analysis report to a preset defect alarm terminal.

[0154] Through the collaborative work of the above modules, the efficiency and accuracy of shower product quality inspection can be significantly improved, the inspection errors caused by human factors can be reduced, and each product can be ensured to meet high quality standards. By adopting advanced image acquisition technology and intelligent analysis algorithms, this method can automatically complete the inspection of shower parts, not only identifying tiny defects such as cracks, scratches, pore blockage, etc., but also comprehensively evaluating the water output performance of the shower, including water output uniformity, jet force and water output. This automated inspection process greatly reduces labor costs, improves the efficiency of inspection work, and makes quality control in mass production more reliable and efficient. In addition, this method ensures the accuracy of image acquisition through the nine-point calibration method, improves image quality through the preprocessing algorithm, and thus improves the accuracy of defect detection and water output performance analysis. Through defect feature fusion technology, this method can comprehensively consider the relationship between physical defects of components and water output performance, generate a comprehensive defect analysis report, and provide scientific data support for quality control and subsequent improvements in the production process. Ultimately, by transmitting the defect analysis report to the preset defect alarm terminal, it can ensure that relevant quality management personnel can obtain the test results in a timely manner, respond quickly, and take corresponding improvement measures.

[0155] The above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit the same. Although the present invention has been described in detail with reference to the embodiments, a person skilled in the art should understand that the specific implementation modes of the present invention can still be modified or replaced by equivalents, and any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be included in the scope of the claims of the present invention.

Claims

1. A shower head component defect detection method based on machine vision, characterized in that: include: S101, based on the nine-point calibration method, using a preset image acquisition device to acquire images of the shower head to be detected, to obtain a static image set of the shower head; S102, performing a water injection test on the shower head to be tested, and at the same time, collecting water outlet images of the shower head to be tested in real time to obtain a water outlet image set; S103, performing image preprocessing on the shower static image set and the water outlet image set to obtain a first processed image set corresponding to the shower static image set and a second processed image set corresponding to the water outlet image set; S104, performing shower defect detection on the first processed image set to obtain a defect detection result, including: performing shower outlet segmentation on the first processed image set to obtain a plurality of shower outlet images; performing image halo elimination on the plurality of shower outlet images to obtain a plurality of processed outlet images; performing pore spacing analysis on each of the processed outlet images to obtain pore spacing data corresponding to each of the processed outlet images; performing inter-hole impurity identification on each of the processed outlet images to obtain inter-hole impurity data of each of the processed outlet images; performing outlet blockage analysis on the first processed image set based on the pore spacing data corresponding to each of the processed outlet images and the inter-hole impurity data of each of the processed outlet images to obtain blockage analysis data; performing shower defect identification on the first processed image set based on the blockage analysis data to obtain the defect detection result; S105, inputting the second processed image set into a preset water outlet performance analysis model to perform water outlet performance analysis and obtain water outlet performance recognition results, including: inputting the second processed image set into the water outlet performance analysis model to perform water flow line detection and obtain multiple water flow line diagrams; performing water outlet uniformity analysis on the second processed image set based on the multiple water flow line diagrams to obtain water outlet uniformity analysis results; performing water flow distribution area analysis on the second processed image set based on the multiple water flow line diagrams to obtain water flow distribution areas; performing water flow injection angle analysis on the second processed image set based on the multiple water flow line diagrams to obtain injection angle data; and obtaining injection angle data through the water outlet uniformity analysis results. The method comprises: performing a water discharge performance analysis on the defect detection result, the water flow distribution area and the injection angle data to obtain a water discharge performance identification result; performing defect feature fusion on the defect detection result and the water discharge performance identification result to obtain a defect fusion feature, including: performing a standardization process on the defect detection result to obtain a first standardization result; performing a standardization process on the water discharge performance identification result to obtain a second standardization result; performing data synchronization on the first standardization result and the second standardization result to obtain a synchronization result; performing data pair splitting on the synchronization result to obtain multiple data pairs; performing defect feature fusion on multiple data pairs to obtain the defect fusion feature; S106: Generate a shower defect analysis report based on the defect fusion feature, and transmit the shower defect analysis report to a preset defect alarm terminal.

2. The method for detecting shower head parts defects based on machine vision according to claim 1, characterized in that: Step S101 includes: S11, placing the shower head to be detected in a preset plane area, and illuminating the shower head to be detected by the LED array light source of the image acquisition device; S12, calibrating the camera angle of the image acquisition device based on the nine-point calibration method to obtain camera angle data; S13, based on the nine-point calibration method, calibrating the camera position of the image acquisition device to obtain camera position data; S14, calibrating the camera position of the image acquisition device using the camera angle data and the camera position data; S15, collecting images of the shower head to be detected by the image collection device to obtain an initial image set; S16: Screening the initial image set for effective images to obtain the shower static image set.

3. The method for detecting shower head parts defects based on machine vision according to claim 2, characterized in that: Step S103 includes: S31, collecting real-time light intensity data, and at the same time, extracting camera parameters of the image acquisition device to obtain a camera parameter set; S32, performing data fusion on the illumination intensity data and the camera parameter set to obtain fused parameter data; S33, obtaining a target filtering algorithm based on the fusion parameter data matching data filtering algorithm; S34, performing image denoising on the static image of the shower head by using the target filtering algorithm to obtain the first processed image set; S35, performing water flow region segmentation on the water outlet image set to obtain a water flow region image set; S36. Perform contrast enhancement on the water flow area image set to obtain the second processed image set.

4. The method for detecting shower head parts defects based on machine vision according to claim 3, characterized in that: Step S106 includes: S61, performing defect data matching on the defect fusion feature to obtain target defect data; S62, traversing the target defect data to obtain defect type, defect location, defect degree and injection index data; S63, generating a defect report according to the defect type, the defect location, the defect degree and the injection index data to obtain the shower defect analysis report; S64: Transmit the shower defect analysis report to the defect alarm terminal.

5. A shower head component defect detection system based on machine vision, used to execute the shower head component defect detection method based on machine vision according to any one of claims 1 to 4, characterized in that: include: An acquisition module is used to acquire images of the shower head to be inspected through a preset image acquisition device based on a nine-point calibration method to obtain a static image set of the shower head; A test module, used to perform a water injection test on the shower to be tested, and at the same time, to collect water outlet images of the shower to be tested in real time to obtain a water outlet image set; A processing module, used for performing image preprocessing on the shower static image set and the water outlet image set to obtain a first processed image set corresponding to the shower static image set and a second processed image set corresponding to the water outlet image set; The detection module is used to perform shower defect detection on the first processed image set to obtain a defect detection result, including: performing shower outlet segmentation on the first processed image set to obtain a plurality of shower outlet images; performing image halo elimination on the plurality of shower outlet images to obtain a plurality of processed outlet images; performing pore spacing analysis on each of the processed outlet images to obtain pore spacing data corresponding to each of the processed outlet images; performing inter-hole impurity identification on each of the processed outlet images to obtain inter-hole impurity data of each of the processed outlet images; performing outlet blockage analysis on the first processed image set based on the pore spacing data corresponding to each of the processed outlet images and the inter-hole impurity data of each of the processed outlet images to obtain blockage analysis data; performing shower defect identification on the first processed image set based on the blockage analysis data to obtain the defect detection result; The analysis module inputs the second processed image set into a preset water outlet performance analysis model to perform water outlet performance analysis to obtain a water outlet performance recognition result, including: inputting the second processed image set into the water outlet performance analysis model to perform water flow line detection to obtain a plurality of water flow line graphs; performing water outlet uniformity analysis on the second processed image set based on the plurality of water flow line graphs to obtain a water outlet uniformity analysis result; performing water flow distribution area analysis on the second processed image set based on the plurality of water flow line graphs to obtain a water flow distribution area; performing water flow injection angle analysis on the second processed image set based on the plurality of water flow line graphs to obtain injection angle data; and performing water outlet uniformity analysis on the second processed image set based on the plurality of water flow line graphs to obtain injection angle data. The method comprises: performing a water discharge performance analysis on the defect detection result, the water flow distribution area and the injection angle data to obtain a water discharge performance identification result; performing defect feature fusion on the defect detection result and the water discharge performance identification result to obtain a defect fusion feature, including: performing a standardization process on the defect detection result to obtain a first standardization result; performing a standardization process on the water discharge performance identification result to obtain a second standardization result; performing data synchronization on the first standardization result and the second standardization result to obtain a synchronization result; performing data pair splitting on the synchronization result to obtain multiple data pairs; performing defect feature fusion on multiple data pairs to obtain the defect fusion feature; A generation module is used to generate a shower defect analysis report based on the defect fusion feature, and transmit the shower defect analysis report to a preset defect alarm terminal.