CN115343364A - Method for quickly positioning welding area of new energy automobile battery busbar - Google Patents

Method for quickly positioning welding area of new energy automobile battery busbar Download PDF

Info

Publication number
CN115343364A
CN115343364A CN202210738420.4A CN202210738420A CN115343364A CN 115343364 A CN115343364 A CN 115343364A CN 202210738420 A CN202210738420 A CN 202210738420A CN 115343364 A CN115343364 A CN 115343364A
Authority
CN
China
Prior art keywords
sliding window
image
unit
positioning
welding area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210738420.4A
Other languages
Chinese (zh)
Inventor
李扬
罗柏槐
陈鉴锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN202210738420.4A priority Critical patent/CN115343364A/en
Publication of CN115343364A publication Critical patent/CN115343364A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N29/00Investigating or analysing materials by the use of ultrasonic, sonic or infrasonic waves; Visualisation of the interior of objects by transmitting ultrasonic or sonic waves through the object
    • G01N29/04Analysing solids
    • G01N29/06Visualisation of the interior, e.g. acoustic microscopy
    • G01N29/0654Imaging
    • G01N29/069Defect imaging, localisation and sizing using, e.g. time of flight diffraction [TOFD], synthetic aperture focusing technique [SAFT], Amplituden-Laufzeit-Ortskurven [ALOK] technique
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N29/00Investigating or analysing materials by the use of ultrasonic, sonic or infrasonic waves; Visualisation of the interior of objects by transmitting ultrasonic or sonic waves through the object
    • G01N29/04Analysing solids
    • G01N29/09Analysing solids by measuring mechanical or acoustic impedance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N2291/00Indexing codes associated with group G01N29/00
    • G01N2291/02Indexing codes associated with the analysed material
    • G01N2291/023Solids
    • G01N2291/0234Metals, e.g. steel
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10132Ultrasound image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30152Solder
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/06Recognition of objects for industrial automation

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Health & Medical Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Investigating Or Analyzing Materials By The Use Of Ultrasonic Waves (AREA)

Abstract

The invention provides a method for quickly positioning a welding area of a battery busbar of a new energy automobile, aiming at the limitations of the prior art, the preparation work of an off-line stage and the quick positioning of the welding area of an ultrasonic phased array C scanning image in a real-time stage are separated in the execution process, when different welding workpieces are dealt with, only specific welding workpieces need to be prepared, the actual positioning flow does not need to be redesigned, the implementation process is simple, and the quick positioning of the welding area of each welding workpiece can be carried out in the subsequent real-time stage.

Description

Method for quickly positioning welding area of new energy automobile battery busbar
Technical Field
The invention relates to the technical field of waveform identification in wireless communication, in particular to a method for quickly positioning a welding area of a new energy automobile battery busbar.
Background
Phased array ultrasonic inspection technology has been developed and applied as a novel technology that can be combined with image processing technology for nondestructive inspection of workpieces. In the new energy automobile industry, the ultrasonic phased array technology is utilized to perform C scanning imaging on the power battery busbar, and the welding quality condition of a welding workpiece can be obtained by processing the power battery busbar through an image processing algorithm. The image detection software is integrated on the automation equipment, so that the large-batch workpieces can be detected on line, and manual destructive sampling inspection is replaced.
A common problem of such automatic detection equipment is that the actual welding area of the ultrasonic phased array C scanning image may be extracted inaccurately, which will affect the accuracy of the image processing result. The resolution of the ultrasonic phased array C scanning image is low, and due to the influence of the welding process, regularly-arranged black and white lattices are distributed in the vicinity of a welding area of the image, the lattices are different from general noises and can be removed by using a traditional image denoising method, and the extraction influence on a real welding area is large, so that the effect of extracting the real welding area by adopting a general segmentation algorithm is not ideal.
Image segmentation refers to extracting an object from an image by using some features in the image information. And carrying out information analysis on the image to be segmented, and carrying out feature extraction on important information. The accuracy of segmentation can be improved by image processing means such as threshold segmentation, morphological processing, and image filtering, as disclosed in korean patent application No. 2020.04.10: IMAGE PROCESSING METHOD AND APPARATUS FOR SPOT WELDING QUALITY estimation as shown in IMAGE PROCESSING METHOD AND APPARATUS FOR WELDING QUALITY estimation, an IMAGE PROCESSING METHOD FOR WELDING QUALITY estimation is provided. The image processing method comprises the following steps: converting an echo signal reflected from the spot welding portion into a gray signal of a specific level by C-scan to generate a two-dimensional gray image; up-sampling the gray level image at a preset up-sampling magnification; blurring the up-sampled image according to a preset standard difference; interpolating the blurred image by a morphological technology; and color maps the inserted image. However, the power battery bus bar workpiece is not ideal for the special texture of the power battery bus bar workpiece which is periodically arranged and overlapped with the welding area and is not general noise. The prior art therefore still has certain limitations.
Disclosure of Invention
Aiming at the limitation of the prior art, the invention provides a method for quickly positioning a welding area of a battery busbar of a new energy automobile, which adopts the following technical scheme:
a method for quickly positioning a welding area of a new energy automobile battery busbar comprises an off-line stage and a real-time stage; wherein:
the off-line phase comprises the steps of:
s11, acquiring an ultrasonic phased array C scanning image of a workpiece to be detected, and converting the ultrasonic phased array C scanning image into a gray image;
s12, extracting an interested area from the gray level image by roughly positioning a welding area;
s13, calculating the pixel size of a welding area according to the actual size of the welding head and the resolution of the ultrasonic phased array C scanning image, and constructing a sliding window with the size consistent with the pixel size;
the real-time phase comprises the following steps:
s21, acquiring an ultrasonic phased array C scanning image of the workpiece to be detected in real time;
s22, traversing the region of interest in the ultrasonic phased array C scanning image acquired in real time on a spatial domain by using the sliding window, and recording the coordinates of the sliding window and the local image under the coordinates under different steps;
s23, calculating the acoustic impedance corresponding to the local image obtained in the step S22, taking the acoustic impedance as an optimization index, and marking the sliding window coordinate with the minimum acoustic impedance as an initial positioning coordinate of the welding area;
s24, moving a pixel in four directions of up, down, left and right respectively by taking the initial positioning coordinate as a reference to obtain local images under 5 sliding windows;
and S25, calculating the acoustic impedance corresponding to the local image obtained in the step S24, taking the acoustic impedance as an optimization index, and marking the sliding window coordinate with the minimum acoustic impedance as a real positioning coordinate of the welding area.
Compared with the prior art, the method for quickly positioning the welding area of the battery busbar of the new energy automobile has the advantages that the preparation work of the off-line stage and the quick positioning of the welding area of the ultrasonic phased array C scanning image in the real-time stage are separated in the execution process, the preparation is only needed for specific welding workpieces when different welding workpieces are handled, the actual positioning process is not needed to be redesigned, the implementation process is simple, and the quick positioning of the welding area of each welding workpiece can be carried out in the subsequent real-time stage.
Preferably, in the step S12, the roughly positioned welding region R is represented by coordinates P (u 1, v 1), Q (u 2, v 2) of two corner points of the region, i.e. the upper left corner point and the lower right corner point P,Q From said gray-scale image I by means of the following formula src Extracting a region of interest I ROI
I ROI =I src ×R P,Q
Wherein the region of interest I ROI The width w0 and the height h0 of (1) are as follows:
w0=u2-u1;
h0=v2-v1。
as a preferable scheme, in the step S13, the pixel size of the welding area is calculated according to the following formula:
Figure BDA0003716727480000031
wherein m is px A lateral pixel size representing a welding area; m is a unit of px Represents the longitudinal pixel size of the weld area; and r is the resolution of the ultrasonic phased array C scanning image, m is the transverse design size of the welding head, and v is the longitudinal design size of the welding head.
Further, in the step S13, two corner point coordinates tl = (x 1, y 1), br = (x 2, y 2) at the upper left and lower right of the region represent the sliding window R tl,br Said sliding window R tl,br W = x2-x1, said sliding window R tl,br H = y2-y1.
Further, in the step S22, the sliding window R tl,br In the region of interest I ROI The moved position a = (i, j) satisfies the following relationship: i belongs to Z [0, w 0-w), j belongs to Z [0, h 0-h); the sliding window R tl,br The moving mode of the sliding window is interlaced and alternate row movement, and the sliding window R tl,br A partial image moved to a certain position a' = (i, j) is obtained by the following equation: i is local =I ROI ×R tl,br (ii) a In which I local Representing a partial image.
Further, in step S23, the specific acoustic impedance Z (i, j) corresponding to the local image obtained in step S22 satisfies the following relationship: i belongs to Z [0, w 0-w), j belongs to Z [0, h 0-h).
Preferably, in step S25, the specific acoustic impedance Z (k, m) corresponding to the local image obtained in step S24 is calculated to satisfy the following relationship: k is epsilon Z [ x-1, x +1], m is epsilon Z [ y-1, y +1], wherein (x, y) represents the initial positioning coordinates.
The invention also comprises the following contents:
a system for quickly positioning a welding area of a new energy automobile battery busbar comprises an offline module and a real-time module; wherein:
the off-line module comprises an image conversion unit, an interesting region extraction unit and a sliding window construction unit; the image conversion unit is respectively connected with the region of interest extraction unit and the sliding window construction unit; wherein:
the image conversion unit is used for acquiring an ultrasonic phased array C scanning image of a workpiece to be detected and converting the ultrasonic phased array C scanning image into a gray image;
the interesting region extracting unit is used for extracting an interesting region from the gray image by roughly positioning a welding region;
the sliding window construction unit is used for calculating the pixel size of a welding area according to the actual size of a welding head and the resolution of the ultrasonic phased array C scanning image, and constructing a sliding window with the size consistent with the pixel size;
the real-time module comprises a real-time acquisition unit, a traversal unit, an initial positioning unit, an expansion unit and an accurate positioning unit; the traversal unit is respectively connected with 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 with the initial positioning unit and the accurate positioning unit; wherein:
the real-time acquisition unit is used for acquiring an ultrasonic phased array C scanning image of a workpiece to be detected in real time;
the traversing unit is used for traversing the region of interest in the ultrasonic phased array C scanning image acquired in real time on a spatial domain by using the sliding window, and recording the coordinate of the sliding window and a local image under the coordinate at different steps;
the initial positioning unit is used for calculating the acoustic impedance corresponding to the local image obtained by the traversal unit, taking the acoustic impedance as an optimization index, and marking the sliding window coordinate with the minimum acoustic impedance as the initial positioning coordinate of the welding area;
the expansion unit is used for moving one pixel in four directions of up, down, left and right respectively by taking the initial positioning coordinate as a reference to obtain local images under 5 sliding windows;
and the accurate positioning unit is used for calculating the acoustic impedance corresponding to the local image obtained by the expansion unit, taking the acoustic impedance as an optimization index, and marking the sliding window coordinate with the minimum acoustic impedance as a real positioning coordinate of the welding area.
A storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method for quickly positioning a welding area of a new energy vehicle battery busbar as described above.
A computer device comprises a storage medium, a processor and a computer program stored in the storage medium and executable by the processor, wherein the computer program when executed by the processor implements the steps of the method for rapidly positioning the welding area of a new energy automobile battery bus bar.
Drawings
Fig. 1 is a schematic step diagram of a method for quickly positioning a welding area of a new energy vehicle battery busbar according to an embodiment of the invention;
FIG. 2 is an example of an ultrasonic phased array C scan image;
FIG. 3 is a cut-away view of the region of interest from FIG. 2 in accordance with an embodiment of the present invention;
FIG. 4 is a schematic diagram of performing fast neighborhood search on an ultrasonic phased array C-scan image according to an embodiment of the present invention;
FIG. 5 is an example of locating a weld area in accordance with an embodiment of the present invention;
fig. 6 is a schematic view of a system for quickly positioning a welding area of a battery bus bar of a new energy vehicle according to an embodiment of the present invention.
Detailed Description
The drawings are for illustrative purposes only and are not to be construed as limiting the patent;
it should be understood that the embodiments described are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the embodiments in the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the present application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims. In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
In addition, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. The invention is further illustrated below with reference to the figures and examples.
In order to solve the limitation of the prior art, the present embodiment provides a technical solution, and the technical solution of the present invention is further described below with reference to the accompanying drawings and embodiments.
Example 1
A method for quickly positioning a welding area of a new energy automobile battery busbar is disclosed, and please refer to fig. 1, which includes an off-line stage and a real-time stage; wherein:
the off-line phase comprises the steps of:
s11, acquiring an ultrasonic phased array C scanning image of a workpiece to be detected, and converting the ultrasonic phased array C scanning image into a gray image;
s12, extracting an interested area from the gray level image through roughly positioning a welding area;
s13, calculating the pixel size of a welding area according to the actual size of the welding head and the resolution of the ultrasonic phased array C scanning image, and constructing a sliding window with the size consistent with the pixel size;
the real-time phase comprises the following steps:
s21, acquiring an ultrasonic phased array C scanning image of the workpiece to be detected in real time;
s22, traversing the region of interest in the ultrasonic phased array C scanning image acquired in real time on a spatial domain by using the sliding window, and recording the coordinates of the sliding window and the local image under the coordinates under different steps;
s23, calculating the acoustic impedance corresponding to the local image obtained in the step S22, taking the acoustic impedance as an optimization index, and marking the sliding window coordinate with the minimum acoustic impedance as an initial positioning coordinate of the welding area;
s24, moving one pixel in four directions of up, down, left and right respectively by taking the initial positioning coordinate as a reference to obtain local images under 5 sliding windows;
and S25, calculating the acoustic impedance corresponding to the local image obtained in the step S24, taking the acoustic impedance as an optimization index, and marking the sliding window coordinate with the minimum acoustic impedance as a real positioning coordinate of the welding area.
Compared with the prior art, the method for quickly positioning the welding area of the battery busbar of the new energy automobile has the advantages that the preparation work of the off-line stage and the quick positioning of the welding area of the ultrasonic phased array C scanning image in the real-time stage are separated in the execution process, the preparation is only needed for specific welding workpieces when different welding workpieces are handled, the actual positioning process is not needed to be redesigned, the implementation process is simple, and the quick positioning of the welding area of each welding workpiece can be carried out in the subsequent real-time stage.
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 the workpiece through an ultrasonic board, as shown in fig. 2, and the size of the image is 150px × 1800px. Reading in images in an integrated environment of Visual Studio, qt and OpenCV libraries. As an alternative embodiment, the image processing functions may be written in C + + as the primary programming language.
In the step S11, an ultrasonic phased array C-scan image is denoted as I, the image is composed of three channels of RGB, which respectively represent three components of red, green, and blue, and the composition ratio of the three components is 1: 1; separating the ultrasonic phased array C-scan image according to the channel to obtain I r ,I g ,I b Taking one channel as an image for subsequent processing, and recording the image as I src And the computational complexity is reduced.
In step S12, it is equivalent to make a background area template for the workpiece to be detected offline, and as shown in fig. 3, the background area template specifies the relative coordinate positions of the region of interest and other unrelated regions in the workpiece.
As a preferred embodiment, the roughly positioned welding region R is represented by the coordinates P (u 1, v 1), Q (u 2, v 2) of two corner points at the upper left and lower right of the region P,Q From said gray-scale image I by the following formula src Extracting a region of interest I ROI
I ROI =I src ×R P,Q
Wherein the region of interest I ROI The width w0 and the height h0 of (1) are as follows:
w0=u2-u1;
h0=v2-v1。
in this embodiment:
w0=150px;
h0=110px。
as a preferred embodiment, in the step S13, the pixel size of the welding area is calculated according to the following formula:
Figure BDA0003716727480000081
wherein m is px Represents the lateral pixel size of the weld area; m is a unit of px Represents the longitudinal pixel size of the weld area; and r is the resolution of the ultrasonic phased array C scanning image, m is the transverse design size of the welding head, and v is the longitudinal design size of the welding head.
Specifically, in step S13, the pixel size corresponding to the actual size of the horn is calculated, using the actual size of the horn and the resolution of the ultrasonic phased array C-scan image as a priori knowledge. In the present embodiment, r =0.2mm/px, h =9mm, v =12.6mm, and the horizontal pixel size and the vertical pixel size of the real weld region are calculated to be 63px and 45px, respectively.
Further, in the step S13, two corner point coordinates tl = (x 1, y 1), br = (x 2, y 2) at the upper left and lower right of the area represent the sliding window R tl,br Said sliding window R tl,br W = x2-x1, said sliding window R tl,br H = y2-y1.
Specifically, in this embodiment:
w=63px;
h=45px。
further, in the step S22, the sliding window R tl,br In the region of interest I ROI The moved position a = (i, j) satisfies the following relationship: i belongs to Z [0, w 0-w), j belongs to Z [0, h 0-h); the sliding window R tl,br The moving mode of the sliding window is interlaced and alternate moving, and the sliding window R tl,br A partial image moved to a certain position a' = (i, j) is obtained by the following equation: i is local =I ROI ×R tl,br (ii) a Wherein I local Representing a partial image.
In step S22, the traversal steps in the horizontal direction and the vertical direction are 2 pixels, that is, the sliding window is moved in an interlaced and alternate manner, so as to perform fast neighborhood search, as shown in fig. 4, thereby making the calculation amount only one fourth of the traversal of each row and each column, the calculation speed and the calculation load of the machine are reduced.
Further, in step S23, the specific acoustic impedance Z (i, j) corresponding to the local image obtained in step S22 satisfies the following relationship: i belongs to Z [0, w 0-w), j belongs to Z [0, h 0-h).
Specifically, the specific acoustic impedance Z (i, j) is obtained by converting the sound intensity reflectivity R (i, j), see fig. 5, through the average gray scale of the image welding area
Figure BDA0003716727480000082
And average gray level of background region
Figure BDA0003716727480000083
And (5) converting to obtain.
Wherein, the average gray scale of the welding area:
Figure BDA0003716727480000091
average gradation of background region:
Figure BDA0003716727480000092
the acoustic impedance values are scaled as follows:
Figure BDA0003716727480000093
wherein F (x) is a conversion function of the sound intensity reflectivity and the sound impedance rate, and F (x, y) is a conversion relation of the sound intensity reflectivity, the average gray scale of the image welding spot area and the average gray scale of the background area.
And recording the specific acoustic impedance Z (i, j) corresponding to each local image, namely Z (i 1, j 1), Z (i 2, j 2) and Z (i 3, j 3) for calculation in the subsequent step.
The specific acoustic impedance indirectly corresponds to the maximum tensile force which can be borne by the welding workpiece in a tensile force test, the tensile force is positively correlated with the bonding degree between dissimilar materials of the workpiece, and therefore the coordinate position with the minimum specific acoustic impedance value is the real welding area. Specifically, in step S23, the minimum value among the acoustic impedances Z (i 1, j 1), Z (i 2, j 2), Z (i 3, j 3), \8230ineach local image is obtained, and the sliding window coordinate corresponding to the acoustic impedance value is obtained and is marked as the initial positioning coordinate of the welding region, which is denoted as L = (x, y).
In step S24, a total of 5 sliding window coordinates are obtained by moving one pixel in four directions, i.e., up, down, left, and right directions, respectively, based on the initial positioning coordinate L = (x, y), where L = (x, y), L, respectively 1 =(x-1,y),L 2 =(x+1,y),L 3 =(x,y-1),L 4 = (x, y + 1), and a partial image under the sliding window is obtained.
As a preferred embodiment, in step S25, the specific acoustic impedance Z (k, m) corresponding to the local image obtained in step S24 is calculated to satisfy the following relationship: k is equal to Z [ x-1, x +1], m is equal to Z [ y-1, y +1], wherein (x, y) represents the initial positioning coordinate.
In the step S25, similarly:
Figure BDA0003716727480000094
k∈Z[x-1,x+1]
m∈Z[y-1,y+1]
and (3) solving the minimum value of the acoustic impedance Z (k, m) in each local image, obtaining a sliding window coordinate corresponding to the acoustic impedance value, and marking the sliding window coordinate as a real positioning coordinate of the welding area.
Example 2
A system for quickly positioning a welding area of a new energy automobile battery busbar is disclosed, please refer to FIG. 6, which comprises an off-line module 1 and a real-time module 2; wherein:
the off-line module comprises an image conversion unit 11, an interesting region extraction unit 12 and a sliding window construction unit 13; the image conversion unit 11 is respectively connected with the region of interest extraction unit 12 and the sliding window construction unit 13; wherein:
the image conversion unit 11 is configured to acquire an ultrasonic phased array C scan image of a workpiece to be detected, and convert the ultrasonic phased array C scan image into a grayscale image;
the region-of-interest extracting unit 12 is configured to extract a region of interest from the grayscale image by roughly positioning a welding region;
the sliding window construction unit 13 is configured to calculate a pixel size of a welding area according to an actual size of a welding head and a resolution of the ultrasonic phased array C scanning image, and construct a sliding window having a size consistent with 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 with 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 with the initial positioning unit 23 and the accurate positioning unit 25; wherein:
the real-time acquisition unit 21 is used for acquiring an ultrasonic phased array C scanning image of a workpiece to be detected in real time;
the traversing unit 22 is configured to traverse, in a spatial domain, a region of interest in an ultrasound phased array C scan image acquired in real time with the sliding window, and record coordinates of the sliding window and a local image at the coordinates at different step distances;
the initial positioning unit 23 is configured to calculate an acoustic impedance corresponding to the local image obtained by the traversing unit 22, and mark a sliding window coordinate with the minimum acoustic impedance as an initial positioning coordinate of the welding area by using the acoustic impedance as an optimization index;
the expansion unit 24 is configured to move one pixel in four directions, namely, up, down, left, and right directions, respectively, with the initial positioning coordinate as a reference to obtain local images under 5 sliding windows;
the precise positioning unit 25 is configured to calculate an acoustic impedance corresponding to the local image obtained by the expansion unit 24, and mark the sliding window coordinate with the minimum acoustic impedance as a real positioning coordinate of the welding region by using the acoustic impedance as an optimization index.
Example 3
A storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method for quickly positioning a welding area of a new energy vehicle battery busbar according to embodiment 1.
Example 4
A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable by the processor, the computer program when executed by the processor implementing the steps of the method for rapidly positioning a welding region of a new energy vehicle battery strap according to embodiment 1.
It should be understood that the above-described embodiments of the present invention are merely examples for clearly illustrating the present invention and are not intended to limit the embodiments of the present invention. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the claims of the present invention.

Claims (10)

1. A method for quickly positioning a welding area of a new energy automobile battery busbar is characterized by comprising an off-line stage and a real-time stage; wherein:
the off-line phase comprises the steps of:
s11, acquiring an ultrasonic phased array C scanning image of a workpiece to be detected, and converting the ultrasonic phased array C scanning image into a gray image;
s12, extracting an interested area from the gray level image through roughly positioning a welding area;
s13, calculating the pixel size of a welding area according to the actual size of the welding head and the resolution of the ultrasonic phased array C scanning image, and constructing a sliding window with the size consistent with the pixel size;
the real-time phase comprises the following steps:
s21, acquiring an ultrasonic phased array C scanning image of the workpiece to be detected in real time;
s22, traversing the region of interest in the ultrasonic phased array C scanning image acquired in real time on a spatial domain by using the sliding window, and recording the coordinates of the sliding window and the local image under the coordinates under different steps;
s23, calculating the acoustic impedance corresponding to the local image obtained in the step S22, taking the acoustic impedance as an optimization index, and marking the sliding window coordinate with the minimum acoustic impedance as an initial positioning coordinate of the welding area;
s24, moving one pixel in four directions of up, down, left and right respectively by taking the initial positioning coordinate as a reference to obtain local images under 5 sliding windows;
and S25, calculating the acoustic impedance corresponding to the local image obtained in the step S24, taking the acoustic impedance as an optimization index, and marking the sliding window coordinate with the minimum acoustic impedance as a real positioning coordinate of the welding area.
2. The method for rapidly positioning the welding region of the new energy vehicle battery busbar according to claim 1, wherein in the step S12, the roughly positioned welding region R is represented by coordinates P (u 1, v 1), Q (u 2, v 2) of two corner points of the region, i.e., the upper left corner point and the lower right corner point P,Q From said gray-scale image I by means of the following formula src Extracting a region of interest I ROI
I ROI =I src ×R P,Q
Wherein the region of interest I ROI The width w0 and the height h0 of (A) are as follows:
w0=u2-u1;
h0=v2-v1。
3. the method for rapidly positioning the welding area of the new energy automobile battery bus bar according to claim 1, wherein in the step S13, the pixel size of the welding area is calculated according to the following formula:
Figure FDA0003716727470000021
wherein m is px Represents the lateral pixel size of the weld area; m is px A vertical pixel size representing a welding area; and r is the resolution of the ultrasonic phased array C scanning image, m is the transverse design size of the welding head, and v is the longitudinal design size of the welding head.
4. The method for rapidly positioning the welding area of the new energy automobile battery busbar according to claim 2, wherein in the step S13, the sliding window R is represented by two corner point coordinates tl = (x 1, y 1), br = (x 2, y 2) at the upper left and lower right of the area tl,br Said sliding window R tl,br Width of w =x2-x1, the sliding window R tl,br H = y2-y1.
5. The method for rapidly positioning the welding area of the new energy automobile battery bus bar according to claim 4, wherein in the step S22, the sliding window R tl,br In the region of interest I ROI The moved position a = (i, j) satisfies the following relationship: i belongs to Z [0, w0-w), j belongs to Z [0, h0-h); the sliding window R tl,br The moving mode of the sliding window is interlaced and alternate row movement, and the sliding window R tl,br A partial image moved to a certain position a' = (i, j) is obtained by the following equation: i is local =I ROI ×R tl,br (ii) a Wherein I local Representing a partial image.
6. The method for quickly positioning the welding area of the new energy automobile battery busbar according to claim 4, wherein in the step S23, the specific acoustic impedance Z (i, j) corresponding to the local image obtained in the step S22 is calculated to satisfy the following relation: i is equal to Z [0, w0-w), j is equal to Z [0, h0-h).
7. The method for rapidly positioning the welding area of the new energy automobile battery busbar according to claim 1, wherein in the step S25, the specific acoustic impedance Z (k, m) corresponding to the local image obtained in the step S24 is calculated to satisfy the following relation: k is equal to Z [ x-1, x +1], m is equal to Z [ y-1, y +1], wherein (x, y) represents the initial positioning coordinate.
8. A system for quickly positioning a welding area of a battery busbar of a new energy automobile is characterized by comprising an offline module (1) and a real-time module (2); wherein:
the off-line module comprises 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 with the interesting region extraction unit (12) and the sliding window construction unit (13); wherein:
the image conversion unit (11) is used for acquiring an ultrasonic phased array C scanning image of a workpiece to be detected and converting the ultrasonic phased array C scanning image into a gray image;
the region-of-interest extraction unit (12) is used for extracting a region of interest from the grayscale image by roughly positioning a welding region;
the sliding window construction unit (13) is used for calculating the pixel size of a welding area according to the actual size of a welding head and the resolution of the ultrasonic phased array C scanning image, and constructing a sliding window with the size consistent with 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 an accurate positioning unit (25); the traversal unit (22) is respectively connected with 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 with the initial positioning unit (23) and the accurate positioning unit (25); wherein:
the real-time acquisition unit (21) is used for acquiring an ultrasonic phased array C scanning image of a workpiece to be detected in real time;
the traversing unit (22) is used for traversing a region of interest in the ultrasound phased array C scanning image acquired in real time on a spatial domain by using the sliding window, and recording the coordinates of the sliding window and the local image under the coordinates under different steps;
the initial positioning unit (23) is configured to calculate an acoustic impedance rate corresponding to the local image obtained by the traversal unit (22), and mark a sliding window coordinate with the smallest acoustic impedance rate as an initial positioning coordinate of the welding region by using the acoustic impedance rate as an optimization index;
the expansion unit (24) is used for moving one pixel in four directions of up, down, left and right respectively by taking the initial positioning coordinate as a reference to obtain local images under 5 sliding windows;
the accurate positioning unit (25) is used for calculating the acoustic impedance corresponding to the local image obtained by the expansion unit (24), taking the acoustic impedance as an optimization index, and marking the sliding window coordinate with the minimum acoustic impedance as a real positioning coordinate of the welding area.
9. A storage medium having a computer program stored thereon, characterized in that: the computer program is executed by a processor to realize the steps of the method for quickly positioning the welding area of the new energy automobile battery busbar according to any one of claims 1 to 7.
10. A computer device, characterized by: the welding area rapid positioning method comprises a storage medium, a processor and a computer program which is stored in the storage medium and can be executed by the processor, wherein the computer program is executed by the processor to realize the steps of the welding area rapid positioning method for the new energy automobile battery busbar according to any one of claims 1 to 7.
CN202210738420.4A 2022-06-27 2022-06-27 Method for quickly positioning welding area of new energy automobile battery busbar Pending CN115343364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210738420.4A CN115343364A (en) 2022-06-27 2022-06-27 Method for quickly positioning welding area of new energy automobile battery busbar

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210738420.4A CN115343364A (en) 2022-06-27 2022-06-27 Method for quickly positioning welding area of new energy automobile battery busbar

Publications (1)

Publication Number Publication Date
CN115343364A true CN115343364A (en) 2022-11-15

Family

ID=83947695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210738420.4A Pending CN115343364A (en) 2022-06-27 2022-06-27 Method for quickly positioning welding area of new energy automobile battery busbar

Country Status (1)

Country Link
CN (1) CN115343364A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116703891A (en) * 2023-07-31 2023-09-05 苏州精控能源科技有限公司 Welding detection method and device for cylindrical lithium battery busbar

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116703891A (en) * 2023-07-31 2023-09-05 苏州精控能源科技有限公司 Welding detection method and device for cylindrical lithium battery busbar
CN116703891B (en) * 2023-07-31 2023-10-10 苏州精控能源科技有限公司 Welding detection method and device for cylindrical lithium battery busbar

Similar Documents

Publication Publication Date Title
US6312385B1 (en) Method and apparatus for automatic detection and sizing of cystic objects
JP4429298B2 (en) Object number detection device and object number detection method
CN107576729B (en) Ultrasonic phased array-based weld defect detection and rapid extraction system and method
CN112833784B (en) Steel rail positioning method combining monocular camera with laser scanning
CN112053376A (en) Workpiece weld joint identification method based on depth information
CN109166125A (en) A kind of three dimensional depth image partitioning algorithm based on multiple edge syncretizing mechanism
CN112101138B (en) Bridge inhaul cable surface defect real-time identification system and method based on deep learning
CN110619328A (en) Intelligent ship water gauge reading identification method based on image processing and deep learning
CN111983030A (en) Friction welding seam defect quantitative detection method and system based on ultrasonic phased array
CN115343364A (en) Method for quickly positioning welding area of new energy automobile battery busbar
CN109145897B (en) Spacecraft cooperation target and identification method and identification device thereof
CN114152677A (en) Complex die forging ultrasonic automatic detection device
CN114066795A (en) DF-SAS high-low frequency sonar image fine registration fusion method
JP4918615B2 (en) Object number detection device and object number detection method
CN114529715B (en) Image identification method and system based on edge extraction
CN116381053A (en) Ultrasonic detection method and system for welding metal materials
Trucco et al. Processing and analysis of underwater acoustic images generated by mechanically scanned sonar systems
CN115661110A (en) Method for identifying and positioning transparent workpiece
JPH08329110A (en) Method for processing picture
CN111476790A (en) Method and device for enhancing display of puncture needle in ultrasonic puncture
WO2004064383A1 (en) Scan-assisted mobile telephone
Ivanovskii The Concept of Automated Draught Survey System for Marine Ships
JP2009205695A (en) Apparatus and method for detecting the number of objects
JPH08210811A (en) Method and device for detecting circle or ellipse
JPH10208066A (en) Method for extracting edge line of check object and appearance check method using this method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination