Copper pipe welding detection method and device, electronic equipment and storage medium

Through real-time image detection technology, the problem of only testing welding quality in the existing technology after welding is solved, real-time monitoring and defect detection during copper pipe welding is realized, and welding efficiency and quality are improved.

CN119064356AActive Publication Date: 2024-12-03GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1

Patent Information

Application Number
CN202411242368.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-12-03
Estimated Expiration
2044-09-05

AI Technical Summary

Technical Problem

The prior art can only detect welding quality after the copper pipe welding is completed, resulting in detection delays and waste of resources, and it is impossible to monitor possible defects during the welding process in real time.

Method used

Images during the welding process of copper tubes are obtained in real time through the imaging device, image processing technology is used to detect the temperature of copper tubes during the heating process and the welding flame during the welding process in real time, identify defects such as trachoma and pores, and provide real-time detection results.

Benefits of technology

Real-time monitoring of the copper pipe welding process is realized, timely discovering and correcting defects, improving welding quality, and saving time and human resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119064356A_ABST
    Figure CN119064356A_ABST
Patent Text Reader

Abstract

The invention relates to a copper pipe welding detection method and device, electronic equipment and a storage medium. The method comprises the steps that a first monitoring image is continuously obtained; wherein the first monitoring image is a copper pipe image in the heating process before the solder is added; the temperature of the copper pipe in the heating process is detected in real time according to the first monitoring image, and a copper pipe temperature detection result is determined; continuously acquiring a second monitoring image; wherein the second monitoring image is a welding flame image in the welding process after the welding flux is added; welding defects in the welding process are detected in real time according to the second monitoring image, and a welding defect detection result is determined; wherein the welding defects at least comprise sand hole defects and air hole defects. According to the technical scheme, the detection result is generated in real time, the whole process of copper pipe welding is monitored, and the welding quality of the copper pipe is detected in the welding process of the copper pipe.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image detection, and in particular to a method, device, electronic equipment and storage medium for detecting copper pipe welding. Background Art

[0002] Copper tube welding can improve the connection strength, sealing, corrosion resistance and aesthetics of the air conditioner copper tube and the joint, and is one of the key factors that determine the use effect and life of the air conditioner. Copper tube welding has certain requirements on the welder's operating level and temperature. Improper operation by the welder will cause welding defects, such as loose welding, sand holes, pores and other welding defects.

[0003] There are methods for detecting the welding quality of copper pipes in the prior art, and most of these detection methods are for detecting defects after copper pipe welding. However, if the welding quality of copper pipes is detected after the copper pipes are welded, even if defects are detected and quality improvements are made, it will waste time and manpower. Summary of the invention

[0004] The present application provides a copper tube welding detection method, device, electronic equipment and storage medium to detect the copper tube welding quality during the copper tube welding process.

[0005] In a first aspect, the present application provides a method for detecting copper pipe welding, the method comprising:

[0006] Continuously acquiring a first monitoring image; wherein the first monitoring image is an image of the copper tube during the heating process before adding solder;

[0007] Performing real-time detection of the temperature of the copper tube during the heating process according to the first monitoring image to determine a detection result of the temperature of the copper tube;

[0008] Continuously acquiring a second monitoring image; wherein the second monitoring image is an image of a welding flame during the welding process after adding solder;

[0009] The welding defects in the welding process are detected in real time according to the second monitoring image to determine the welding defect detection result; wherein the welding defects at least include sand hole defects and porosity defects.

[0010] In a feasible embodiment of the present application, the copper tube temperature detection result is a normal temperature result or an abnormal temperature result, and the copper tube temperature in the heating process is detected in real time according to the first monitoring image to determine the copper tube temperature detection result, including:

[0011] determining, according to the first monitoring image, whether the color tone of the copper tube is a standard color tone during the heating process;

[0012] When the copper tube color tone is the standard color tone, determining that the copper tube temperature detection result is the normal temperature result;

[0013] When the color tone of the copper pipe is not the standard color tone, it is determined that the temperature detection result of the copper pipe is the temperature abnormality result.

[0014] In a feasible embodiment of the present application, judging whether the color tone of the copper tube is a standard color tone during the heating process according to the first monitoring image includes:

[0015] Converting the first monitoring image from the RGB color space to the HSV color space, thereby determining an HSV histogram of the first monitoring image, and determining a tone curve in the HSV histogram; wherein the vertical axis in the HSV histogram represents the frequency of occurrence of the tone, and the horizontal axis in the HSV histogram represents the tone;

[0016] Determine the maximum hue occurrence frequency according to the hue curve, determine the hue corresponding to the maximum hue occurrence frequency in the HSV histogram, and judge whether the hue corresponding to the maximum hue occurrence frequency is within the hue range corresponding to the standard hue;

[0017] When the hue corresponding to the maximum hue occurrence frequency is within the hue range corresponding to the standard hue, it is determined that the hue of the copper tube during the heating process is the standard hue;

[0018] When the hue corresponding to the maximum hue occurrence frequency is not within the hue range corresponding to the standard hue, it is determined that the hue of the copper pipe is not the standard hue during the heating process.

[0019] In a feasible embodiment of the present application, the welding defect detection result includes a trachoma defect detection result, and the trachoma defect detection result is a trachoma result or a trachoma-free result. The welding defects in the welding process are detected in real time according to the second monitoring image to determine the welding defect detection result, including:

[0020] Determining whether white smoke and white light appear simultaneously in the welding flame according to the second monitoring image;

[0021] In the case where white smoke and white light appear simultaneously in the welding flame, determining the trachoma defect detection result as the trachoma result;

[0022] When the welding flame does not produce white smoke and white light at the same time, the trachoma defect detection result is determined to be the trachoma-free result.

[0023] In a feasible embodiment of the present application, judging whether white smoke and white light appear simultaneously in the welding flame according to the second monitoring image includes:

[0024] converting the second monitoring image into a grayscale image;

[0025] Performing color threshold segmentation on the grayscale image by using a segmentation threshold to identify white pixel blocks in the grayscale image; wherein the segmentation threshold is determined according to the pixel value of the pixel point in the grayscale image;

[0026] When the white pixel block is identified, determining the type of the white pixel block according to the brightness of the white pixel block; wherein the type of the white pixel block is a white smoke pixel block or a white light pixel block;

[0027] When the white smoke pixel block and the white light pixel block are identified at the same time, it is determined that the welding flame simultaneously produces white smoke and white light;

[0028] When the white smoke pixel block and the white light pixel block are not identified at the same time, it is determined that the welding flame does not produce white smoke and white light at the same time.

[0029] In a feasible embodiment of the present application, the welding defect detection result includes a porosity defect detection result, and the porosity defect detection result is a porosity result or a non-porosity result. The welding defects in the welding process are detected in real time according to the second monitoring image to determine the welding defect detection result, including:

[0030] judging whether the welding flame is a reducing flame according to the second monitoring image;

[0031] In the case where the welding flame is the reducing flame, determining the porosity defect detection result as the porosity result;

[0032] In a case where the welding flame is not the reducing flame, the porosity defect detection result is determined to be the no-porosity result.

[0033] In a feasible embodiment of the present application, judging whether the welding flame is a reducing flame according to the second monitoring image includes:

[0034] Determine the flame edge perimeter, flame hue and flame texture of the welding flame according to the second monitoring image; wherein the flame edge perimeter is determined by edge detection, the flame hue is determined by the HSV histogram of the second monitoring image, and the flame texture is determined by a gray level co-occurrence matrix;

[0035] In the case where the perimeter of the flame edge is greater than the perimeter threshold, the flame hue is not blue, and the flame texture is a turbid flame, the welding flame is judged to be the reducing flame;

[0036] When the perimeter of the flame edge is less than or equal to the perimeter threshold, the flame hue is blue, or the flame texture is a transparent flame, it is determined that the welding flame is not the reducing flame.

[0037] In a second aspect, the present application provides a copper pipe welding detection device, the device comprising:

[0038] A first acquisition module is used to continuously acquire a first monitoring image; wherein the first monitoring image is an image of the copper tube during the heating process before adding solder;

[0039] A first detection module, used for performing real-time detection of the temperature of the copper tube during the heating process according to the first monitoring image, and determining a detection result of the temperature of the copper tube;

[0040] A second acquisition module is used to continuously acquire a second monitoring image; wherein the second monitoring image is an image of a welding flame during the welding process after adding solder;

[0041] The second detection module is used to perform real-time detection of welding defects in the welding process according to the second monitoring image to determine welding defect detection results; wherein the welding defects at least include sand hole defects and porosity defects.

[0042] In a third aspect, the present application provides an electronic device comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus, wherein the processor is configured to execute a copper tube welding detection method described in the first aspect of the present application.

[0043] In a fourth aspect, the present application further provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute a copper tube welding detection method described in the first aspect of the present application.

[0044] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:

[0045] The technical solution provided by the embodiment of the present application continuously acquires a first monitoring image; wherein the first monitoring image is an image of the copper tube during the heating process before adding solder; the temperature of the copper tube during the heating process is detected in real time based on the first monitoring image, and the detection result of the copper tube temperature is determined; the second monitoring image is continuously acquired; wherein the second monitoring image is an image of the welding flame during the welding process after adding solder; the welding defects during the welding process are detected in real time based on the second monitoring image, and the welding defect detection result is determined; wherein the welding defects at least include sand eye defects and pore defects.

[0046] It can be seen that in the technical solution provided in the present application, the temperature of the copper tube is detected in real time through the copper tube image during the heating process, and the welding flame is detected in real time through the flame image during the welding process, and the corresponding detection results are generated in real time to realize the monitoring of the entire process of copper tube welding, so as to realize the detection of copper tube welding quality during the copper tube welding process. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0049] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0050] Figure 1 A schematic diagram of the setting of a copper tube welding detection system that can implement a copper tube welding detection method provided in an embodiment of the present application;

[0051] Figure 2 A schematic diagram of a process flow of a copper tube welding detection method provided in an embodiment of the present application;

[0052] Figure 3 A welding flame change diagram when performing welding defect detection in a copper pipe welding detection method provided in an embodiment of the present application;

[0053] Figure 4 A schematic diagram of the overall process of a copper tube welding detection method provided in an embodiment of the present application;

[0054] Figure 5 A schematic diagram of the structure of a copper tube welding detection device provided in an embodiment of the present application;

[0055] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0057] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0058] In order to solve the problem that the prior art can only detect the welding quality after welding is completed, the present application provides a copper tube welding detection method, device, electronic equipment and storage medium, which can detect the copper tube welding quality during the copper tube welding process.

[0059] In the technical solution provided in the present application, a corresponding copper tube welding detection system can be set up in the copper tube welding work area, and the system can implement a copper tube welding detection method provided in the present application. Figure 1 A schematic diagram of a copper pipe welding detection system that can implement a copper pipe welding detection method provided in an embodiment of the present application is shown in FIG. Figure 1 The system may include a camera device, a welding device and a computer processing device.

[0060] The camera device is arranged in the copper pipe welding working area and connected to the computer processing device. The camera device is used to shoot the video or image of the copper pipe welding and transmit the shot video or image to the computer processing device.

[0061] The video or image captured by the camera device needs to include the welding flame and the welding area of ​​the welding copper pipe, such as Figure 1 As shown, the camera device does not need to face the welding flame directly, and it is better to keep a certain angle with the welding flame. Providing the camera device to keep a certain angle with the welding flame can facilitate observation of the changing state of the welding flame.

[0062] The computer processing device is used to receive the video or image taken by the camera device and execute a copper pipe welding detection method provided by the present application. At the same time, a user interaction device can be set to communicate with the computer processing device, and the welder can wear the user interaction device to obtain corresponding information from the computer processing device through the user interaction device, so as to better understand the welding copper pipe and welding flame during the welding process.

[0063] Figure 2 A schematic diagram of a copper pipe welding detection method provided in an embodiment of the present application, referring to Figure 2 The copper tube welding detection method provided in the embodiment of the present application specifically comprises the following steps:

[0064] S1: continuously acquiring a first monitoring image; wherein the first monitoring image is an image of the copper tube during the heating process before adding solder;

[0065] Specifically, the first detection image is an image of the copper tube during the heating process before adding solder. In a feasible embodiment of the present application, a video of the entire copper tube welding process is captured by a camera device, and the first monitoring image is obtained from the video of the entire copper tube welding process.

[0066] Specifically, when the welder starts welding, the camera device is turned on and starts to shoot the video of the whole process of copper pipe welding. The camera device sends the video of the whole process of copper pipe welding to the computer processing device in real time. The computer processing device uses the image area segmentation method to segment the whole process video of copper pipe welding into the welding copper pipe area and the welding flame area, and the image set obtained from the welding copper pipe area is used as the first monitoring image.

[0067] In a feasible embodiment of the present application, the image region segmentation of the whole process video of copper pipe welding can be performed by image region segmentation software, and the image region segmentation software can be specifically OpenCV. By setting ROI (Region of Interest) in OpenCV, the image region segmentation of the whole process video of copper pipe welding can be achieved.

[0068] S2: Performing real-time detection of the temperature of the copper tube during the heating process according to the first monitoring image to determine a detection result of the temperature of the copper tube;

[0069] Specifically, generally speaking, the copper pipe welding operation can be divided into a heating process and a welding process with the addition of solder as the time node. In the heating process, the temperature of the copper pipe of the welding copper pipe is raised to a certain temperature value by the welding flame, and in the welding process, the solder is heated by the welding flame to weld the welding copper pipe.

[0070] During the heating process, the temperature of the copper tube can be detected in real time based on the first monitoring image, so that the temperature of the copper tube is kept within a reasonable range. In a feasible embodiment of the present application, it can be determined whether the temperature of the copper tube is kept within a reasonable range by detecting the color tone of the welded copper tube. Specifically, the copper tube temperature detection result is a normal temperature result or an abnormal temperature result. The temperature of the copper tube during the heating process is detected in real time based on the first monitoring image to determine the copper tube temperature detection result, which can be specifically achieved by the following steps:

[0071] determining whether the color tone of the copper tube is a standard color tone during the heating process according to the first monitoring image;

[0072] When the color tone of the copper tube is the standard color tone, it is determined that the temperature detection result of the copper tube is a normal temperature result;

[0073] When the color tone of the copper pipe is not the standard color tone, it is determined that the temperature detection result of the copper pipe is an abnormal temperature result.

[0074] Specifically, for copper tubes of different materials, the corresponding standard tones are different. For example, the copper tubes used for welding in common refrigeration systems are phosphorus deoxidized copper. When phosphorus deoxidized copper is heated to red, it is more appropriate to add solder. Therefore, the standard tones of the copper tubes made of phosphorus deoxidized copper are red.

[0075] When the welded copper tube is heated to a certain temperature, the color of the welded copper tube changes. When the color of the welded copper tube changes to the standard color, it means that the current temperature of the copper tube is relatively appropriate, and the copper tube temperature detection result is determined to be a normal temperature result; when the color of the welded copper tube does not change to the standard color, it means that the current temperature of the copper tube is too high or too low, and the copper tube temperature detection result is determined to be an abnormal temperature result.

[0076] In a feasible embodiment of the present application, in order to accurately determine whether the copper tube color tone is the standard color tone during the heating process, a judgment can be made based on the HSV histogram of the first monitoring image. In this embodiment, determining whether the copper tube color tone is the standard color tone during the heating process can be specifically achieved through the following steps:

[0077] Convert the first monitoring image from the RGB color space to the HSV color space, thereby determining an HSV histogram of the first monitoring image, and determining a tone curve in the HSV histogram; wherein the vertical axis in the HSV histogram represents the frequency of occurrence of the tone, and the horizontal axis in the HSV histogram represents the tone;

[0078] Determine the maximum hue occurrence frequency according to the hue curve, determine the hue corresponding to the maximum hue occurrence frequency in the HSV histogram, and judge whether the hue corresponding to the maximum hue occurrence frequency is within the hue range corresponding to the standard hue;

[0079] When the hue corresponding to the maximum hue occurrence frequency is within the hue range corresponding to the standard hue, it is determined that the hue of the copper tube is the standard hue during the heating process;

[0080] When the hue corresponding to the maximum hue occurrence frequency is not within the hue range corresponding to the standard hue, it is determined that the hue of the copper pipe is not the standard hue during the heating process.

[0081] Specifically, the parameters in the HSV histogram are hue (H), saturation (S), and brightness (V). The hue histogram in the HSV histogram represents the frequency of hue occurrence with the vertical axis and the hue with the horizontal axis. It can be seen that the hue curve actually describes the frequency of occurrence of different hues in the first monitoring image.

[0082] The maximum hue occurrence frequency is found in the hue curve, that is, the main hue in the first monitoring image is determined, and the hue corresponding to the maximum hue occurrence frequency is compared with the hue corresponding to the standard hue, so as to determine whether the copper tube hue is a standard hue.

[0083] In a feasible embodiment of the present application, there may be multiple standard hues, but these standard hues are relatively similar colors, for example, orange-red, orange-yellow, and yellow-red are actually all red hues, so the standard hue corresponds to a hue range. By judging whether the hue corresponding to the maximum hue occurrence frequency is within the hue range corresponding to the standard hue, it can be determined whether the copper tube hue is a standard hue.

[0084] For example, the standard hue is set to red. As the welded copper pipe is heated, the peak of the hue curve in the HSV histogram obtained from the first monitoring image gradually approaches the red area, indicating that the hue of the current welded copper pipe gradually turns red and approaches the standard hue. At this time, a normal temperature result can be obtained. If the welded copper pipe continues to be heated, the peak of the hue curve in the HSV histogram obtained from the first monitoring image gradually moves away from the red area and approaches the yellow area. This indicates that the color of the copper pipe gradually turns orange-red and moves away from the standard hue. At this time, an abnormal temperature result can be obtained.

[0085] In a feasible embodiment of the present application, in order to enable the welder to better grasp the temperature of the copper tube during the heating process and control the temperature of the copper tube, prompt information can be adaptively generated based on the temperature detection result, thereby prompting the welder to adjust the welding flame to control the welding temperature.

[0086] S3: continuously acquiring a second monitoring image; wherein the second monitoring image is an image of a welding flame during the welding process after adding solder;

[0087] Specifically, the camera device sends the whole process video of copper tube welding to the computer processing device in real time. The computer processing device segments the welding copper tube area and the welding flame area in the whole process video of copper tube welding by the method of image area segmentation, and the image set obtained from the welding flame area is used as the second monitoring image.

[0088] S4: Performing real-time detection of welding defects in the welding process according to the second monitoring image to determine welding defect detection results; wherein the welding defects at least include sand hole defects and pore defects;

[0089] Specifically, welding defects include trachoma defects and porosity defects. The welding defects in the welding process are detected in real time according to the second monitoring image, including the detection of trachoma defects and the detection of porosity defects. When detecting trachoma defects, the welding defect detection result can be determined as a trachoma result or a no trachoma result; when detecting porosity defects, the welding defect detection result can be determined as a porosity result or a no porosity result.

[0090] In a feasible embodiment of the present application, the detection of trachoma defects according to the second monitoring image can be specifically performed through the following steps:

[0091] judging whether white smoke and white light appear simultaneously in the welding flame according to the second monitoring image;

[0092] When white smoke and white light appear in the welding flame at the same time, the trachoma defect detection result is determined to be a trachoma result;

[0093] When the welding flame does not produce white smoke and white light at the same time, the trachoma defect detection result is determined to be a trachoma-free result.

[0094] Specifically, after solder is added to the copper pipe, the welding flame continues to heat the solder. When the heating temperature is too high, the phosphorus element in the solder will volatilize and burn. At this time, the combustion of the phosphorus element will produce white smoke and bright white light (such as Figure 3 If welding is continued at the inherent temperature, it will cause sand holes to appear in the welded copper tube after welding, that is, many tiny holes, causing the welded copper tube to be directly scrapped.

[0095] Therefore, during the welding process, detecting whether white smoke and white light appear at the same time in the welding flame can determine whether sand hole defects will appear in the welded copper pipe after welding.

[0096] In a feasible embodiment of the present application, in order to accurately determine whether the welding flame simultaneously produces white smoke and white light, the type of pixel points of the second monitoring image can be identified. In this embodiment, determining whether the welding flame simultaneously produces white smoke and white light can be specifically implemented by the following steps:

[0097] converting the second monitoring image into a grayscale image;

[0098] Performing color threshold segmentation on the grayscale image through a segmentation threshold to identify white pixel blocks in the grayscale image; wherein the segmentation threshold is determined according to the pixel value of the pixel point in the grayscale image;

[0099] When a white pixel block is identified, determining the type of the white pixel block according to the brightness of the white pixel block; wherein the type of the white pixel block is a white smoke pixel block or a white light pixel block;

[0100] When both the white smoke pixel block and the white light pixel block are identified at the same time, it is determined that the welding flame has both white smoke and white light;

[0101] When the white smoke pixel block and the white light pixel block are not identified at the same time, it is determined that the welding flame does not produce white smoke and white light at the same time.

[0102] Specifically, the second monitoring image is converted into a grayscale image, and the pixel value of each pixel in the grayscale image is determined; a segmentation threshold is determined based on the pixel value of each pixel in the grayscale image, and the segmentation threshold may be an average value of the pixel values ​​of each pixel in the grayscale image; color threshold segmentation is performed based on the segmentation threshold, and a plurality of white pixel blocks are determined in the grayscale image, and the pixel values ​​of the pixels in the white pixel blocks are all greater than the segmentation threshold; the brightness of each white pixel block is determined, and white pixel blocks with brightness greater than the brightness threshold are identified as white light pixel blocks, and white pixel blocks with brightness less than the brightness threshold are identified as white smoke pixel blocks (the white light brightness of phosphorus volatilization combustion is the highest, the brightness of the flame itself is in the middle, and the brightness of the smoke is the lowest); when the white smoke pixel block and the white light pixel block are identified at the same time, it is judged that the welding flame simultaneously appears white smoke and white light; when the white smoke pixel block and the white light pixel block are not identified at the same time, it is judged that the welding flame does not simultaneously appear white smoke and white light.

[0103] It can be understood that by identifying the white pixel blocks in the grayscale image of the second monitoring image, the current welding flame and the area around the welding flame that appears white are actually found. Based on the different brightness of white smoke and white light, the welding flame and the area around the welding flame that appears white are identified as white smoke or white light.

[0104] In a feasible embodiment of the present application, in order to enable the welder to adjust the welding flame in time when the welding flame shows white light and white smoke, prompt information can be adaptively generated based on the trachoma defect detection result, thereby prompting the welder to adjust the welding flame. For example, when the welding flame shows white light and white smoke at the same time, prompt information is generated to prompt the welder to lower the temperature of the welding flame to avoid the volatilization of phosphorus in the solder, thereby avoiding the generation of trachoma defects.

[0105] In a feasible embodiment of the present application, the detection of pore defects according to the second monitoring image can be specifically performed through the following steps:

[0106] judging whether the welding flame is a reducing flame according to the second monitoring image;

[0107] When the welding flame is a reducing flame, the porosity defect detection result is determined to be a porosity result;

[0108] When the welding flame is not a reducing flame, the porosity defect detection result is determined to be a no-porosity result.

[0109] Specifically, a normal welding flame is transparent blue. During the welding process, due to the heating of the welding flame, the welding material will produce a large amount of gas, such as hydrogen and carbon dioxide. When these gases are not effectively discharged and burned at the same time, it will lead to the consumption of oxygen, the generation of water vapor and carbon dioxide, resulting in insufficient oxygen in the welding flame and the appearance of a reducing flame, that is, the color of the flame will change from blue to yellow or orange, and the flame will become turbid. At the same time, the instantaneous heating of the generated water vapor will cause the flame to increase instantaneously, and the shape of the flame will become larger instantly. (such as Figure 3 If the generation of reducing flame is not intervened in time (as shown in "Welding flame causing porosity defects"), pores will appear in the welded copper tube after welding, affecting the material properties.

[0110] Therefore, during the welding process, by detecting whether the welding flame suddenly increases, whether it is turbid, and whether it remains blue, it can be determined whether the welding flame is a reducing flame, and thus whether porosity defects will appear in the welded copper tube after welding.

[0111] In a feasible embodiment of the present application, in order to accurately determine whether the welding flame is a reducing flame, the characteristics of the welding flame can be analyzed based on the second monitoring image. In this embodiment, determining whether the welding flame is a reducing flame can be specifically achieved through the following steps:

[0112] Determine the flame edge perimeter, flame hue and flame texture of the welding flame according to the second monitoring image; wherein the flame edge perimeter is determined by edge detection, the flame hue is determined by an HSV histogram of the second monitoring image, and the flame texture is determined by a gray level co-occurrence matrix;

[0113] When the perimeter of the flame edge is greater than the perimeter threshold, the flame hue is not blue, and the flame texture is turbid, the welding flame is judged to be a reducing flame;

[0114] When the perimeter of the flame edge is less than or equal to the perimeter threshold, the flame hue is blue, or the flame texture is a transparent flame, it is determined that the welding flame is not a reducing flame.

[0115] Specifically, the circumference of the flame edge of the welding flame is determined by edge detection, and the flame edge of the welding flame is extracted by edge detection, so as to calculate the circumference of the flame edge of the welding flame; the flame hue of the welding flame can be determined based on the HSV histogram of the second monitoring image, and its specific implementation method is similar to the method of determining the copper tube hue in the above embodiment, which will not be elaborated here; the flame texture of the welding flame can be determined based on the grayscale co-occurrence matrix. The grayscale co-occurrence matrix is ​​an image processing and texture analysis technology used to quantify the statistical correlation between pixel grayscale values ​​in digital images, which can help analyze the texture features of the image, such as image roughness, contrast, structure, etc. Since the image texture analysis method based on the grayscale co-occurrence matrix already exists in the prior art, it will not be elaborated here.

[0116] Compare the perimeter of the flame edge with the perimeter threshold to determine whether the perimeter of the flame edge has a sudden change. When the perimeter of the flame edge is greater than the perimeter threshold, it indicates that the current welding flame has suddenly increased. The perimeter threshold can be determined by a technician in this field based on the perimeter of a standard welding flame, or it can be determined based on the perimeter of the flame edge of a welding flame at a historical moment before the current moment. For example, in the video of the entire copper pipe welding process, the second monitoring images P1 and P2 at two adjacent moments are obtained. The perimeter of the flame edge monitored in P1 is C1, and the perimeter of the flame edge monitored in P2 is C2. Then the perimeter threshold can be set to C1+a, and a can be set by a technician in this field. When C2 is greater than C1+a, it can be considered that the perimeter of the flame edge has a sudden change and has increased significantly.

[0117] It can be understood that when the circumference of the flame edge is greater than the circumference threshold, the flame hue is not blue and the flame texture is a turbid flame, the current welding flame suddenly increases significantly, obviously shows other hues other than blue and is relatively turbid, then the welding flame can be considered to be a reducing flame at this time; conversely, when the circumference of the flame edge is less than or equal to the circumference threshold, the flame hue is blue or the flame texture is a transparent flame, the current welding flame is relatively stable, obviously shows a blue hue and is relatively transparent, then it can be considered that the welding flame does not appear as a reducing flame at this time and is relatively normal.

[0118] In a feasible embodiment of the present application, in order to enable the welder to adjust the welding flame in time when the welding flame behaves as a reducing flame, prompt information can be adaptively generated based on the porosity defect detection result, thereby prompting the welder to adjust the welding flame. For example, when the welding flame behaves as a reducing flame, prompt information is generated to prompt the welder to reduce the fuel output of the welding flame and reduce the welding speed, thereby avoiding the generation of porosity defects.

[0119] Figure 4 The overall process diagram of a copper tube welding detection method provided in an embodiment of the present application is as follows. Based on all the above embodiments, the overall process of a copper tube welding detection method provided in an embodiment of the present application during specific implementation may be:

[0120] When the welding operation starts, the camera device is turned on to capture the video of the entire copper tube welding process in real time; a first monitoring image is obtained from the video of the entire copper tube welding process, and the copper tube temperature is detected based on the first monitoring image; when the temperature detection of the copper tube obtains an abnormal temperature result, the welder adjusts the welding flame, and after the adjustment, the copper tube temperature is detected again; when the temperature detection of the copper tube obtains a normal temperature result, the welder adds solder; after adding solder, a second monitoring image is obtained from the video of the entire copper tube welding process, and trachoma defect detection is performed based on the second monitoring image; when the trachoma defect detection obtains a trachoma result, the welder adjusts the welding flame, and after the adjustment, the trachoma defect detection is performed again; when the temperature detection of the copper tube obtains a no trachoma result, pore defect detection is performed based on the second monitoring image; when the pore defect detection obtains a pore result, the welder adjusts the welding flame, and after the adjustment, the pore defect detection is performed again; when the temperature detection of the copper tube obtains a no pore result, the monitoring of the entire copper tube welding process is completed.

[0121] It is understood that during the heating process, the copper tube temperature detection continues until the welder adds solder. During the welding process, the sand hole defect detection and the air hole defect detection continue at the same time until the welder finishes the welding operation.

[0122] Through the technical solution provided in the present application, the temperature of the copper tube is detected in real time through the copper tube image during the heating process, and the welding flame is detected in real time through the flame image during the welding process, and the corresponding detection results are generated in real time, so as to realize the monitoring of the whole process of copper tube welding and realize the detection of copper tube welding quality during the copper tube welding process.

[0123] Corresponding to the above method embodiment, the embodiment of the present application also provides a copper tube welding detection device. Figure 5 A schematic diagram of a copper pipe welding detection device provided in an embodiment of the present application, referring to Figure 5 , a copper tube welding detection device provided in an embodiment of the present application specifically includes:

[0124] The first acquisition module 501 is used to continuously acquire a first monitoring image; wherein the first monitoring image is an image of the copper tube during the heating process before adding solder;

[0125] The first detection module 502 is used to perform real-time detection of the temperature of the copper tube during the heating process according to the first monitoring image, and determine the detection result of the temperature of the copper tube;

[0126] The second acquisition module 503 is used to continuously acquire a second monitoring image; wherein the second monitoring image is an image of a welding flame during the welding process after adding solder;

[0127] The second detection module 504 is used to perform real-time detection of welding defects in the welding process according to the second monitoring image to determine welding defect detection results; wherein the welding defects at least include sand hole defects and porosity defects.

[0128] In a feasible embodiment of the present application, the copper tube temperature detection result is a normal temperature result or an abnormal temperature result, and the first detection module 502 includes:

[0129] A first judging unit, configured to judge whether the color tone of the copper tube is a standard color tone during the heating process according to the first monitoring image;

[0130] The first determination unit is used to determine that the copper tube temperature detection result is a normal temperature result when the copper tube color tone is a standard color tone;

[0131] The second determination unit is used to determine that the copper pipe temperature detection result is a temperature abnormality result when the copper pipe color tone is not a standard color tone.

[0132] In a feasible embodiment of the present application, the first judgment unit includes:

[0133] A first conversion subunit is used to convert the first monitoring image from the RGB color space to the HSV color space, thereby determining an HSV histogram of the first monitoring image, and determining a tone curve in the HSV histogram; wherein the vertical axis in the HSV histogram represents the frequency of occurrence of the tone, and the horizontal axis in the HSV histogram represents the tone;

[0134] A first determination subunit is used to determine the maximum hue occurrence frequency according to the hue curve, determine the hue corresponding to the maximum hue occurrence frequency in the HSV histogram, and judge whether the hue corresponding to the maximum hue occurrence frequency is within the hue range corresponding to the standard hue;

[0135] A first judging subunit is used to judge that the hue of the copper tube is the standard hue during the heating process when the hue corresponding to the maximum hue occurrence frequency is within the hue range corresponding to the standard hue;

[0136] The second judgment subunit is used to judge that the color tone of the copper tube is not the standard color tone during the heating process when the color tone corresponding to the maximum color tone occurrence frequency is not within the color tone range corresponding to the standard color tone.

[0137] In a feasible embodiment of the present application, the welding defect detection result includes a trachoma defect detection result, and the trachoma defect detection result is a trachoma result or a trachoma-free result. The second detection unit 504 includes:

[0138] A second judging unit is used to judge whether white smoke and white light appear simultaneously in the welding flame according to the second monitoring image;

[0139] The third determination unit is used to determine that the trachoma defect detection result is a trachoma result when white smoke and white light appear simultaneously in the welding flame;

[0140] The fourth determination unit is used to determine that the trachoma defect detection result is a no-trachoma result when the welding flame does not produce white smoke and white light at the same time.

[0141] In a feasible embodiment of the present application, the second judgment unit includes:

[0142] A second conversion subunit, used for converting the second monitoring image into a grayscale image;

[0143] The recognition subunit is used to perform color threshold segmentation on the grayscale image through a segmentation threshold, and identify white pixel blocks in the grayscale image; wherein the segmentation threshold is determined according to the pixel value of the pixel point in the grayscale image;

[0144] A second determination subunit is used to determine the type of the white pixel block according to the brightness of the white pixel block when a white pixel block is identified; wherein the type of the white pixel block is a white smoke pixel block or a white light pixel block;

[0145] The third judgment subunit is used to judge that the welding flame has both white smoke and white light when both the white smoke pixel block and the white light pixel block are identified at the same time;

[0146] The fourth judgment subunit is used to judge that the welding flame does not produce white smoke and white light at the same time when the white smoke pixel block and the white light pixel block are not identified at the same time.

[0147] In a feasible embodiment of the present application, the welding defect detection result includes a porosity defect detection result, and the porosity defect detection result is a porosity result or a non-porosity result. The second detection module 504 includes:

[0148] A third judging unit, used for judging whether the welding flame is a reducing flame according to the second monitoring image;

[0149] A fifth determination unit, configured to determine, when the welding flame is a reducing flame, that the porosity defect detection result is a porosity result;

[0150] The sixth determination unit is used to determine that the porosity defect detection result is a no-porosity result when the welding flame is not a reducing flame.

[0151] In a feasible embodiment of the present application, the third judgment unit includes:

[0152] a third determination subunit, configured to determine the flame edge perimeter, flame hue, and flame texture of the welding flame according to the second monitoring image; wherein the flame edge perimeter is determined by edge detection, the flame hue is determined by an HSV histogram of the second monitoring image, and the flame texture is determined by a gray level co-occurrence matrix;

[0153] A fifth judgment subunit is used to judge that the welding flame is a reducing flame when the perimeter of the flame edge is greater than the perimeter threshold, the flame hue is not blue, and the flame texture is a turbid flame;

[0154] The sixth judgment subunit is used to judge that the welding flame is not a reducing flame when the perimeter of the flame edge is less than or equal to the perimeter threshold, the flame hue is blue, or the flame texture is a transparent flame.

[0155] like Figure 6 As shown, the embodiment of the present application provides an air conditioner control device, including a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.

[0156] Memory 603, used for storing computer programs;

[0157] In one embodiment of the present application, the processor 601 is used to execute the program stored in the memory 603 to implement a copper pipe welding detection method provided by any one of the aforementioned method embodiments, including:

[0158] Continuously acquiring a first monitoring image; wherein the first monitoring image is an image of the copper tube during the heating process before adding solder;

[0159] Performing real-time detection of the temperature of the copper tube during the heating process according to the first monitoring image to determine the detection result of the temperature of the copper tube;

[0160] Continuously acquiring a second monitoring image; wherein the second monitoring image is an image of a welding flame during the welding process after adding solder;

[0161] The welding defects in the welding process are detected in real time according to the second monitoring image to determine the welding defect detection result; wherein the welding defects at least include sand hole defects and porosity defects.

[0162] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of a copper tube welding detection method provided in any of the aforementioned method embodiments are implemented.

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

[0164] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0165] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0166] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A copper tube welding detection method, characterized in that: The method comprises: Continuously acquiring a first monitoring image; wherein the first monitoring image is an image of the copper tube during the heating process before adding solder; Performing real-time detection of the temperature of the copper tube during the heating process according to the first monitoring image to determine a detection result of the temperature of the copper tube; Continuously acquiring a second monitoring image; wherein the second monitoring image is an image of a welding flame during the welding process after adding solder; The welding defects in the welding process are detected in real time according to the second monitoring image to determine the welding defect detection result; wherein the welding defects at least include sand hole defects and porosity defects.

2. The method according to claim 1, characterized in that The copper tube temperature detection result is a normal temperature result or an abnormal temperature result. The temperature of the copper tube in the heating process is detected in real time according to the first monitoring image to determine the copper tube temperature detection result, including: determining, according to the first monitoring image, whether the color tone of the copper tube is a standard color tone during the heating process; When the copper tube color tone is the standard color tone, determining that the copper tube temperature detection result is the normal temperature result; When the color tone of the copper pipe is not the standard color tone, it is determined that the temperature detection result of the copper pipe is the temperature abnormality result.

3. The method according to claim 2, characterized in that Judging whether the color tone of the copper tube is a standard color tone during the heating process according to the first monitoring image includes: Converting the first monitoring image from the RGB color space to the HSV color space, thereby determining an HSV histogram of the first monitoring image, and determining a tone curve in the HSV histogram; wherein the vertical axis in the HSV histogram represents the frequency of occurrence of the tone, and the horizontal axis in the HSV histogram represents the tone; Determine the maximum hue occurrence frequency according to the hue curve, determine the hue corresponding to the maximum hue occurrence frequency in the HSV histogram, and judge whether the hue corresponding to the maximum hue occurrence frequency is within the hue range corresponding to the standard hue; When the hue corresponding to the maximum hue occurrence frequency is within the hue range corresponding to the standard hue, it is determined that the hue of the copper tube during the heating process is the standard hue; When the hue corresponding to the maximum hue occurrence frequency is not within the hue range corresponding to the standard hue, it is determined that the hue of the copper pipe is not the standard hue during the heating process.

4. The method according to claim 1, characterized in that The welding defect detection result includes a trachoma defect detection result, and the trachoma defect detection result is a trachoma result or a trachoma-free result. The welding defects in the welding process are detected in real time according to the second monitoring image to determine the welding defect detection result, including: Determining whether white smoke and white light appear simultaneously in the welding flame according to the second monitoring image; In the case where white smoke and white light appear simultaneously in the welding flame, determining the trachoma defect detection result as the trachoma result; When the welding flame does not produce white smoke and white light at the same time, the trachoma defect detection result is determined to be the trachoma-free result.

5. The method according to claim 1, characterized in that Judging whether white smoke and white light appear simultaneously in the welding flame according to the second monitoring image includes: converting the second monitoring image into a grayscale image; Performing color threshold segmentation on the grayscale image by using a segmentation threshold to identify white pixel blocks in the grayscale image; wherein the segmentation threshold is determined according to the pixel value of the pixel point in the grayscale image; When the white pixel block is identified, determining the type of the white pixel block according to the brightness of the white pixel block; wherein the type of the white pixel block is a white smoke pixel block or a white light pixel block; When the white smoke pixel block and the white light pixel block are identified at the same time, it is determined that the welding flame simultaneously produces white smoke and white light; When the white smoke pixel block and the white light pixel block are not identified at the same time, it is determined that the welding flame does not produce white smoke and white light at the same time.

6. The method according to claim 4, characterized in that The welding defect detection result includes a porosity defect detection result, and the porosity defect detection result is a porosity result or a non-porosity result. The welding defects in the welding process are detected in real time according to the second monitoring image to determine the welding defect detection result, including: judging whether the welding flame is a reducing flame according to the second monitoring image; In the case where the welding flame is the reducing flame, determining the porosity defect detection result as the porosity result; In a case where the welding flame is not the reducing flame, the porosity defect detection result is determined to be the no-porosity result.

7. The method according to claim 6, characterized in that Judging whether the welding flame is a reducing flame according to the second monitoring image includes: Determine the flame edge perimeter, flame hue and flame texture of the welding flame according to the second monitoring image; wherein the flame edge perimeter is determined by edge detection, the flame hue is determined by the HSV histogram of the second monitoring image, and the flame texture is determined by a gray level co-occurrence matrix; In the case where the perimeter of the flame edge is greater than the perimeter threshold, the flame hue is not blue, and the flame texture is a turbid flame, the welding flame is judged to be the reducing flame; When the perimeter of the flame edge is less than or equal to the perimeter threshold, the flame hue is blue, or the flame texture is a transparent flame, it is determined that the welding flame is not the reducing flame.

8. A copper tube welding detection device, characterized in that: The device comprises: A first acquisition module is used to continuously acquire a first monitoring image; wherein the first monitoring image is an image of the copper tube during the heating process before adding solder; A first detection module, used for performing real-time detection of the temperature of the copper tube during the heating process according to the first monitoring image, and determining a detection result of the temperature of the copper tube; A second acquisition module is used to continuously acquire a second monitoring image; wherein the second monitoring image is an image of a welding flame during the welding process after adding solder; The second detection module is used to perform real-time detection of welding defects in the welding process according to the second monitoring image to determine welding defect detection results; wherein the welding defects at least include sand hole defects and porosity defects.

9. An electronic device, characterized in that: include: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor coupled to the at least one bus; At least one memory connected to the at least one bus, wherein the processor is configured to execute the method according to any one of claims 1-7.

10. A computer storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to execute the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Pipe welding line on-line detection device

    CN104280399A

  • Blind hole surfacing method for subsea Christmas tree flat plate piece

    CN114799416A

  • Copper pipe weld defect detection method and system based on image processing

    CN115082444A

  • Manual high-precision flame brazing method for hard alloy and stainless steel

    CN115889915A

  • Device for detecting positions of seam part and heating part of welded steel pipe, facility for manufacturing welded steel pipe, method for detecting positions of seam part and heating part of welded steel pipe, method for manufacturing welded steel pipe, and method for managing quality of welded steel pipe

    CN117441088A

Cited By

  • Metal pipe joint flame brazing completion degree detection method

    CN119338850A