A method and device for visual inspection of seams based on high-speed alternating illumination

Through high-speed alternating lighting method and image processing technology, the problem of inconspicuous seam features and noise during the welding process is solved, and high-stability and high-precision real-time detection of welding seams is achieved, which enhances seam feature information and improves detection accuracy. sex.

CN114331999BActive Publication Date: 2024-10-22HUAZHONG UNIV OF SCI & TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111601214.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-10-22
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

The strong welding light, spatter and smoke during the welding process cause the seam features in the seam image to be insignificant, and it is difficult for traditional methods to effectively eliminate noise, resulting in an increase in the complexity of the seam position extraction algorithm and a reduction in efficiency and stability.

Method used

The high-speed alternating lighting method is used to alternately project surface lasers to the welding seams from both sides to obtain seam images under different lighting conditions. The noise is removed through addition, subtraction and absolute value operations, and the seam features are enhanced through high-speed Cameras and industrial computers enable real-time detection.

Benefits of technology

It achieves high-stability and high-precision real-time detection of welding seams, enhances seam feature information, eliminates external light noise, and improves detection accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114331999B_ABST
    Figure CN114331999B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of welding automation detection and control, and specifically discloses a method and device for visual inspection of seams based on high-speed alternating illumination, which includes the following steps: during the welding process, alternately projecting surface lasers from both sides to illuminate the welding seams, and the surface lasers on both sides are coplanar and completely overlapped; acquiring the seam image at each illumination from above the welding seam, and collecting each adjacent two seam images as a group, and then obtaining an image containing seam phase information based on a group of seam images, so as to realize real-time detection of welding seams. The present invention detects seams by projecting two laser stripes that overlap in space at different times, which can further enhance the seam characteristics and remove noise, so as to realize high stability and high precision real-time detection of welding seams.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of welding automation detection and control, and more specifically, relates to a method and device for visual detection of joints based on high-speed alternating illumination. Background Art

[0002] The vision-based seam measurement device plays a very important role in welding automation control. Under the guidance of visual measurement, automated welding can be achieved, and the accuracy and stability of welding can be improved. However, welding is often accompanied by strong welding light, spatter and smoke, and the welded parts are often metal materials with high reflectivity. Under the influence of these factors, the seam features in the seam pictures collected by visual measurement are often not significant. And due to the influence of noise light in welding, the collected seam images often have noise such as spatter spots. When the seam features are not significant and there is welding light noise in the seam image, the complexity of the seam position extraction algorithm will increase, thereby reducing the efficiency, stability and applicability of the seam processing algorithm.

[0003] Traditional vision-based seam detection methods often use image processing algorithms to solve the problem of noise in seam images or unclear seam features. However, there are few related studies on hardware device design and image acquisition methods to eliminate splash spot noise or enhance seam features. Therefore, the research on high-stability and high-precision seam measurement devices and methods is of great significance. Summary of the invention

[0004] In view of the above defects or improvement needs of the prior art, the present invention provides a method and device for visual inspection of welding seams based on high-speed alternating illumination, the purpose of which is to achieve real-time inspection of welding seams with high stability and high precision during the welding process.

[0005] To achieve the above object, according to one aspect of the present invention, a method for visual inspection of seams based on high-speed alternating illumination is proposed, comprising the following steps:

[0006] During the welding process, surface lasers are projected alternately from both sides to illuminate the welding seam, and the surface lasers on both sides are coplanar and completely overlapped. An image of the welding seam is acquired from above the welding seam at each illumination, and each adjacent two seam images are collected as a group. Then, an image containing the seam phase information is obtained based on a group of seam images, thereby realizing real-time detection of the welding seam.

[0007] As a further preference, an image containing stitching phase information is obtained based on a group of stitching images, which specifically includes the following steps: adding and subtracting the stitching images obtained under the lighting conditions on one side and the stitching images obtained under the lighting conditions on the other side, respectively, and then dividing the absolute value of the subtracted image by the absolute value of the added image, thereby obtaining an image containing the stitching phase information, while eliminating the bright spots left in the image by external light noise.

[0008] As a further preference, the illumination of the lasers on both sides is a dark field illumination mode.

[0009] As a further preference, the frequency of alternating illumination from both sides of the welding seam is 500 Hz, and the frequency of collecting the seam image is 1000 Hz.

[0010] According to another aspect of the present invention, there is provided a seam visual inspection device for implementing the above-mentioned seam visual inspection method based on high-speed alternating illumination, which includes an illumination component, a high-speed camera and an industrial computer, wherein:

[0011] The lighting assembly includes two groups of surface laser generators, which are symmetrically arranged on both sides of the high-speed camera and are used to alternately project surface lasers from both sides to illuminate the welding seams of the weldment, and the surface lasers on both sides are coplanar and completely overlap; the high-speed camera is used to obtain the seam image during each illumination and transmit it to the industrial computer; the industrial computer is used to synthesize the seam image containing seam phase information based on the seam images obtained during alternate illumination from both sides, so as to realize real-time detection of the welding seam.

[0012] As a further preference, the lighting assembly, high-speed camera and weldment are arranged to satisfy a dark field lighting mode.

[0013] As a further preference, the angle between the optical axes of the two groups of surface laser generators is no greater than 90 degrees.

[0014] As further preferred, the surface laser generator includes a laser light source, a collimating lens and a Powell lens, the collimating lens is used to collimate the laser light emitted by the laser light source, and the Powell lens is used to transform the collimated two-path laser light into a surface laser.

[0015] As a further preferred embodiment, a camera lens and a filter are sequentially arranged under the high-speed camera, the camera lens is used to focus the scattered light on the surface of the weldment to the photosensitive area of ​​the high-speed camera, and the filter is used to filter out light wave components other than the laser light source.

[0016] As a further preferred embodiment, it also includes an analog output control card and a high-speed laser switch driver, wherein the analog output control card is used to send out a high-speed pulse control signal, thereby controlling two groups of surface laser generators to alternately illuminate at high speed through the high-speed laser switch driver, and simultaneously controlling the image acquisition of the high-speed camera and the alternating illumination synchronization.

[0017] In general, the above technical solution conceived by the present invention has the following technical advantages compared with the prior art:

[0018] 1. The present invention adopts a method of alternately illuminating with a surface laser from both sides. By projecting a laser surface, laser stripes can be formed on the surface of the seam to be measured. The narrow gap at the joint of the seam will modulate the shape of the laser stripes, causing the laser stripes to be disconnected or misaligned. The seam can be detected by detecting the position where the laser stripes are disconnected in the image. Therefore, the use of surface laser illumination can facilitate the subsequent detection of the welding seam position through image processing; further, the present invention detects the seam by projecting two laser stripes that overlap in space at different times, which can further enhance the seam characteristics and remove noise, thereby achieving high-stability and high-precision real-time detection of welding seams.

[0019] 2. The height difference of the seam is the largest at the joint, that is, the value of the phase information is the largest. The existing seam measurement method cannot obtain the phase (height) information at the joint of the seam. The present invention can obtain two images of the same seam area under different angles of illumination by performing double-sided laser stripe illumination on the seam surface in dark field mode; by dividing the result of subtracting the two images by the result of adding them, an image containing the phase information of the seam surface can be obtained. This phase information directly reflects the height information at the joint of the seam, and the extraction of the height information will greatly enhance the seam feature information.

[0020] 3. The existing seam measurement method is difficult to eliminate the welding light noise in the image. However, the present invention can directly subtract the welding light noise by performing a subtraction operation on two seam images obtained under different illumination, thereby eliminating the bright spots formed by external noise light in the seam image and improving the detection accuracy. At the same time, the surface of the object to be measured absorbs and reflects light. By dividing the difference of the images by the sum of the images, the absorption of light by the surface of the object to be measured can be normalized, thereby enhancing the contrast of the image.

[0021] 4. In order to meet the needs of real-time welding, the present invention adopts laser light source and high-speed laser switch drive, which can perform alternating lighting at a very high frequency (such as above 500Hz), and the high-speed camera can collect the seam image at a very high frequency (such as above 1000Hz). At the same time, the high-performance analog output control card can accurately control the switch of the light source and the external trigger of the camera. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1Schematic diagram of the structure of a joint visual inspection device based on high-speed alternating illumination according to an embodiment of the present invention;

[0023] Figure 2 Schematic diagram of a seam image collected under different lighting conditions by a seam visual detection device according to an embodiment of the present invention and a diagram of the effect of seam image processing;

[0024] Figure 3 Schematic diagram of control signals of a device for visually inspecting seams according to an embodiment of the present invention.

[0025] In all the drawings, the same reference numerals are used to represent the same elements or structures, among which: 1-industrial computer, 2-high-speed camera, 3-camera lens, 4-filter, 5-laser light source, 6-collimating lens, 7-Powell lens, 8-weldment, 9-analog output control card, 10-high-speed laser switch driver. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0027] The embodiment of the present invention provides a joint visual inspection device based on high-speed alternating illumination, such as Figure 1 As shown, it includes an industrial computer 1, a high-speed camera 2, a camera lens 3, a filter 4, a laser light source 5, a collimating lens 6, a Powell lens 7, an analog output control card 9 and a high-speed laser switch driver 10, wherein:

[0028] The two laser light sources 5 are arranged symmetrically relative to the camera lens 3; the collimating lens 6 is used to collimate the two lasers emitted by the laser light source 5 respectively, and the Powell lens 7 transforms the two lasers after collimation into planar lasers. The two groups of planar lasers formed by the two laser light sources 5 after transformation by the collimating lens 6 and the Powell lens 7 are coplanar and completely overlapped. When the two groups of coplanar lasers are transmitted to the weldment 8, an overlapping laser stripe will be formed. At the same time, the arrangement of the laser light source 5, the camera lens 3 and the weldment 8 conforms to dark field illumination.

[0029] A camera lens 3 and a filter 4 are sequentially arranged under the high-speed camera 2. The camera lens 3 is used to converge the scattered light on the surface of the weldment 8 to the photosensitive area of ​​the high-speed camera 2. The filter 4 is located directly below the camera lens 3 and is used to filter out light wave components other than the laser light source.

[0030] The analog output control card 9 is connected to the high-speed camera 2, the industrial computer 1 and the high-speed laser switch driver 10 to output three pulse signals. Figure 3 The control waveform shown is used to control the high-speed alternating illumination of the laser light sources 5 on both sides through two high-speed laser switch drivers 10. At the same time, the analog output control card 9 controls the image acquisition of the high-speed camera 2 to be synchronized with the alternating illumination to acquire the stitching images under different illumination conditions.

[0031] The industrial computer 1 is used to process the stitching images under high-speed alternating illumination acquired by the camera to synthesize a stitching image containing stitching phase information, and in this process, noise such as welding spatter spots are simultaneously subtracted. The specific calculation process is: first, the stitching image A acquired under the illumination condition on one side and the stitching image B acquired under the illumination condition on the other side are respectively added and subtracted, and then the absolute value of the subtracted image (AB) is divided by the absolute value of the added image (A+B), so that an accurate image containing the phase information at the stitching can be obtained. Specifically, image subtraction is to extract the phase information of the surface of the object to be measured, and at the same time, the bright spots left in the image by the external light noise can be directly subtracted; in addition, the surface of the object to be measured absorbs and reflects light. In order to normalize the absorption of light by the surface of the object to be measured and enhance the contrast of the image, the difference of the image is divided by the sum of the images.

[0032] The schematic diagram and real photos of the collected stitching images on the left and right are as follows Figure 2 As shown, from Figure 2 It can be seen that the bright splashes have covered the joint of the seam. The traditional seam detection method is generally ineffective, but after the processing of the present invention, the weld light noise in the seam image is reduced and the edge feature of the seam is enhanced.

[0033] Furthermore, to ensure that the laser illumination and camera detection work in dark field illumination mode, the angle between the optical axes of the two groups of laser light sources 5, collimating lens 6 and Powell lens 7 is not greater than 90 degrees. At the same time, they are arranged symmetrically with respect to the optical axis of the camera lens 3, and the aperture value of the camera lens 3 is 2.8.

[0034] Furthermore, the analog output control card 9 outputs an analog voltage signal to control the high-speed laser switching driver 10 so that the laser is switched on and off alternately. Figure 3 The periodic pulse signal in the image is changed at a frequency of 500Hz. At the same time, the analog output control card 9 outputs a level signal to control the external trigger signal of the camera 2, so that the camera 2 only collects images when the left or right laser is illuminated alone, and the frequency of collecting images is 1000Hz. Every two pieces of the collected stitched images are taken as a batch for image processing.

[0035] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for visual inspection of seams based on high-speed alternating illumination, characterized in that: The steps include: During the welding process, surface lasers are projected alternately from both sides to illuminate the welding seam, and the surface lasers on both sides are coplanar and completely overlapped; the seam image at each illumination is obtained from above the welding seam, and each adjacent two seam images collected are grouped together, and then an image containing seam phase information is obtained based on a group of seam images, thereby realizing real-time detection of the welding seam; An image containing stitching phase information is obtained according to a group of stitching images, which specifically includes the following steps: respectively performing addition and subtraction operations on the stitching images obtained under the lighting conditions on one side and the stitching images obtained under the lighting conditions on the other side, and then dividing the absolute value of the subtracted image by the absolute value of the added image, thereby obtaining an image containing the stitching phase information, and at the same time eliminating bright spots left in the image by external light noise.

2. The method for visual inspection of seams based on high-speed alternating illumination according to claim 1, characterized in that: The illumination of the lasers on both sides is dark field illumination mode.

3. The method for visual inspection of seams based on high-speed alternating illumination according to claim 1 or 2, characterized in that: The frequency of alternating illumination from both sides of the welding seam is 500 Hz, and the frequency of acquiring the seam image is 1000 Hz.

4. A seam visual inspection device for implementing the seam visual inspection method based on high-speed alternating illumination as described in any one of claims 1 to 3, characterized in that: The invention comprises a lighting assembly, a high-speed camera (2) and an industrial computer (1), wherein: The lighting assembly comprises two groups of surface laser generators, which are symmetrically arranged on both sides of the high-speed camera (2) and are used to project surface lasers alternately from both sides to the welding seam of the weldment (8) for illumination, and the surface lasers on both sides are coplanar and completely overlap; the high-speed camera (2) is used to obtain a seam image during each illumination and transmit it to the industrial computer (1); the industrial computer (1) is used to synthesize a seam image containing seam phase information based on the seam images obtained during the alternating illumination from both sides, so as to realize real-time detection of the welding seam.

5. The visual inspection device for seams according to claim 4, characterized in that: The positions of the lighting assembly, the high-speed camera (2) and the weldment (8) are arranged to meet the requirements of a dark field lighting mode.

6. The visual inspection device for seams according to claim 5, characterized in that: The included angle between the optical axes of the two groups of surface laser generators is no greater than 90 degrees.

7. The visual inspection device for seams according to claim 4, characterized in that: The surface laser generator comprises a laser light source (5), a collimating lens (6) and a Powell lens (7); the collimating lens (6) is used to collimate the laser light emitted by the laser light source (5); and the Powell lens (7) is used to convert the collimated two-path laser light into a surface laser light.

8. The visual inspection device for seams according to claim 7, characterized in that: A camera lens (3) and a filter (4) are arranged in sequence under the high-speed camera (2); the camera lens (3) is used to converge scattered light on the surface of the weldment (8) to the photosensitive area of ​​the high-speed camera (2); and the filter (4) is used to filter out light wave components other than the laser light source.

9. The visual inspection device for seams according to any one of claims 4 to 8, characterized in that: It also includes an analog output control card (9) and a high-speed laser switch driver (10). The analog output control card (9) is used to send a high-speed pulse control signal, thereby controlling the high-speed alternating illumination of two groups of surface laser generators through the high-speed laser switch driver (10), and simultaneously controlling the image acquisition of the high-speed camera (2) and the alternating illumination synchronization.

Citation Information

Patent Citations

  • Light source alternate strobe synchronous camera shooting method and vision detection system

    CN102780845A

  • Light sheet illumination-based high-resolution four-dimensional light field microscopy imaging system

    CN109596588A

  • Weld joint visual detection device and method based on linear structure light intensity high-frequency modulation

    CN112525918A

  • High-speed laser vision sensor system, high-speed image processing method and weld bead inspection mehtod using the same

    KR1020100002583A

  • Inspection device and inspection method

    WO2016129305A1