Weld joint identification and training method, model and system based on Zieongtai initial large model
The welding seam identification method based on the Zidong Taichu large model solves the problems of slow speed and low accuracy in traditional welding seam identification technology, and achieves efficient and accurate welding seam breakpoint identification, which is suitable for a variety of welding scenarios and forms.
Patent Information
- Application Number
- CN202410988844.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-25
AI Technical Summary
Traditional welding seam recognition technology has the problems of slow recognition speed, low accuracy and instability. Especially under different welding scenarios and welding seam shapes, the general adaptability of the image algorithm is poor, resulting in inaccurate welding seam breakpoint recognition.
The weld recognition method based on the Zidong Taichu large model is used to pre-process, identify and post-process images, combined with lightweight processing and iterative training, to form an efficient weld recognition model, including image pre-processing unit, weld recognition unit and image post-processing unit to improve the accuracy and speed of weld breakpoint identification.
The speed and accuracy of weld recognition are improved. The lightweight model has small parameters, is easy to iteratively update, adapts to different welding scenarios and weld shapes, reduces hardware requirements, and significantly improves the accuracy of weld recognition.
Smart Images

Figure CN118840355A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of laser welding technology, and in particular to a weld recognition and training method, model and system based on the Zidong Taichu large model. Background Art
[0002] At present, traditional image algorithms for weld recognition have been widely used. Traditional visual methods have problems in weld recognition, such as cumbersome optimization process, multi-threshold setting, difficult debugging, and poor general adaptability. These problems lead to low weld recognition speed, and due to different welding scenes and weld shapes, if the same image algorithm is used to identify weld breakpoints, the accuracy of the identified weld breakpoints will be low and unstable. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide a weld identification, training method, model and system based on the Zidong Taichu large model to improve the accuracy and speed of weld identification.
[0004] In the first aspect, a weld recognition method based on the Zidong Taichu large model is provided, and a weld recognition model is obtained by lightweight processing and pre-training based on the Zidong Taichu large model. The weld recognition model includes an image preprocessing unit, a weld recognition unit and an image post-processing unit. The method includes:
[0005] Acquire a line scan image consisting of a line scan point cloud data set of a welding area of a workpiece to be welded;
[0006] Preprocessing the line scan image based on the image preprocessing unit to obtain a weld area image;
[0007] Based on the weld recognition unit, the weld region image is subjected to breakpoint recognition to obtain coordinate data of the initial weld breakpoint;
[0008] The image post-processing unit filters and corrects the coordinate data of the initial weld feature points and outputs the final weld breakpoint coordinate data.
[0009] Optionally, preprocessing the line scan image based on the image preprocessing unit to obtain the weld area image includes:
[0010] Normalizing the line scan image to obtain a normalized image;
[0011] The normalized image is processed at the edge to obtain the weld area image.
[0012] Optionally, the coordinate data of the initial weld breakpoint includes at least a depth value, the weld region image includes a plurality of rows of weld feature points, and the coordinate data of the initial weld breakpoint is filtered and corrected based on the image post-processing unit, and the output of the final weld breakpoint coordinate data includes:
[0013] Calculate the effective feature point ratio and invalid feature point ratio of the weld area image where the initial weld breakpoint is located row by row, wherein the effective feature point ratio refers to the ratio of the feature points located on the workpiece to be welded to the total number of points in the row, and the invalid feature point ratio refers to the ratio of the feature points outside the workpiece to be welded to the total number of points in the row;
[0014] The proportion of valid feature points is compared with the valid proportion threshold, and the proportion of invalid feature points is compared with the invalid proportion threshold;
[0015] If the proportion of valid feature points is less than the valid proportion threshold, and the proportion of invalid feature points is less than the invalid proportion threshold, the coordinate data of the initial weld breakpoint of the current row is retained;
[0016] The depth value of the retained initial weld breakpoint coordinate data is corrected to obtain the final weld breakpoint coordinate data.
[0017] Optionally, before comparing the invalid feature point ratio with the invalid ratio threshold, the method further includes:
[0018] Compare the invalid feature point ratio with the preset starting point and end point determination threshold;
[0019] If the proportion of invalid points in several rows in the current frame image is both greater than the preset starting point and end point determination threshold and less than the preset starting point and end point determination threshold, the current frame image is smoothed.
[0020] Optionally, the depth value of the initial weld breakpoint coordinate data is corrected to obtain the final weld feature point coordinate data including:
[0021] Calculate the average depth value of the valid feature points in the row where the initial weld feature point is located;
[0022] Determine the relative depth value of the initial weld feature point coordinate data based on the average depth value and the depth value of the initial weld feature point coordinate data;
[0023] comparing the relative depth value with a preset depth threshold;
[0024] If it is less than the preset depth threshold, the depth values of two valid feature points adjacent to the initial weld breakpoint are obtained;
[0025] The average of the depth values of two adjacent valid feature points is taken as the corrected depth value to obtain the final weld breakpoint coordinate data.
[0026] In the second aspect, a training method for a weld recognition model based on the Zidong Taichu large model is provided, comprising:
[0027] Obtain line scan point cloud data sets to be trained for various weld types;
[0028] Cut the line scan point cloud data set to be trained to obtain a number of slice data;
[0029] Each slice data is combined into a training image data to obtain a training image data set;
[0030] Preprocess the training image dataset;
[0031] Inputting the preprocessed training image data set into the weld recognition model to be trained for iterative training;
[0032] When the preset number of iterations is reached, the model with the smaller loss function value is selected as the final weld recognition model.
[0033] Optionally, forming a training image data from each slice data includes:
[0034] Starting from the second slice data, each slice data is superimposed with part of the data of the previous slice data to form a training image data.
[0035] In the third aspect, a weld recognition model is provided, which is obtained by lightweighting and pre-training the Zidong Taichu large model, including:
[0036] An image preprocessing unit, used for preprocessing the line scan image to obtain a weld area image;
[0037] A weld identification unit is used to identify breakpoints of the weld area image of the workpiece to be welded, and obtain coordinate data of the initial weld breakpoints;
[0038] The image post-processing unit is used to filter and correct the coordinate data of the initial weld breakpoints and output the coordinate data of the weld breakpoints.
[0039] In a fourth aspect, a weld recognition system based on the Zidong Taichu large model is provided, including a laser line scan camera and a weld recognition model;
[0040] The laser line scan camera is used to obtain a line scan image of the welding area of the workpiece to be welded.
[0041] In a fifth aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0042] Memory, used to store computer programs;
[0043] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.
[0044] The embodiments of the present invention provide a weld recognition and training method, model and system based on the Zidong Taichu large model. The weld breakpoints are identified through a lightweight weld recognition model. The lightweight model has a small number of parameters, is easy to iterate and update, has a fast inference speed, and has low deployment hardware requirements, thereby greatly improving the weld recognition speed, and performing image post-processing on the identified weld breakpoints, further improving the accuracy of weld recognition.
[0045] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 A flow chart of a weld identification method based on the Zidong Taichu large model provided in an embodiment of the present invention is shown;
[0048] Figure 2 A schematic diagram showing a weld breakpoint identified according to an embodiment of the present invention is shown;
[0049] Figure 3 A structural schematic diagram of a weld recognition model provided by an embodiment of the present invention is shown;
[0050] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.
[0052] Considering the target weld identification method, the process is cumbersome and the versatility is poor, resulting in the recognition speed and accuracy cannot meet the current welding needs. Patent CN115908281 A provides a weld tracking method based on the NesNeXt network, which requires a large amount of preprocessing of the processed weld image information, including graying, filtering, image scaling and image enhancement. Not only is the processing process cumbersome, but it also does not provide substantial help for the application of different weld types and welding scenarios. Based on this, an embodiment of the present invention provides a weld identification model based on the Zidong Taichu large model. The initial weld identification model is obtained by lightweight processing of the Zidong Taichu large model. The Zidong Taichu large model is the world's first large model with 100 billion parameters and three modal models. In one example, the Zidong Taichu large model can be lightweight processed by distillation; and the initial weld recognition model is pre-trained to obtain a directly applicable weld recognition model, which includes an image preprocessing unit, a weld recognition unit and an image post-processing unit. The weld recognition model obtained based on the lightweight processing of the Zidong Taichu large model improves the processing speed of the model by reducing the number of various model parameters. In addition, since the Zidong Taichu large model has many parameter types, even after lightweight processing, the weld recognition model can retain more parameter types, which facilitates the processing of various welding scenarios and weld shapes. This is described below through an embodiment.
[0053] The embodiment of the present invention provides a weld identification method based on the Zidong Taichu large model, such as Figure 1 As shown, the method comprises the following steps:
[0054] Step S101: Acquire a line scan image consisting of a line scan point cloud data set of a welding area of a workpiece to be welded.
[0055] In this step, the surface of the workpiece to be welded can be scanned by a laser line scan camera with a resolution of 1000*3200. Specifically, the weld area can be scanned line by line along the length of the weld. According to the actual welding speed requirements, every 60 lines of point cloud data can form a line scan image and input it into the weld recognition model for image recognition.
[0056] Step S102: Based on the image preprocessing unit, preprocess the line scan image to obtain a weld area image.
[0057] In an embodiment of the present invention, preprocessing the line scan image based on the image preprocessing unit to obtain the weld area image includes:
[0058] The line scan image is normalized to obtain a normalized image.
[0059] Normalization can map pixel data of images of different scales, such as 16-bit and 32-bit pixel data, to the standard range [0, 1]. Normalization helps to improve the stability of image data and facilitates subsequent processing.
[0060] The normalized image is processed at the edge to obtain the weld area image.
[0061] In an embodiment of the present invention, the weld edge can be processed through a zero-padding operation to reduce the interference of edge data and noise data on the output of the AI model and obtain a preliminary weld area image.
[0062] Step S103: Based on the weld recognition unit, the weld region image is subjected to breakpoint recognition to obtain coordinate data of initial weld breakpoints.
[0063] In an embodiment of the present invention, the initial weld feature points include points on the workpiece to be welded and points outside the workpiece to be welded. The points outside the workpiece to be welded include points within the welding workpiece area outside the workpiece, such as weld feature points and points outside the welding workpiece area outside the workpiece. For example, when two steel plates are spliced and welded, the points in the weld area between the two steel plates are not on the steel plates, and therefore are points outside the steel plates. For another example, when a laser line scan camera starts scanning from one end of the weld, it may not have entered the steel plate area, so the points collected at this time are also points outside the steel plate. When it just enters the steel plate area, it includes both points outside the steel plate area and points on the steel plate.
[0064] In an embodiment of the present invention, the weld recognition unit includes an encoding layer and a decoding layer. The encoding layer adopts the network structure of ResNet18, and performs convolution processing on the weld area image to obtain a feature map. The feature map is the output of the convolution layer, which represents the feature representation obtained after the input image is convolutionally operated. The feature map maps the original image to a high-dimensional space, so that the weld recognition model can better understand the information of the image. The encoding layer adopts a four-layer pyramid structure, and decodes the feature map to obtain the coordinate data of the initial weld feature points of the weld area image.
[0065] Step S104: filtering and correcting the coordinate data of the initial weld breakpoint based on the image post-processing unit, and outputting the final weld breakpoint coordinate data.
[0066] Since there is a large error in the initial weld breakpoints, the points that do not belong to the weld breakpoints are filtered out, and the depth of the filtered weld breakpoints is further corrected, which can greatly improve the accuracy of the output weld breakpoints.
[0067] After obtaining the final coordinate data of the weld breakpoint, the coordinate data of the actual welding point can be further determined according to the coordinate data of the weld breakpoint, and the welding gun can be guided to weld according to the coordinate data of the welding point. In one example, for example, a point can be found on the line connecting two weld breakpoints as the actual welding point.
[0068] The present invention uses a lightweight weld recognition model, which has a small number of parameters, is easy to iterate and update, has a fast inference speed, and has low deployment hardware requirements, thereby greatly improving the weld recognition speed. In addition, for different weld scenes and weld shapes, the accuracy of weld recognition can be improved by only filtering and correcting the initial weld breakpoints through fine-tuning the image post-processing unit.
[0069] Based on the above embodiment, the coordinate data of the initial weld breakpoint includes at least a depth value, the weld area image includes a plurality of rows of weld feature points, and the coordinate data of the initial weld breakpoint is filtered and corrected based on the image post-processing unit, and the final weld breakpoint coordinate data is outputted, including:
[0070] Step S1041: Calculate the ratio of valid feature points and invalid feature points in the weld area image where the initial weld breakpoint is located row by row, wherein the ratio of valid feature points refers to the ratio of feature points located on the workpiece to be welded to the total number of points in the row, and the ratio of invalid feature points refers to the ratio of feature points outside the workpiece to be welded to the total number of points in the row.
[0071] In this step, valid feature points refer to points located on the workpiece to be welded, and invalid feature points refer to points in the welding area that are not scanned by the laser line scan camera, such as points with a pixel value of 0.
[0072] The coordinate data of the feature point at least includes the pixel depth value. In one example, the pixel depth value of each feature point can be used to determine whether it is a valid point or an invalid point. Since the pixel depth value of each point is mapped to 0-1 after normalization, a point with a pixel depth value of 0 is determined to be an invalid feature point, and a point with a pixel depth value higher than 0.99 is determined to be a valid point. Thus, the number of valid points and invalid points can be counted.
[0073] The number of valid points divided by the total number of points in the row, for example 3200, gives the valid point ratio. Similarly, the invalid point ratio can be obtained.
[0074] Step S1042: compare the proportion of valid feature points with the valid proportion threshold, and compare the proportion of invalid feature points with the invalid proportion threshold.
[0075] In this step, the effective point ratio threshold can be determined by the following formula 1:
[0076]
[0077] Among them, the total number of weld widths can be obtained by the number of invalid feature points at the bottom of the weld. From this formula, it can be seen that the effective proportion threshold is inversely proportional to the total number of weld widths. The larger the weld width, the smaller the effective proportion threshold. Therefore, the effective proportion threshold can be adjusted according to the weld width.
[0078] Step S1043: If the proportion of valid feature points is less than the valid proportion threshold, and the proportion of invalid feature points is less than the invalid proportion threshold, the coordinate data of the initial weld feature points of the current row are retained.
[0079] Experiments have shown that only images that meet these two thresholds are valid images, and the weld feature points therein are valid. For example, when the welding area of the workpiece to be welded is not entered, the invalid feature points in the acquired image are 100%, which must be greater than the invalid ratio threshold. In this case, the weld breakpoints output by the image are inaccurate, and the coordinate data of the weld breakpoints will not be output at this time.
[0080] Only when it is less than the invalid proportion threshold and the valid feature points are also less than the valid proportion threshold, it means that the welding area of the workpiece to be welded has been entered. At this time, the output weld breakpoint is likely to be the required weld breakpoint.
[0081] In one example, if Figure 2 As shown, the characteristic points of the weld are the weld breakpoints, which are the two points on both sides of the weld.
[0082] Step S1044: Correct the depth value of the retained initial weld breakpoint coordinate data to obtain the final weld breakpoint coordinate data.
[0083] like Figure 2 As shown, in the camera coordinate system, even if the weld breakpoint is found correctly in the X direction, it may be a point below the weld breakpoint in the Z direction, such as the circle in the figure, so the depth value in the Z direction needs to be corrected.
[0084] Based on the above embodiment, the depth value of the initial weld breakpoint coordinate data is corrected to obtain the final weld breakpoint coordinate data including:
[0085] Calculate the average depth value of the valid feature points in the row where the initial weld feature point is located.
[0086] The relative depth value of the initial weld feature point coordinate data is determined based on the average depth value and the depth value of the initial weld feature point coordinate data.
[0087] The relative depth value is compared to a preset depth threshold.
[0088] Since each workpiece to be welded is located in a different position, using the same preset depth threshold is obviously not in line with the actual scenario. Therefore, a relative depth value needs to be calculated. No matter how the workpiece moves or what its position is, it will not affect the comparison result with the preset depth threshold.
[0089] If it is less than the preset depth threshold, the depth values of two valid feature points adjacent to the initial weld breakpoint are obtained.
[0090] The average of the depth values of two adjacent valid feature points is taken as the corrected depth value to obtain the final weld breakpoint coordinate data.
[0091] By correcting the depth value, the accuracy of weld recognition model recognition is improved.
[0092] Based on the above embodiment, before comparing the invalid feature point ratio with the invalid ratio threshold, the method further includes:
[0093] Compare the invalid feature point ratio with the preset start and end point determination threshold.
[0094] In the embodiment of the present invention, the preset starting point and end point determination threshold is a value determined through a large number of experiments on different weld shapes, weld scenes, etc., and the preferred value is 0.52.
[0095] If the proportion of invalid points in several rows in the current frame image is greater than the preset starting point and end point judgment threshold and less than the preset starting point and end point judgment threshold, it means that the current image is a critical image containing the starting point or end point of the weld. The image contains both the starting point or end point data of the weld and some critical data around the starting point or end point. Therefore, the current frame image is smoothed.
[0096] In an embodiment of the present invention, by comparing with the preset starting and ending point judgment thresholds, the images located at the starting and ending points of the weld can be identified, and then the breakpoints in the images at the starting and ending points are smoothed to improve the smoothness and accuracy of the identified weld breakpoints.
[0097] Based on the same inventive concept, a training method for a weld recognition model based on the Zidong Taichu large model is provided, comprising:
[0098] Obtain line scan point cloud datasets of various weld types to be trained.
[0099] In one example, the weld types include groove, non-groove, tailored weld, fillet weld, and lap weld, etc.
[0100] The line scan point cloud dataset to be trained is cut to obtain several slice data.
[0101] Since the line scan point cloud dataset to be trained is 1000*3200, and the actually deployed laser line scan camera processes at a frame rate of 60 frames to meet the welding speed requirements, in order to meet the accuracy of the actual scene, the line scan point cloud dataset to be trained needs to be randomly cut into 60 rows of data to achieve similarity with the actual application scene. For example, if there are 1000 rows of data, and every 60 rows are cut, 17 slices of data will be obtained, and these 17 slices of data will be composed of 17 images.
[0102] Each slice data is combined into a training image data to obtain a training image data set.
[0103] The training image data set is preprocessed, for example, including normalization processing and edge processing, and the processing method thereof is referred to the preprocessing of the line scan image above, which will not be described in detail here.
[0104] The preprocessed training image dataset is input into the weld recognition model to be trained for iterative training.
[0105] In one example, the preset number of iterations is 20,000, and stable convergence can be achieved after about 1,000 cycles.
[0106] When the preset number of iterations is reached, the model with the smaller loss function value is selected as the final weld recognition model.
[0107] In one example, the loss function may adopt a cross entropy function.
[0108] Based on the above embodiment, each slice data is formed into a training image data including:
[0109] Starting from the second slice data, each slice data is superimposed with part of the data of the previous slice data to form a training image data.
[0110] Based on the above example, for example, each slice has 60 lines of data, then the current slice data can be added to the last 10 lines of data of the previous slice as the final slice data to form a training image, which can maintain the continuity and smoothness of the recognition of the front and rear weld breakpoints.
[0111] The present invention can meet the weld recognition requirements of various welding scenes and various welding forms by training images of different weld types.
[0112] Based on the same inventive concept, a weld recognition model is provided, which is obtained by lightweighting and pre-training the Zidong Taichu large model.
[0113] Optionally, the pre-training process of the weld recognition model includes:
[0114] Obtain line scan point cloud data sets to be trained for various weld types;
[0115] Cut the line scan point cloud data set to be trained to obtain a number of slice data;
[0116] Each slice data is combined into a frame of training image data to obtain a training image data set;
[0117] Preprocess the training image dataset;
[0118] Inputting the preprocessed training image data set into the weld recognition model to be trained for iterative training;
[0119] When the preset number of iterations is reached, the model with the smaller loss function value is selected as the final weld recognition model.
[0120] Optionally, forming a frame of training image data from each slice data includes:
[0121] Starting from the second slice data, each slice data is superimposed with part of the data of the previous slice data to form a frame of training image data.
[0122] The trained weld recognition model is as follows: Figure 3 As shown, including:
[0123] The image preprocessing unit 301 is used to preprocess the line scan image to obtain a weld area image.
[0124] A weld identification unit 302 is used to identify breakpoints of the weld area image of the workpiece to be welded, and obtain coordinate data of initial weld breakpoints;
[0125] The image post-processing unit 303 is used to filter and correct the coordinate data of the initial weld feature points and output the weld breakpoint coordinate data.
[0126] Optionally, the image preprocessing unit is specifically used for:
[0127] Normalizing the line scan image to obtain a normalized image;
[0128] The normalized image is processed at the edge to obtain the weld area image.
[0129] Optionally, the image post-processing unit is specifically used for:
[0130] Calculate the effective feature point ratio and invalid feature point ratio of the weld area image row by row, where the effective feature point ratio refers to the ratio of the feature points located on the workpiece to be welded to the total number of points in the row, and the invalid feature point ratio refers to the ratio of the feature points outside the workpiece to be welded to the total number of points in the row;
[0131] The proportion of valid feature points is compared with the valid proportion threshold, and the proportion of invalid feature points is compared with the invalid proportion threshold;
[0132] If the proportion of valid feature points is less than the valid proportion threshold, and the proportion of invalid feature points is less than the invalid proportion threshold, the coordinate data of the initial weld breakpoint of the current row is retained;
[0133] The depth value of the initial weld breakpoint coordinate data is corrected to obtain the final weld breakpoint coordinate data.
[0134] Among them, the depth value of the initial weld breakpoint coordinate data is corrected to obtain the final weld breakpoint coordinate data including:
[0135] Calculate the average depth value of the valid feature points in the row where the initial weld feature point is located;
[0136] Determine the relative depth value of the initial weld breakpoint coordinate data based on the average depth value and the depth value of the initial weld feature point coordinate data;
[0137] comparing the relative depth value with a preset depth threshold;
[0138] If it is less than the preset depth threshold, the depth values of two valid feature points adjacent to the initial weld breakpoint are obtained;
[0139] The average of the depth values of two adjacent valid feature points is taken as the corrected depth value to obtain the final weld breakpoint coordinate data.
[0140] Optionally, the model further comprises a smoothing processing unit, configured to:
[0141] Compare the invalid feature point ratio with the preset starting point and end point determination threshold;
[0142] If the proportion of invalid points in several rows in the current frame image is both greater than the preset starting point and end point determination threshold and less than the preset starting point and end point determination threshold, the current frame image is smoothed.
[0143] Based on the same inventive concept, a weld recognition system based on the Zidong Taichu large model is provided, comprising the weld recognition model of the second aspect and a laser line scan camera; the laser line scan camera is used to obtain a line scan image of the welding area of the workpiece to be welded.
[0144] Based on the same inventive concept, an embodiment of the present invention further provides an electronic device, such as Figure 4 As shown, it includes a processor 401 , a communication interface 402 , a memory 403 and a communication bus 404 , wherein the processor 401 , the communication interface 402 , and the memory 403 communicate with each other via the communication bus 404 .
[0145] Memory 403, used for storing computer programs;
[0146] The processor 401 is used to implement the steps of the weld identification method when executing the program stored in the memory 403.
[0147] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0148] The communication interface is used for communication between the above electronic device and other devices.
[0149] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0150] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0151] The computer program product for weld identification provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0152] The device for weld identification provided in the embodiment of the present invention may be specific hardware on the device or software or firmware installed on the device. The device provided in the embodiment of the present invention has the same implementation principle and technical effects as the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the aforementioned systems, devices and units can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.
[0153] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, 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 communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0154] 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.
[0155] In addition, each functional unit in the embodiment provided by 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.
[0156] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0157] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0158] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions described in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or perform equivalent replacements on some of the technical features thereof; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. They should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A weld identification method based on the Zidong Taichu large model, characterized in that: A weld recognition model is obtained by lightweight processing and pre-training based on the Zidong Taichu large model, wherein the weld recognition model includes an image pre-processing unit, a weld recognition unit and an image post-processing unit, and the method includes: Acquire a line scan image of a welding area of the workpiece to be welded; Preprocessing the line scan image based on the image preprocessing unit to obtain a weld area image; Based on the weld recognition unit, the weld region image is subjected to breakpoint recognition to obtain coordinate data of initial weld breakpoints; Based on the image post-processing unit, the coordinate data of the initial weld breakpoint is filtered and corrected, and the final weld breakpoint coordinate data is output.
2. The method according to claim 1, characterized in that The preprocessing of the line scan image based on the image preprocessing unit to obtain the weld area image comprises: Performing normalization processing on the line scan image to obtain a normalized image; The normalized image is edge processed to obtain a weld area image.
3. The method according to claim 1, characterized in that The coordinate data of the initial weld breakpoint at least includes a depth value, and the weld area image includes a plurality of rows of weld feature points. The image post-processing unit filters and corrects the coordinate data of the initial weld breakpoint to output the final weld breakpoint coordinate data, including: Calculate the effective feature point ratio and invalid feature point ratio of the weld area image where the initial weld breakpoint is located row by row, wherein the effective feature point ratio refers to the ratio of the feature points located on the workpiece to be welded to the total number of points in the row, and the invalid feature point ratio refers to the ratio of the feature points outside the workpiece to be welded to the total number of points in the row; Compare the effective feature point ratio with the effective ratio threshold, and compare the invalid feature point ratio with the invalid ratio threshold; If the proportion of the valid feature points is less than the valid proportion threshold, and the proportion of the invalid feature points is less than the invalid proportion threshold, the coordinate data of the initial weld breakpoint of the current row is retained; The depth value of the retained coordinate data of the initial weld breakpoint is corrected to obtain the final weld breakpoint coordinate data.
4. The method according to claim 3, characterized in that Before comparing the invalid feature point ratio with the invalid ratio threshold, the method further includes: Compare the invalid feature point ratio with the preset starting point and end point determination threshold; If the proportion of invalid points in several rows in the current frame image is both greater than the preset starting point and end point determination threshold and less than the preset starting point and end point determination threshold, the current frame image is smoothed.
5. The method according to claim 3, characterized in that: The step of correcting the depth value of the coordinate data of the initial weld breakpoint to obtain the final weld breakpoint coordinate data includes: Calculate the average depth value of the valid feature points in the row where the initial weld feature point is located; Determine a relative depth value of the initial weld feature point coordinate data based on the average depth value and the depth value of the initial weld feature point coordinate data; Comparing the relative depth value with a preset depth threshold; If it is less than the preset depth threshold, the depth values of two valid feature points adjacent to the initial weld breakpoint are obtained; The average of the depth values of two adjacent valid feature points is taken as the corrected depth value to obtain the final weld breakpoint coordinate data.
6. A training method for a weld recognition model based on the Zidong Taichu large model, characterized in that: The method comprises: Obtain line scan point cloud data sets to be trained for various weld types; Cutting the line scan point cloud data set to be trained to obtain a plurality of slice data; Each slice data is combined into a training image data to obtain a training image data set; Preprocessing the training image data set; Inputting the preprocessed training image data set into the weld recognition model to be trained for iterative training; When the preset number of iterations is reached, the model with the smallest loss function value is selected as the final weld recognition model.
7. The method according to claim 6, characterized in that The step of forming a training image data from each slice data comprises: Starting from the second slice data, each slice data is superimposed with part of the data of the previous slice data to form a training image data.
8. A weld recognition model, characterized in that: The weld recognition model is obtained by lightweighting and pre-training the Zidong Taichu large model, including: An image preprocessing unit, used for preprocessing the line scan image to obtain a weld area image; A weld identification unit is used to identify breakpoints of the weld area image of the workpiece to be welded, and obtain coordinate data of the initial weld breakpoints; The image post-processing unit is used to filter and correct the coordinate data of the initial weld breakpoints and output the coordinate data of the weld breakpoints.
9. A weld identification system based on the Zidong Taichu large model, characterized in that: It includes a laser line scan camera and the weld recognition model as claimed in claim 8; The laser line scan camera is used to obtain a line scan image of the welding area of the workpiece to be welded.
10. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.
Citation Information
Cited By
Weld joint identification method and device fused with large model, electronic equipment and storage medium
CN119407392A
Weld seam identification method, device, electronic device and storage medium integrating large model
CN119407392B
Large-model-integrated weld seam recognition method and apparatus, and electronic device and storage medium
WO2026145476A1
