A method for quickly locating the welding area of the battery busbar of a new energy vehicle
In the welding area rapid positioning method of the battery busbar of new energy vehicles, the grayscale conversion of ultrasonic phased array C scan image, the area of interest extraction and sliding window construction are used to calculate the acoustic impedance rate in real time for optimized positioning, which solves the problem of insufficient accuracy in welding area extraction in the prior art, and achieves rapid and accurate positioning of the welding area.
Patent Information
- Application Number
- CN202210738420.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-27
- Publication Date
- 2025-05-20
- Estimated Expiration
- 2042-06-27
AI Technical Summary
The prior art has the accuracy problem when extracting welding areas in ultrasonic phased array C scan images, especially under the special textures with periodic arrangement on the welded workpiece, the segmentation effect is not ideal.
Using the method of offline phase and real-time phase separation, by obtaining ultrasonic phased array C scan images and converting them into grayscale images, extracting the region of interest, building a sliding window, traversing the image in real time to calculate the acoustic impedance rate, and optimizing the positioning coordinates.
It realizes rapid and accurate positioning of the welding area, simplifies the positioning process, and is suitable for different welded workpieces without the need to redesign the positioning process.
Smart Images

Figure CN115343364B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of waveform recognition in wireless communication, and more specifically, to a method for quickly locating the welding area of a busbar of a new energy vehicle battery. Background Art
[0002] Phased array ultrasonic testing technology has been developed and applied as a novel technology, which can be combined with image processing technology to perform non-destructive testing on workpieces. In the new energy vehicle industry, ultrasonic phased array technology is used to perform C-scan imaging on the power battery busbar, and through the processing of image processing algorithms, the welding quality of the welded workpiece can be obtained. Integrating the image detection software into automated equipment can perform online detection on a large number of workpieces, thus replacing manual destructive sampling inspection.
[0003] A common problem with such automated detection equipment is that the true welding area of the ultrasonic phased array C-scan image may not be accurately extracted, which will affect the accuracy of the image processing result. The resolution of the ultrasonic phased array C-scan image is relatively low, and due to the influence of the welding process, regularly arranged black and white dot matrices are distributed near the welding area in the image. These dot matrices are different from general noise and cannot be removed using traditional image denoising methods, which have a great impact on the extraction of the true welding area. Therefore, using a general segmentation algorithm to extract the true welding area does not yield satisfactory results.
[0004] Image segmentation refers to extracting the target from an image using certain features in the image information. The image to be segmented is analyzed for information, and important information is extracted for features. The accuracy of segmentation can be improved through image processing means such as threshold segmentation, morphological processing, and image filtering. As shown in the Korean patent application with a publication date of April 10, 2020: IMAGE PROCESSING METHOD AND APPARATUS FOR SPOT WELDING QUALITY EVALUATION, it provides an image processing method for welding quality evaluation. The image processing method includes the following steps: converting the echo signal reflected from the spot welding part into a grayscale signal at a specific level through C-scan to generate a two-dimensional grayscale image; upsampling the grayscale image at a preset upsampling ratio; blurring the upsampled image according to a preset standard deviation; interpolating the blurred image through morphological techniques; and performing color mapping on the interpolated image. However, for the special texture on the power battery busbar workpiece that is periodically arranged, overlaps with the welding area, and is not general noise, the segmentation effect is not satisfactory. Therefore, the existing technology still has certain limitations. Summary of the Invention
[0005] In view of the limitations of the prior art, the present invention proposes a method for quickly locating the welding area of a busbar of a new energy vehicle battery. The technical solution adopted by the present invention is as follows:
[0006] A method for quickly locating the welding area of a busbar of a new energy vehicle battery, including an offline stage and a real-time stage; wherein:
[0007] The offline stage includes the following steps:
[0008] S11, obtaining the ultrasonic phased array C-scan image of the workpiece to be detected, and converting the ultrasonic phased array C-scan image into a grayscale image;
[0009] S12, roughly locating the welding area, and extracting the region of interest from the grayscale image;
[0010] S13, calculating the pixel size of the welding area according to the actual size of the welding head and the resolution of the ultrasonic phased array C-scan image, and constructing a sliding window with the same size as the pixel size;
[0011] The real-time stage includes the following steps:
[0012] S21, collecting the ultrasonic phased array C-scan image of the workpiece to be detected in real time;
[0013] S22, traversing the region of interest in the ultrasonic phased array C-scan image collected in real time with the sliding window in the spatial domain, and recording the coordinates of the sliding window and the local image at this coordinate under different step sizes;
[0014] S23, calculating the acoustic impedance rate corresponding to the local image obtained in step S22, using the acoustic impedance rate as an optimization index, and marking the coordinates of the sliding window with the minimum acoustic impedance rate as the initial positioning coordinates of the welding area;
[0015] S24, moving one pixel in each of the four directions of up, down, left, and right respectively based on the initial positioning coordinates to obtain local images under 5 sliding windows;
[0016] S25, calculating the acoustic impedance rate corresponding to the local image obtained in step S24, using the acoustic impedance rate as an optimization index, and marking the coordinates of the sliding window with the minimum acoustic impedance rate as the true positioning coordinates of the welding area.
[0017] Compared with the prior art, in the process of implementing the method for quickly positioning the welding area of the busbar of a new energy vehicle battery proposed by the present invention, the preparatory work in the offline stage and the quick positioning of the welding area of the ultrasonic phased array C-scan image in the real-time stage are separated. When dealing with different welding workpieces, only specific preparations for the welding workpieces are required, and there is no need to redesign the actual positioning process. The implementation process is simple, and the welding area of each welding workpiece can be quickly positioned in the subsequent real-time stage.
[0018] As a preferred solution, in the step S12, the coordinates of the two corner points of the upper left and lower right of the area , represent the roughly positioned welding area , and the region of interest is extracted from the grayscale image through the following formula: :
[0019] ;
[0020] Among them, the width and height of the region of interest are as follows:
[0021] ;
[0022] .
[0023] As a preferred solution, in the step S13, the pixel size of the welding area is calculated according to the following formula:
[0024] ;
[0025] Among them, represents the horizontal pixel size of the welding area; represents the vertical pixel size of the welding area; is the resolution of the ultrasonic phased array C-scan image, is the horizontal design size of the welding head, is the vertical design size of the welding head.
[0026] Furthermore, in the step S13, the coordinates of the two corner points of the upper left and lower right of the area , represent the sliding window , the width of the sliding window is , and the height of the sliding window is .
[0027] Further, in the step S22, the sliding window in the region of interest the moving position satisfies the following relationship: , ; the moving mode of the sliding window is interlaced row and column movement, and the local image of the sliding window when moving to a certain position is obtained by the following formula: ; where represents the local image.
[0028] Further, in the step S23, calculate the acoustic impedance rate corresponding to the local image obtained in the step S22 satisfies the following relationship: , .
[0029] As a preferred solution, in the step S25, calculate the acoustic impedance rate corresponding to the local image obtained in the step S24 satisfies the following relationship: , , where represents the initial positioning coordinates.
[0030] The present invention further includes the following content:
[0031] A rapid positioning system for the welding area of a busbar of a new energy vehicle battery, including an offline module and a real-time module; where:
[0032] The offline module includes an image conversion unit, a region of interest extraction unit, and a sliding window construction unit; the image conversion unit is respectively connected to the region of interest extraction unit and the sliding window construction unit; where:
[0033] The image conversion unit is used to obtain an ultrasonic phased array C-scan image of the workpiece to be detected and convert the ultrasonic phased array C-scan image into a grayscale image;
[0034] The region of interest extraction unit is used to extract the region of interest from the grayscale image by roughly positioning the welding area;
[0035] The sliding window construction unit is used to calculate the pixel size of the welding area according to the actual size of the welding head and the resolution of the ultrasonic phased array C-scan image, and construct a sliding window with the same size as the pixel size;
[0036] The real-time module includes a real-time acquisition unit, a traversal unit, an initial positioning unit, an expansion unit, and a precise positioning unit; the traversal unit is respectively connected to the region of interest extraction unit, the sliding window construction unit, the real-time acquisition unit, and the initial positioning unit; the expansion unit is respectively connected to the initial positioning unit and the precise positioning unit; where:
[0037] The real-time acquisition unit is used to acquire the ultrasonic phased array C-scan image of the workpiece to be detected in real time;
[0038] The traversal unit is used to traverse the region of interest in the ultrasonic phased array C-scan image acquired in real time in the spatial domain with the sliding window, and record the coordinates of the sliding window and the local image at this coordinate under different step sizes;
[0039] The initial positioning unit is used to calculate the acoustic impedance rate corresponding to the local image obtained by the traversal unit, use the acoustic impedance rate as an optimization index, and mark the coordinates of the sliding window with the minimum acoustic impedance rate as the initial positioning coordinates of the welding area;
[0040] The expansion unit is used to move one pixel in each of the four directions of up, down, left, and right based on the initial positioning coordinates to obtain local images under 5 sliding windows;
[0041] The precise positioning unit is used to calculate the acoustic impedance rate corresponding to the local image obtained by the expansion unit, use the acoustic impedance rate as an optimization index, and mark the coordinates of the sliding window with the minimum acoustic impedance rate as the true positioning coordinates of the welding area.
[0042] A storage medium stores a computer program thereon, and when the computer program is executed by a processor, the steps of the method for quickly positioning the welding area of the busbar of a new energy vehicle battery as described above are realized.
[0043] A computer device includes a storage medium, a processor, and a computer program stored in the storage medium and executable by the processor. When the computer program is executed by the processor, the steps of the method for quickly positioning the welding area of the busbar of a new energy vehicle battery as described above are realized. Description of the Drawings
[0044] Figure 1 It is a schematic diagram of the steps of the method for quickly positioning the welding area of the busbar of a new energy vehicle battery provided by an embodiment of the present invention;
[0045] Figure 2 It is an example of an ultrasonic phased array C-scan image;
[0046] Figure 3 This is an embodiment of the present invention from Figure 2 The intercepted region of interest;
[0047] Figure 4 This is a schematic diagram of a fast neighborhood search for an ultrasonic phased array C-scan image in an embodiment of the present invention;
[0048] Figure 5 This is an example of locating a welding area in an embodiment of the present invention;
[0049] Figure 6 This is a schematic diagram of a fast positioning system for the welding area of a busbar of a new energy vehicle battery provided in an embodiment of the present invention. Detailed implementation manners
[0050] The accompanying drawings are only for illustrative purposes and should not be construed as limitations on this patent;
[0051] It should be clear that the described embodiments are only a part of the embodiments of the present application, rather than all of them. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope protected by the embodiments of the present application.
[0052] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to limit the embodiments of the present application. The singular forms "a", "the" and "said" used in the embodiments of the present application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term " / and" as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0053] When the following description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects and do not have to be used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific circumstances.
[0054] In addition, in the description of the present application, unless otherwise specified, "a plurality of" means two or more. " / and" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. The following further elaborates on the present invention in conjunction with the accompanying drawings and embodiments.
[0055] To address the limitations of the existing technology, this embodiment provides a technical solution. The technical solution of the present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0056] Embodiment 1
[0057] A method for quickly locating the welding area of a busbar of a new energy vehicle battery. Please refer to Figure 1 , including an offline stage and a real-time stage; wherein:
[0058] The offline stage includes the following steps:
[0059] S11. Obtain the ultrasonic phased array C-scan image of the workpiece to be detected, and convert the ultrasonic phased array C-scan image into a grayscale image;
[0060] S12. Coarsely locate the welding area, and extract the region of interest from the grayscale image;
[0061] S13. According to the actual size of the welding head and the resolution of the ultrasonic phased array C-scan image, calculate the pixel size of the welding area, and construct a sliding window with the same size as the pixel size;
[0062] The real-time stage includes the following steps:
[0063] S21. Real-time collect the ultrasonic phased array C-scan image of the workpiece to be detected;
[0064] S22. Traverse the region of interest in the real-time collected ultrasonic phased array C-scan image with the sliding window in the spatial domain, and record the coordinates of the sliding window and the local image at this coordinate under different step sizes;
[0065] S23. Calculate the acoustic impedance rate corresponding to the local image obtained in step S22. Taking the acoustic impedance rate as the optimization index, mark the coordinate of the sliding window with the minimum acoustic impedance rate as the initial positioning coordinate of the welding area;
[0066] S24. Taking the initial positioning coordinate as the reference, move one pixel in each of the four directions of up, down, left, and right to obtain the local images under 5 sliding windows;
[0067] S25. Calculate the acoustic impedance rate corresponding to the local image obtained in step S24. Taking the acoustic impedance rate as the optimization index, mark the coordinate of the sliding window with the minimum acoustic impedance rate as the true positioning coordinate of the welding area.
[0068] Compared with the prior art, in the process of implementing the method for quickly positioning the welding area of the busbar of a new energy vehicle battery proposed by the present invention, the preparatory work in the offline stage and the quick positioning of the welding area of the ultrasonic phased array C-scan image in the real-time stage are separated. When dealing with different welding workpieces, only specific welding workpieces need to be prepared, and there is no need to redesign the actual positioning process. The implementation process is simple, and the welding area of each welding workpiece can be quickly positioned in the subsequent real-time stage.
[0069] The ultrasonic phased array C-scan image of the workpiece to be detected can be obtained by scanning the workpiece with an ultrasonic phased array probe and imaging through an ultrasonic board card, as Figure 2 shown. The size of this image is . Read the image in the integrated environment of Visual Studio, Qt, and OpenCV libraries. As an alternative embodiment, C++ can be used as the main programming language to write image processing functions.
[0070] In the step S11, denote the ultrasonic phased array C-scan image as , which is composed of three channels of RGB, representing the three components of red, green, and blue respectively, and the composition ratio of the three components is 1:1:1; separate the ultrasonic phased array C-scan image by channel to obtain , , , and take one of the channels as the image for subsequent processing, denoted as to reduce the computational complexity.
[0071] In the step S12, it is equivalent to making a background area template for the workpiece to be detected offline, as Figure 3 shown. The background area template stipulates the relative coordinate positions of the area of interest and other irrelevant areas in the workpiece.
[0072] As a preferred embodiment, use the coordinates of the upper left and lower right corner points of the area , to represent the roughly located welding area , and extract the area of interest from the grayscale image :
[0073] ;
[0074] Among them, the width and height of the area of interest are as follows:
[0075] ;
[0076] .
[0077] In this embodiment:
[0078] ;
[0079] .
[0080] As a preferred embodiment, in the step S13, the pixel size of the welding area is calculated according to the following formula:
[0081] ;
[0082] Wherein, represents the horizontal pixel size of the welding area; represents the vertical pixel size of the welding area; is the resolution of the ultrasonic phased array C-scan image, is the horizontal design size of the welding head, is the vertical design size of the welding head.
[0083] Specifically, in the step S13, it is equivalent to taking the actual size of the welding head and the resolution of the ultrasonic phased array C-scan image as prior knowledge to calculate the pixel size corresponding to the actual size of the welding head. In this embodiment, , , , and the calculated horizontal pixel size of the true welding area is and the vertical pixel size is .
[0084] Furthermore, in the step S13, the two corner coordinates of the upper left and lower right of the area , represent the sliding window , the width of the sliding window is , and the height of the sliding window is .
[0085] Specifically, in this embodiment:
[0086] ;
[0087] .
[0088] Even further, in the step S22, the position where the sliding window moves in the region of interest satisfies the following relationship: , ; The sliding window moves in an interlaced and inter-column manner. When the sliding window moves to a certain position , the local image is obtained by the following formula: ; where represents the local image.
[0089] As a preferred embodiment, in step S22, the traversal step sizes in the horizontal and vertical directions are both 2 pixels, that is, the sliding window moves in an interlaced and inter-column manner to perform a fast neighborhood search. As Figure 4 shown, the amount of calculation is only one-fourth of that of traversing each row and each column, reducing the calculation speed and the operation burden on the machine.
[0090] Furthermore, in step S23, calculate the acoustic impedance rate corresponding to the local image obtained in step S22 that satisfies the following relationship: , .
[0091] Specifically, the acoustic impedance rate is converted from the sound intensity reflectivity . Please refer to Figure 5 , and the sound intensity reflectivity is converted through the average gray value of the image welding area and the average gray value of the background area .
[0092] Among them, the average gray value of the welding area:
[0093]
[0094] The average gray value of the background area:
[0095]
[0096] The conversion relationship of the acoustic impedance rate value is as follows:
[0097]
[0098] Among them, is the conversion function between the sound intensity reflectivity and the acoustic impedance rate, is the conversion relationship between the sound intensity reflectivity and the average gray values of the image solder joint area and the background area.
[0099] Record the acoustic impedance rate corresponding to each local image , denoted as , , ,... for subsequent step calculations.
[0100] The acoustic impedance rate indirectly corresponds to the maximum tensile force that the welded workpiece can withstand in the tensile test. The magnitude of the tensile force is positively correlated with the bonding degree between the dissimilar materials of the workpiece. Therefore, the coordinate position with the minimum acoustic impedance rate value is the true welding area. Specifically, in the step S23, the acoustic impedance rate of each local image is obtained , , , …, and the minimum value among them is obtained, and the sliding window coordinates corresponding to this acoustic impedance value are marked as the initial positioning coordinates of the welding area, denoted as 。
[0101] In the step S24, taking the initial positioning coordinates as a reference, one pixel is moved in each of the four directions of up, down, left, and right to obtain a total of 5 sliding window coordinates, which are respectively , , , , , and the local image under this sliding window is obtained.
[0102] As a preferred embodiment, in the step S25, calculate the acoustic impedance rate corresponding to the local image obtained in the step S24 satisfies the following relationship: , , where represents the initial positioning coordinates.
[0103] In the step S25, similarly:
[0104]
[0105]
[0106]
[0107] Obtain the minimum value of the acoustic impedance rate in each local image , and the sliding window coordinates corresponding to this acoustic impedance value are marked as the true positioning coordinates of the welding area.
[0108] Embodiment 2
[0109] A rapid positioning system for the welding area of a busbar of a new energy vehicle battery, please refer to Figure 6 , including an offline module 1 and a real-time module 2; wherein:
[0110] The offline module includes an image conversion unit 11, a region of interest extraction unit 12, and a sliding window construction unit 13; the image conversion unit 11 is respectively connected to the region of interest extraction unit 12 and the sliding window construction unit 13; where:
[0111] The image conversion unit 11 is configured to obtain an ultrasonic phased array C-scan image of the workpiece to be detected and convert the ultrasonic phased array C-scan image into a grayscale image;
[0112] The region of interest extraction unit 12 is configured to extract a region of interest from the grayscale image by roughly locating the welding area;
[0113] The sliding window construction unit 13 is configured to calculate the pixel size of the welding area according to the actual size of the welding head and the resolution of the ultrasonic phased array C-scan image, and construct a sliding window having the same size as the pixel size;
[0114] The real-time module 2 includes a real-time acquisition unit 21, a traversal unit 22, an initial positioning unit 23, an expansion unit 24, and a precise positioning unit 25; the traversal unit 22 is respectively connected to the region of interest extraction unit 12, the sliding window construction unit 13, the real-time acquisition unit 21, and the initial positioning unit 23; the expansion unit 24 is respectively connected to the initial positioning unit 23 and the precise positioning unit 25; where:
[0115] The real-time acquisition unit 21 is configured to acquire an ultrasonic phased array C-scan image of the workpiece to be detected in real time;
[0116] The traversal unit 22 is configured to traverse the region of interest in the ultrasonic phased array C-scan image acquired in real time in the spatial domain with the sliding window, and record the coordinates of the sliding window and the local image at the coordinates at different step sizes;
[0117] The initial positioning unit 23 is configured to calculate the acoustic impedance rate corresponding to the local image obtained by the traversal unit 22, use the acoustic impedance rate as an optimization index, and mark the coordinates of the sliding window with the minimum acoustic impedance rate as the initial positioning coordinates of the welding area;
[0118] The expansion unit 24 is configured to move one pixel in each of the four directions of up, down, left, and right based on the initial positioning coordinates to obtain local images under 5 sliding windows;
[0119] The precise positioning unit 25 is configured to calculate the acoustic impedance rate corresponding to the local image obtained by the expansion unit 24, use the acoustic impedance rate as an optimization index, and mark the coordinates of the sliding window with the minimum acoustic impedance rate as the true positioning coordinates of the welding area.
[0120] Embodiment 3
[0121] A storage medium stores a computer program thereon, and when the computer program is executed by a processor, the steps of the method for quickly positioning the welding area of the busbar of a new energy vehicle battery as described in Embodiment 1 are implemented.
[0122] Embodiment 4
[0123] A computer device includes a storage medium, a processor, and a computer program stored in the storage medium and executable by the processor. When the computer program is executed by the processor, the steps of the method for quickly positioning the welding area of the busbar of a new energy vehicle battery as described in Embodiment 1 are implemented.
[0124] Obviously, the above embodiments of the present invention are merely examples for clearly explaining the present invention, rather than limiting the implementation manners of the present invention. For those of ordinary skill in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to enumerate all the implementation manners here. Any modifications, equivalent replacements, and improvements made within the spirit and principle of the present invention shall be included in the protection scope of the claims of the present invention.
Claims
1. A method for quickly locating the welding area of a new energy vehicle battery busbar, characterized in that: It includes offline phase and real-time phase; among which: The offline phase includes the following steps: S11, acquiring an ultrasonic phased array C-scan image of the workpiece to be inspected, and converting the ultrasonic phased array C-scan image into a grayscale image; S12, extracting a region of interest from the grayscale image by roughly locating the welding area; S13, according to the actual size of the welding head and the resolution of the ultrasonic phased array C-scan image, the pixel size of the welding area is calculated, and a sliding window with the same size as the pixel size is constructed, including: the coordinates of the two corner points at the upper left and lower right of the area , Represents the sliding window , the sliding window The width is , the sliding window Gao Wei ; The real-time phase includes the following steps: S21, collecting an ultrasonic phased array C-scan image of the workpiece to be inspected in real time; S22, with the sliding window The region of interest in the ultrasonic phased array C-scan image acquired in real time is traversed in the spatial domain and recorded at different step sizes. The coordinates and the local image at the coordinates, wherein the sliding window In the region of interest Move location The following relations are satisfied: , ; The sliding window The moving mode is to move alternate rows and columns, and the sliding window Move to a location The local image of is obtained by the following formula: ;in Represents a local image; S23, calculating the acoustic impedance ratio corresponding to the local image obtained in step S22, taking the acoustic impedance ratio as an optimization index, and marking the sliding window coordinates with the smallest acoustic impedance ratio as the initial positioning coordinates of the welding area; S24, taking the initial positioning coordinates as a reference, moving one pixel in four directions, upward, downward, left, and right, respectively, to obtain local images under five sliding windows; S25, calculating the acoustic impedance ratio corresponding to the local image obtained in step S24, taking the acoustic impedance ratio as an optimization index, and marking the sliding window coordinates with the smallest acoustic impedance ratio as the real positioning coordinates of the welding area.
2. The method for quickly locating the welding area of a new energy vehicle battery busbar according to claim 1, characterized in that: In step S12, the coordinates of the upper left and lower right corners of the region are , Indicates the roughly located weld area , from the grayscale image by the following formula Extracting Region of Interest : ; Among them, the area of interest Width ,high as follows: ; 。 3. The method for quickly locating the welding area of a new energy vehicle battery busbar according to claim 1, characterized in that: In step S13, the pixel size of the welding area is calculated according to the following formula: ; in, Indicates the horizontal pixel size of the welding area; Indicates the longitudinal pixel size of the weld area; is the resolution of the ultrasonic phased array C-scan image, is the lateral design dimension of the welding head, It is the longitudinal design dimension of the welding head.
4. The method for quickly locating the welding area of a new energy vehicle battery busbar according to claim 3, characterized in that: In step S23, the acoustic impedance ratio corresponding to the local image obtained in step S22 is calculated. The following relations are satisfied: , .
5. The method for quickly locating the welding area of a new energy vehicle battery busbar according to claim 1, characterized in that: In step S25, the acoustic impedance ratio corresponding to the local image obtained in step S24 is calculated. The following relations are satisfied: , ,in represents the initial positioning coordinates.
6. A system for quickly locating the welding area of a battery busbar of a new energy vehicle, applied to the method for quickly locating the welding area of a battery busbar of a new energy vehicle as claimed in any one of claims 1 to 5, characterized in that: It includes an offline module (1) and a real-time module (2); wherein: The offline module comprises an image conversion unit (11), an area of interest extraction unit (12) and a sliding window construction unit (13); the image conversion unit (11) is connected to the area of interest extraction unit (12) and the sliding window construction unit (13) respectively; wherein: The image conversion unit (11) is used to obtain an ultrasonic phased array C-scan image of a workpiece to be inspected, and convert the ultrasonic phased array C-scan image into a grayscale image; The region of interest extraction unit (12) is used to extract the region of interest from the grayscale image by roughly locating the welding area; The sliding window construction unit (13) is used to calculate the pixel size of the welding area according to the actual size of the welding head and the resolution of the ultrasonic phased array C-scan image, and to construct a sliding window with the same size as the pixel size; The real-time module (2) comprises a real-time acquisition unit (21), a traversal unit (22), an initial positioning unit (23), an expansion unit (24) and a precise positioning unit (25); the traversal unit (22) is respectively connected to the region of interest extraction unit (12), the sliding window construction unit (13), the real-time acquisition unit (21) and the initial positioning unit (23); the expansion unit (24) is respectively connected to the initial positioning unit (23) and the precise positioning unit (25); wherein: The real-time acquisition unit (21) is used to acquire an ultrasonic phased array C-scan image of a workpiece to be inspected in real time; The traversal unit (22) is used to traverse the region of interest in the ultrasonic phased array C-scan image acquired in real time in the spatial domain using the sliding window, and record the coordinates of the sliding window and the local image at the coordinates at different step sizes; The initial positioning unit (23) is used to calculate the acoustic impedance ratio corresponding to the local image obtained by the traversal unit (22), use the acoustic impedance ratio as an optimization index, and mark the sliding window coordinates with the smallest acoustic impedance ratio as the initial positioning coordinates of the welding area; The expansion unit (24) is used to obtain local images under five sliding windows by moving one pixel in four directions, namely, upward, downward, left and right, based on the initial positioning coordinates; The precise positioning unit (25) is used to calculate the acoustic impedance ratio corresponding to the local image obtained by the expansion unit (24), and use the acoustic impedance ratio as an optimization index to mark the sliding window coordinates with the smallest acoustic impedance ratio as the real positioning coordinates of the welding area.
7. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for quickly locating the welding area of a new energy vehicle battery busbar as described in any one of claims 1 to 5 are implemented.
8. A computer device, characterized in that: It includes a storage medium, a processor, and a computer program stored in the storage medium and executable by the processor. When the computer program is executed by the processor, the steps of the method for quickly locating the welding area of the battery bus of a new energy vehicle as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Friction welding seam defect quantitative detection method and system based on ultrasonic phased array
CN111983030A
Methods for welding components of battery modules
GB202104571D0