QUATERNION MULTI-DEGREE-OF-FREEDOM NEURON-BASED MULTISPECTRAL WELDING IMAGE RECOGNITION METHOD
20220414857 · 2022-12-29
Inventors
- Liang HUA (Nantong, CN)
- Hongkun ZHU (Nantong, CN)
- Yuqing LIU (Nantong, CN)
- Ling JIANG (Nantong, CN)
- Ran CHEN (Nantong, CN)
- Kexin SHI (Nantong, CN)
Cpc classification
G06V10/44
PHYSICS
G06F18/2131
PHYSICS
G06V10/12
PHYSICS
International classification
Abstract
Disclosed is a quaternion multi-degree-of-freedom neuron-based multispectral welding image recognition method, comprising: using three cameras having different wavebands to obtain multispectral weld pool images, and respectively performing pre-processing and edge extraction on the weld pool images having the different wavebands obtained at a same moment by the three cameras; establishing a quaternion-based multispectral weld pool image edge model; extracting low-frequency features after a quaternion discrete cosine transform; using a quaternion-based multi-degree-of-freedom neuron network to perform classification, training and recognition on edge features of the multispectral weld pool images. Compared to traditional means, the present invention has multiple recognition information sources, strong anti-interference capabilities and high recognition accuracy.
Claims
1. A quaternion multi-degree-of-freedom neuron-based multispectral welding image recognition method, which is characterized in that: a steel plate to be welded is laid flat below; laser welding equipment is located above and faces the steel plate; the three cameras equipped with glass filters and protective glasses are arranged side by side and vertically aligned with a portion to be subject to laser welding; an upper computer uses the LabVIEW program to acquire and control the states of the three cameras through the image acquisition card; a corresponding power supply device provides power; the multispectral weld pool images obtained by the three cameras are processed by the MATLAB program, to obtain and display the weld pool image recognition result; The processing is divided into two parts: the first part is to extract the low-frequency features of the weld pool images, comprising: A, preprocessing the weld pool images captured by the three cameras at the same moment, wherein an original image is binarized first, then is expanded and corroded by means of morphological operation, and then subject to area threshold filtering to complete the image preprocessing, and finally, weld pool edge information is extracted from the preprocessed images by scanning from outside to inside line by line; B, establishing a quaternion-based multispectral weld pool image edge model, wherein for sampling points at any moment, the distance data from an edge to a centroid of each of the weld pool images with different spectra obtained by the three cameras can be expressed as a pure imaginary quaternion, so the distance sequences from the edge to the centroid of each of the weld pool images with three spectral ranges corresponding to different categories can be combined and mapped on a quaternion space, and the change of a quaternion vector sequence can be characterized as the change of the weld pool image information with different states during welding; and model establishment specifically comprises: (1) calculating the centroid of each of the three preprocessed images, and selecting edge points meeting sampling angles, wherein the centroid is calculated as follows:
d=√{square root over ((x−x.sub.0).sup.2−(y−y.sub.0).sup.2)} where (x, y) is the coordinates of the edge point, and (x.sub.0, y.sub.0) is the coordinates of the centroid; the distance data sequences corresponding to the three spectra are expressed as the following formula:
S.sub.x={x.sub.i}.sub.t=1.sup.n
S.sub.y={y.sub.i}.sub.i=1.sup.n
S.sub.z={z.sub.i}.sub.i=1.sup.n where x.sub.i, y.sub.i and z.sub.i are distance values corresponding to i.sup.th points in the distance data sequences corresponding to the three spectra, and N is a length of a signal, that is, the number of the selected edge points; on this basis, the distance data sequences from the edge of to the centroid of a multispectral weld pool can be uniformly expressed as:
s={q.sub.η=x.sub.η.Math.i+y.sub.η.Math.j+z.sub.η.Math.k|η∈1,2, . . . ,n} besides, i.sup.2=j.sup.2=k.sup.2=−1, j=k=−ji, jk=i=−kj, ki=j=−ik, and this expression is the quaternion-based multispectral weld pool image edge model; and C, extracting low-frequency features after a quaternion discrete cosine transformation, wherein a left transformation F.sup.L(ω1, ω2) and a right transformation F.sup.R (ω1, ω2) of the quaternion discrete cosine transformation (QDCT) are as follows:
2. The quaternion multi-degree-of-freedom neuron-based multispectral welding image recognition method according to claim 1, which is characterized in that: the three cameras are triggered synchronously to capture images, and the weld pool images captured at the same moment with wavelengths of 808 nm, 830 nm and 850 nm respectively are obtained.
Description
DESCRIPTION OF SEVERAL VIEWS OF THE ATTACHED DRAWINGS
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
DETAILED DESCRIPTION OF THE INVENTION
[0032] According to a quaternion multi-degree-of-freedom neuron-based multispectral welding image recognition method, firstly three cameras corresponding to different wave bands are controlled by a LabVIEW program to obtain the image information of a weld pool respectively, then an image acquisition card is used for putting the information together and uploading the information, and finally images of different wave bands captured at a same moment are processed by a MATLAB program to obtain and display a weld pool image recognition result.
[0033] A steel plate to be welded is laid flat below; laser welding equipment is located above and faces the steel plate; the three cameras equipped with glass filters and protective glasses are arranged side by side and vertically aligned with a portion to be subject to laser welding; an upper computer uses the LabVIEW program to acquire and control the states of the three cameras through the image acquisition card; a corresponding power supply device provides power;
[0034] The three cameras are triggered synchronously to capture images, and the weld pool images captured at the same moment with wavelengths of 808 nm, 830 nm and 850 nm respectively are obtained.
[0035] The multispectral weld pool images obtained by the three cameras are processed by the MATLAB program, to obtain and display the weld pool image recognition result. The processing is divided into two parts:
[0036] The first part is to extract the low-frequency features of the weld pool images, comprising:
[0037] A, preprocessing the weld pool images captured by the three cameras at the same moment, wherein an original image is binarized first, then is expanded and corroded by means of morphological operation, and then subject to area threshold filtering to complete the image preprocessing, and finally, weld pool edge information is extracted from the preprocessed images by scanning from outside to inside line by line;
[0038] B, establishing a quaternion-based multispectral weld pool image edge model, wherein for sampling points at any moment, the distance data from an edge to a centroid of each of the weld pool images with different spectra obtained by the three cameras can be expressed as a pure imaginary quaternion, so the distance sequences from the edge to the centroid of each of the weld pool images with three spectral ranges corresponding to different categories can be combined and mapped on a quaternion space, and the change of a quaternion vector sequence can be characterized as the change of the weld pool image information with different states during welding; and model establishment specifically comprises:
[0039] (1) calculating the centroid of each of the three preprocessed images, and selecting edge points meeting sampling angles, [0040] wherein the centroid is calculated as follows:
[0041] a two-dimensional geometric moment m.sub.pq of the image is calculated as follows:
[0042] where p and q represent the order of the geometric moment m.sub.pg, x and y are the coordinates of a pixel, f(x,y) represents a gray value of the pixel here, M and N represent a size of the image, and the size of the image in the embodiment of the present invention is 1390×1040;
[0043] after working out the centroid, a ray with the centroid as a starting point and an X positive direction is established in an edge graph, and the ray is rotated at a certain angle until it is rotated by 360° in total, wherein during each time of rotation, an intersection of the ray and the edge is the edge point meeting the sampling angles; in the embodiment of the invention, a total of 100 edge points need to be taken, so one edge point is taken each time the ray is rotated by 3.6°
until 100 edge points are obtained.
[0044] (2) for the selected edge points, calculating their distances to the centroid respectively, and storing them in the distance data sequences corresponding to the three spectra in turn in angular order, wherein the distance is calculated as follows:
d=√{square root over ((x−x.sub.0).sup.2−(y−y.sub.0).sup.2)}
[0045] where (x, y) is the coordinates of the edge point, and (x.sub.0, y.sub.0) is the coordinates of the centroid;
[0046] the distance data sequences corresponding to the three spectra are expressed as the following formula:
S.sub.x={x.sub.i}.sub.t=1.sup.n
S.sub.y={y.sub.i}.sub.i=1.sup.n
S.sub.z={z.sub.i}.sub.i=1.sup.n
[0047] where x.sub.i, y.sub.i and z.sub.i are distance values corresponding to i.sup.th points in the distance data sequences corresponding to the three spectra, and N is a length of a signal, that is, the number of the selected edge points; on this basis, the distance data sequences from the edge of to the centroid of a multispectral weld pool can be uniformly expressed as:
s={q.sub.η=x.sub.η.Math.i+y.sub.η.Math.j+z.sub.η.Math.k|η∈1,2, . . . ,n} [0048] besides, i.sup.2=j.sup.2=k.sup.2=−1, j=k=−ji, jk=i=−kj, ki=j=−ik, and this expression is the quaternion-based multispectral weld pool image edge model; and
[0049] C, extracting low-frequency features after a quaternion discrete cosine transformation, wherein a left transformation F.sup.L(ω1, ω2) and a right transformation F.sup.R (ω1, ω2) of the quaternion discrete cosine transformation (QDCT) are as follows:
[0050] where u is a unit pure quaternion, u.sup.2=−1, f(x, y) is a corresponding value of (x, y) in a quaternion matrix of m×n to be transformed, F.sup.L(ω.sub.1, ω.sub.2) and F.sup.R(ω.sub.1, ω.sub.2) are quaternion coefficients in a transformation domain (ω.sub.1, ω.sub.2), and δ (ω.sub.1) and δ (ω.sub.2) are defined as:
[0051] and after the quaternion discrete cosine transformation is carried out on the quaternion-based multispectral weld pool image edge model, low-frequency components are taken as feature quaternion vectors of weld pool edge data.
[0052]
[0053]
[0054] After the first part, that is, extracting the low-frequency features of the weld pool images, the second part can be carried out, that is, using a quaternion-based multi-degree-of-freedom neuron network to perform classified recognition on edge features of the multispectral weld pool images.
[0055] As shown in
First, a quaternion-based multi-degree-of-freedom neuron network is constructed by using training samples to obtain two neuron coverage areas with different characterizations, “complete penetration” and “incomplete penetration”; then the extracted low-frequency features of edge data of test samples are input into the network to calculate the Euclidean distance between a sample to be recognized and the two neuron coverage areas, wherein the characterization corresponding to the coverage area with the smallest distance is the characterization to which the test sample belongs; and finally, a recognition result is taken as the output of the MDOFNN.