[go: up one dir, main page]

CN115121927B - Real-time centering and correcting method for pipe for electromagnetic pulse welding - Google Patents

Real-time centering and correcting method for pipe for electromagnetic pulse welding Download PDF

Info

Publication number
CN115121927B
CN115121927B CN202210743486.2A CN202210743486A CN115121927B CN 115121927 B CN115121927 B CN 115121927B CN 202210743486 A CN202210743486 A CN 202210743486A CN 115121927 B CN115121927 B CN 115121927B
Authority
CN
China
Prior art keywords
image
pipe
eccentricity
electromagnetic pulse
centering
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.)
Active
Application number
CN202210743486.2A
Other languages
Chinese (zh)
Other versions
CN115121927A (en
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.)
Fuzhou University
Original Assignee
Fuzhou University
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 Fuzhou University filed Critical Fuzhou University
Priority to CN202210743486.2A priority Critical patent/CN115121927B/en
Publication of CN115121927A publication Critical patent/CN115121927A/en
Application granted granted Critical
Publication of CN115121927B publication Critical patent/CN115121927B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23KSOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
    • B23K13/00Welding by high-frequency current heating
    • B23K13/01Welding by high-frequency current heating by induction heating
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E30/00Energy generation of nuclear origin
    • Y02E30/30Nuclear fission reactors

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Butt Welding And Welding Of Specific Article (AREA)

Abstract

本发明涉及一种电磁脉冲焊接用管材实时对中纠偏装置及方法,该装置包括电磁脉冲焊台、管材对中纠偏模块和图像采集处理模块,所述电磁脉冲焊台上安装外管,所述管材对中纠偏模块包括十字滑台机构和控制器,所述十字滑台机构上安装内管,所述图像采集处理模块用于获取内外管装配图像,对图像进行处理并计算内外管偏心距,如果偏心距符合焊接要求,则通过电磁脉冲焊台对内外管进行焊接,如果偏心距不符合焊接要求,则通过控制器控制十字滑台机构驱动内管进行横向及竖向移动,进而调节内外管偏心距,实现内外管对中纠偏。该装置及方法有利于提高口径不同管材电磁脉冲焊接中内外管对中的效率和精度。

Figure 202210743486

The invention relates to a device and method for real-time centering and deviation correction of pipes for electromagnetic pulse welding. The device includes an electromagnetic pulse welding station, a pipe centering and deviation correction module, and an image acquisition and processing module. An outer pipe is installed on the electromagnetic pulse welding station. The pipe centering and deviation correction module includes a cross slide mechanism and a controller. The inner pipe is installed on the cross slide mechanism. The image acquisition and processing module is used to obtain the assembly image of the inner and outer pipes, process the image and calculate the eccentricity of the inner and outer pipes. If the eccentricity meets the welding requirements, the inner and outer tubes are welded by an electromagnetic pulse welding station. If the eccentricity does not meet the welding requirements, the controller controls the cross slide mechanism to drive the inner tube to move horizontally and vertically, and then adjust the inner and outer tubes. Eccentricity, to achieve centering correction of inner and outer tubes. The device and method are beneficial to improving the centering efficiency and accuracy of inner and outer pipes in electromagnetic pulse welding of pipes with different diameters.

Figure 202210743486

Description

一种电磁脉冲焊接用管材实时对中纠偏方法A method for real-time centering and deviation correction of pipes for electromagnetic pulse welding

技术领域technical field

本发明属于焊接技术领域,具体涉及一种电磁脉冲焊接用管材实时对中纠偏装置及方法。The invention belongs to the field of welding technology, in particular to a device and method for real-time centering and deviation correction of pipes for electromagnetic pulse welding.

背景技术Background technique

电磁脉冲技术是基于电磁感应原理,通过瞬间放电,在感应线圈以及高导电性的外管表面产生方向相反的感应磁场,外管在电磁排斥力的作用下与内管高速撞击形成焊接接头。该方法可以有效提高内径不同的管材对接效率。Electromagnetic pulse technology is based on the principle of electromagnetic induction. Through instantaneous discharge, an induced magnetic field in the opposite direction is generated on the surface of the induction coil and the highly conductive outer tube. Under the action of electromagnetic repulsion, the outer tube collides with the inner tube at high speed to form a welded joint. This method can effectively improve the butt joint efficiency of pipes with different inner diameters.

然而,焊接过程中内外管对中与否,即偏心距的大小将决定内管受力以及内外管的结合是否均匀。传统对中方法多采用手动控制十字步进滑台进行对中,效率低且精度差,成为制约进一步效率提高的瓶颈问题。However, during the welding process, whether the inner and outer tubes are centered or not, that is, the size of the eccentricity will determine whether the force on the inner tube and the combination of the inner and outer tubes are uniform. The traditional centering method mostly adopts manual control of the cross-step slide table for centering, which has low efficiency and poor precision, which has become a bottleneck problem restricting further efficiency improvement.

发明内容Contents of the invention

本发明的目的在于提供一种电磁脉冲焊接用管材实时对中纠偏装置及方法,该装置及方法有利于提高口径不同管材电磁脉冲焊接中内外管对中的效率和精度。The object of the present invention is to provide a real-time centering and deviation correction device and method for pipes for electromagnetic pulse welding, which are beneficial to improving the efficiency and accuracy of centering inner and outer pipes in electromagnetic pulse welding of pipes with different diameters.

为实现上述目的,本发明采用的技术方案是:一种电磁脉冲焊接用管材实时对中纠偏装置,包括电磁脉冲焊台、管材对中纠偏模块和图像采集处理模块,所述电磁脉冲焊台上安装外管,所述管材对中纠偏模块包括十字滑台机构和控制器,所述十字滑台机构上安装内管,所述图像采集处理模块用于获取内外管装配图像,对图像进行处理并计算内外管偏心距,如果偏心距符合焊接要求,则通过电磁脉冲焊台对内外管进行焊接,如果偏心距不符合焊接要求,则通过控制器控制十字滑台机构驱动内管进行横向及竖向移动,进而调节内外管偏心距,实现内外管对中纠偏。In order to achieve the above object, the technical solution adopted by the present invention is: a real-time centering and deviation correction device for electromagnetic pulse welding pipes, including an electromagnetic pulse welding station, a pipe centering and deviation correction module, and an image acquisition and processing module. The outer pipe is installed, the pipe centering and deviation correction module includes a cross slide mechanism and a controller, the inner pipe is installed on the cross slide mechanism, and the image acquisition and processing module is used to obtain the assembly image of the inner and outer pipes, process the image and Calculate the eccentricity of the inner and outer tubes. If the eccentricity meets the welding requirements, the inner and outer tubes will be welded by an electromagnetic pulse welding station. If the eccentricity does not meet the welding requirements, the controller will control the cross slide mechanism to drive the inner tube to perform horizontal and vertical welding. Move, and then adjust the eccentricity of the inner and outer tubes, and realize the centering and deviation correction of the inner and outer tubes.

进一步地,所述图像采集处理模块包括工业相机和计算机,所述工业相机拍摄内外管装配图像,然后传输给计算机,所述计算机基于图像处理算法对图像进行处理,获取图像中内外管的轮廓及圆心,进而计算内外管偏心距。Further, the image acquisition and processing module includes an industrial camera and a computer. The industrial camera captures an assembly image of the inner and outer tubes and then transmits it to the computer. The computer processes the image based on an image processing algorithm to obtain the outline of the inner and outer tubes in the image and The center of the circle, and then calculate the eccentricity of the inner and outer tubes.

进一步地,所述图像处理算法为霍夫圆检测算法。Further, the image processing algorithm is a Hough circle detection algorithm.

进一步地,所述计算机根据计算出的内外管偏心距,判断偏心距是否符合焊接要求,是则发送焊接指令给电磁脉冲焊台,通过电磁脉冲焊台对内外管进行焊接;否则发送纠偏指令及偏心距数据给控制器进行纠偏操作,所述控制器根据偏心距数据计算出内管横向及竖向分别需要移动的距离,然后控制十字滑台机构驱动内管进行相应距离的横向及竖向移动,进而实现内外管偏心距的调节;所述图像采集处理模块继续进行内外管装配图像的获取、处理以及内外管偏心距的计算,直至偏心距符合要求。Further, the computer judges whether the eccentricity meets the welding requirements according to the calculated eccentricity of the inner and outer pipes, and if so, sends a welding instruction to the electromagnetic pulse welding station, and welds the inner and outer pipes through the electromagnetic pulse welding station; otherwise, sends a deviation correction instruction and The eccentricity data is used to correct the deviation of the controller. According to the eccentricity data, the controller calculates the horizontal and vertical distances that the inner tube needs to move respectively, and then controls the cross slide mechanism to drive the inner tube to move the corresponding distance horizontally and vertically. , and then realize the adjustment of the eccentricity of the inner and outer tubes; the image acquisition and processing module continues to acquire and process the assembly images of the inner and outer tubes and calculate the eccentricity of the inner and outer tubes until the eccentricity meets the requirements.

进一步地,所述控制器为Arduino单片机。Further, the controller is an Arduino microcontroller.

本发明还提供了一种基于上述装置的电磁脉冲焊接用管材实时对中纠偏方法,包括以下步骤:The present invention also provides a method for real-time centering and deviation correction of pipes for electromagnetic pulse welding based on the above-mentioned device, comprising the following steps:

步骤1.图像采集处理模块上的工业相机获取内外管装配图像,并发送给图像采集处理模块上的计算机;Step 1. The industrial camera on the image acquisition and processing module acquires the assembly image of the inner and outer pipes, and sends it to the computer on the image acquisition and processing module;

步骤2.计算机获取工业相机拍摄的图像,并将非灰度图转化为灰度图;Step 2. The computer obtains the image taken by the industrial camera, and converts the non-grayscale image into a grayscale image;

步骤3.通过包括二值化、中值滤波、高斯模糊的一系列处理,对微小轮廓进行过滤,使图像中的物体边缘更为清晰:Step 3. Through a series of processing including binarization, median filtering, and Gaussian blurring, the tiny contours are filtered to make the edges of objects in the image clearer:

Figure SMS_1
Figure SMS_1

Figure SMS_2
Figure SMS_2

其中,C为轮廓i的周长,n为轮廓个数,AVG为轮廓长度均值,profilei(x,y)为轮廓i的图像;Among them, C is the perimeter of profile i, n is the number of profiles, AVG is the mean value of profile length, and profile i (x, y) is the image of profile i;

步骤4.通过边缘检测对步骤3处理后的边缘图像上的每一个非零点(i,j)计算x方向导数和y方向的导数,从而得到梯度;从边缘点,沿着梯度和梯度的反方向,调节预估最大最小半径,对霍夫圆检测算法的参数指定的预估最小半径rmin到最大半径rmax的每一个像素,在累加器中累加;同时记下边缘图像中每一个非0像素的位置;Step 4. Calculate the x-direction derivative and the y-direction derivative for each non-zero point (i, j) on the edge image processed in step 3 by edge detection, thereby obtaining the gradient; from the edge point, along the inverse of the gradient and the gradient Direction, adjust the estimated maximum and minimum radius, each pixel from the estimated minimum radius r min to the maximum radius r max specified by the parameters of the Hough circle detection algorithm is accumulated in the accumulator; at the same time, record each non- 0 pixel position;

Figure SMS_3
Figure SMS_3

其中,I是图像中像素的值,(i,j)为像素的坐标;Among them, I is the value of the pixel in the image, and (i, j) is the coordinate of the pixel;

步骤5.从累加器中的点中选择候选的中心,候选中心的值都大于设定的阈值并且大于其相邻的四个邻域点的累加值;候选中心按照累加值降序排列;Step 5. Select candidate centers from the points in the accumulator, the values of the candidate centers are greater than the set threshold and greater than the accumulated values of its four adjacent neighbor points; the candidate centers are arranged in descending order according to the accumulated values;

步骤6.对每一个候选中心,考虑边缘图像中所有非0像素,这些非0像素按照其与该候选中心的距离排序,选择非0像素最支持的一条半径;Step 6. For each candidate center, consider all non-zero pixels in the edge image, these non-zero pixels are sorted according to their distance from the candidate center, and select a radius most supported by non-zero pixels;

步骤7.如果一个候选中心受到边缘图像中所有非0像素最充分的支持,并且到前期被选择的候选中心有足够的距离,则该候选中心被保留下来;Step 7. If a candidate center is fully supported by all non-zero pixels in the edge image and has a sufficient distance to the candidate center selected in the previous stage, the candidate center is retained;

步骤8.输出所保留中心及对应圆的半径;Step 8. Output the retained center and the radius of the corresponding circle;

步骤9.计算得到内外管偏心距;Step 9. Calculate the eccentricity of the inner and outer pipes;

步骤10.如果偏心距符合焊接要求,则通过电磁脉冲焊台对内外管进行焊接,如果偏心距不符合焊接要求,则通过管材对中纠偏模块驱动内管进行横向及竖向移动,进而调节内外管偏心距,实现内外管对中纠偏。Step 10. If the eccentricity meets the welding requirements, use the electromagnetic pulse welding station to weld the inner and outer pipes. If the eccentricity does not meet the welding requirements, use the pipe centering correction module to drive the inner pipe to move horizontally and vertically, and then adjust the inner and outer pipes. Tube eccentricity to realize centering and correction of inner and outer tubes.

进一步地,所述步骤2中,判断图像类型以决定是否转化为灰度图,如果不是灰度图则转化为灰度图,其计算方法为:Further, in the step 2, the image type is judged to determine whether to convert it into a grayscale image, if it is not a grayscale image, it is converted into a grayscale image, and its calculation method is:

Figure SMS_4
Figure SMS_4

其中,R、G、B分别表示红、绿、蓝三个通道的颜色。Among them, R, G, and B represent the colors of the three channels of red, green, and blue, respectively.

与现有技术相比,本发明具有以下有益效果:提供了一种口径不同管材电磁脉冲焊接过程中自动对内外管进行对中纠偏的装置及方法,该装置及方法克服了传统依靠手动滑台对中存在的低效不精准的缺点,对中效率及精度高,进而提高了对中纠偏系统的实用性,扩大了其适用范围,具有广阔的应用前景。Compared with the prior art, the present invention has the following beneficial effects: It provides a device and method for automatically centering and correcting the inner and outer pipes during the electromagnetic pulse welding process of pipes with different diameters. The shortcomings of low efficiency and inaccuracy in centering, high centering efficiency and precision, and thus improve the practicability of the centering deviation correction system, expand its scope of application, and have broad application prospects.

附图说明Description of drawings

图1是本发明实施例的装置结构示意图。Fig. 1 is a schematic diagram of the device structure of the embodiment of the present invention.

图2是本发明实施例中图像获取及处理过程示意图。Fig. 2 is a schematic diagram of the image acquisition and processing process in the embodiment of the present invention.

图中:1、电磁脉冲焊台;2、十字滑台机构;3、控制器;4、工业相机;5、计算机;6、外管;7、内管;8、驱动器。In the figure: 1. Electromagnetic pulse welding station; 2. Cross slide mechanism; 3. Controller; 4. Industrial camera; 5. Computer; 6. Outer tube; 7. Inner tube; 8. Driver.

具体实施方式Detailed ways

下面结合附图及实施例对本发明做进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

应该指出,以下详细说明都是示例性的,旨在对本申请提供进一步的说明。除非另有指明,本文使用的所有技术和科学术语具有与本申请所属技术领域的普通技术人员通常理解的相同含义。It should be pointed out that the following detailed description is exemplary and is intended to provide further explanation to the present application. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.

需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本申请的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,当在本说明书中使用术语“包含”和/或“包括”时,其指明存在特征、步骤、操作、器件、组件和/或它们的组合。It should be noted that the terminology used here is only for describing specific implementations, and is not intended to limit the exemplary implementations according to the present application. As used herein, unless the context clearly dictates otherwise, the singular is intended to include the plural, and it should also be understood that when the terms "comprising" and/or "comprising" are used in this specification, they mean There are features, steps, operations, means, components and/or combinations thereof.

如图1所示,本实施例提供了一种电磁脉冲焊接用管材实时对中纠偏装置,包括电磁脉冲焊台1、管材对中纠偏模块和图像采集处理模块,所述电磁脉冲焊台1上安装外管6,所述管材对中纠偏模块包括十字滑台机构2和控制器3,所述十字滑台机构2上安装内管7,所述图像采集处理模块用于获取内外管装配图像,对图像进行处理并计算内外管偏心距,如果偏心距符合焊接要求,则通过电磁脉冲焊台1对内外管进行焊接,如果偏心距不符合焊接要求,则通过控制器3控制十字滑台机构2驱动内管进行横向及竖向移动,进而调节内外管偏心距,实现内外管对中纠偏。As shown in Figure 1, this embodiment provides a real-time centering and deviation correction device for electromagnetic pulse welding pipes, including an electromagnetic pulse welding station 1, a pipe centering and deviation correction module, and an image acquisition and processing module. The outer pipe 6 is installed, and the pipe centering and deviation correction module includes a cross slide mechanism 2 and a controller 3, and an inner pipe 7 is installed on the cross slide mechanism 2, and the image acquisition and processing module is used to obtain an assembly image of the inner and outer pipes, Process the image and calculate the eccentricity of the inner and outer tubes. If the eccentricity meets the welding requirements, the inner and outer tubes are welded by the electromagnetic pulse welding station 1. If the eccentricity does not meet the welding requirements, the cross slide mechanism 2 is controlled by the controller 3 Drive the inner tube to move horizontally and vertically, and then adjust the eccentricity of the inner and outer tubes to achieve centering and deviation correction of the inner and outer tubes.

在本实施例中,内管7为不锈钢管,外管6为纯铝管或铝合金管。In this embodiment, the inner tube 7 is a stainless steel tube, and the outer tube 6 is a pure aluminum tube or an aluminum alloy tube.

在本实施例中,所述控制器3为Arduino单片机。所述图像采集处理模块包括工业相机4和计算机5,所述工业相机4拍摄内外管装配图像,然后传输给计算机5,所述计算机5基于图像处理算法对图像进行处理,获取图像中内外管的轮廓及圆心,进而计算内外管偏心距。在本实施例中,所述图像处理算法采用OpenCV+Python霍夫圆检测算法。In this embodiment, the controller 3 is an Arduino microcontroller. The image acquisition and processing module includes an industrial camera 4 and a computer 5. The industrial camera 4 captures an assembly image of the inner and outer pipes, and then transmits it to the computer 5. The computer 5 processes the image based on an image processing algorithm, and obtains the image of the inner and outer pipes in the image. Outline and center, and then calculate the eccentricity of the inner and outer tubes. In this embodiment, the image processing algorithm uses the OpenCV+Python Hough circle detection algorithm.

所述计算机5根据计算出的内外管偏心距,判断偏心距是否符合焊接要求,是则发送焊接指令给电磁脉冲焊台1,通过电磁脉冲焊台1对内外管进行焊接;否则发送纠偏指令及偏心距数据给控制器3进行纠偏操作,所述控制器3根据偏心距数据计算出内管横向及竖向分别需要移动的距离,然后控制十字滑台机构2驱动内管进行相应距离的横向及竖向移动,进而实现内外管偏心距的调节;所述图像采集处理模块继续进行内外管装配图像的获取、处理以及内外管偏心距的计算,直至偏心距符合要求。The computer 5 judges whether the eccentricity meets the welding requirements according to the calculated eccentricity of the inner and outer pipes, and if so, sends a welding instruction to the electromagnetic pulse welding station 1, and welds the inner and outer pipes through the electromagnetic pulse welding station 1; otherwise, sends a deviation correction instruction and The eccentricity data is sent to the controller 3 for deviation correction operation, and the controller 3 calculates the distances that the inner tube needs to move in the horizontal and vertical directions according to the eccentricity data, and then controls the cross slide mechanism 2 to drive the inner tube to move the corresponding distance horizontally and vertically. Move vertically, and then realize the adjustment of the eccentricity of the inner and outer tubes; the image acquisition and processing module continues to acquire and process the assembly images of the inner and outer tubes and calculate the eccentricity of the inner and outer tubes until the eccentricity meets the requirements.

本实施例还提供了基于上述装置的电磁脉冲焊接用管材实时对中纠偏方法,包括以下步骤:This embodiment also provides a method for real-time centering and deviation correction of pipes for electromagnetic pulse welding based on the above-mentioned device, including the following steps:

步骤1.图像采集处理模块上的工业相机获取内外管装配图像,并发送给图像采集处理模块上的计算机。获取的图像及后续处理过程中的图像如图2所示。Step 1. The industrial camera on the image acquisition and processing module acquires the assembly image of the inner and outer tubes, and sends it to the computer on the image acquisition and processing module. The acquired image and the image during subsequent processing are shown in Figure 2.

步骤2.计算机获取工业相机拍摄的图像,然后判断图像类型以决定是否转化为灰度图,如果不是灰度图则将其转化为灰度图,其计算方法为:Step 2. The computer obtains the image taken by the industrial camera, and then judges the image type to determine whether to convert it into a grayscale image. If it is not a grayscale image, convert it into a grayscale image. The calculation method is:

Figure SMS_5
Figure SMS_5

其中,R、G、B分别表示红、绿、蓝三个通道的颜色。Among them, R, G, and B represent the colors of the three channels of red, green, and blue, respectively.

步骤3.通过包括二值化、中值滤波、高斯模糊的一系列处理,对微小轮廓进行过滤,使图像中的物体边缘更为清晰;Step 3. Through a series of processing including binarization, median filtering, and Gaussian blurring, the tiny contours are filtered to make the edges of objects in the image clearer;

Figure SMS_6
Figure SMS_6

Figure SMS_7
Figure SMS_7

其中,C为轮廓i的周长,n为轮廓个数,AVG为轮廓长度均值,profilei(x,y)为轮廓i的图像。Among them, C is the perimeter of profile i, n is the number of profiles, AVG is the average length of profile, and profile i (x, y) is the image of profile i.

步骤4.通过边缘检测对步骤3处理后的边缘图像上的每一个非零点(i,j)计算x方向导数和y方向的导数,从而得到梯度;从边缘点,沿着梯度和梯度的反方向,调节预估最大最小半径,对霍夫圆检测算法的参数指定的预估最小半径rmin到最大半径rmax的每一个像素,在累加器中累加;同时记下边缘图像中每一个非0像素的位置;Step 4. Calculate the x-direction derivative and the y-direction derivative for each non-zero point (i, j) on the edge image processed in step 3 by edge detection, thereby obtaining the gradient; from the edge point, along the inverse of the gradient and the gradient Direction, adjust the estimated maximum and minimum radius, each pixel from the estimated minimum radius r min to the maximum radius r max specified by the parameters of the Hough circle detection algorithm is accumulated in the accumulator; at the same time, record each non- 0 pixel position;

Figure SMS_8
Figure SMS_8

其中,I是图像中像素的值(如:RGB值),(i,j)为像素的坐标。Among them, I is the value of the pixel in the image (such as: RGB value), and (i, j) is the coordinate of the pixel.

步骤5.从累加器中的点中选择候选的中心,候选中心的值都大于设定的阈值并且大于其相邻的四个邻域点的累加值;候选中心按照累加值降序排列,以便于最支持像素的中心首先出现。Step 5. Select candidate centers from the points in the accumulator, the values of the candidate centers are all greater than the set threshold and greater than the accumulated values of its four adjacent neighbor points; the candidate centers are arranged in descending order according to the accumulated values, so that The center of the most supported pixel comes first.

步骤6.对每一个候选中心,考虑边缘图像中所有非0像素,这些非0像素按照其与该候选中心的距离排序;从最大半径到最小距离算起,选择非0像素最支持的一条半径。Step 6. For each candidate center, consider all non-zero pixels in the edge image, and these non-zero pixels are sorted according to their distance from the candidate center; from the largest radius to the smallest distance, select the most supported radius of non-zero pixels .

步骤7.如果一个候选中心受到边缘图像中所有非0像素最充分的支持,并且到前期被选择的候选中心有足够的距离(即大于设定的距离),则该候选中心被保留下来。Step 7. If a candidate center is fully supported by all non-zero pixels in the edge image, and has a sufficient distance to the candidate center selected in the previous stage (ie, greater than the set distance), the candidate center is retained.

从而实现对候选中心进行边缘图像非零元素验证和候选中心距离验证。In this way, the non-zero element verification of the edge image and the distance verification of the candidate center are realized for the candidate center.

步骤8.输出所保留圆心(即中心)及对应圆的半径。Step 8. Output the center of the reserved circle (ie the center) and the radius of the corresponding circle.

步骤9.计算得到内外管偏心距。Step 9. Calculate the eccentricity of the inner and outer tubes.

在累加器的预估最大最小半径时即得到最佳圆的半径。得到的圆心计算的偏心距是像素偏心距,可以结合现实空间的实际距离做验证。如外管为48mm,实际偏心距可测设为l,计算机计算得到的偏心距假设为d,d/l=r(外管)/48。The radius of the best circle is obtained when the accumulator estimates the maximum and minimum radii. The obtained eccentricity calculated by the center of the circle is the pixel eccentricity, which can be verified in combination with the actual distance in the real space. If the outer tube is 48mm, the actual eccentricity can be measured as l, and the eccentricity calculated by the computer is assumed to be d, d/l=r (outer tube)/48.

步骤10.如果偏心距符合焊接要求,则通过电磁脉冲焊台对内外管进行焊接,如果偏心距不符合焊接要求,则通过管材对中纠偏模块驱动内管进行横向及竖向移动,进而调节内外管偏心距,实现内外管对中纠偏。Step 10. If the eccentricity meets the welding requirements, use the electromagnetic pulse welding station to weld the inner and outer pipes. If the eccentricity does not meet the welding requirements, use the pipe centering correction module to drive the inner pipe to move horizontally and vertically, and then adjust the inner and outer pipes. Tube eccentricity to realize centering and correction of inner and outer tubes.

以上所述,仅是本发明的较佳实施例而已,并非是对本发明作其它形式的限制,任何熟悉本专业的技术人员可能利用上述揭示的技术内容加以变更或改型为等同变化的等效实施例。但是凡是未脱离本发明技术方案内容,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与改型,仍属于本发明技术方案的保护范围。The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention to other forms. Any skilled person who is familiar with this profession may use the technical content disclosed above to change or modify the equivalent of equivalent changes. Example. However, any simple modifications, equivalent changes and modifications made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still belong to the protection scope of the technical solution of the present invention.

Claims (4)

1. The method is characterized in that the method is realized based on a real-time centering and rectifying device for the electromagnetic pulse welding pipe, the real-time centering and rectifying device for the electromagnetic pulse welding pipe comprises an electromagnetic pulse welding table, a pipe centering and rectifying module and an image acquisition and processing module, an outer pipe is arranged on the electromagnetic pulse welding table, the pipe centering and rectifying module comprises a cross sliding table mechanism and a controller, an inner pipe is arranged on the cross sliding table mechanism, the image acquisition and processing module is used for acquiring an assembly image of the inner pipe and the outer pipe, processing the image and calculating the eccentricity of the inner pipe and the outer pipe, if the eccentricity meets the welding requirement, the inner pipe and the outer pipe are welded through the electromagnetic pulse welding table, if the eccentricity does not meet the welding requirement, the inner pipe is driven to transversely and vertically move through the cross sliding table mechanism under the control of the controller, and the eccentricity of the inner pipe and the outer pipe is adjusted, so that the centering and rectifying of the inner pipe and the outer pipe are realized; the image acquisition processing module comprises an industrial camera and a computer, wherein the industrial camera shoots an inner tube and outer tube assembly image and then transmits the inner tube and outer tube assembly image to the computer, and the computer processes the image based on an image processing algorithm to acquire the outline and the circle center of the inner tube and the outer tube in the image so as to calculate the eccentric distance of the inner tube and the outer tube; the image processing algorithm is a Hough circle detection algorithm;
the method comprises the following steps:
step 1, an industrial camera on an image acquisition and processing module acquires assembly images of an inner tube and an outer tube and sends the assembly images to a computer on the image acquisition and processing module;
step 2, the computer acquires an image shot by the industrial camera and converts the non-gray level image into a gray level image;
and 3, filtering the micro contour through a series of processes including binarization, median filtering and Gaussian blur, so that the edges of objects in the image are clearer:
Figure FDA0004156552210000011
Figure FDA0004156552210000012
wherein C is the perimeter of the contour i, n is the number of contours, AVG is the average value of the contour length, and contour i (xY) is an image of contour i;
step 4, calculating the derivative in the x direction and the derivative in the y direction of each non-zero point (i, j) on the edge image processed in the step 3 through edge detection, so as to obtain a gradient; from the edge points, along the gradient and the opposite direction of the gradient, the estimated maximum and minimum radius is adjusted, and the estimated minimum radius r specified by the parameters of the Hough circle detection algorithm is adjusted min To a maximum radius r max Is accumulated in an accumulator; simultaneously recording the position of each non-0 pixel in the edge image;
Figure FDA0004156552210000013
wherein I is the value of a pixel in the image and (I, j) is the coordinates of the pixel;
step 5, selecting candidate centers from points in the accumulator, wherein the values of the candidate centers are all larger than a set threshold value and larger than the accumulated values of four adjacent neighborhood points; the candidate centers are arranged in descending order of accumulated value;
step 6, considering all non-0 pixels in the edge image for each candidate center, sorting the non-0 pixels according to the distance between the non-0 pixels and the candidate center, and selecting a radius which is most supported by the non-0 pixels;
step 7, if one candidate center is supported by all non-0 pixels in the edge image fully and has a sufficient distance to the candidate center selected in the earlier stage, the candidate center is reserved;
step 8, outputting the reserved center and the radius of the corresponding circle;
step 9, calculating to obtain the eccentricity of the inner tube and the outer tube;
and 10, welding the inner tube and the outer tube through an electromagnetic pulse welding table if the eccentricity meets the welding requirement, and driving the inner tube to transversely and vertically move through a tube centering deviation correcting module if the eccentricity does not meet the welding requirement, so as to adjust the eccentricity of the inner tube and the outer tube, and realize centering deviation correcting of the inner tube and the outer tube.
2. The method for centering and correcting the pipe for electromagnetic pulse welding in real time according to claim 1, wherein the computer judges whether the eccentricity meets the welding requirement according to the calculated eccentricity of the inner pipe and the outer pipe, if so, the computer sends a welding instruction to an electromagnetic pulse welding table, and the inner pipe and the outer pipe are welded through the electromagnetic pulse welding table; otherwise, sending a deviation rectifying instruction and eccentricity data to a controller for deviation rectifying operation, calculating the distances required to move respectively in the transverse direction and the vertical direction of the inner tube according to the eccentricity data by the controller, and then controlling a cross sliding table mechanism to drive the inner tube to move in the transverse direction and the vertical direction of the corresponding distances, so that the eccentricity adjustment of the inner tube and the outer tube is realized; and the image acquisition and processing module continues to acquire and process the inner and outer tube assembly images and calculate the eccentricity of the inner and outer tubes until the eccentricity meets the requirement.
3. The method for centering and correcting the pipe for electromagnetic pulse welding in real time according to claim 1, wherein the controller is an Arduino single-chip microcomputer.
4. The method for real-time centering and correcting a pipe for electromagnetic pulse welding according to claim 1, wherein in the step 2, the image type is judged to determine whether to convert into a gray scale map, if not, the image type is converted into a gray scale map, and the calculation method is as follows:
Figure FDA0004156552210000021
wherein R, G, B represents the colors of the three channels red, green and blue, respectively.
CN202210743486.2A 2022-06-28 2022-06-28 Real-time centering and correcting method for pipe for electromagnetic pulse welding Active CN115121927B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210743486.2A CN115121927B (en) 2022-06-28 2022-06-28 Real-time centering and correcting method for pipe for electromagnetic pulse welding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210743486.2A CN115121927B (en) 2022-06-28 2022-06-28 Real-time centering and correcting method for pipe for electromagnetic pulse welding

Publications (2)

Publication Number Publication Date
CN115121927A CN115121927A (en) 2022-09-30
CN115121927B true CN115121927B (en) 2023-06-16

Family

ID=83380686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210743486.2A Active CN115121927B (en) 2022-06-28 2022-06-28 Real-time centering and correcting method for pipe for electromagnetic pulse welding

Country Status (1)

Country Link
CN (1) CN115121927B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115518996A (en) * 2022-10-25 2022-12-27 浙江泰索科技有限公司 Pipe forming automatic deviation correction device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3422687B2 (en) * 1998-06-25 2003-06-30 三菱重工業株式会社 Pipe hole position automatic search method and apparatus
BRPI0520117B8 (en) * 2005-04-20 2019-05-21 Heerema Marine Contractors Nederland B V Method for positioning one end of a pipe section relative to one end of a pipe and pipe deposition vessel
CN101905375A (en) * 2010-07-29 2010-12-08 哈尔滨工业大学 Magnetic pulse connection method and joint structure of thin-walled metal pipelines
CN104191081B (en) * 2014-08-04 2018-07-13 重庆普尔萨科技有限公司 Device and its welding method for copper pipe in refrigeration equipment and Al pipe butt welding
GB201414973D0 (en) * 2014-08-22 2014-10-08 Saipem Spa Pipe handling system and method of joining pipe sections
CN106651989B (en) * 2016-12-21 2020-04-21 北京信息科技大学 Nested circle fitting method and device for tiny hole alignment
CN207600409U (en) * 2017-12-09 2018-07-10 武汉红星杨科技有限公司 A kind of device for being suitable for the assembling of two round pieces
CN111366076B (en) * 2020-03-26 2021-04-02 武汉大学 Optical fiber rod machine tool centering device and method based on circular arc quadrant classification circle detection
CN112756901A (en) * 2021-01-15 2021-05-07 江苏普达迪泰精密机电装备科技有限公司 Tank body butt joint system

Also Published As

Publication number Publication date
CN115121927A (en) 2022-09-30

Similar Documents

Publication Publication Date Title
CN109886131B (en) A road curve recognition method and device thereof
CN108637435B (en) Three-dimensional weld tracking system and method based on vision and arc pressure sensing
CN107610111B (en) A Solder Joint Image Detection Method Based on Deep Learning
CN114714355B (en) Embedded vision tracking control system of autonomous mobile welding robot
CN106127780A (en) A kind of curved surface defect automatic testing method and device thereof
CN107014291B (en) Visual positioning method of material precision transshipment platform
CN103837097B (en) A kind of workpiece angle self-operated measuring unit based on image procossing and measuring method
CN115121927B (en) Real-time centering and correcting method for pipe for electromagnetic pulse welding
CN112258426B (en) Scaffold image automatic inclination correction method based on Mask RCNN
Zhang et al. Narrow-seam identification and deviation detection in keyhole deep-penetration TIG welding
CN114406425A (en) Welding seam tracking method for ultra-thin metal precision welding
CN110421283B (en) Tube plate welding method of tube plate heat exchanger
CN109493313A (en) A kind of the coil of strip localization method and equipment of view-based access control model
CN112818970A (en) General detection method for steel coil code spraying identification
CN119131033B (en) Engine blade defect automatic detection method based on image
CN118123194A (en) Visual thick plate groove-based TIG overhead welding root penetration state identification method
CN104966302B (en) A kind of detection localization method of any angle laser cross
CN116175036B (en) Welding seam positioning robot and welding seam positioning method
CN109671084A (en) A kind of measurement method of workpiece shapes
CN114850741B (en) Weld joint identification device and method suitable for flat butt weld joint
CN115713556A (en) Two-dimensional code positioning method and device and computer readable storage medium
CN107914067B (en) A kind of welding gun deviation three-dimensional extracting method of the plate sheet welding based on passive vision sensing
CN112365538B (en) Efficient target detection method of automatic reeling system
CN112529103A (en) Fusion penetration identification method based on bidirectional molten pool geometric and textural feature fusion
CN109692889B (en) A system and method for adjusting umbrella pole position based on machine vision

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
GR01 Patent grant
GR01 Patent grant