A spot welding device based on visual recognition
By using a combination of identity recognition, image preprocessing and quality recognition modules in spot welding equipment, the problem of large edge recognition errors of welding marks in the existing technology is solved, accurate detection of welding marks is achieved, and the accuracy of welding mark quality is ensured. durability and long-term use of the workpiece.
Patent Information
- Application Number
- CN202411068602.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-08-06
AI Technical Summary
Existing spot welding equipment based on visual recognition has large detection errors in the identification and detection of the continuity and jaggedness of the edge of the welding mark at the spot weld, and cannot accurately identify the outer surface defects of the workpiece, such as gaps, bubble holes or fracture points in the welding mark. , resulting in shortened service life or damage to the workpiece.
Using the identity recognition module, spot welding module, acquisition module, calibration module, processing module and quality identification module, through image preprocessing, image feature extraction and welding print edge continuity recognition and detection, combined with the welding print surface convex hull recognition and detection, the identification and detection of the welding print surface are realized. Accurate identification and detection of solder marks. Specifically, it includes image average calculation, denoising processing, tic-tac-toe segmentation and rotation segmentation and other technical means to improve the accuracy of solder print edge recognition.
Through the tic-tac-toe segmentation and rotation segmentation technology, the continuity and jaggedness of the welding mark are accurately detected, which improves the accuracy and speed of identifying the edge of the workpiece welding mark and ensures the accuracy of detecting the welding mark quality.
Smart Images

Figure CN118577915B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of spot welding equipment, in particular to a spot welding equipment based on visual recognition. Background Art
[0002] The spot welding equipment based on visual recognition drives the robot to move through multi-axis movement, and the robot drives the welding gun to move to the spot where spot welding is required for spot welding. Then, with the application of visual recognition technology, the products produced by the spot welding equipment are inspected and analyzed.
[0003] The vision system can capture the image of the spot welding area through the camera, and then use the image processing algorithm to detect the position, size and shape of the weld. This helps to ensure the correctness and consistency of the weld during the spot welding process. Weld tracking: The system can track the contour of the weld and perform spot welding according to the pre-set spot welding path. This helps to achieve precise control of the spot welding path and improve the accuracy and efficiency of spot welding. Weld quality detection: The quality of the weld can be detected through the vision system, including defects such as welding slag, bubbles, cracks, etc. The system can monitor parameters such as the depth of penetration and the width of the weld in real time to ensure that the quality of the spot welding meets the standard requirements.
[0004] However, the existing technology has large errors in the detection results of the continuity and serration degree of the weld mark edge at the spot welding point. It is not possible to accurately perform comprehensive identification and detection of defects on the outer surface of the workpiece weld mark only by visual observation or photo comparison. If the gaps, bubble holes or breakage points of the weld mark cannot be accurately identified and detected, the workpiece will be unusable, the service life will be shortened, or the workpiece will be damaged. Summary of the invention
[0005] The object of the present invention is to provide a spot welding device based on visual recognition to solve the existing problems raised in the above background technology.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: a spot welding device based on visual recognition, the spot welding device based on visual recognition comprises:
[0007] The identification module is used to obtain the code of the workpiece to facilitate the subsequent recording of the welding point information of the workpiece;
[0008] The spot welding module is used to locate the position, size and shape of the welding spot in the image before spot welding, determine the spot welding path on the workpiece, and perform spot welding on the workpiece placed on the spot welding table;
[0009] The acquisition module is used to obtain the image of the spot welding operation area, intercept the picture before spot welding to obtain the image before spot welding, and intercept the picture after spot welding to obtain the image after spot welding;
[0010] A calibration module, used for preprocessing the images before spot welding and after spot welding, and improving the image quality;
[0011] A processing module, for locating the position, size and shape of the welding spot in the image before spot welding, and determining the spot welding path on the workpiece;
[0012] The quality recognition module is used to extract image features from the collected images of the spot welding area, realize the quality detection of the welding points, and obtain the recognition detection results;
[0013] The calibration module includes an image average calculation module and a denoising module;
[0014] The image average calculation module is used to represent point O as the camera center point, and a random projection point in the space is marked as , enhance the image contrast, and average the image by adjusting the brightness of the irradiation light source, using low-contrast workpiece images at different brightness, and the image average , the calculation formula is as follows:
[0015] ;
[0016] in, Indicates the number of low-contrast artifact images; represents the pixel value of the i-th image processing dimension, , The horizontal and vertical coordinates of the random projection point respectively.
[0017] The denoising module is used to convert the low-contrast workpiece image signal into the orthogonal domain, perform orthogonal processing on the image, and obtain the image after the noise is removed. , the calculation formula is as follows:
[0018] ;
[0019] in, represents the orthogonal processing kernel function, Indicates the rotation angle of the image during processing.
[0020] The spot welding module includes an initialization unit and a spot welding positioning unit. The initialization unit grabs the four corners of the spot welding table in the image of the spot welding operation area, connects two diagonals, and uses the intersection of the two diagonals as the origin to establish a rectangular coordinate system with the origin as the center; when spot welding the workpiece for the first time, grab the four corners of the workpiece in the image before spot welding, connect the two diagonals, and use the intersection of the two diagonals as the welding point. The coordinates of the welding point in the rectangular coordinate system are standard workpiece coordinates, and the obtained standard spot welding coordinates are converted into moving coordinates of the manipulator.
[0021] The spot welding positioning unit processes the workpiece transported to the spot welding table. The position of the welding spot in the rectangular coordinate system is the temporary workpiece coordinate, and the offset between the temporary workpiece coordinate and the standard workpiece coordinate is obtained. , with the help of offset Correct the spot welding coordinates to obtain the corrected spot welding coordinates; convert the corrected spot welding coordinates into the moving coordinates of the manipulator to obtain the real-time moving coordinates of the manipulator, and the manipulator drives the welding gun to perform spot welding on the spot welding coordinates of the workpiece to obtain a welding mark.
[0022] The quality identification module includes a weld edge continuity identification and detection module and a weld surface convex hull identification and detection module; the quality identification module detects the morphology of the weld surface of the workpiece through the weld surface convex hull identification and detection module, accurately identifies defects such as weld offset and deformation, and improves the accuracy and speed of workpiece defect identification.
[0023] After preprocessing the image, the weld mark edge continuity recognition and detection module is used to mark the weld mark in the image after spot welding, and the weld mark edge continuity recognition and detection module is used to mark the weld mark in the image after spot welding, and project a preset standard circle on the weld mark with the welding point as the center;
[0024] Mark the peak of the weld mark outside the standard circle Point, connect The points and solder joints form a straight line ,straight line Intersects the standard circle at Point, measure Point to Distance of points ;
[0025] Marking the groove of the weld mark located inside the standard circle Point, connect The points and solder joints form a straight line ,straight line The extension line of intersects the standard circle at Point; Measurement Click to Distance of points .
[0026] The weld mark edge continuity recognition and detection module is also used to mark the welding point on the weld mark, and to segment the weld mark along the tic-tac-toe segmentation line with the welding point as the center, and to obtain area 1, area 2, area 3, area 4 and area 5 after segmentation. Area 5 is located at the center of the weld mark, and areas 1, 2, 3 and 4 surround the outside of area 1. For all areas located in area 1, and Find the variance 1, for all and Find variance 2, for all and To find variance 3, for all and Obtain variance 4, and compare the values of variance 1, variance 2, variance 3 and variance 4 to see if they fall within the preset range; if they exceed the preset range, the spot welding quality is unqualified; if they do not exceed the preset range, the spot welding quality is qualified, and then the weld mark is segmented twice. In the recognition process, the weld mark is first segmented by a tic-tac-toe segmentation line, and the variances of the peaks and grooves in each area of area 1, area 2, area 3 and area 4 are compared, so that the continuity and jaggedness of the outer edge of the weld mark can be more accurately obtained, thereby improving the accuracy of the recognition and detection of the weld mark edge of the workpiece.
[0027] The weld mark edge continuity recognition and detection module is also used to rotate the tic-tac-toe dividing line within the range of 0-90, with the rotation center being the weld spot, and perform secondary segmentation on the weld mark. After segmentation, area one, area two, area three, area four and area five are obtained again. Similarly, the values of the variance one, variance two, variance three and variance four obtained again are compared to see whether they fall within a preset range. If they exceed the preset range, the spot welding quality is unqualified.
[0028] The weld mark surface convex hull recognition and detection module is used to detect the difference value h between the morphology value of the weld mark surface at the workpiece spot welding and the standard weld mark morphology, and the calculation method is as follows:
[0029] ;
[0030] in, Indicates the standard weld shape value. Indicates the morphology of the weld surface of the workpiece. Represents the linear combination of the convex hull of the workpiece surface.
[0031] The welding spot information includes spot welding time, spot welding current, spot welding voltage and workpiece number.
[0032] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0033] During the recognition process of the present invention, the weld mark is first segmented by a tic-tac-toe dividing line, and the variances of the peaks and grooves in each area of area one, area two, area three and area four are compared, so that the continuity and the degree of serration of the outer edge of the weld mark can be obtained more accurately. The secondary segmentation is performed by rotating the tic-tac-toe dividing line to improve the accuracy of the recognition and detection of the edge of the workpiece weld mark; the quality recognition module detects the morphology of the weld mark surface of the workpiece through the weld mark surface convex hull recognition and detection module, accurately identifies defects such as weld mark offset and deformation, and improves the accuracy and speed of workpiece defect recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0035] Figure 1 is a plan view of the weld print in the present invention;
[0036] Figure 2 It is a module composition diagram of the present invention;
[0037] In the figure: 1, area 1; 2, area 2; 3, area 3; 4, area 4; 5, area 5; 6, weld mark. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] See also Figure 1-Figure 2 The present invention provides a technical solution: a spot welding device based on visual recognition, the spot welding device based on visual recognition includes:
[0040] The identification module is used to obtain the code of the workpiece to facilitate the subsequent recording of the welding point information of the workpiece;
[0041] The spot welding module is used to locate the position, size and shape of the welding spot in the image before spot welding, determine the spot welding path on the workpiece, and perform spot welding on the workpiece placed on the spot welding table;
[0042] The acquisition module is used to obtain the image of the spot welding operation area, intercept the picture before spot welding to obtain the image before spot welding, and intercept the picture after spot welding to obtain the image after spot welding;
[0043] A calibration module, used for preprocessing the images before spot welding and after spot welding, and improving the image quality;
[0044] A processing module, for locating the position, size and shape of the welding spot in the image before spot welding, and determining the spot welding path on the workpiece;
[0045] The quality recognition module is used to extract image features from the collected images of the spot welding area, realize the quality detection of the welding points, and obtain the recognition detection results;
[0046] The calibration module includes an image average calculation module and a denoising module;
[0047] The image average calculation module is used to represent point O as the camera center point and a random projection point in space is marked as , enhance the image contrast, and average the image by adjusting the brightness of the irradiation light source, using low-contrast workpiece images at different brightness, and the image average , the calculation formula is as follows:
[0048] ;
[0049] in, Indicates the number of low-contrast artifact images; represents the pixel value of the i-th image processing dimension, , The horizontal and vertical coordinates of the random projection point respectively.
[0050] The denoising module is used to convert the low-contrast workpiece image signal into the orthogonal domain, perform orthogonal processing on the image, and obtain the image after noise removal. , the calculation formula is as follows:
[0051] ;
[0052] in, represents the orthogonal processing kernel function, Indicates the rotation angle of the image during processing.
[0053] The spot welding module includes an initialization unit and a spot welding positioning unit. The initialization unit grabs the four corners of the spot welding table in the image of the spot welding operation area, connects two diagonals, and takes the intersection of the two diagonals as the origin, and establishes a rectangular coordinate system with the origin as the center; when the workpiece is spot welded for the first time, the four corners of the workpiece are grabbed in the image before spot welding, and the two diagonals are connected. The intersection of the two diagonals is the welding point, and the coordinates of the welding point in the rectangular coordinate system are the standard workpiece coordinates. The standard spot welding coordinates obtained are converted into the moving coordinates of the robot.
[0054] The spot welding positioning unit processes the workpiece transported to the spot welding table. The position of the welding spot in the rectangular coordinate system is the temporary workpiece coordinate, and the offset between the temporary workpiece coordinate and the standard workpiece coordinate is obtained. , with the help of offset Correct the spot welding coordinates to obtain the corrected spot welding coordinates; convert the corrected spot welding coordinates into the moving coordinates of the manipulator to obtain the real-time moving coordinates of the manipulator, and the manipulator drives the welding gun to perform spot welding on the spot welding coordinates of the workpiece to obtain the welding mark 6.
[0055] The quality recognition module includes a weld edge continuity recognition and detection module and a weld surface convex hull recognition and detection module;
[0056] After preprocessing the image, the weld mark edge continuity recognition and detection module is used to mark the weld mark 6 in the image after spot welding, and project a preset standard circle onto the weld mark 6 with the weld point as the center;
[0057] Mark the peak of weld mark 6 outside the standard circle Point, connect The points and solder joints form a straight line ,straight line Intersects the standard circle at Point, measure Point to Distance of points ;
[0058] Mark the groove of the weld mark 6 located inside the standard circle Point, connect The points and solder joints form a straight line ,straight line The extension line of intersects the standard circle at Point; Measurement Click to Distance of points .
[0059] The weld mark edge continuity recognition and detection module is also used to mark the weld point on the weld mark 6, and to segment the weld mark 6 along the tic-tac-toe segmentation line with the weld point as the center, and to obtain region 1, region 2, region 3, region 4, and region 5 after segmentation. Region 55 is located at the center of the weld mark 6, and region 1, region 2, region 3, region 4, and region 5 surround the outside of region 1. For all regions located in region 1, and Find the variance 1, for all and Find the variance 2, for all the and Find variance 3, for all the and Obtain variance 4, and compare whether the values of variance 1, variance 2, variance 3 and variance 4 fall within the preset range; if they exceed the preset range, the spot welding quality is unqualified; if they do not exceed the preset range, the spot welding quality is qualified, and then the weld mark 6 is divided twice.
[0060] The weld mark edge continuity recognition and detection module is also used to rotate the tic-tac-toe dividing line within the range of 0-90, with the rotation center being the weld spot, and perform secondary segmentation on the weld mark 6. After segmentation, area 1, area 2, area 3, area 4 and area 5 are regained. Similarly, the values of the regained variance 1, variance 2, variance 3 and variance 4 are compared to see if they fall within the preset range. If they exceed the preset range, the spot welding quality is unqualified.
[0061] The weld mark surface convex hull recognition and detection module is used to detect the difference value h between the morphology value of the weld mark surface at the workpiece spot welding and the standard weld mark 6 morphology. The calculation method is as follows:
[0062] ;
[0063] in, Indicates the standard weld mark (6) shape value, Indicates the morphology of the weld surface of the workpiece. Represents the linear combination of the convex hull of the workpiece surface.
[0064] The welding spot information includes spot welding time, spot welding current, spot welding voltage and workpiece number.
[0065] The specific implementation method is as follows: when in use, after the workpiece arrives at the spot welding station, the identity recognition module obtains the code of the workpiece, so as to facilitate the subsequent recording of the welding point information of the workpiece; the acquisition module intercepts the picture before spot welding to obtain the image before spot welding, and the calibration module pre-processes the image before spot welding and improves the quality of the image; when the spot welding module is running, the initialization unit grabs the four corners of the spot welding station in the image of the spot welding operation area, connects two diagonals, and the intersection of the two diagonals is the origin, and establishes a rectangular coordinate system with the origin as the center; when the workpiece is spot welded for the first time, the four corners of the workpiece are grabbed in the image before spot welding, the two diagonals are connected, and the intersection of the two diagonals is the welding point, and the coordinates of the welding point in the rectangular coordinate system are the standard workpiece coordinates, and the standard spot welding coordinates are obtained, and the spot welding coordinates are converted into the moving coordinates of the manipulator. Not only the spot welding table is used as the coordinate reference system to locate the workpiece to be spot welded, but also the intersection of the diagonals of a workpiece of a certain specification is used as the welding point when it is placed for the first time, and the coordinates of the welding point in the rectangular coordinate system are used as the standard workpiece coordinates, which increases the distance difference between the standard workpiece coordinates and the subsequent welding points of the workpiece to be spot welded, increases the error between the position of the workpiece randomly loaded to the welding table and the standard placement position of the workpiece, expands the data reference range and accuracy of the moving coordinates of the robot, and improves the accuracy of subsequent spot welding by the robot arm.
[0066] The spot welding positioning unit processes the workpiece transported to the spot welding table. The position of the welding spot in the rectangular coordinate system is the temporary workpiece coordinate, and the offset between the temporary workpiece coordinate and the standard workpiece coordinate is obtained. , with the help of offset Correct the spot welding coordinates to obtain the corrected spot welding coordinates; convert the corrected spot welding coordinates into the moving coordinates of the manipulator, that is, locate the position, size and shape of the welding spot in the image before spot welding, determine the spot welding path on the workpiece, and obtain the real-time moving coordinates of the manipulator. The manipulator drives the welding gun to spot weld the spot welding coordinates of the workpiece, obtain the welding mark 6 and record the welding spot information, such as spot welding time, spot welding current, spot welding voltage and workpiece number;
[0067] The acquisition module captures the post-spot welding picture from the image of the spot welding operation area to obtain the post-spot welding image;
[0068] The calibration module includes an image average calculation module and a denoising module; the image after spot welding is preprocessed and the image quality is improved; the grayscale value of the image after preprocessing reflects the contour law of the object surface, and the image is pixelated and denoised to improve the clarity of the image, providing a better basis for the subsequent recognition and detection of weld mark defects.
[0069] The image average calculation module is used to represent point O as the camera center point and a random projection point in space is marked as , enhance the image contrast, and average the image by adjusting the brightness of the irradiation light source, using low-contrast workpiece images at different brightness, and the image average , the calculation formula is as follows:
[0070]
[0071] in, Indicates the number of low-contrast artifact images; Represents the pixel value of the i-th image processing dimension.
[0072] The denoising module is used to convert the low-contrast workpiece image signal into the orthogonal domain, perform orthogonal processing on the image, and obtain the image after noise removal. , the calculation formula is as follows:
[0073]
[0074] in, represents the orthogonal processing kernel function, Indicates the rotation angle of the image during processing.
[0075] The quality recognition module includes a weld edge continuity recognition and detection module and a weld surface convex hull recognition and detection module, which are used to extract image features from the collected images of the spot welding area, realize quality detection of the weld point, and obtain recognition and detection results;
[0076] After preprocessing the image, the weld mark edge continuity recognition and detection module is used to mark the weld mark 6 in the image after spot welding, and project a preset standard circle onto the weld mark 6 with the weld point as the center;
[0077] Mark the peak of weld mark 6 outside the standard circle Point, connect The points and solder joints form a straight line ,straight line Intersects the standard circle at Point, measure Point to Distance of points ;
[0078] Mark the peak of weld mark 6 outside the standard circle Point, connect The points and solder joints form a straight line ,straight line Intersects the standard circle at Point, measure Point to Distance of points ;
[0079] Mark the peak of weld mark 6 outside the standard circle Point, connect The points and solder joints form a straight line ,straight line Intersects the standard circle at Point, measure Point to Distance of points ;
[0080] …
[0081] Mark the groove of the weld mark 6 located inside the standard circle Point, connect The points and solder joints form a straight line ,straight line The extension line of intersects the standard circle at Point; Measurement Click to Distance of points ;
[0082] Mark the groove of the weld mark 6 located inside the standard circle Point, connect The points and solder joints form a straight line ,straight line The extension line of intersects the standard circle at Point; Measurement Click to Distance of points ;
[0083] …
[0084] The weld mark edge continuity recognition and detection module is also used to mark the weld point on the weld mark 6, and to segment the weld mark 6 along the tic-tac-toe segmentation line with the weld point as the center, and to obtain region 1, region 2, region 3, region 4, and region 5 after segmentation. Region 55 is located at the center of the weld mark 6, and region 1, region 2, region 3, region 4, and region 5 surround the outside of region 1. For all regions located in region 1, and Find the variance 1, for all and Find the variance 2, for all the and Find variance 3, for all the and Obtain variance 4, and compare the values of variance 1, variance 2, variance 3 and variance 4 to see if they fall within the preset range; if they exceed the preset range, the spot welding quality is unqualified; if they do not exceed the preset range, the spot welding quality is qualified, and then the weld mark 6 is segmented twice. In the recognition process, the weld mark 6 is first segmented by the tic-tac-toe segmentation line, and the variances of the peaks and grooves in each area of area 1, area 2, area 3 and area 4 are compared, so that the continuity and jaggedness of the outer edge of the weld mark 6 can be more accurately obtained. The accuracy of edge recognition and detection of the workpiece weld mark 6 is improved by rotating the tic-tac-toe segmentation line for secondary segmentation.
[0085] The weld mark edge continuity recognition and detection module is also used to rotate the tic-tac-toe dividing line within the range of 0-90, with the rotation center being the weld spot, and perform secondary segmentation on the weld mark 6. After segmentation, area 1, area 2, area 3, area 4 and area 5 are regained. Similarly, the values of the regained variance 1, variance 2, variance 3 and variance 4 are compared to see if they fall within the preset range. If they exceed the preset range, the spot welding quality is unqualified.
[0086] The weld mark surface convex hull recognition and detection module is used to detect the difference value h between the morphology value of the weld mark surface at the workpiece spot welding and the standard weld mark morphology. The calculation method is as follows:
[0087]
[0088] in, Indicates the standard weld shape value. Indicates the morphology of the weld surface of the workpiece. Represents the linear combination of the convex hull of the workpiece surface.
[0089] The standard weld mark 6 is an oblate cone. The morphology value of the weld mark 6 surface is calculated, and then the difference value h between the morphology value of the weld mark surface at the workpiece spot welding and the standard weld mark morphology is obtained. If the morphology value of the weld mark surface is within the set range of the difference value h of the standard weld mark morphology, the morphology of the weld mark surface at the workpiece spot welding meets the standard; if the morphology value of the weld mark surface is beyond the set range of the difference value h of the standard weld mark morphology, the morphology of the weld mark surface at the workpiece spot welding does not meet the standard. The quality identification module detects the morphology of the weld mark 6 surface of the workpiece through the weld mark surface convex hull identification and detection module, accurately identifies defects such as weld mark 6 offset and deformation, and improves the accuracy and speed of workpiece defect identification.
[0090] Finally, it should be noted that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A spot welding device based on visual recognition, characterized in that: The spot welding equipment based on visual recognition includes: The identification module is used to obtain the code of the workpiece to facilitate the subsequent recording of the welding point information of the workpiece; The spot welding module is used to locate the position, size and shape of the welding spot in the image before spot welding, determine the spot welding path on the workpiece, and perform spot welding on the workpiece placed on the spot welding table; The acquisition module is used to obtain the image of the spot welding operation area, intercept the picture before spot welding to obtain the image before spot welding, and intercept the picture after spot welding to obtain the image after spot welding; A calibration module, used for preprocessing the images before spot welding and after spot welding, and improving the image quality; The quality recognition module is used to extract image features from the collected images of the spot welding area, realize the quality detection of the welding points, and obtain the recognition detection results; The calibration module includes an image average calculation module and a denoising module; The image average calculation module is used to represent point O as the camera center point, and a random projection point in the space is marked as , enhance the image contrast, and average the image by adjusting the brightness of the irradiation light source, using low-contrast workpiece images at different brightness, and the image average , the calculation formula is as follows: ; in, Indicates the number of low-contrast artifact images; represents the pixel value of the i-th image processing dimension, , The horizontal and vertical coordinates of the random projection point respectively; The denoising module is used to convert the low-contrast workpiece image signal into the orthogonal domain, perform orthogonal processing on the image, and obtain the image after the noise is removed. , the calculation formula is as follows: ; in, represents the orthogonal processing kernel function, Indicates the rotation angle of the image during processing; The spot welding module includes an initialization unit and a spot welding positioning unit. The initialization unit grabs the four corners of the spot welding table in the image of the spot welding operation area, connects two diagonals, and the intersection of the two diagonals is the origin, and a rectangular coordinate system is established with the origin as the center; when spot welding is performed on the workpiece for the first time, the four corners of the workpiece are grabbed in the image before spot welding, the two diagonals are connected, and the intersection of the two diagonals is the welding point. The coordinates of the welding point in the rectangular coordinate system are the standard workpiece coordinates, and the standard spot welding coordinates are obtained, and the spot welding coordinates are converted into the moving coordinates of the manipulator; The spot welding positioning unit processes the workpiece transported to the spot welding table. The position of the welding spot in the rectangular coordinate system is the temporary workpiece coordinate, and the offset between the temporary workpiece coordinate and the standard workpiece coordinate is obtained. , with the help of offset Correct the spot welding coordinates to obtain corrected spot welding coordinates; convert the corrected spot welding coordinates into the moving coordinates of the manipulator to obtain the real-time moving coordinates of the manipulator, and the manipulator drives the welding gun to perform spot welding on the spot welding coordinates of the workpiece to obtain a welding mark (6); The quality recognition module includes a weld edge continuity recognition and detection module and a weld surface convex hull recognition and detection module; After preprocessing the image, the weld mark edge continuity recognition and detection module is used to mark the weld mark (6) in the image after spot welding, and project a preset standard circle onto the weld mark (6) with the weld point as the center; Mark the peak of the weld mark (6) outside the standard circle Point, connect The points and solder joints form a straight line ,straight line Intersects the standard circle at Point, measure Point to Distance of points ; Mark the groove of the weld mark (6) located inside the standard circle Point, connect The points and solder joints form a straight line ,straight line The extension line of intersects the standard circle at Point; Measurement Click to Distance of points ; The weld mark edge continuity recognition and detection module is also used to mark the weld point on the weld mark (6), and to segment the weld mark (6) along the tic-tac-toe segmentation line with the weld point as the center, so as to obtain region 1 (1), region 2 (2), region 3 (3), region 4 (4) and region 5 (5) after segmentation, wherein region 5 (5) is located at the center of the weld mark (6), and region 1 (1), region 2 (2), region 3 (3) and region 4 (4) surround the outside of region 1 (1), and all regions located within region 1 (1) are segmented. and Find the variance 1 for all the values in region 2 (2) and Find variance 2, for all the and Find variance 3, for all the and Obtain variance 4, and compare the values of variance 1, variance 2, variance 3 and variance 4 to see whether they fall within a preset range; if they exceed the preset range, the spot welding quality is unqualified; if they do not exceed the preset range, the spot welding quality is qualified, and then the weld mark (6) is divided twice; The weld mark edge continuity recognition and detection module is also used to rotate the tic-tac-toe dividing line within the range of 0-90, with the center of rotation being the weld spot, and perform secondary segmentation on the weld mark (6), and after segmentation, re-obtain region 1 (1), region 2 (2), region 3 (3), region 4 (4) and region 5 (5). Similarly, the values of the re-obtained variance 1, variance 2, variance 3 and variance 4 are respectively compared to see whether they fall within a preset range. If they exceed the preset range, the spot welding quality is unqualified; The weld mark surface convex hull recognition and detection module is used to detect the difference value h between the morphology value of the weld mark surface at the workpiece spot welding and the standard weld mark morphology, and the calculation method is as follows: ; in, Indicates the standard weld shape value. Indicates the morphology of the weld surface of the workpiece. Represents the linear combination of the convex hull of the workpiece surface.
2. A spot welding device based on visual recognition according to claim 1, characterized in that: The welding spot information includes spot welding time, spot welding current, spot welding voltage and workpiece number.
