Welding seam image shooting control method and device based on human-computer interaction and storage medium

By obtaining the initial image and adjusting the laser power according to the width of the laser stripe, the problem of stray light interference caused by large exposure values ​​during the welding process is solved, and the effect of weld seam detection is improved without changing the exposure value, ensuring image quality and detection reliability. sex.

CN118695077AInactive Publication Date: 2024-09-24YINGLAI TECH (SUZHOU) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410713756.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

During the welding process, when the exposure value is large, the ambient light in the image interferes excessively, affecting the weld detection effect.

Method used

By acquiring initial images under different laser powers, determining the target laser power based on the laser stripe width, and adjusting the laser power to control camera shooting, the laser stripe width can be adjusted without changing the exposure value, thereby improving image quality and detection results.

Benefits of technology

Without changing the exposure value, the width of the laser stripe is adjusted to reduce arc interference, improve the resolution and reliability of weld detection, and ensure image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118695077A
    Figure CN118695077A
Patent Text Reader

Abstract

The invention provides a welding seam image shooting control method based on man-machine interaction. The welding seam image shooting control method comprises the following steps: firstly, acquiring initial images shot by a camera under different laser powers; determining target laser power according to the laser stripe width in the initial image; and finally, adjusting the power of the laser to the target laser power, and controlling the camera to shoot. By calculating the most appropriate target laser power, the laser stripe width can be adjusted by adjusting the laser power, the optimal laser stripe width can be achieved on the premise that the exposure value is not changed, the image quality is guaranteed, and the welding seam detection effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of welding, and in particular relates to a welding seam image shooting control method, device and storage medium based on human-computer interaction. Background Art

[0002] Welding is a common process for joining metal parts in manufacturing, construction, aerospace, energy and other fields. The quality of welds directly affects the structural strength, safety and service life of products. Therefore, it is crucial to accurately and efficiently detect and classify welds.

[0003] Usually, the weld can be scanned with a laser, and the camera can capture the scanned image to complete the weld detection. In order to capture a clear and effective image, it is necessary to control the width of the laser stripe captured by the camera. The traditional method is to change the laser stripe width by controlling the exposure value of the camera, but strong interference light such as arc light will be generated during the welding process. When the exposure value is large, it will cause excessive interference from ambient light in the image, affecting the detection. Summary of the invention

[0004] In view of this, the present invention provides a weld image shooting control method, device and storage medium based on human-computer interaction, aiming to solve the problem in the prior art that when the exposure value is large, it will cause excessive interference from ambient light and stray light in the image, affecting detection.

[0005] A first aspect of an embodiment of the present invention provides a welding seam image shooting control method based on human-computer interaction, comprising:

[0006] Acquire initial images taken by a camera at different laser powers;

[0007] Determine the target laser power based on the laser stripe width in the initial image;

[0008] Adjust the laser power to the target laser power and control the camera to take pictures.

[0009] A second aspect of an embodiment of the present invention provides a welding seam image shooting control device based on human-computer interaction, comprising:

[0010] An acquisition module, used for acquiring initial images taken by a camera at different laser powers;

[0011] A determination module, used for determining a target laser power according to a laser stripe width in an initial image;

[0012] The control module is used to adjust the power of the laser to the target laser power and control the camera to take pictures.

[0013] A third aspect of an embodiment of the present invention provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the weld image shooting control method based on human-computer interaction according to the first aspect are implemented.

[0014] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the weld image shooting control method based on human-computer interaction as described in the first aspect above are implemented.

[0015] The weld image shooting control method based on human-computer interaction provided by the embodiment of the present invention first obtains the initial image taken by the camera under different laser powers; then determines the target laser power according to the laser stripe width in the initial image; finally adjusts the laser power to the target laser power, and controls the camera to shoot. By calculating the most suitable target laser power, the laser stripe width can be adjusted by adjusting the laser power, and the optimal laser stripe width can be achieved without changing the exposure value, thereby ensuring image quality and improving the weld detection effect. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0017] Figure 1 is a flow chart of an implementation of a weld image shooting control method based on human-computer interaction provided by an embodiment of the present invention;

[0018] Figure 2 It is a schematic diagram of a user selecting an area in an image on a display interface;

[0019] Figure 3 is a structural schematic diagram of a weld image shooting control device based on human-computer interaction provided by an embodiment of the present invention;

[0020] Figure 4 It is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0022] When the camera shoots the laser detection image, the exposure value of the camera can be controlled to change the laser stripe width, but in the welding process, there will also be interference such as strong arc light. When the exposure is relatively large, although more lasers are introduced and the laser stripe width increases, the interference of the arc light will also increase in the same proportion. Therefore, the exposure value needs to be controlled at a smaller value, but a smaller exposure value will result in a smaller laser stripe width and the laser line is too thin, affecting the detection effect. Therefore, the present invention proposes a new laser stripe width control method, which can adjust the laser stripe width without changing the exposure value.

[0023] Figure 1 FIG. 1 is a flow chart of a method for controlling welding seam image shooting based on human-computer interaction provided by an embodiment of the present invention. Figure 1 As shown, in some embodiments, a weld image shooting control method based on human-computer interaction includes:

[0024] S110, acquiring initial images taken by a camera at different laser powers;

[0025] In the embodiment of the present invention, click to start automatic calibration, the laser automatically changes power, and the camera cooperates to take pictures, collecting 3-9 pictures.

[0026] S120, determining a target laser power according to the laser stripe width in the initial image;

[0027] In the embodiment of the present invention, the laser stripe width refers to the width of the stripes formed when the laser beam is projected onto the surface of the workpiece. This width is usually determined by factors such as the divergence angle of the laser beam, the optical system of the laser, and the projection distance. The width of the laser stripe will affect the resolution of weld recognition. The narrower the width, the higher the resolution in theory, and the more accurately the details of the weld can be identified.

[0028] Laser power refers to the output power of the laser, which affects the brightness and intensity of the laser beam. Sufficient power can ensure that the laser stripes can be clearly displayed even on complex or reflective surfaces, thereby improving the reliability of weld identification.

[0029] The greater the laser power, the greater the laser stripe width. However, the relationship between laser power and laser stripe width varies with different workpieces and detection conditions. Therefore, the relationship between laser power and laser stripe width must be determined in each detection to find the target laser power corresponding to the optimal laser stripe width.

[0030] In some embodiments, S120 includes: calculating the relationship between laser stripe width and laser power according to the initial image under different laser powers; obtaining the optimal laser stripe width; and determining the target laser power under the optimal laser stripe width according to the relationship between the laser stripe width and laser power.

[0031] In the embodiment of the present invention, the relationship between the laser stripe width and the laser power may be specifically expressed in the form of a function, a curve, etc., which is not limited here.

[0032] In some embodiments, the relationship between the laser stripe width and the laser power is calculated based on the initial images under different laser powers, including: calculating the relationship between the laser stripe width and the laser power based on the laser stripe width of a preset area of ​​each initial image and the laser power corresponding to each initial image.

[0033] In an embodiment of the present invention, the laser stripe width in each initial image is counted, and its mean or mode is used as the actual laser stripe width of each initial image. Then, curve fitting is performed in combination with the laser power when each initial image is imaged to obtain the relationship between the laser stripe width and the laser power.

[0034] In some embodiments, the method further includes: in response to a setting operation by a user, taking the user's setting value as the optimal laser stripe width.

[0035] In the above embodiment, the actual laser stripe width of each image is obtained by statistics, which can reflect the overall situation of the image, but is prone to errors. For example, in the initial image, a portion of the light stripes is narrow (underexposed) and another portion of the light stripes is wide (overexposed), and the actual laser stripe width used in the linear fitting is likely to be the average of the two (normal exposure). Therefore, the present invention can be optimized by the following human-computer interaction method.

[0036] Figure 2 is a schematic diagram of a user selecting an area in an image on the display interface. Figure 2 As shown, in some embodiments, the relationship between the laser stripe width and the laser power is calculated based on the initial images under different laser powers, including: in response to the user's selection operation, the relationship between the laser stripe width and the laser power is calculated based on the laser stripe width of the area selected by the user in each initial image and the laser power corresponding to each initial image.

[0037] In an embodiment of the present invention, the fitting is not performed based on the overall situation of each image, but based on the laser stripe width of the portion selected by the user. Thus, the user can determine which portion is more representative of the situation of the image, and thus select the corresponding area for fitting, thereby obtaining a more appropriate relationship between the laser stripe width and the laser power.

[0038] In some embodiments, the target laser power at the optimal laser stripe width is determined based on the relationship between the laser stripe width and the laser power, including: responding to the user's adjustment operation, determining the target laser power at the optimal laser stripe width based on the user's adjustment value, the relationship between the laser stripe width and the laser power.

[0039] In an embodiment of the present invention, the user can determine the situation of the selected area and make corresponding adjustments. If it is necessary to suppress the exposure of a certain area or brighten the exposure of a certain area, the user clicks on the area and enters the corresponding adjustment value of the laser stripe width. The laser stripe width of the area selected by the user plus the adjustment value is used as the optimal laser stripe width, and the target laser power is determined based on the relationship between the laser stripe width and the laser power.

[0040] S130, adjusting the laser power to the target laser power, and controlling the camera to take pictures.

[0041] In the embodiment of the present invention, the exposure value of the camera is less than a preset value.

[0042] In some embodiments, the method further includes: in response to the user's exposure adjustment operation, jumping to the step of acquiring initial images taken by the camera at different laser powers to recalculate the target laser power and control the camera to shoot.

[0043] If the current camera exposure value does not meet the requirements, the user can adjust it appropriately within the preset value and then recalculate the target laser power.

[0044] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0045] Figure 3 Schematic diagram of the structure of the welding seam image shooting control device based on human-computer interaction provided by an embodiment of the present invention. Figure 3 As shown, in some embodiments, a welding seam image shooting control device 3 based on human-computer interaction includes:

[0046] An acquisition module 310 is used to acquire initial images taken by a camera at different laser powers;

[0047] A determination module 320, for determining a target laser power according to the laser stripe width in the initial image;

[0048] The control module 330 is used to adjust the laser power to the target laser power and control the camera to shoot.

[0049] Optionally, the determination module 320 is used to: calculate the relationship between the laser stripe width and the laser power according to the initial image under different laser powers; obtain the optimal laser stripe width; and determine the target laser power under the optimal laser stripe width according to the relationship between the laser stripe width and the laser power.

[0050] Optionally, the determination module 320 is used to calculate the relationship between the laser stripe width and the laser power according to the laser stripe width of a preset area of ​​each initial image and the laser power corresponding to each initial image.

[0051] Optionally, the determination module 320 is further configured to: in response to a setting operation of the user, use the user's setting value as the optimal laser stripe width.

[0052] Optionally, the determination module 320 is used to: in response to a user's selection operation, calculate the relationship between the laser stripe width and the laser power according to the laser stripe width of the area selected by the user in each initial image and the laser power corresponding to each initial image.

[0053] Optionally, the determination module 320 is used to: in response to the user's adjustment operation, determine the target laser power under the optimal laser stripe width according to the user's adjustment value, the relationship between the laser stripe width and the laser power.

[0054] Optionally, the exposure value of the camera is less than a preset value.

[0055] Optionally, the device further comprises an adjustment module, which is used to:

[0056] In response to the user's exposure adjustment operation, the process jumps to the step of acquiring initial images taken by the camera under different laser powers, so as to recalculate the target laser power and control the camera to take pictures.

[0057] The weld image shooting control device based on human-computer interaction provided in this embodiment can be used to execute the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0058] Figure 4 Schematic diagram of the structure of the terminal provided by the embodiment of the present invention. Figure 4As shown, a terminal 4 provided in one embodiment of the present invention includes: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40. When the processor 40 executes the computer program 42, the steps in the above-mentioned various gesture recognition method embodiments are implemented, for example Figure 1 Alternatively, when the processor 40 executes the computer program 42, the functions of each module / unit in the above-mentioned system embodiments are realized, for example Figure 3 The functions of each module are shown.

[0059] Exemplarily, the computer program 42 may be divided into one or more modules / units, one or more modules / units are stored in the memory 41, and are executed by the processor 40 to implement the present invention. One or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program 42 in the terminal 4.

[0060] The terminal 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of terminal 4 and does not constitute a limitation on terminal 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.

[0061] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0062] The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or memory of the terminal 4. The memory 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal 4. Further, the memory 41 may also include both an internal storage unit of the terminal 4 and an external storage device. The memory 41 is used to store computer programs and other programs and data required by the terminal. The memory 41 may also be used to temporarily store data that has been output or is to be output.

[0063] An embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned gesture recognition method embodiment are implemented.

[0064] The computer readable storage medium stores a computer program 42, which includes program instructions. When the program instructions are executed by the processor 40, all or part of the processes in the above-mentioned embodiment method are implemented. The computer program 42 can also be used to instruct related hardware to complete. The computer program 42 can be stored in a computer readable storage medium. When the computer program 42 is executed by the processor 40, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program 42 includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium.

[0065] The computer-readable storage medium may be an internal storage unit of the terminal of any of the foregoing embodiments, such as a hard disk or memory of the terminal. The computer-readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit of the terminal and an external storage device. The computer-readable storage medium is used to store computer programs and other programs and data required by the terminal. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.

[0066] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0067] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0068] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0069] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0070] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0072] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0073] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0074] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A welding seam image shooting control method based on human-computer interaction, characterized in that: include: Acquire initial images taken by a camera at different laser powers; Determining a target laser power according to a laser stripe width in the initial image; Adjust the laser power to the target laser power and control the camera to take pictures.

2. The welding seam image shooting control method based on human-computer interaction according to claim 1 is characterized in that: Determining a target laser power according to a laser stripe width in the initial image includes: According to the initial images under different laser powers, the relationship between the laser stripe width and the laser power is calculated; Obtain the optimal laser stripe width; According to the relationship between laser stripe width and laser power, the target laser power under the optimal laser stripe width is determined.

3. The welding seam image shooting control method based on human-computer interaction according to claim 2 is characterized in that: According to the initial images at different laser powers, the relationship between the laser stripe width and the laser power is calculated, including: According to the laser stripe width of the preset area of ​​each initial image and the laser power corresponding to each initial image, the relationship between the laser stripe width and the laser power is calculated.

4. The welding seam image shooting control method based on human-computer interaction according to claim 2 is characterized in that: The method further comprises: In response to the setting operation of the user, the user's setting value is taken as the optimal laser stripe width.

5. The welding seam image shooting control method based on human-computer interaction according to claim 2 is characterized in that: According to the initial images at different laser powers, the relationship between the laser stripe width and the laser power is calculated, including: In response to the user's selection operation, the relationship between the laser stripe width and the laser power is calculated according to the laser stripe width of the area selected by the user in each initial image and the laser power corresponding to each initial image.

6. The welding seam image shooting control method based on human-computer interaction according to claim 5 is characterized in that: According to the relationship between laser stripe width and laser power, the target laser power under the optimal laser stripe width is determined, including: In response to the user's adjustment operation, the target laser power at the optimal laser stripe width is determined according to the user's adjustment value, the relationship between the laser stripe width and the laser power.

7. The welding seam image shooting control method based on human-computer interaction according to claim 1 is characterized in that: The exposure value of the camera is less than a preset value.

8. The welding seam image shooting control method based on human-computer interaction according to claim 7 is characterized in that: The method further comprises: In response to the user's exposure adjustment operation, the process jumps to the step of acquiring initial images taken by the camera under different laser powers, so as to recalculate the target laser power and control the camera to take pictures.

9. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the weld image shooting control method based on human-computer interaction as described in any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the weld image shooting control method based on human-computer interaction as described in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Laser welding narrow butt-jointed seam measurement method and device

    CN101334264A

  • Bilateral laser scanning and welding method of T-shaped connector

    CN105382411A

  • Welding control method and device and electronic equipment

    CN112355478A

  • Power control method and system of handheld laser welding machine

    CN117260035A

  • A word line laser scanning measuring transducer

    CN206583408U