Target tracking method and system based on direction feature driving
By using the weighted fusion algorithm of Gabor features and HOG features in welding seam target tracking, the problem of target tracking accuracy and robustness caused by illumination noise interference during the welding process is solved, and higher tracking stability and accuracy are achieved.
Patent Information
- Application Number
- PCT/CN2023/138661
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-27
- Filing Date
- 2023-12-14
- Publication Date
- 2024-10-03
AI Technical Summary
During the welding process, the illumination noise interference caused by interference such as smoke, arc light, and metal splash and the indistinct distinction between the target area and the background make it difficult to guarantee the accuracy and robustness of existing target tracking algorithms in weld target tracking.
A weld target tracking method driven by direction features is adopted. Through the weighted fusion extraction algorithm of Gabor features and HOG features, the angular characteristics of the weld groove are used to increase the weight of the groove area, dilute the background area, and improve tracking accuracy and robustness.
In the complex light interference environment, the accuracy and robustness of welding target tracking are significantly improved, the error fluctuation range is reduced, and the tracking stability of the welding seam is enhanced.
Smart Images

Figure CN2023138661_03102024_PF_FP_ABST
Abstract
Description
A target tracking method and system based on directional feature driving
[0001] The present invention claims priority to the Chinese patent application filed with the Patent Office of China on March 27, 2023, with application number 202310300244.0 and invention name “A weld target tracking method and system based on directional feature drive”, the entire contents of which are incorporated by reference into the present invention. Technical Field
[0002] The present invention belongs to the technical field of visual target tracking, and in particular relates to a weld target tracking method and system based on directional feature driving. Background Art
[0003] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0004] Object tracking is a crucial area of computer vision, currently finding widespread application in security, surveillance, inspection, smart living, and smart industry. Since the concept of object tracking was first proposed, the field has made significant progress thanks to the collaborative research efforts of scholars both domestically and internationally.
[0005] When two plates of a certain thickness are welded together, a groove is often cut at the joint. Welding through the groove can make the connection between the plates tighter. During the welding process, under the oblique illumination of the auxiliary light source infrared laser, laser stripes at a certain angle can appear at the weld groove. An industrial camera is used to capture the weld image with laser stripes in real time through optical triangulation for target tracking. However, there will be various interferences such as smoke, arc light, and metal spatter during the welding process. Due to the characteristics of the captured weld image itself and the existence of these interferences, there will be complex noise interference such as lighting during welding, and the distinction between the target area and the background area is not obvious. The simple KCF target tracking algorithm is difficult to guarantee accuracy and robustness when facing such problems. Such problems are difficult in the field of weld target tracking.
[0006] Summary of the Invention
[0007] In order to overcome the shortcomings of the above-mentioned prior art, the present invention provides a weld target tracking method and system based on directional feature driving, which applies a weighted fusion feature extraction algorithm of Gabor features and HOG features. It can ensure the accuracy and robustness of the target tracking algorithm in an environment with complex lighting and other noise interference and in which the target area to be tracked and the background cannot be distinguished.
[0008] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:
[0009] A first aspect of the present invention provides a weld target tracking method based on directional feature driving.
[0010] A weld target tracking method based on directional feature driving includes the following steps:
[0011] Step 1: Acquire multiple consecutive single-frame weld images, and select the target to be tracked in the first acquired single-frame weld image;
[0012] Step 2: preprocessing the current frame weld image to obtain a preprocessed current frame weld image;
[0013] Step 3: Extract Gabor features in multiple directions from the preprocessed current frame weld image to obtain Gabor feature maps in multiple directions;
[0014] Step 4: Extract HOG features from Gabor feature maps in multiple directions respectively to obtain HOG feature maps in multiple directions, and perform weighted fusion on the HOG features in multiple directions to obtain weighted fused HOG features;
[0015] Step 5: Use the weighted fused HOG features to train the correlation filter to obtain the trained correlation filter;
[0016] Step 6: Perform convolution operation on the weighted fused HOG features and the trained correlation filter to obtain the response map of the correlation filter. The coordinate position with the largest response value in the response map is the target position tracked by the weld image in the current frame.
[0017] Step 7: Update the target appearance template and filter model;
[0018] Step 8: Determine whether to continue tracking. If so, use the next single-frame weld image as the current weld image and loop through steps 2 to 8. Otherwise, stop tracking.
[0019] A second aspect of the present invention provides a weld target tracking system based on directional feature driving.
[0020] A weld target tracking system based on directional feature drive, comprising:
[0021] The single-frame weld image acquisition module is configured to: acquire multiple consecutive single-frame weld images, and select the target to be tracked in the first acquired single-frame weld image;
[0022] The preprocessing module is configured to: preprocess the current frame weld image to obtain a preprocessed current frame weld image;
[0023] The Gabor feature map acquisition module is configured to: extract Gabor features in multiple directions from the preprocessed current frame weld image to obtain Gabor feature maps in multiple directions;
[0024] The HOG feature acquisition module is configured to: extract HOG features from Gabor feature maps in multiple directions respectively to obtain HOG feature maps in multiple directions, and perform weighted fusion on the HOG features in multiple directions to obtain weighted fused HOG features;
[0025] The training module is configured to: train the correlation filter using the weighted fused HOG features to obtain a trained correlation filter;
[0026] The target position tracking module is configured to perform a convolution operation on the weighted fused HOG features and the trained correlation filter to obtain a response map of the correlation filter. The coordinate position with the maximum response value in the response map is the target position tracked by the weld image in the current frame.
[0027] The updating module is configured to: update the target appearance template and the filter model;
[0028] The judgment module is configured to: judge whether to continue tracking. If so, the next single-frame weld image is used as the current weld image, and the preprocessing module is executed to the judgment module in a loop; otherwise, tracking is stopped.
[0029] A third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps of the weld target tracking method based on directional feature driving as described in the first aspect of the present invention.
[0030] The fourth aspect of the present invention provides an electronic device, comprising a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps of the weld target tracking method based on directional feature driving as described in the first aspect of the present invention are implemented.
[0031] One or more of the above technical solutions have the following beneficial effects:
[0032] The algorithm proposed in the present invention is more in line with the image characteristics of the groove during the welding process. Before extracting the HOG features, the Gabor feature extraction algorithm is used to extract features in different directions. Then, the angle that helps to track the weld is selected according to the angular characteristics of the weld groove, and a larger weight is given to it in the process of weighted fusion. This can highlight the required features while minimizing the unnecessary features, and more accurately extract the features required in the welding work. At the same time, the algorithm of the present invention is more stable, has a smaller error fluctuation range, and has improved accuracy and robustness.
[0033] Advantages of additional aspects of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0035] FIG1 is a flow chart of a method according to the first embodiment.
[0036] Figure 2 is a preprocessing flow chart.
[0037] FIG3 is an experimental comparison diagram of the filtering method of the present invention and other filtering methods.
[0038] Figure 4 is a visualization graph of Gabor feature extraction.
[0039] FIG5 is a system structure diagram of the second embodiment. DETAILED DESCRIPTION
[0040] It should be noted that the following detailed descriptions are exemplary and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the present invention belongs.
[0041] It should be noted that the terms used herein are for describing particular embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.
[0042] In the absence of conflict, the embodiments of the present invention and the features thereof may be combined with each other.
[0043] The overall idea proposed by the present invention is:
[0044] The present invention can effectively solve the problem of poor target tracking effect caused by various interferences such as smoke, arc light, and metal splash, and unclear distinction between the target area and the background. Since the angle of the laser stripes at the weld groove is different from the angles of other plane areas, the Gabor feature extraction algorithm adopted by the present invention can extract detailed texture features of the image in different directions. Therefore, the angular characteristics of the laser stripes at the weld groove can be utilized. After HOG feature extraction, when weighted fusion is performed on images at various angles, the weight coefficient at the groove is increased to highlight the groove area and deemphasize the remaining background areas, thereby ensuring the accuracy and robustness of the weld tracking process.
[0045] Example 1
[0046] This embodiment discloses a weld target tracking method based on directional feature driving.
[0047] As shown in FIG1 , a weld target tracking method based on directional feature driving includes the following steps:
[0048] Step 1: Acquire multiple consecutive single-frame weld images, and select the target to be tracked in the first acquired single-frame weld image;
[0049] Step 2: preprocessing the current frame weld image to obtain a preprocessed current frame weld image;
[0050] Step 3: Extract Gabor features in multiple directions from the preprocessed current frame weld image to obtain Gabor feature maps in multiple directions;
[0051] Step 4: Extract HOG features from Gabor feature maps in multiple directions respectively to obtain HOG feature maps in multiple directions, and perform weighted fusion on the HOG features in multiple directions to obtain weighted fused HOG features;
[0052] Step 5: Use the weighted fused HOG features to train the correlation filter to obtain the trained correlation filter;
[0053] Step 6: Perform convolution operation on the weighted fused HOG features and the trained correlation filter to obtain the response map of the correlation filter. The coordinate position with the largest response value in the response map is the target position tracked by the weld image in the current frame.
[0054] Step 7: Update the target appearance template and filter model;
[0055] Step 8: Determine whether to continue tracking. If so, use the next single-frame weld image as the current weld image and loop through steps 2 to 8. Otherwise, stop tracking.
[0056] Specifically:
[0057] The multiple single-frame weld images in step 1 include each frame captured in real time by an industrial camera or each frame in a video. Obtain the first weld image frame in the captured video and select the target to be tracked.
[0058] The pre-processing process of the laser stripes at the weld in step 2 is shown in Figure 2, and the steps are:
[0059] (1) First, the weld image is grayscaled to obtain a grayscale image. As a method for grayscale conversion, the present invention uses a weighted average method.
[0060] (2) After obtaining the grayscale image, it is necessary to perform smoothing filtering on the image to remove image noise. The present invention selects Gaussian filtering as the smoothing filtering method.
[0061] (3) After the smoothing filter (2) has been applied to remove the image noise, the next step is to perform binarization on the image, so that the image is converted from a grayscale state of 0-255 to a binary state of either black or white. Binarization Method The present invention selects a global binarization method.
[0062] (4) After obtaining the binary image, the image is subjected to morphological filtering processing using opening and closing operations. The present invention selects closing operations for morphological filtering processing.
[0063] The results of the above four steps of image preprocessing are shown in Figure 3. Finally, the weld image is obtained after arc light, spatter, light and other noises are filtered out as much as possible.
[0064] In step 3, Gabor features in multiple directions are extracted from the weld image preprocessed in step 2, and Gabor feature maps in multiple directions are obtained as shown in Figure 4. Figure 4 (a) is a visualization diagram of Gabor filters with kernel sizes of 5, 7, 9, 11, and 13 and angles of 0°, 30°, 45°, 60°, 90°, and 135°, and Figure 4 (b) is a Gabor feature extraction effect diagram.
[0065] Gabor feature is a feature that can be used to describe image texture information. The frequency and direction of Gabor filter are particularly suitable for texture representation and discrimination.
[0066] The specific steps are:
[0067] The mathematical expression of the Gabor function is:
[0068] Wherein, λ represents the wavelength of the filter, θ represents the tilt angle of the Gabor kernel function image, ψ represents the phase offset, which ranges from -180° to 180°, σ represents the standard deviation of the Gaussian function, γ represents the aspect ratio, and x and y represent the coordinate positions of the pixels respectively. x and y represent the coordinate positions of the pixels before rotation; x′=xcosθ+ysinθ, y′=-xsinθ+ycosθ, x′ and y′ represent the coordinate positions of the pixels after rotation. The value of θ can be set to multiple angles. In this embodiment, the value of θ is set to 0°, 30°, 45°, 60°, 90° and 135°, the kernel sizes of the filter group are 5, 7, 9, 11 and 13, and the Gabor feature extraction visualization diagram is shown in Figure 4. Experimental comparison shows that the angles required for the image of this embodiment are 45°, 90° and 135°, and the kernel size is 5. The above-mentioned Gabor features in the directions of 45° and 135° are fused into a feature map g groove , the Gabor feature ghorizontal in the 90° direction remains unchanged temporarily. The feature model of the obtained Gabor feature g at the feature level is expressed as Where t represents the tth frame and z represents the feature model.
[0069] Step 4 extracts HOG features from the multiple directional Gabor feature maps obtained in step 3. The Histogram of Oriented Gradient (HOG) feature is a feature descriptor used for object detection in computer vision and image processing. HOG features are constructed by calculating and statistically analyzing the directional gradient histogram of a local region of the image.
[0070] The steps are:
[0071] After obtaining the Gabor feature map, HOG features are extracted from the Gabor feature map. Let a direction be the horizontal direction and b direction be the vertical direction; let the pixel value at (a, b) be pixl(p a ,p b ), then the calculation formula for the gradient values in the a and b directions is: G a (p a , p b )=pixl(p a +1, p b )-pixl(p a -1, p b ) (2) G b (p a , p b )=pixl(p a , p b +1)-pixl(p a , p b -1) (3)
[0072] Among them, G a Represents the horizontal gradient, G b Represents the vertical gradient, G a (p a ,p b ), G b (p a ,p b ) represent the horizontal gradient and vertical gradient at the pixel point (a, b) in the input image respectively. The gradient G and direction α at the pixel point (a, b) are expressed as:
[0073] After calculating the gradient direction histogram obtained by the obtained gradient and gradient direction, the amplitude is normalized to obtain the HOG feature h of the above two Gabor features. groove The feature model of the obtained HOG feature at the feature level is expressed as Where t represents the t-th frame.
[0074] Step 5: Weighted fusion of the HOG features obtained in multiple directions. Because the angle of the laser stripes at the weld groove is different from the angles of other areas of the image, assigning different weights to different angles can highlight the areas we need. To this end, among the HOG features in multiple directions, the HOG features that can highlight the weld groove are assigned a first weight coefficient, and the value range of the first weight coefficient is 0.7-1; the unnecessary HOG features are assigned a second weight coefficient, and the value range of the second weight coefficient is 0-0.3; the sum of the first weight coefficient and the second weight coefficient is 1, and finally the weighted fused HOG features are obtained. This process can minimize unnecessary features and filter out some interference in the welding process. The weighted fused image is easier to track.
[0075] The weighted fusion calculation formula is:
[0076] Where μ is the feature fusion coefficient, and this time μ is set to 0.8.
[0077] Step 6: Train the correlation filter.
[0078] Tracking algorithms based on kernel correlation filtering, such as MOSSE, CSK, KCF, BACF, and SAMF, introduce correlation filtering (measuring the similarity between two signals) in the field of communications into target tracking. Correlation filters utilize the basic idea of correlation filter tracking, so they are called correlation filters. Correlation filters are a common term in this field. The tracking algorithm based on correlation filtering originated from the CSK method proposed by P.Martins in 2012. The author proposed a kernel tracking method based on a circulant matrix and perfectly solved the problem of dense sampling from a mathematical point of view, and used Fourier transform to quickly implement the detection process. Compared with traditional algorithms such as optical flow, Kalman, and Meanshift, correlation filter algorithms have faster tracking speed and higher accuracy. The basic idea of correlation filter tracking is to design a filter template, use this template to perform correlation operations with the target candidate area, and the position of the maximum output response is the target position of the current frame. The KCF target tracking algorithm is selected in this embodiment.
[0079] The training process of the correlation filter is:
[0080] 6.1.KCF target tracking algorithm training correlation filter is implemented using ridge regression. The goal of using ridge regression training is to find a function f(x i )=ω T x i, ω is the filter parameter, T represents the matrix transpose operation, so that the sample x i and its regression target y i The square error is the smallest, and the loss function is:
[0081] Among them, λ is the regularization parameter to control overfitting. The matrix form can be expressed as:
[0082] Where X is a circulant matrix, which is composed of sample x i Composition; y is the label vector corresponding to X, which is composed of the regression target y i When the loss function is 0, the derivative is:
[0083] ω=(X H X+λI) -1 X H y (9)
[0084] X H is the Hermitian transpose of X, and I is the identity matrix.
[0085] 6.2. Based on the property that the circulant matrix can be diagonalized by the discrete Fourier matrix, the matrix inversion can be converted into the eigenvalue inversion. The solution for ω can be converted to the frequency domain for calculation, and the discrete Fourier transform can be applied to increase the calculation speed. The solution can then be inversely transformed back to the time domain to obtain the solution with the maximum response.
[0086] The above formula is a circulant matrix X, where the first row represents the initial sample, and each subsequent row is obtained by circulating the initial sample n times. X is diagonalized by the matrix form F of the discrete Fourier transform:
[0087] in is the Fourier transform of x, F is the matrix form of the discrete Fourier transform, F H represents the Hermitian transpose of the Fourier transform matrix. Substituting into formula (9), we can get:
[0088] express The conjugate of , ⊙ represents the multiplication of elements at corresponding positions. Using the anti-diagonalization property, we can get:
[0089] Where C is the C matrix. Then use the convolution property of the circulant matrix: F(C(x)y)=F * (x)⊙F(y) yields:
[0090] in, is the Fourier transform of y.
[0091] 6.3. In order to solve the problem of high computational complexity in high-dimensional space, a kernel function is found, whose formula can be expressed as:
[0092] Where x and y belong to the circulant matrix X, X is a low-dimensional space, Represents a nonlinear transformation function, <,> represents an inner product operation, and κ represents a kernel function, which belongs to a high-dimensional space. Express ω using the nonlinearity of x:
[0093] Among them, α i represents the dual space coefficient of the i-th sample.
[0094] 6.4. Substituting the above equation into equation (8), the solution for ω is converted into the solution for α, and we can obtain:
[0095] Where α is the final solution of the ridge regression problem in the frequency domain, α=[α 1, α2,...,α n ] T Represents a column vector of size n×1, which is the dual space coefficient corresponding to the filter parameter ω; X=[x1,x2,...x n ] T ,make K represents the kernel matrix of the kernel space and is a circulant matrix. Using the diagonal properties of the kernel function in the frequency domain, we can obtain:
[0096] in is the first row element of the kernel function K, is the Fourier transform of α.
[0097] 6.5. When the result z after weighted fusion of features in the above formula (6) is input, the filter is transformed into:
[0098] make K z represents the kernel matrix of the kernel space and is a circulant matrix. Using the properties of the circulant matrix to perform Fourier transform on the above formula, we can obtain:
[0099] in is the kernel function K z The first row of elements, f(z) is a vector, It is the diagonal form of f(z), containing the outputs of all cyclic shifts of z.
[0100] Step 7: After the kernel function is trained, the new input sample features are mapped to the kernel space. The kernel function is used to operate on all positions in the sample and obtain the corresponding response results. The obtained response results are the response graphs. The strongest response in the response graph is the position of the target in this frame.
[0101] Step 8: The present invention also continues the update strategy of the KCF target tracking algorithm. The update includes updating the target appearance template and the filter model. The target appearance template part is to perform a weighted update on the weighted fused HOG features extracted from the current frame image and the weighted fused HOG features extracted from the previous frame image to obtain the target appearance template of the current frame; the update part of the correlation filter model is to first use the weighted fused HOG features of the target image in the current frame to train a correlation filter, and then perform a weighted update on the correlation filter and the correlation filter obtained by the previous frame update to obtain the correlation filter of the current frame.
[0102] Step 9. Determine whether to continue tracking. If so, return to step 2; otherwise, stop tracking.
[0103] Example 2
[0104] This embodiment discloses a weld target tracking system based on directional feature driving.
[0105] As shown in FIG5 , a weld target tracking system based on directional feature drive is characterized by comprising:
[0106] The single-frame weld image acquisition module is configured to: acquire multiple consecutive single-frame weld images, and select the target to be tracked in the first acquired single-frame weld image;
[0107] The preprocessing module is configured to: preprocess the current frame weld image to obtain a preprocessed current frame weld image;
[0108] The Gabor feature map acquisition module is configured to: extract Gabor features in multiple directions from the preprocessed current frame weld image to obtain Gabor feature maps in multiple directions;
[0109] The HOG feature acquisition module is configured to: extract HOG features from Gabor feature maps in multiple directions respectively to obtain HOG feature maps in multiple directions, and perform weighted fusion on the HOG features in multiple directions to obtain weighted fused HOG features;
[0110] The training module is configured to: train the correlation filter using the weighted fused HOG features to obtain a trained correlation filter;
[0111] The target position tracking module is configured to perform a convolution operation on the weighted fused HOG features and the trained correlation filter to obtain a response map of the correlation filter. The coordinate position with the maximum response value in the response map is the target position tracked by the weld image in the current frame.
[0112] The updating module is configured to: update the target appearance template and the filter model;
[0113] The judgment module is configured to: judge whether to continue tracking. If so, the next single-frame weld image is used as the current weld image, and the preprocessing module is executed to the judgment module in a loop; otherwise, tracking is stopped.
[0114] Example 3
[0115] The purpose of this embodiment is to provide a computer-readable storage medium.
[0116] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the weld target tracking method based on directional feature driving as described in Example 1 of the present disclosure.
[0117] Example 4
[0118] The purpose of this embodiment is to provide an electronic device.
[0119] An electronic device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps of the weld target tracking method based on directional feature driving as described in Example 1 of the present disclosure are implemented.
[0120] The steps involved in the apparatuses of Examples 2, 3, and 4 above correspond to those of Method Example 1. For detailed implementations, please refer to the relevant description of Example 1. The term "computer-readable storage medium" should be understood to mean a single medium or multiple media containing one or more instruction sets; it should also be understood to include any medium capable of storing, encoding, or carrying an instruction set for execution by a processor and causing the processor to perform any method of the present invention.
[0121] Those skilled in the art will appreciate that the modules or steps of the present invention described above can be implemented using a general-purpose computer device. Alternatively, they can be implemented using program code executable by a computing device, which can then be stored in a storage device and executed by the computing device. Alternatively, they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.
[0122] Although the above describes the specific embodiments of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without any creative work are still within the scope of protection of the present invention.
Claims
1. A weld target tracking method based on directional feature driving, characterized in that: The following steps are involved: Step 1: Acquire multiple consecutive single-frame weld images, and select the target to be tracked in the first acquired single-frame weld image; Step 2: preprocessing the current frame weld image to obtain a preprocessed current frame weld image; Step 3: extract Gabor features in multiple directions from the preprocessed current frame weld image to obtain Gabor feature maps in multiple directions; Step 4: Extract HOG features from Gabor feature maps in multiple directions respectively to obtain HOG feature maps in multiple directions, and perform weighted fusion on the HOG features in multiple directions to obtain weighted fused HOG features; Among the HOG features in multiple directions, the HOG features that can highlight the weld groove are assigned a first weight coefficient, and the value range of the first weight coefficient is 0.7-1; the unnecessary HOG features are assigned a second weight coefficient, and the value range of the second weight coefficient is 0-0.3; the sum of the first weight coefficient and the second weight coefficient is 1, thereby obtaining the weighted fused HOG features; Step 5: Use the weighted fused HOG features to train the correlation filter to obtain the trained correlation filter; Step 6: Perform convolution operation on the weighted fused HOG features and the trained correlation filter to obtain the response map of the correlation filter. The coordinate position with the largest response value in the response map is the target position tracked by the weld image in the current frame; Step 7: Update the target appearance template and filter model; Step 8: Determine whether to continue tracking. If so, use the next single-frame weld image as the current weld image and loop through steps 2 to 8. Otherwise, stop tracking.
2. The weld target tracking method based on directional feature driving according to claim 1, characterized in that: The multiple single-frame weld images are each frame of images captured in real time by an industrial camera or each frame of images in a video.
3. The weld target tracking method based on directional feature driving according to claim 1, characterized in that: The current frame weld image is processed in sequence by grayscale, smoothing filter, binarization, and morphological filter of opening and closing operations to obtain a preprocessed image.
4. The weld target tracking method based on directional feature driving according to claim 1, characterized in that: The mathematical expression of Gabor function is: Among them, λ represents the wavelength of the filter, θ represents the tilt angle of the Gabor kernel function image, ψ represents the phase offset, σ represents the standard deviation of the Gaussian function, γ represents the aspect ratio, and x and y represent the coordinate positions of the pixels respectively; x′=xcosθ+ysinθ, y′=-xsinθ+ycosθ, x′ and y′ represent the coordinate positions of the pixels after rotation.
5. The weld target tracking method based on directional feature driving according to claim 1, characterized in that: Get the pixel value at the pixel point (a, b) of the Gabor feature map, calculate the gradient values in the a direction and the b direction based on the pixel value at the pixel point (a, b), calculate the gradient and gradient direction at the pixel point (a, b) based on the gradient values in the a direction and the b direction, calculate the gradient direction histogram based on the gradient and gradient direction, normalize the amplitude of the gradient direction histogram, and obtain the HOG feature.
6. The weld target tracking method based on directional feature driving according to claim 1, characterized in that: The target appearance template and filter model are updated, specifically: the features extracted from the weld image of the current frame are weighted updated with the features extracted from the weld image of the previous frame, and the target appearance template of the current frame is updated; the correlation filter obtained from the weld image of the current frame is weighted updated with the correlation filter obtained from the weld image of the previous frame, and the filter model is updated.
7. A weld target tracking system based on directional feature drive, characterized in that: include: The single-frame weld image acquisition module is configured to: acquire a plurality of consecutive single-frame weld images, and select a target to be tracked in the first acquired single-frame weld image; The preprocessing module is configured to: preprocess the current frame weld image to obtain the preprocessed current frame weld image; The Gabor feature map acquisition module is configured to: extract Gabor features in multiple directions from the preprocessed current frame weld image to obtain Gabor feature maps in multiple directions; The HOG feature acquisition module is configured to: extract HOG features from Gabor feature maps in multiple directions respectively to obtain HOG feature maps in multiple directions, and perform weighted fusion on the HOG features in multiple directions to obtain weighted fused HOG features; Among the HOG features in multiple directions, the HOG features that can highlight the weld groove are assigned a first weight coefficient, and the value range of the first weight coefficient is 0.7-1; the unnecessary HOG features are assigned a second weight coefficient, and the value range of the second weight coefficient is 0-0.3; the sum of the first weight coefficient and the second weight coefficient is 1, thereby obtaining the weighted fused HOG features; The training module is configured to: train the correlation filter using the weighted fused HOG features to obtain a trained correlation filter; The target position tracking module is configured to: perform convolution operation on the weighted fused HOG features and the trained correlation filter to obtain a response map of the correlation filter, and the coordinate position with the largest response value in the response map is the target position tracked by the weld image of the current frame; The updating module is configured to: update the target appearance template and the filter model; The judgment module is configured to: judge whether to continue tracking, if continuing tracking, take the next single-frame weld image as the current frame weld image, and loop the preprocessing module to the judgment module, otherwise stop tracking.
8. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps in the weld target tracking method based on directional feature drive as described in any one of claims 1 to 6 are implemented.
9. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the weld target tracking method based on directional feature driving as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Multi-feature satellite video target tracking method based on motion estimation
CN114723783A
Weld joint target tracking method and system based on direction characteristic driving
CN116030098A
Target tracking hardware implementation system and method
US20190139232A1
Cited By
Image recognition method and device based on adaptive multi-scale feature fusion, equipment and storage medium
CN119181011A
Weld joint parameter anti-interference measurement method
CN121112903A
