[go: up one dir, main page]

CN115018816A - Image processing method, device, equipment and storage medium for real-time detection of molten pool width - Google Patents

Image processing method, device, equipment and storage medium for real-time detection of molten pool width Download PDF

Info

Publication number
CN115018816A
CN115018816A CN202210763114.6A CN202210763114A CN115018816A CN 115018816 A CN115018816 A CN 115018816A CN 202210763114 A CN202210763114 A CN 202210763114A CN 115018816 A CN115018816 A CN 115018816A
Authority
CN
China
Prior art keywords
molten pool
image
width
grayscale
real
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210763114.6A
Other languages
Chinese (zh)
Inventor
宋仕超
汤成
李小鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chuangxiang Intelligent Control Technology Shenzhen Co ltd
Original Assignee
Chuangxiang Intelligent Control Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chuangxiang Intelligent Control Technology Shenzhen Co ltd filed Critical Chuangxiang Intelligent Control Technology Shenzhen Co ltd
Priority to CN202210763114.6A priority Critical patent/CN115018816A/en
Publication of CN115018816A publication Critical patent/CN115018816A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • G06T5/30Erosion or dilatation, e.g. thinning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/155Segmentation; Edge detection involving morphological operators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • G06T2207/20032Median filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20036Morphological image processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

本发明适用焊接质量的在线检测技术领域,发明提供了一种实时检测熔池宽度的图像处理方法、装置、设备及存储介质,处理方法包括采集图像、中值滤波、阈值分割、边缘平滑和计算熔池宽度,通过本发明提供的方法,可以清晰准确地获取熔池宽度信息,方便为后续检测焊接质量提供可靠的依据。

Figure 202210763114

The invention is applicable to the technical field of on-line detection of welding quality, and the invention provides an image processing method, device, equipment and storage medium for real-time detection of molten pool width. The processing method includes image acquisition, median filtering, threshold segmentation, edge smoothing and calculation The width of the molten pool, through the method provided by the present invention, the information of the width of the molten pool can be obtained clearly and accurately, and it is convenient to provide a reliable basis for the subsequent detection of the welding quality.

Figure 202210763114

Description

一种实时检测熔池宽度的图像处理方法、装置、设备及存储 介质An image processing method, device, equipment and storage medium for real-time detection of molten pool width

技术领域technical field

本发明属于焊接质量的在线检测技术领域,尤其涉及一种实时检测熔池宽度的图像处理方法、装置、设备及存储介质。The invention belongs to the technical field of on-line detection of welding quality, and in particular relates to an image processing method, device, equipment and storage medium for real-time detection of the width of a molten pool.

背景技术Background technique

要实现焊接质量状态的在线控制,必须要解决的问题是焊接熔池信息的实时检测。随着对GMAW(气体保护焊)焊研究的深入,许多研究者从不同角度提取到了丰富的熔池信息,通过对信息进行处理分析,可以在一定程度上用来表征焊缝的质量状态,根据电弧及熔池信息获取方式的不同,焊接质量的在线检测方法主要有电弧声传感检测法、温度场传感检测法、振荡频率检传感测法、及视觉传感检测法。In order to realize the online control of welding quality status, the problem that must be solved is the real-time detection of welding pool information. With the in-depth study of GMAW (Gas Shielded Welding) welding, many researchers have extracted rich molten pool information from different angles. By processing and analyzing the information, it can be used to characterize the quality state of the weld to a certain extent. According to According to the different acquisition methods of arc and molten pool information, the online detection methods of welding quality mainly include arc acoustic sensing detection method, temperature field sensing detection method, oscillation frequency detection sensing method, and visual sensing detection method.

通过国内外对熔池检测技术的研究现状可以看出,视觉传感检测法不与焊接回路接触,与焊接过程中间不会存在彼此影响的情况,而且对获得的熔池图像进行处理能够得到直观的熔池形状,并提取出丰富的特征参数,逐渐成为熔池监测技术中的主流趋势。From the research status of welding pool detection technology at home and abroad, it can be seen that the visual sensing detection method does not contact the welding circuit, and there is no mutual influence with the welding process, and the processing of the obtained molten pool image can be intuitive. It has gradually become the mainstream trend in molten pool monitoring technology.

GMAW(气体保护焊)焊接过程中弧光对熔池区域存在干扰,如何可靠地提取正面熔池的宽度特征参数成为亟待解决的问题。During GMAW (Gas Shielded Welding) welding, the arc light interferes with the molten pool area, and how to reliably extract the width characteristic parameters of the frontal molten pool has become an urgent problem to be solved.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种实时检测熔池宽度的图像处理方法、装置、设备及存储介质,旨在解决在GMAW(气体保护焊)焊接过程中弧光对熔池区域存在干扰的情况下,如何可靠地提取正面熔池的宽度特征参数的问题。The purpose of the present invention is to provide an image processing method, device, equipment and storage medium for detecting the width of the molten pool in real time, aiming to solve the problem of how to solve the problem of how to solve the problem that the arc light interferes with the molten pool area during the GMAW (gas shielded welding) welding process. The problem of reliably extracting the width characteristic parameter of the frontal melt pool.

一方面,本发明提供了一种可实时检测熔池宽度的图像处理方法,包括以下步骤:In one aspect, the present invention provides an image processing method capable of detecting the width of a molten pool in real time, comprising the following steps:

采集图像:基于视觉传感系统,采集焊接过程中的正面熔池图像;Image collection: Based on the visual sensing system, collect the frontal molten pool image during the welding process;

中值滤波:采用中值滤波法对原始的熔池图像进行去噪处理;Median filter: use median filter to denoise the original molten pool image;

阈值分割:对熔池图像进行灰度化,在灰度图像中采用阈值分割法提取出熔池图像中熔池所在的区域:Threshold segmentation: grayscale the molten pool image, and use the threshold segmentation method in the grayscale image to extract the region where the molten pool is located in the molten pool image:

边缘平滑:对灰度图像进行边缘平滑处理,获取边缘清晰的灰度图像;Edge smoothing: perform edge smoothing processing on grayscale images to obtain grayscale images with clear edges;

熔池宽度计算:采用取均值计算法对边缘清晰的灰度图像进行处理,获取熔池宽度数据。Calculation of molten pool width: The grayscale image with clear edges is processed by the mean value calculation method, and the data of molten pool width is obtained.

进一步地,在步骤阈值分割中,将熔池区域分为电弧上部区域、电弧区域和电弧下部区域。Further, in the step threshold segmentation, the molten pool area is divided into an upper arc area, an arc area and a lower arc area.

进一步地,选取电弧区域的图像阈值分割全部图像。Further, the image threshold of the arc region is selected to segment all the images.

进一步地,所述步骤熔池宽度计算中的取平均值计算的方法包括:Further, the method for calculating the average value in the calculation of the molten pool width in the step includes:

在边缘清晰的灰度熔池图像中选取熔池部分的整数行像素值;Select the integer row pixel value of the molten pool part in the grayscale molten pool image with clear edges;

计算每一行像素中大于在步骤阈值分割中选取的阈值的像素个数,获得计算结果;Calculate the number of pixels in each row of pixels that are greater than the threshold selected in the step threshold segmentation to obtain the calculation result;

对计算结果取平均值,得到熔池宽度数据,具体计算公式为:Take the average of the calculation results to obtain the molten pool width data. The specific calculation formula is:

Figure BDA0003721545200000021
Figure BDA0003721545200000021

式(1)中,d为熔池宽度,n为每一行图像像素大于阈值的像素个数,共统计B=r2-r1行,γ为相机标定数据即单位像素的世界坐标长度值。In formula (1), d is the width of the molten pool, n is the number of pixels in each line of image pixels greater than the threshold, and B=r2-r1 lines are counted, and γ is the camera calibration data, that is, the world coordinate length value of the unit pixel.

进一步地,在步骤边缘平滑中,具体包括:采用开运算对灰度图像的边缘进行平滑处理。Further, in the step of edge smoothing, it specifically includes: using an open operation to smooth the edge of the grayscale image.

另一方面,本发明还提供了一种可实时检测熔池宽度的图像处理装置,包括:On the other hand, the present invention also provides an image processing device capable of detecting the width of the molten pool in real time, comprising:

图像获取模块,用于基于视觉传感系统,采集焊接过程中的正面熔池图像;The image acquisition module is used to collect the frontal molten pool image during the welding process based on the visual sensing system;

中值滤波模块,用于采用中值滤波法对原始的熔池图像进行去噪处理;The median filter module is used to denoise the original molten pool image by the median filter method;

阈值分割模块,用于对熔池图像进行灰度化,在灰度图像中采用阈值分割法提取出熔池图像中熔池所在的区域:The threshold segmentation module is used to grayscale the molten pool image, and the threshold segmentation method is used in the grayscale image to extract the region where the molten pool is located in the molten pool image:

边缘平滑模块,用于对灰度图像进行边缘平滑处理,获取边缘清晰的灰度图像;The edge smoothing module is used to perform edge smoothing processing on grayscale images to obtain grayscale images with clear edges;

熔池宽度计算模块,用于采用取均值计算法对边缘清晰的灰度图像进行处理,获取熔池宽度数据。The molten pool width calculation module is used to process the grayscale images with clear edges by using the mean calculation method to obtain the molten pool width data.

另一方面,本发明还提供了一种可实时检测熔池宽度的图像处理设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1-5所述方法的步骤。In another aspect, the present invention also provides an image processing device capable of detecting the width of a molten pool in real time, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processing The steps of the method according to claims 1-5 are implemented when the computer executes the computer program.

另一方面,本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-5所述方法的步骤。In another aspect, the present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the steps of the method according to claims 1-5 .

本发明的有益效果:针对GMAW(气体保护焊)焊接过程中弧光对熔池区域存在干扰的问题,通过本发明提供的方法,可以清晰准确地获取正面熔池的宽度数据,便于为后续对焊缝质量状态的检测提供可靠的依据。Beneficial effects of the present invention: Aiming at the problem that the arc light interferes with the molten pool area during GMAW (gas shielded welding) welding, the method provided by the present invention can clearly and accurately obtain the width data of the front molten pool, which is convenient for subsequent butt welding. The detection of seam quality status provides a reliable basis.

附图说明Description of drawings

图1是本发明实施例时检测熔池宽度的图像处理方法的流程图;1 is a flowchart of an image processing method for detecting the width of a molten pool in an embodiment of the present invention;

图2是本发明实施例时检测熔池宽度的图像处理装置的结构图。FIG. 2 is a structural diagram of an image processing device for detecting the width of a molten pool according to an embodiment of the present invention.

图3是本发明实施例时检测熔池宽度的图像处理设备的结构图。FIG. 3 is a structural diagram of an image processing device for detecting the width of a molten pool according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

以下结合具体实施例对本发明的具体实现进行详细描述:The specific implementation of the present invention is described in detail below in conjunction with specific embodiments:

实施例一:Example 1:

如图1所示,本发明实施例一提供了一种实时检测熔池宽度的图像处理方法,包括以下步骤:As shown in FIG. 1 , Embodiment 1 of the present invention provides an image processing method for detecting the width of a molten pool in real time, including the following steps:

步骤S101、采集图像:基于视觉传感系统,采集焊接过程中的正面熔池图像。Step S101 , collecting an image: based on a visual sensing system, collect a frontal molten pool image during the welding process.

步骤S102、中值滤波:采用中值滤波法对原始的熔池图像进行去噪处理。Step S102, median filtering: using median filtering method to denoise the original molten pool image.

焊接过程中,噪声的存在会对熔池特征的提取产生很大的影响,会增加图像处理的难度,降低处理结果的精确性。中值滤波是一种减少边缘模糊的非线性平滑方法,邻域中亮度的中值不受个别噪声毛刺影响,相当好的消除了冲击噪声,可以对该焊接环境下的原始熔池图像进行有效的去噪处理。In the welding process, the existence of noise will have a great impact on the extraction of molten pool features, which will increase the difficulty of image processing and reduce the accuracy of processing results. Median filtering is a nonlinear smoothing method to reduce edge blur. The median value of brightness in the neighborhood is not affected by individual noise burrs, and it eliminates impact noise quite well. denoising processing.

中值滤波的具体过程:对于有限实数集,其排序后中间的数值即为它的中值。集合的大小通常取奇数,以保证中值的唯一性。The specific process of median filtering: For a finite set of real numbers, the middle value after sorting is its median. The size of the set is usually odd to guarantee the uniqueness of the median.

在本发明实施例的熔池图像处理中,取3*3的矩阵,里面有9个像素点,对9个像素进行排序,最后将这个矩阵的中心点赋值为这九个像素的中值,中值的计算如下:In the melt pool image processing of the embodiment of the present invention, a 3*3 matrix is taken, and there are 9 pixels in it, the 9 pixels are sorted, and finally the center point of the matrix is assigned as the median value of the nine pixels, The median is calculated as follows:

g=median[f(x-1,y-1)+f(x,y-1)+f(x+1,y-1)+f(x-1,y)+f(x,y)+f(x+1,y)+f(x-1,y+1)+f(x,y+1)+f(x+1,y+1)] (2)g=median[f(x-1,y-1)+f(x,y-1)+f(x+1,y-1)+f(x-1,y)+f(x,y) +f(x+1,y)+f(x-1,y+1)+f(x,y+1)+f(x+1,y+1)] (2)

式(2)中,g为3*3的矩阵中9个像素的中值。In formula (2), g is the median of 9 pixels in the 3*3 matrix.

步骤S103、阈值分割:对熔池图像进行灰度化,在灰度图像中采用阈值分割法提取出熔池图像中熔池所在的区域:Step S103, threshold segmentation: grayscale the molten pool image, and use the threshold segmentation method in the grayscale image to extract the region where the molten pool is located in the molten pool image:

焊接过程中,由于电弧光的存在,图像中熔池区域的灰度值并不一致。熔池的原始图像最亮部分为电弧区域,被电弧覆盖的区域以及而电弧上下亮度较弱的区域都属于熔池区域。由灰度直方图可以得出,越靠近电弧,图像的灰度值就越高。During the welding process, due to the existence of arc light, the gray value of the molten pool area in the image is not consistent. The brightest part of the original image of the molten pool is the arc area, and the area covered by the arc and the areas with weaker brightness above and below the arc belong to the molten pool area. From the grayscale histogram, it can be concluded that the closer to the arc, the higher the grayscale value of the image.

采用阈值分割的方法对图像进行处理时,因为电弧区域比其他两个区域熔池宽度更宽,亮度更高,图像的像素值更大,因为最终的熔池宽度计算为熔池最宽处的值,此处采用电弧区域的图像阈值分割全部图像。When using the threshold segmentation method to process the image, because the arc area is wider and brighter than the other two areas, the pixel value of the image is larger, because the final melt pool width is calculated as the width of the melt pool at the widest point. value, where the image threshold of the arc region is used to segment all images.

阈值分割公式:Threshold segmentation formula:

Figure BDA0003721545200000051
Figure BDA0003721545200000051

式(3)中,f(x,y)为原图像所有像素,g(x,y)为阈值分割后图像,T为阈值。In formula (3), f(x, y) is all pixels of the original image, g(x, y) is the image after threshold segmentation, and T is the threshold.

步骤S104、边缘平滑:采用开运算对灰度图像进行边缘平滑处理,获取边缘清晰的灰度图像。Step S104 , edge smoothing: use the open operation to perform edge smoothing processing on the grayscale image to obtain a grayscale image with clear edges.

常用的边缘平滑的方法为腐蚀和膨胀算法,该方法属于形态学方法,基本原理是用结构元素对熔池区域进行腐蚀和膨胀,将原图像缩小或者放大一圈,然后通过和原熔池图像求差,就可以得到熔池的轮廓图像。先腐蚀再膨胀是一个重要的形态学变换,成为开运算(opening)。The commonly used edge smoothing methods are erosion and expansion algorithms, which belong to morphological methods. The basic principle is to use structural elements to erode and expand the molten pool area, reduce or enlarge the original image, and then pass the Taking the difference, the contour image of the molten pool can be obtained. Erosion followed by dilation is an important morphological transformation called opening.

Figure BDA0003721545200000052
Figure BDA0003721545200000052

图像X关于结构元素B的开运算记为X·B,则The opening operation of image X with respect to structuring element B is denoted as X·B, then

Figure BDA0003721545200000053
Figure BDA0003721545200000053

式(4)中,

Figure BDA0003721545200000055
为腐蚀运算,⊕为膨胀运算,结构元素B选择3*3的矩阵。In formula (4),
Figure BDA0003721545200000055
For the erosion operation, ⊕ for the expansion operation, and the structuring element B selects a 3*3 matrix.

步骤S105、熔池宽度计算:采用取均值计算法对边缘清晰的灰度图像进行处理,获取熔池宽度数据,具体步骤如下:Step S105, calculation of the width of the molten pool: adopt the mean value calculation method to process the grayscale image with clear edges, and obtain the width of the molten pool. The specific steps are as follows:

步骤S1051、在边缘清晰的灰度熔池图像中选取熔池部分的整数行像素值;Step S1051, selecting integer row pixel values of the molten pool part in the grayscale molten pool image with clear edges;

步骤S1052、计算每一行像素中大于在步骤阈值分割中选取的阈值的像素个数,获得计算结果;Step S1052, calculating the number of pixels in each row of pixels that is greater than the threshold selected in the step threshold segmentation, to obtain a calculation result;

步骤S1053、对计算结果取平均值,得到熔池宽度数据,具体计算公式为:Step S1053, taking the average value of the calculation results to obtain molten pool width data, and the specific calculation formula is:

Figure BDA0003721545200000054
Figure BDA0003721545200000054

式(1)中,d为熔池宽度,n为每一行图像像素大于阈值的像素个数,共统计B=r2-r1行,γ为相机标定数据即单位像素的世界坐标长度值。In formula (1), d is the width of the molten pool, n is the number of pixels in each line of image pixels greater than the threshold, and B=r2-r1 lines are counted, and γ is the camera calibration data, that is, the world coordinate length value of the unit pixel.

实施例二:Embodiment 2:

图2示出了本发明实施例二提供的实时检测熔池宽度的图像处理装置的结构:Fig. 2 shows the structure of the image processing device for real-time detection of molten pool width provided by the second embodiment of the present invention:

图像获取模块201,用于基于视觉传感系统,采集焊接过程中的正面熔池图像;The image acquisition module 201 is used to collect the frontal molten pool image in the welding process based on the visual sensing system;

中值滤波模块202,用于采用中值滤波法对原始的熔池图像进行去噪处理;The median filtering module 202 is used for denoising the original molten pool image by the median filtering method;

阈值分割模块203,用于对熔池图像进行灰度化,在灰度图像中采用阈值分割法提取出熔池图像中熔池所在的区域:The threshold segmentation module 203 is used to grayscale the molten pool image, and use the threshold segmentation method in the grayscale image to extract the region where the molten pool is located in the molten pool image:

边缘平滑模块204,用于对灰度图像进行边缘平滑处理,获取边缘清晰的灰度图像;an edge smoothing module 204, configured to perform edge smoothing processing on the grayscale image to obtain a grayscale image with clear edges;

熔池宽度计算模块205,用于采用取均值计算法对边缘清晰的灰度图像进行处理,获取熔池宽度数据。The molten pool width calculation module 205 is used for processing the grayscale image with clear edge by adopting the mean value calculation method to obtain the molten pool width data.

在本发明实施例中,实时检测熔池宽度的图像处理装置中的各模块可由相应的硬件或软件单元实现,各单元可以为独立的软、硬件单元,也可以集成为一个软、硬件单元,在此不用以限制本发明。In the embodiment of the present invention, each module in the image processing device for real-time detection of the width of the molten pool can be implemented by corresponding hardware or software units, and each unit can be an independent software and hardware unit, or can be integrated into a software and hardware unit, This is not intended to limit the present invention.

实施例三:Embodiment three:

图3示出了本发明实施例三提供的实时检测熔池宽度的图像处理设备的结构,为了便于说明,仅示出了与本发明实施例相关的部分,其中包括:FIG. 3 shows the structure of the image processing device for real-time detection of the width of the molten pool provided by the third embodiment of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown, including:

本发明实施例的实时检测熔池宽度的图像处理设备3包括处理器30、存储器31以及存储在存储器31中并可在处理器30上运行的计算机程序32。该处理器30执行计算机程序32时实现上述实时检测熔池宽度的图像处理方法实施例中的步骤,例如图1所示的步骤S101至S105。或者,处理器30执行计算机程序32时实现上述实时检测熔池宽度的图像处理装置实施例中各模块的功能,例如图2所示模块201至205的功能。The image processing apparatus 3 for detecting the width of the molten pool in real time according to the embodiment of the present invention includes a processor 30 , a memory 31 , and a computer program 32 stored in the memory 31 and running on the processor 30 . When the processor 30 executes the computer program 32 , the steps in the above-mentioned embodiment of the image processing method for detecting the width of the molten pool in real time are implemented, for example, steps S101 to S105 shown in FIG. 1 . Alternatively, when the processor 30 executes the computer program 32, the functions of each module in the above-mentioned embodiment of the image processing apparatus for real-time detection of the width of the molten pool are implemented, for example, the functions of the modules 201 to 205 shown in FIG. 2 .

实施例四:Embodiment 4:

在本发明实施例中,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现上述实时检测熔池宽度的图像处理方法实施例中的步骤,例如,图1所示的步骤S101至S105。或者,该计算机程序被处理器执行时实现上述各装置实施例中各模块的功能,例如图2所示模块201至205的功能。In an embodiment of the present invention, a computer-readable storage medium is provided, and the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned embodiment of the image processing method for detecting the width of a molten pool in real time is implemented steps, for example, steps S101 to S105 shown in FIG. 1 . Alternatively, when the computer program is executed by the processor, the functions of the modules in the above device embodiments, for example, the functions of the modules 201 to 205 shown in FIG. 2 , are implemented.

本发明实施例的计算机可读存储介质可以包括能够携带计算机程序代码的任何实体或装置、记录介质,例如,ROM/RAM、磁盘、光盘、闪存等存储器。The computer-readable storage medium of the embodiments of the present invention may include any entity or device capable of carrying computer program codes, recording medium, for example, memory such as ROM/RAM, magnetic disk, optical disk, flash memory, and the like.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.

Claims (8)

1.一种实时检测熔池宽度的图像处理方法,其特征在于,所述方法包括以下步骤:1. an image processing method of real-time detection of molten pool width, is characterized in that, described method comprises the following steps: 采集图像:基于视觉传感系统,采集焊接过程中的正面熔池图像;Image collection: Based on the visual sensing system, collect the frontal molten pool image during the welding process; 中值滤波:采用中值滤波法对原始的熔池图像进行去噪处理;Median filter: use median filter to denoise the original molten pool image; 阈值分割:对熔池图像进行灰度化,在灰度图像中采用阈值分割法提取出熔池图像中熔池所在的区域:Threshold segmentation: grayscale the molten pool image, and use the threshold segmentation method in the grayscale image to extract the region where the molten pool is located in the molten pool image: 边缘平滑:对灰度图像进行边缘平滑处理,获取边缘清晰的灰度图像;Edge smoothing: perform edge smoothing processing on grayscale images to obtain grayscale images with clear edges; 熔池宽度计算:采用取均值计算法对边缘清晰的灰度图像进行处理,获取熔池宽度数据。Calculation of molten pool width: The grayscale image with clear edges is processed by the mean value calculation method, and the data of molten pool width is obtained. 2.根据权利要求1所述的实时检测熔池宽度的图像处理方法,其特征在于,在步骤阈值分割中,将熔池区域分为电弧上部区域、电弧区域和电弧下部区域。2 . The image processing method for real-time detection of molten pool width according to claim 1 , wherein, in the step threshold segmentation, the molten pool region is divided into an arc upper region, an arc region and an arc lower region. 3 . 3.根据权利要求2所述的实时检测熔池宽度的图像处理方法,其特征在于,选取电弧区域的图像阈值分割全部图像。3 . The image processing method for real-time detection of molten pool width according to claim 2 , wherein the image threshold value of the arc region is selected to divide all the images. 4 . 4.根据权利要求3所述的实时检测熔池宽度的图像处理方法,其特征在于,所述步骤熔池宽度计算中的取平均值计算的方法包括:4. the image processing method of real-time detection of molten pool width according to claim 3, is characterized in that, the method for taking average value in the calculation of molten pool width of described step comprises: 在边缘清晰的灰度熔池图像中选取熔池部分的整数行像素值;Select the integer row pixel value of the molten pool part in the grayscale molten pool image with clear edges; 计算每一行像素中大于在步骤阈值分割中选取的阈值的像素个数,获得计算结果;Calculate the number of pixels in each row of pixels that are greater than the threshold selected in the step threshold segmentation to obtain the calculation result; 对计算结果取平均值,得到熔池宽度数据,具体计算公式为:Take the average of the calculation results to obtain the molten pool width data. The specific calculation formula is:
Figure FDA0003721545190000011
Figure FDA0003721545190000011
上式中,d为熔池宽度,n为每一行图像像素大于阈值的像素个数,共统计B=r2-r1行,γ为相机标定数据即单位像素的世界坐标长度值。In the above formula, d is the width of the molten pool, n is the number of pixels in each line of image pixels greater than the threshold, and a total of B=r2-r1 lines are counted, and γ is the camera calibration data, that is, the world coordinate length value of the unit pixel.
5.根据权利要求1所述的实时检测熔池宽度的图像处理方法,其特征在于,在步骤边缘平滑中,具体包括:采用开运算对灰度图像的边缘进行平滑处理。5 . The image processing method for real-time detection of molten pool width according to claim 1 , wherein in the step of smoothing the edge, it specifically comprises: using an open operation to smooth the edge of the grayscale image. 6 . 6.一种实时检测熔池宽度的图像处理装置,其特征在于,所述装置包括:6. An image processing device for real-time detection of molten pool width, wherein the device comprises: 图像获取模块,用于基于视觉传感系统,采集焊接过程中的正面熔池图像;The image acquisition module is used to collect the frontal molten pool image during the welding process based on the visual sensing system; 中值滤波模块,用于采用中值滤波法对原始的熔池图像进行去噪处理;The median filter module is used to denoise the original molten pool image by the median filter method; 阈值分割模块,用于对熔池图像进行灰度化,在灰度图像中采用阈值分割法提取出熔池图像中熔池所在的区域:The threshold segmentation module is used to grayscale the molten pool image, and the threshold segmentation method is used in the grayscale image to extract the region where the molten pool is located in the molten pool image: 边缘平滑模块,用于对灰度图像进行边缘平滑处理,获取边缘清晰的灰度图像;The edge smoothing module is used to perform edge smoothing processing on grayscale images to obtain grayscale images with clear edges; 熔池宽度计算模块,用于采用取均值计算法对边缘清晰的灰度图像进行处理,获取熔池宽度数据。The molten pool width calculation module is used to process the grayscale images with clear edges by using the mean calculation method to obtain the molten pool width data. 7.一种实时检测熔池宽度的图像处理设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至5任一项所述方法的步骤。7. an image processing device for detecting the width of molten pool in real time, comprising a memory, a processor and a computer program stored in the memory and running on the processor, wherein the processor executes the A computer program implementing the steps of the method as claimed in any one of claims 1 to 5. 8.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述方法的步骤。8. A computer-readable storage medium storing a computer program, wherein the computer program implements the steps of the method according to any one of claims 1 to 5 when the computer program is executed by a processor .
CN202210763114.6A 2022-06-29 2022-06-29 Image processing method, device, equipment and storage medium for real-time detection of molten pool width Pending CN115018816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210763114.6A CN115018816A (en) 2022-06-29 2022-06-29 Image processing method, device, equipment and storage medium for real-time detection of molten pool width

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210763114.6A CN115018816A (en) 2022-06-29 2022-06-29 Image processing method, device, equipment and storage medium for real-time detection of molten pool width

Publications (1)

Publication Number Publication Date
CN115018816A true CN115018816A (en) 2022-09-06

Family

ID=83078600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210763114.6A Pending CN115018816A (en) 2022-06-29 2022-06-29 Image processing method, device, equipment and storage medium for real-time detection of molten pool width

Country Status (1)

Country Link
CN (1) CN115018816A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102519387A (en) * 2011-10-27 2012-06-27 哈尔滨工业大学 Visual inspection method of electron beam welding pool shape parameter
CN103506756A (en) * 2013-09-11 2014-01-15 上海交通大学 Laser lap welding gap detecting system and laser lap welding gap detecting method based on molten pool image visual sensing
US20170095885A1 (en) * 2014-03-31 2017-04-06 Hitachi Automotive Systems, Ltd. Laser Welding Quality Determination Method and Laser Welding Apparatus Equipped with Quality Determination Mechanism
CN110345874A (en) * 2019-08-16 2019-10-18 上海创和亿电子科技发展有限公司 A kind of new method based on mechanical vision inspection technology measurement pipe tobacco width
CN113643272A (en) * 2021-08-24 2021-11-12 凌云光技术股份有限公司 Target positioning modeling method
CN114677296A (en) * 2022-03-18 2022-06-28 西南交通大学 Multi-feature extraction method suitable for narrow-gap MAG surfacing molten pool image

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102519387A (en) * 2011-10-27 2012-06-27 哈尔滨工业大学 Visual inspection method of electron beam welding pool shape parameter
CN103506756A (en) * 2013-09-11 2014-01-15 上海交通大学 Laser lap welding gap detecting system and laser lap welding gap detecting method based on molten pool image visual sensing
US20170095885A1 (en) * 2014-03-31 2017-04-06 Hitachi Automotive Systems, Ltd. Laser Welding Quality Determination Method and Laser Welding Apparatus Equipped with Quality Determination Mechanism
CN110345874A (en) * 2019-08-16 2019-10-18 上海创和亿电子科技发展有限公司 A kind of new method based on mechanical vision inspection technology measurement pipe tobacco width
CN113643272A (en) * 2021-08-24 2021-11-12 凌云光技术股份有限公司 Target positioning modeling method
CN114677296A (en) * 2022-03-18 2022-06-28 西南交通大学 Multi-feature extraction method suitable for narrow-gap MAG surfacing molten pool image

Similar Documents

Publication Publication Date Title
CN107808378B (en) Detection method for latent defects of complex structural castings based on vertical vertical and horizontal line profile features
CN111612781A (en) A screen defect detection method, device and head-mounted display device
CN111696107B (en) Molten pool contour image extraction method for realizing closed connected domain
CN110163219B (en) Object Detection Method Based on Image Edge Recognition
CN109242853B (en) An intelligent detection method for PCB defects based on image processing
CN115908415B (en) Edge-based defect detection method, device, equipment and storage medium
CN108320280A (en) The crater image method for detecting abnormality of view-based access control model clarity and contours extract
CN113674206B (en) A method for extracting characteristic parameters of molten pool and keyhole entrance suitable for deep penetration K-TIG welding
CN111275659B (en) Weld image processing method and device, terminal equipment and storage medium
CN116542967B (en) Method, device and equipment for detecting defects of lithium battery pole
CN114926387B (en) Weld defect detection method and device based on background estimation and edge gradient suppression
CN101706959A (en) Method for extracting surface defects of metal sheets and strips on basis of two-dimensional information entropy
CN109300127A (en) Defect inspection method, device, computer equipment and storage medium
CN110111350A (en) A kind of welding pool edge detection method, device and storage medium
CN116363126B (en) Welding quality detection method for data line USB plug
CN117611540A (en) A lithium battery pole piece coating defect detection method and related equipment
CN109030499B (en) A device and method suitable for continuous online detection of target defects to prevent repeated counting of the number of defects
CN105678737A (en) Digital image corner point detection method based on Radon transform
CN118570072A (en) Burr detection method and system in titanium metal processing process
CN110298816B (en) Bridge crack detection method based on image regeneration
CN115018816A (en) Image processing method, device, equipment and storage medium for real-time detection of molten pool width
CN112784642B (en) Vehicle detection method and device
CN117911419A (en) Method and device for detecting steel rotation angle enhancement of medium plate, medium and equipment
WO2024125447A1 (en) Image processing method, system and apparatus for eliminating laser layering
CN114235810B (en) An automatic cloth defect detection method based on area array industrial camera

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination