Method for detecting cosmetic defects of a refrigeration appliance, controller, refrigeration appliance and medium

By combining a multi-stage defect detection model and a post-processing algorithm, the problem of accuracy in detecting appearance defects in refrigeration equipment under complex environments has been solved, achieving more efficient and accurate defect detection.

CN123181291APending Publication Date: 2026-11-27HEFEI HUALING CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510694754.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for detecting surface defects in refrigeration equipment are susceptible to fluctuations in ambient light and material differences under complex operating conditions, making it difficult to adapt to the flexibility and mixed-flow production of refrigeration equipment production lines. Consequently, the detection efficiency and accuracy cannot meet dynamic requirements.

Method used

Multiple defect detection models at different stages are used to analyze the images of refrigeration equipment to be inspected, including single-stage, multi-stage and three-stage defect detection models. The detection results are then fused together with post-processing algorithms to reduce the false detection rate and the missed detection rate.

Benefits of technology

It improves the robustness and generalization of appearance defect detection for refrigeration equipment, reduces false detection and false negative rates, and meets the detection needs of flexible and mixed-flow production lines for refrigeration equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181291A_ABST
    Figure CN123181291A_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a kind of appearance defect detection method of refrigeration equipment, controller, refrigeration equipment and medium, method includes: obtaining the image to be detected that has the refrigeration equipment is shot, the image to be detected is input to multiple defect detection models respectively, wherein multiple defect detection models include at least two different stages of defect detection model;For each defect detection model, the corresponding defect detection result is output by the defect detection model;Multiple defect detection results are fused, and the final defect identification result of the refrigeration equipment is obtained.The embodiment of the application is based on multiple defect detection models, gradually narrow the image area input to defect detection network, reduce environmental noise interference, enhance the robustness and generalization of algorithm in complex environment, and integrate each stage model output by fusion algorithm, reduce the false detection rate and the missed detection rate of defect identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of refrigeration equipment technology, and in particular to a method for detecting appearance defects in refrigeration equipment, a controller, refrigeration equipment, and a medium. Background Technology

[0002] In related technologies, although machine vision technology has been gradually applied to the field of defect detection, making up for the shortcomings of manual inspection to a certain extent, the recognition accuracy of existing solutions is easily affected by factors such as fluctuations in ambient light and differences in the surface material of the object being inspected, and the performance degrades significantly, especially under complex working conditions. At the same time, in the face of the new mode of flexible and mixed-flow production of refrigeration equipment production lines, existing algorithms are difficult to quickly adapt to the appearance features of different models, resulting in the detection efficiency and accuracy failing to meet the dynamic needs of the production line. Summary of the Invention

[0003] This application aims to address at least one of the technical problems existing in the prior art. To this end, this application proposes a method, controller, refrigeration equipment, and medium for detecting appearance defects in refrigeration equipment, aiming to reduce the false detection rate and false negative rate of defect identification.

[0004] In a first aspect, embodiments of this application provide a method for detecting appearance defects in refrigeration equipment, the method comprising:

[0005] A test image of the refrigeration equipment is acquired and input into multiple defect detection models, wherein the multiple defect detection models include at least two different stages of defect detection models;

[0006] For each defect detection model, the corresponding defect detection result is output through the defect detection model;

[0007] The multiple defect detection results are fused together to obtain the final defect identification result of the refrigeration equipment.

[0008] According to some embodiments of this application, the plurality of defect detection models include a single-stage defect detection model; the step of outputting a corresponding defect detection result through the defect detection model for each defect detection model includes:

[0009] For the single-stage defect detection model, the single-stage defect detection result is output through the single-stage defect detection model.

[0010] According to some embodiments of this application, the single-stage defect detection model includes a first equipment defect detection network; the step of outputting single-stage defect detection results through the single-stage defect detection model includes:

[0011] The image to be detected is input into the first device defect detection network, and the single-stage defect detection result is output through the first device defect detection network.

[0012] According to some embodiments of this application, the plurality of defect detection models include a multi-stage defect detection model; the step of outputting a corresponding defect detection result through the defect detection model for each defect detection model includes:

[0013] For the multi-stage defect detection model, the multi-stage defect detection results are output through the multi-stage defect detection model.

[0014] According to some embodiments of this application, the multi-stage defect detection model includes a two-stage defect detection model, which includes a second device detection network and a second device defect detection network; the step of outputting multi-stage defect detection results through the multi-stage defect detection model includes:

[0015] For the two-stage defect detection model, the image to be detected is input into the second device detection network, and the device image is output through the second device detection network;

[0016] The device image is input into the second device defect detection network, and the second device defect detection network outputs the two-stage defect detection results.

[0017] According to some embodiments of this application, the multi-stage defect detection model includes a three-stage defect detection model, which includes a third device detection network, a third defect region detection network, and a third device defect detection network; the step of outputting multi-stage defect detection results through the multi-stage defect detection model includes:

[0018] For the three-stage defect detection model, the image to be detected is input into the third device detection network, and the device image is output through the third device detection network;

[0019] The device image is input into the third defect region detection network, and the defect region image is output through the third defect region detection network.

[0020] The defect area image is input into the third device defect detection network, and the third device defect detection network outputs the three-stage defect detection results.

[0021] According to some embodiments of this application, the step of fusing multiple defect detection results to obtain the final defect identification result of the refrigeration equipment includes:

[0022] A post-processing algorithm is used to fuse multiple defect detection results to obtain the final defect identification result of the refrigeration equipment.

[0023] According to some embodiments of this application, after obtaining the final defect identification result of the refrigeration equipment, the method further includes:

[0024] The final defect identification result is displayed, wherein the final defect identification result includes at least one of the following: device body image, defect location, and defect statistical parameters.

[0025] According to some embodiments of this application, the defect detection model includes a main body, a neck, and a head; the step of outputting the corresponding defect detection result through the defect detection model includes:

[0026] The image to be detected is downsampled through the main part to obtain multiple feature maps of different sizes, including feature maps with a downsampling ratio of less than or equal to 4.

[0027] The neck portion is used to perform feature fusion enhancement on multiple feature maps to obtain multiple fused and enhanced feature maps of different sizes.

[0028] The head portion is used to perform target detection on multiple feature maps of different sizes after fusion and enhancement, and the defect detection results are obtained.

[0029] According to some embodiments of this application, the neck portion includes a parallelized attention module, a stitching module, an upsampling module, a convolution module, and a feature enhancement module. The plurality of feature maps include a first feature map and a second feature map, wherein the size of the second feature map is smaller than the size of the first feature map. The feature fusion enhancement of the plurality of feature maps through the neck portion includes:

[0030] The second feature map is upsampled by the upsampling module to obtain a second feature map with adjusted size, wherein the size of the second feature map with adjusted size is equal to the size of the first feature map;

[0031] The first feature map is subjected to feature extraction and downsampling by the convolution module to obtain a first feature map with adjusted size, wherein the size of the first feature map with adjusted size is equal to the size of the second feature map;

[0032] The stitching module is used to stitch together the first feature map and the second feature map after size adjustment, or the first feature map and the second feature map after size adjustment, to obtain a stitched feature map.

[0033] The parallelized attention module is used to extract and enhance features from the spliced ​​feature map to obtain the target feature map.

[0034] The feature enhancement module is used to extract and enhance features from the spliced ​​feature map to obtain the target feature map.

[0035] Secondly, embodiments of this application provide a system for detecting appearance defects in refrigeration equipment, used to perform the method for detecting appearance defects in refrigeration equipment described in the first aspect; the system for detecting appearance defects in refrigeration equipment includes an image acquisition module, a transmission module, and a calculation module;

[0036] The image acquisition module is used to acquire images of the refrigeration equipment to be inspected; the transmission module is used to transmit the images to be inspected to the calculation module respectively; the calculation module stores multiple defect detection models and is used to output multiple defect detection results through the multiple defect detection models, and to perform fusion processing on the multiple defect detection results to obtain the final defect identification result of the refrigeration equipment.

[0037] According to some embodiments of this application, the appearance defect detection system of the refrigeration equipment further includes a display module, the transmission module is used to transmit the final defect identification result obtained by the calculation module to the display module, and the display module is used to display the final defect identification result.

[0038] Thirdly, embodiments of this application provide a controller, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the appearance defect detection method for the refrigeration device described in the first aspect when running the computer program.

[0039] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions for performing the appearance defect detection method for a refrigeration device as described in the first aspect above.

[0040] Fifthly, embodiments of this application provide a computer program product, including a computer program or computer instructions, characterized in that the computer program or computer instructions are stored in a computer-readable storage medium, a processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, causing the computer device to perform the appearance defect detection method for the refrigeration equipment as described in the first aspect above.

[0041] According to the technical solution of the embodiments of this application, at least the following beneficial effects are achieved: The embodiments of this application first acquire images of the refrigeration equipment to be inspected, and input these images into multiple defect detection models, wherein the multiple defect detection models include at least two different stages of defect detection models; for each defect detection model, a corresponding defect detection result is output; the multiple defect detection results are fused to obtain the final defect identification result of the refrigeration equipment. The embodiments of this application, based on multiple defect detection models, gradually reduce the image region input to the defect detection network, reduce environmental noise interference, enhance the robustness and generalization of the algorithm in complex environments, and integrate the outputs of models at each stage through a fusion algorithm, thereby reducing the false detection rate and false negative rate of defect identification.

[0042] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0043] The accompanying drawings are used to provide a further understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.

[0044] Figure 1 This is a flowchart of a method for detecting appearance defects in a refrigeration device according to an embodiment of this application;

[0045] Figure 2 This is a flowchart illustrating the process of obtaining detection results using a single-stage defect detection model, as provided in one embodiment of this application.

[0046] Figure 3 This is a flowchart of a method for detecting appearance defects in a refrigeration device according to another embodiment of this application;

[0047] Figure 4 This is a flowchart of a method for detecting appearance defects in a refrigeration device according to another embodiment of this application;

[0048] Figure 5 This is an overall flowchart of a method for detecting appearance defects in a refrigeration device according to an embodiment of this application;

[0049] Figure 6 This is a logic diagram of a method for detecting appearance defects in a refrigeration device according to an embodiment of this application;

[0050] Figure 7 This is a structural diagram of a defect detection model provided in one embodiment of this application;

[0051] Figure 8This is a schematic diagram of an appearance defect detection system for a refrigeration device provided in one embodiment of this application;

[0052] Figure 9 This is a schematic diagram of a controller for performing a method for detecting appearance defects in refrigeration equipment, according to an embodiment of this application. Detailed Implementation

[0053] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.

[0054] In the description of this application, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0055] In the description of this application, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.

[0056] In the description of this application, unless otherwise expressly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.

[0057] In some cases, although machine vision technology has been gradually applied to the field of defect detection, making up for the shortcomings of manual inspection to a certain extent, the recognition accuracy of existing solutions is easily affected by factors such as fluctuations in ambient light and differences in the surface material of the object being inspected, and the performance degrades significantly, especially under complex working conditions. At the same time, in the face of the new modes of flexible and mixed-flow production of refrigeration equipment production lines, existing algorithms are difficult to quickly adapt to the appearance features of different models, resulting in the detection efficiency and accuracy failing to meet the dynamic needs of the production line.

[0058] Convolutional Neural Networks (CNNs) are deep learning models specifically designed for processing data with a grid-like structure, such as images and audio. CNNs excel in tasks such as image recognition, object detection, and image segmentation. They extract local features from images through convolutional layers and activation functions, pooling layers reduce the dimensionality of feature maps while retaining important information, and fully connected layers integrate the extracted features to output the final result.

[0059] Recurrent Neural Networks (RNNs) are deep learning models used to process sequential data. Unlike traditional feedforward neural networks, RNNs have memory capabilities, enabling them to capture temporal dependencies in sequential data. This characteristic makes RNNs particularly suitable for tasks such as Natural Language Processing (NLP), time series prediction, and speech recognition. They receive sequential data as input, with each time step's input represented as xt, containing a hidden state ht used to capture temporal dependencies. The hidden state is passed between time steps through recurrent connections. The output, depending on the task requirements, can be the output yt at each time step or the final output of the sequence.

[0060] Generative Adversarial Networks (GANs) are deep learning models that generate realistic data through adversarial training between a generator and a discriminator. GANs excel in tasks such as image generation, data augmentation, and super-resolution reconstruction. Despite challenges like training difficulties and high computational resource requirements, their high-quality and diverse generation capabilities make them a crucial technique in the field of generative models. Introducing improved models such as WGAN, CycleGAN, and StyleGAN can effectively address the limitations of GANs and enhance their performance.

[0061] Convolutional Layer (Conv): A convolutional layer is a layer in a neural network used to extract features. It performs calculations by sliding convolutional kernels across the input data, and can detect local features such as edges and textures. For example, in image processing, the first convolutional layer might extract basic edge information in an image.

[0062] C3K2: This is a name for a convolutional module in a specific network structure. For example, "C3" might indicate that there are 3 convolutional layers, and "K2" might indicate that the kernel size is 2×2 or other kernel-related parameters. It uses a combination of multiple convolutional layers to extract more complex features.

[0063] Concat (Concatenation): A concatenation operation. It concatenates feature maps from different sources along a certain dimension (such as the channel dimension), integrating feature information from different levels. For example, it concatenates feature maps from shallow networks (containing more detailed information) and deep networks (containing more semantic information) so that subsequent network layers can utilize both types of information simultaneously.

[0064] Upsampling (or upsampling): This operation enlarges small feature maps to their original or larger size. Common upsampling methods include bilinear interpolation and nearest-neighbor interpolation. For example, in feature pyramid networks for object detection, upsampling can propagate semantic information from deeper layers to shallower layers for detecting objects at different scales.

[0065] SPPF (Spatial Pyramid Pooling-Fast): Fast Spatial Pyramid Pooling. Traditional spatial pyramid pooling can transform feature maps of different sizes into fixed-size outputs to adapt to input images of different sizes. SPPF is an optimized version that can perform pooling operations more efficiently and retain more spatial information.

[0066] C2PSA (Custom Attention Module): This is a specific attention mechanism module. Attention mechanisms allow the network to automatically focus on important parts of the input data. For example, in images, it can make the network pay more attention to the area where the target object is located, while downplaying the influence of the background area.

[0067] Detect (Detection Layer): The detection layer is used for the final target detection output. It predicts the target's category and location based on the features extracted by the preceding network, and outputs bounding boxes and category probabilities.

[0068] Based on the above, this application proposes a method, controller, refrigeration equipment, and medium for detecting appearance defects in refrigeration equipment, aiming to reduce the false detection rate and false negative rate of defect identification.

[0069] like Figure 1 As shown, Figure 1 This is a flowchart of a method for detecting appearance defects in a refrigeration device according to an embodiment of this application. The method for detecting appearance defects in a refrigeration device according to an embodiment of this application includes, but is not limited to, steps S110, S120 and S130, which will be described in turn below.

[0070] Step S110: Acquire images of the device to be inspected containing a cooling device, and input the images to be inspected into multiple defect detection models, wherein the multiple defect detection models include at least two different stages of defect detection models.

[0071] Step S120: For each defect detection model, output the corresponding defect detection result through the defect detection model;

[0072] Step S130: The multiple defect detection results are fused to obtain the final defect identification result of the refrigeration equipment.

[0073] In one embodiment, images of the refrigeration equipment are captured using a camera or other image acquisition device to ensure that the images clearly show the various parts of the refrigeration equipment. The acquired images are then input into multiple different defect detection models. Each model analyzes and processes the input images according to its training objectives and algorithms, and outputs the detected defect information. The output detection results are then comprehensively analyzed and processed to obtain a more comprehensive and accurate final result. Based on the fusion processing result, it is determined whether the refrigeration equipment has defects and the specific details of the defects.

[0074] It should be noted that comprehensive analysis and processing of the output detection results can be achieved by assigning different weights to the output detection results and resolving conflicts, thus obtaining a comprehensive and accurate final result.

[0075] It should be noted that the defect detection model may include different types of deep learning models, including but not limited to convolutional neural networks, recurrent neural networks, and generative adversarial networks. Each model is obtained through preprocessing and training.

[0076] In one embodiment, a display screen can be installed on the control panel of the refrigeration equipment. For example, after the defect detection is completed, the display screen can show text prompts such as "Defect detection completed" or "Please process as soon as possible," or display a checkmark icon to indicate that the defect detection is complete. LED indicator lights can be set on the control panel. For example, after the defect detection is completed, the LED light can change from green to red, or start flashing, to remind the user that the defect detection process is complete. In the defect detection system, when the defect detection is finished, the built-in voice module can issue a voice reminder, such as "Your defect detection is complete," so that the user knows the defect detection status. If the user has installed an app compatible with the defect detection system on their mobile phone or tablet, the app will receive a system push message after the defect detection is completed, such as "Defect detection completed notification: Your refrigeration equipment has been inspected." The user can open the app to view detailed information. When issuing a reminder, the refrigeration equipment number can be displayed, thereby more accurately determining the detection results of the appearance defect detection.

[0077] In one embodiment, the multiple defect detection models include a single-stage defect detection model; for each defect detection model, the corresponding defect detection result is output through the defect detection model, including: for the single-stage defect detection model, the single-stage defect detection result is output through the single-stage defect detection model.

[0078] like Figure 2 As shown, Figure 2This is a flowchart of obtaining the detection result through a single-stage defect detection model provided in one embodiment of this application; the appearance defect detection method of refrigeration equipment provided in this embodiment of the application includes, but is not limited to, steps S210, S220 and S230, which are described in turn below.

[0079] Step S210: Obtain the image to be detected;

[0080] Step S220: Input the image to be detected into the single-stage defect detection model for processing;

[0081] Step S230: Output the single-stage defect detection results.

[0082] It should be noted that the single-stage defect detection model directly identifies and locates defects in the refrigeration equipment from the original image. The image to be detected is input into the single-stage defect detection model for processing, thereby outputting the single-stage defect detection result.

[0083] In one embodiment, the single-stage defect detection model includes a first device defect detection network; outputting single-stage defect detection results through the single-stage defect detection model includes: inputting the image to be detected into the first device defect detection network, and outputting single-stage defect detection results through the first device defect detection network.

[0084] In one embodiment, the first equipment defect detection network can be a convolutional neural network. The image to be detected is input into the convolutional neural network, and features of the image are extracted through convolutional layers, pooling layers, etc. Based on the extracted features, the detection result of the defect is directly output, including but not limited to the equipment body image, defect location, and defect statistical parameters.

[0085] In one embodiment, detecting scratches or dents on the casing of a refrigeration device can be achieved through the following steps: The casing of the refrigeration device is photographed using a camera, ensuring the image is clear and covers the entire detection area. The image is preprocessed (e.g., resizing, normalizing, etc.) to meet the requirements of the model input. A convolutional neural network is selected as the first device defect detection network. A large number of labeled images of the refrigeration device are collected, including the device body image, defect type, location, and defect statistical parameters. The labeled data is used to train the model, enabling it to accurately identify defects on the casing of the refrigeration device. The model performance is optimized by adjusting hyperparameters. The image to be detected is input into the trained single-stage defect detection model. The model extracts image features through convolutional layers and outputs detection results through detection layers. Defect types include "casing scratches" or "casing dents." Defect locations can be marked with coordinate frames or masks in the image. Defect statistical parameters can be represented by probability values ​​or levels, such as "minor scratches" or "severe dents." Based on the output results, it is determined whether the refrigeration device needs repair or replacement. When a severe defect is detected, immediate action is recommended; when a minor defect is detected, it can be recorded and checked periodically.

[0086] In one embodiment, the multiple defect detection models include a multi-stage defect detection model; for each defect detection model, the corresponding defect detection result is output through the defect detection model, including: for the multi-stage defect detection model, the multi-stage defect detection result is output through the multi-stage defect detection model.

[0087] In one embodiment, it is necessary to detect whether there are scratches or dents on the outer casing of a refrigeration device. This can be achieved through the following steps: taking pictures of the outer casing of the refrigeration device with a camera, ensuring that the image is clear and covers the entire detection area; preprocessing the image (such as resizing, normalizing, etc.) to make it meet the requirements of the model input; selecting a convolutional neural network as a multi-stage defect detection model; collecting a large number of labeled images of the refrigeration device, including the device body image, defect location, and defect statistical parameters; training the model using the labeled data to enable it to accurately identify defects on the outer casing of the refrigeration device; optimizing the model performance by adjusting hyperparameters; inputting the image to be detected into the trained multi-stage defect detection model; the model extracts image features through convolutional layers and outputs the detection results through detection layers.

[0088] like Figure 3 As shown, Figure 3 This is a flowchart of a method for detecting appearance defects in a refrigeration device according to another embodiment of this application. The method for detecting appearance defects in a refrigeration device according to this embodiment includes, but is not limited to, steps S310 and S320, which will be described in turn below.

[0089] Step S310: For the two-stage defect detection model, the image to be detected is input into the second device detection network, and the device image is output through the second device detection network.

[0090] Step S320: Input the device image into the second device defect detection network, and output the two-stage defect detection results through the second device defect detection network.

[0091] In one embodiment, the two-stage defect detection model includes a second device detection network and a second device defect detection network. The second device detection network extracts specific regions or features of the device from the image to be detected and generates a device image. In the process of the second device detection network, the original image to be detected is first received, and then the features of the image are extracted through convolutional layers, pooling layers, etc., and finally the device image is output. The device image is a processed image that highlights the key parts of the device. The second device defect detection network is used to detect specific defects based on the device image. The second device defect detection network includes receiving the device image, further extracting the features of the device image, and outputting the defect detection result based on the features of the device image, including the device body image, defect location, and defect statistical parameters. Through staged processing, the detection range is gradually narrowed and the detection accuracy is improved. The model of each stage focuses on a specific task, which can more effectively handle complex problems, and the model structure and parameters of each stage can be adjusted according to actual needs.

[0092] In one embodiment, the image to be detected is first input into the second device detection network to obtain the area where the refrigeration equipment is located. The equipment image is obtained through the cropping function. The equipment image is then input into the second device defect detection network to obtain the two-stage defect detection result. When using the two-stage model, the image to be detected is used as the input of the defect detection network, which reduces the impact of noise outside the refrigeration equipment body on defect identification and improves the identification accuracy.

[0093] like Figure 4 As shown, Figure 4 This is a flowchart of a method for detecting appearance defects in a refrigeration device according to another embodiment of this application. The method for detecting appearance defects in a refrigeration device according to this embodiment includes, but is not limited to, steps S410, S420 and S430, which will be described in turn below.

[0094] Step S410: For the three-stage defect detection model, the image to be detected is input into the third device detection network, and the device image is output through the third device detection network.

[0095] Step S420: Input the device image into the third defect area detection network, and output the defect area image through the third defect area detection network;

[0096] Step S430: Input the defect area image into the third device defect detection network, and output the three-stage defect detection results through the third device defect detection network.

[0097] In one embodiment, the three-stage defect detection model includes a third device detection network, a third defect region detection network, and a third device defect detection network. The third device detection network extracts specific regions or features of the device from the image to be detected, generating a device image. The third device detection network receives the original image to be detected, extracts features from the image through convolutional layers, pooling layers, etc., and outputs the device image. The device image is a processed image that highlights the key parts of the device. The third defect region detection network detects potential defect regions based on the device image, generating a defect region image. The third defect region detection network receives the device image, further extracts features from the device image, outputs the defect region image, and highlights potential defect regions. The third device defect detection network detects specific defect types and severity based on the defect region image. The third device defect detection network receives the defect region image, further extracts features from the defect region image, and outputs the final defect detection result, including the device body image, defect location, and defect statistical parameters.

[0098] In one embodiment, the refrigerator is identified from the original image and its image is cropped. Then, a defective local area is identified from the refrigerator image and its image is cropped. Finally, the defective area image is input into the defect detection network to obtain the defect detection result. Although the two-stage defect detection model can input the refrigerator image into the defect detection network and reduce some noise, if the refrigerator is placed at an angle in the image, some environmental noise will still be introduced during cropping. The three-stage model uses the defective area image as the input of the defect detection network, which further reduces the influence of environmental noise on the basis of the two-stage detection model and improves the recognition accuracy.

[0099] In one embodiment, multiple defect detection results are fused to obtain the final defect identification result of the refrigeration equipment, including: using a post-processing algorithm to fuse multiple defect detection results to obtain the final defect identification result of the refrigeration equipment.

[0100] In one embodiment, the obtained single-stage defect detection results, two-stage defect detection results, and three-stage defect detection results are fused through a post-processing algorithm to obtain the final defect identification result of the refrigeration equipment. This can improve the accuracy of visual inspection algorithms in identifying appearance defects of refrigeration equipment in complex environments, improve the robustness and generalization of the algorithm, and enable it to achieve better detection results in the current flexible mixed-flow refrigeration equipment production line.

[0101] In one embodiment, after obtaining the final defect identification result of the refrigeration equipment, the method further includes: displaying the final defect identification result, wherein the final defect identification result includes at least one of the following: an image of the equipment body, the defect location, and defect statistical parameters.

[0102] See Figure 5 , Figure 5 This is an overall flowchart of a method for detecting appearance defects in a refrigeration device according to an embodiment of this application. The method for detecting appearance defects in a refrigeration device according to an embodiment of this application includes, but is not limited to, steps S510, S520 and S530, which will be described in turn below.

[0103] Step S510: Obtain the image to be detected;

[0104] Step S520: Input the images into the single-stage, two-stage, and three-stage defect detection models respectively to obtain the output of each detection model;

[0105] Step S530: The outputs of each defect detection model are fused through a post-processing algorithm to obtain the final defect identification result.

[0106] In one embodiment, an image of a refrigeration device to be inspected is acquired. This image is then input to a first device defect detection network, which outputs a single-stage defect detection result. The image is then input to a second device detection network, which outputs a device image. The device image is then input to the second device defect detection network, which outputs a two-stage defect detection result. The image is then input to a third device detection network, which outputs a device image. The device image is then input to a third defect region detection network, which outputs a defect region image. The defect region image is then input to the third device defect detection network, which outputs a three-stage defect detection result. A post-processing algorithm is used to fuse these multiple defect detection results to obtain the final defect identification result for the refrigeration device. The final defect identification result includes at least one of the following: a device body image, defect location, and defect statistical parameters.

[0107] See Figure 6 , Figure 6 This is a logic diagram of a method for detecting appearance defects in a refrigeration device according to an embodiment of this application.

[0108] In one embodiment, after acquiring the image to be detected, it is first input into single-stage, two-stage and three-stage defect detection models respectively to obtain the detection results of each model. Then, a post-processing algorithm is used to fuse the outputs of each model to obtain the final defect detection result.

[0109] It should be noted that the post-processing algorithm can be a weighted average fusion algorithm. By using a weighted average fusion algorithm to perform a weighted average of the outputs of multiple models and determining the weights based on the model performance, the overall performance can be improved in multi-model fusion.

[0110] See Figure 7 , Figure 7 This is a structural diagram of a defect detection model provided in one embodiment of this application.

[0111] In one embodiment, the defect detection model includes a trunk, a neck, and a head. The trunk downsamples the image to be detected to obtain multiple feature maps of different sizes, including feature maps with a downsampling ratio of less than or equal to 4. The neck performs feature fusion enhancement on the multiple feature maps to obtain multiple fused and enhanced feature maps of different sizes. The head performs target detection on the multiple fused and enhanced feature maps of different sizes to obtain the defect detection result.

[0112] It should be noted that using feature maps with a downsampling ratio of less than or equal to 4 as input to the detection head can effectively preserve the feature information of small targets and improve the detection effect of small targets. In addition, during the upsampling process of the neck of the defect detection model, a parallel attention module (PPA) is used. The PPA module can efficiently extract the multi-scale features of the object, thereby further improving the model's recognition accuracy of small targets.

[0113] In one embodiment, the neck portion includes a parallelized attention module, a stitching module, and an upsampling module. Multiple feature maps include a first feature map and a second feature map, where the size of the second feature map is smaller than the size of the first feature map. The upsampling module upsamples the second feature map to obtain a size-adjusted second feature map, wherein the size of the size-adjusted second feature map is equal to the size of the first feature map. The stitching module stitches the first feature map and the size-adjusted second feature map together to obtain a stitched feature map. The parallelized attention module extracts features from the stitched feature map to obtain a target feature map.

[0114] In one embodiment, the sampling module first upsamples the second feature map, adjusting its size to match that of the first feature map. This aligns feature maps of different scales in space, providing conditions for subsequent fusion operations. Then, the resized second feature map is stitched together with the first feature map, expanding both maps and integrating their respective information to form a rich and comprehensive stitched feature map. This stitched feature map contains both the original information from the first feature map and the content contributed by the upsampled second feature map. Next, a parallel attention module extracts features from the stitched feature map. The attention module automatically learns the importance of different regions and feature channels in the image, focusing more attention on key information related to the defect detection task. The parallel design helps capture multi-scale features of the target, thereby improving the model's ability to detect small objects.

[0115] In one embodiment, the backbone is primarily responsible for extracting features from the input image. It extracts features layer by layer through multiple convolutional layers (Conv) and the C3K2 module. The SPPF module, used in the final stage of the backbone, enhances the spatial information of the features, making the extracted features more robust and providing a stronger feature representation for subsequent target detection. The neck section fuses and enhances the features extracted from the backbone. It upsamples deep semantic information using an Upsample operation and then concatenates it with shallow features using Concat. The PPA module continues feature extraction and fusion on the concatenated feature map, constructing feature pyramids of different scales, enabling the network to simultaneously detect targets of large, medium, and small scales. The head section, based on the multi-scale feature map output from the neck, performs target detection through a Detect layer. It predicts the presence, category, and bounding box location of targets based on the features at each location, thereby achieving accurate target localization and classification in the image.

[0116] It should be noted that the neck section includes upsampling and downsampling. Feature extraction and downsampling are performed through convolution operations, feature maps of the same size as the front half of the neck are stitched and fused, and the C3K2 module is used for feature extraction. The parallel attention module (PPA) is used instead of the C3K2 module used in the original model during the upsampling process. Since the PPA module adopts a parallel multi-branch method, each branch is responsible for extracting features at different scales. This multi-branch strategy helps to capture the multi-scale features of the target, and the attention module processes the multi-scale features, thereby improving the accuracy of the model in detecting small targets.

[0117] like Figure 8 As shown, Figure 8 This is a schematic diagram of an appearance defect detection system for a refrigeration device provided in one embodiment of this application.

[0118] In one embodiment, the appearance defect detection system for refrigeration equipment includes an image acquisition module 810, a transmission module 820, and a calculation module 830. The image acquisition module 810 is used to acquire and capture images of the refrigeration equipment to be inspected. The transmission module 820 is used to transmit the images to be inspected to the calculation module 830. The calculation module 830 stores multiple defect detection models and is used to output multiple defect detection results through the multiple defect detection models, and to perform fusion processing on the multiple defect detection results to obtain the final defect identification result of the refrigeration equipment.

[0119] In one embodiment, the image acquisition module 810 acquires the image to be detected, and then the image is transmitted to the calculation module 830 through the transmission module 820. The calculation module 830 runs the defect detection algorithm of the present invention to obtain the defect detection result, and the transmission module 820 transmits the result to the display module 840. The displayed defect detection result includes an image of the refrigerator body, defect location markers, and a defect statistics table.

[0120] In one embodiment, the appearance defect detection system for refrigeration equipment further includes a display module 840, and a transmission module 820 is used to transmit the final defect identification result obtained by the calculation module to the display module 840, and the display module 840 is used to display the final defect identification result.

[0121] Based on the appearance defect detection method of the refrigeration equipment in the above embodiments, the following presents various embodiments of the controller, refrigeration equipment, computer-readable storage medium and computer program product of this application.

[0122] like Figure 9 As shown, Figure 9 This is a schematic diagram of a controller for performing a method for detecting appearance defects in refrigeration equipment, according to an embodiment of this application. The controller 900 implemented in this application includes: a processor 910, a memory 920, and a computer program stored in the memory 920 and executable on the processor 910, wherein... Figure 9 The example uses a processor 910 and a memory 920.

[0123] The processor 910 and the memory 920 can be connected via a bus or other means. Figure 9 Taking the example of a connection between China and Israel via a bus.

[0124] Memory 920, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory 920 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 920 may optionally include remotely located memories 920 relative to processor 910, which can be connected to controller 900 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0125] Those skilled in the art will understand that Figure 9 The device structure shown does not constitute a limitation on the controller 900 and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0126] exist Figure 9 In the controller 900 shown, the processor 910 can be used to call the control program stored in the memory 920, thereby implementing the above-described method for detecting appearance defects in the refrigeration equipment. Specifically, the non-transitory software program and instructions required to implement the above-described method for detecting appearance defects in the refrigeration equipment are stored in the memory 920. When executed by the processor 910, the above-described method for detecting appearance defects in the refrigeration equipment is executed.

[0127] It is worth noting that since the controller 900 of this application embodiment can execute the appearance defect detection method of the refrigeration equipment in any of the above embodiments, the specific implementation method and technical effect of the controller 900 of this application embodiment can refer to the specific implementation method and technical effect of the appearance defect detection method of the refrigeration equipment in any of the above embodiments.

[0128] Furthermore, one embodiment of this application also provides a refrigeration device, which includes the controller described in the above embodiment.

[0129] It is worth noting that, since the refrigeration device of this application embodiment includes the controller of the above embodiment, and the controller of the above embodiment is capable of executing the appearance defect detection method of the refrigeration device of any of the above embodiments, the specific implementation method and technical effect of the refrigeration device of this application embodiment can refer to the specific implementation method and technical effect of the appearance defect detection method of the refrigeration device of any of the above embodiments.

[0130] Furthermore, one embodiment of this application provides a computer-readable storage medium storing computer-executable instructions for performing the aforementioned method for detecting appearance defects in a refrigeration device. Exemplarily, the above-described method is executed... Figures 1 to 5 The methods and steps in the text.

[0131] It is worth noting that, since the computer-readable storage medium of this application embodiment can execute the appearance defect detection method of the refrigeration device of any of the above embodiments, the specific implementation method and technical effect of the computer-readable storage medium of this application embodiment can be referred to the specific implementation method and technical effect of the appearance defect detection method of the refrigeration device of any of the above embodiments.

[0132] Furthermore, one embodiment of this application also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the computer device to perform the aforementioned method for detecting appearance defects in refrigeration equipment. Exemplarily, the above-described method is executed... Figures 1 to 5 The methods and steps in the text.

[0133] It is worth noting that, since the computer program product of this application embodiment can execute the appearance defect detection method of the refrigeration equipment of any of the above embodiments, the specific implementation method and technical effect of the computer program product of this application embodiment can refer to the specific implementation method and technical effect of the appearance defect detection method of the refrigeration equipment of any of the above embodiments.

[0134] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically include computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0135] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0136] In the several embodiments provided in this application, it should be understood that the disclosed systems, instruments, and methods can be implemented in other ways. For example, the instrument embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between instruments or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0137] It should also be understood that the various implementation methods provided in this application can be combined arbitrarily to achieve different technical effects.

[0138] The above provides a detailed description of the preferred embodiments of this application. However, this application is not limited to the above-described embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.

Claims

1. A method for detecting appearance defects in refrigeration equipment, characterized in that, The method includes: A test image of the refrigeration equipment is acquired and input into multiple defect detection models, wherein the multiple defect detection models include at least two different stages of defect detection models; For each defect detection model, the corresponding defect detection result is output through the defect detection model; The multiple defect detection results are fused together to obtain the final defect identification result of the refrigeration equipment.

2. The method according to claim 1, characterized in that, The plurality of defect detection models includes a single-stage defect detection model; for each defect detection model, the corresponding defect detection result is output through the defect detection model, including: For the single-stage defect detection model, the single-stage defect detection result is output through the single-stage defect detection model.

3. The method according to claim 2, characterized in that, The single-stage defect detection model includes a first equipment defect detection network; the step of outputting single-stage defect detection results through the single-stage defect detection model includes: The image to be detected is input into the first device defect detection network, and the single-stage defect detection result is output through the first device defect detection network.

4. The method according to claim 1, characterized in that, The plurality of defect detection models include a multi-stage defect detection model; for each defect detection model, the corresponding defect detection result is output through the defect detection model, including: For the multi-stage defect detection model, the multi-stage defect detection results are output through the multi-stage defect detection model.

5. The method according to claim 4, characterized in that, The multi-stage defect detection model includes a two-stage defect detection model, which comprises a second equipment detection network and a second equipment defect detection network. The multi-stage defect detection model outputs multi-stage defect detection results, including: For the two-stage defect detection model, the image to be detected is input into the second device detection network, and the device image is output through the second device detection network; The device image is input into the second device defect detection network, and the second device defect detection network outputs the two-stage defect detection results.

6. The method according to claim 4, characterized in that, The multi-stage defect detection model includes a three-stage defect detection model, which comprises a third equipment detection network, a third defect region detection network, and a third equipment defect detection network. The multi-stage defect detection model outputs multi-stage defect detection results, including: For the three-stage defect detection model, the image to be detected is input into the third device detection network, and the device image is output through the third device detection network; The device image is input into the third defect region detection network, and the defect region image is output through the third defect region detection network. The defect area image is input into the third device defect detection network, and the third device defect detection network outputs the three-stage defect detection results.

7. The method according to claim 1, characterized in that, The process of fusing multiple defect detection results to obtain the final defect identification result of the refrigeration equipment includes: A post-processing algorithm is used to fuse multiple defect detection results to obtain the final defect identification result of the refrigeration equipment.

8. The method according to claim 1, characterized in that, After obtaining the final defect identification result of the refrigeration equipment, the method further includes: The final defect identification result is displayed, wherein the final defect identification result includes at least one of the following: device body image, defect location, and defect statistical parameters.

9. The method according to claim 1, characterized in that, The defect detection model includes a main body, a neck, and a head; the corresponding defect detection results output by the defect detection model include: The image to be detected is downsampled through the main part to obtain multiple feature maps of different sizes, including feature maps with a downsampling ratio of less than or equal to 4. The neck portion is used to perform feature fusion enhancement on multiple feature maps to obtain multiple fused and enhanced feature maps of different sizes. The head portion is used to perform target detection on multiple feature maps of different sizes after fusion and enhancement, and the defect detection results are obtained.

10. The method according to claim 9, characterized in that, The neck portion includes a parallelized attention module, a stitching module, an upsampling module, a convolution module, and a feature enhancement module. The multiple feature maps include a first feature map and a second feature map, wherein the size of the second feature map is smaller than the size of the first feature map. The feature fusion enhancement of multiple feature maps through the neck portion includes: The second feature map is upsampled by the upsampling module to obtain a second feature map with adjusted size, wherein the size of the second feature map with adjusted size is equal to the size of the first feature map; The first feature map is subjected to feature extraction and downsampling by the convolution module to obtain a first feature map with adjusted size, wherein the size of the first feature map with adjusted size is equal to the size of the second feature map; The stitching module is used to stitch together the first feature map and the second feature map after size adjustment, or the first feature map and the second feature map after size adjustment, to obtain a stitched feature map. The parallel attention module is used to extract and enhance features from the concatenated feature map to obtain the target feature map; The feature enhancement module is used to extract and enhance features from the spliced ​​feature map to obtain the target feature map.

11. A system for detecting appearance defects in refrigeration equipment, characterized in that, The system is used to perform the appearance defect detection method for refrigeration equipment according to any one of claims 1 to 10; the appearance defect detection system for refrigeration equipment includes an image acquisition module, a transmission module, and a calculation module. The image acquisition module is used to acquire images of the refrigeration equipment to be inspected; the transmission module is used to transmit the images to be inspected to the calculation module respectively; the calculation module stores multiple defect detection models and is used to output multiple defect detection results through the multiple defect detection models, and to perform fusion processing on the multiple defect detection results to obtain the final defect identification result of the refrigeration equipment.

12. The method according to claim 11, characterized in that, The appearance defect detection system of the refrigeration equipment also includes a display module. The transmission module is used to transmit the final defect identification result obtained by the calculation module to the display module, and the display module is used to display the final defect identification result.

13. A controller, characterized in that, include: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the appearance defect detection method for a refrigeration device as described in any one of claims 1 to 10 when running the computer program.

14. A computer-readable storage medium, characterized in that: The device contains computer-executable instructions for performing the appearance defect detection method for a refrigeration device as described in any one of claims 1 to 10.

15. A computer program product, comprising a computer program or computer instructions, characterized in that, The computer program or the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer program or the computer instructions from the computer-readable storage medium and executes the computer program or the computer instructions, causing the computer device to perform the appearance defect detection method for refrigeration equipment as described in any one of claims 1 to 10.