Visual tracking method and device based on image processing
Through methods such as image processing technology and graph convolution network, the accuracy and stability problems of traditional visual tracking methods in complex environments are solved, and high accuracy and real-time tracking effects in complex environments are achieved.
Patent Information
- Application Number
- CN202410853855.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Traditional visual tracking methods are difficult to cope with illumination changes, target occlusion, motion blur and multi-target tracking in complex environments, resulting in low accuracy and prone to target loss and mistracking.
Using a visual tracking method based on image processing, through image preprocessing, target detection and feature extraction, graph convolution network and Kalman filter are used for feature aggregation and motion state prediction, combined with the region search model and non-homogeneous Poisson process, to generate The position and angle adjustment parameters of the PTZ ensure that the target object is tracked in real time within the camera's field of view.
It improves the accuracy of visual tracking, effectively avoids tracking drift and mistracking, ensures accurate tracking and position updating of target objects in complex environments, and enhances the real-time response capability of the PTZ to targets.
Smart Images

Figure CN118429388B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a visual tracking method and device based on image processing. Background Art
[0002] With the development of computer vision technology, the accuracy and real-time performance of visual tracking methods have been significantly improved. However, in complex environments, traditional visual tracking methods still face many challenges, such as lighting changes, target occlusion, motion blur, and multi-target tracking. Traditional methods often rely on single features or simple filtering algorithms, which are difficult to cope with the changing real-world scenes and complex target motion patterns.
[0003] Most existing visual tracking technologies rely on simple target tracking algorithms, such as mean shift. Existing technologies perform well when dealing with static backgrounds or simple targets, but they are not effective in dynamic backgrounds, multiple targets, and complex target motion. In addition, traditional methods are usually difficult to handle rapid changes in targets and complex nonlinear motion, making target loss and mistracking more common during the tracking process. In other words, the accuracy of existing technologies is low. Summary of the invention
[0004] The present application provides a visual tracking method and device based on image processing, which are used to improve the accuracy of visual tracking of a gimbal by using image processing technology.
[0005] In a first aspect, the present application provides a visual tracking method based on image processing, the visual tracking method based on image processing comprising:
[0006] The continuous environment image sequence of the target object is collected by the pan / tilt system and image preprocessing is performed to obtain a preprocessed environment image sequence;
[0007] Performing target detection analysis on the target object in the preprocessed environment image sequence to obtain a target detection result, and performing feature extraction on the target detection result to obtain first position data and first feature data;
[0008] Inputting the first position data and the first feature data into a preset graph convolutional network to perform feature aggregation and tracking parameter affiliation analysis to obtain an optimal tracking parameter combination, and constructing a visual tracking model according to the optimal tracking parameter combination;
[0009] Performing Kalman filter analysis and motion state prediction on the visual tracking model to obtain motion state prediction data of the target object;
[0010] Performing feature matching on the motion state prediction data of the target object to obtain second position data and second feature data;
[0011] Perform visual tracking deviation calculation on the second position data and the second feature data to obtain visual tracking deviation data, and generate position adjustment parameters and angle adjustment parameters of the gimbal according to the visual tracking deviation data to control the gimbal to perform visual tracking on the target object.
[0012] In a second aspect, the present application provides a visual tracking device based on image processing, the visual tracking device based on image processing comprising:
[0013] An acquisition module is used to acquire a continuous environment image sequence of a target object through a pan / tilt platform and perform image preprocessing to obtain a preprocessed environment image sequence;
[0014] A detection module, used for performing target detection analysis on the target object in the preprocessed environment image sequence to obtain a target detection result, and performing feature extraction on the target detection result to obtain first position data and first feature data;
[0015] A construction module, used for inputting the first position data and the first feature data into a preset graph convolutional network to perform feature aggregation and tracking parameter affiliation analysis to obtain an optimal tracking parameter combination, and constructing a visual tracking model according to the optimal tracking parameter combination;
[0016] A prediction module, used for performing Kalman filter analysis and motion state prediction on the visual tracking model to obtain motion state prediction data of the target object;
[0017] A matching module, used for performing feature matching on the motion state prediction data of the target object to obtain second position data and second feature data;
[0018] The control module is used to calculate the visual tracking deviation of the second position data and the second feature data to obtain the visual tracking deviation data, and generate the position adjustment parameters and angle adjustment parameters of the gimbal according to the visual tracking deviation data to control the gimbal to perform visual tracking on the target object.
[0019] The third aspect of the present application provides an image processing-based visual tracking device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the image processing-based visual tracking device executes the above-mentioned image processing-based visual tracking method.
[0020] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned image processing-based visual tracking method.
[0021] In the technical solution provided by the present application, the collected environmental image sequence is comprehensively optimized through image preprocessing. Noise is effectively removed, the contrast and edge information of the image are enhanced, the image quality is improved, and the target object in the image sequence can be accurately detected through feature extraction. Multi-level feature extraction improves the accuracy of target detection, and also retains rich information such as the shape, color and texture of the target object. The first position data and the first feature data are feature aggregated by a preset graph convolution network, and the tracking parameter analysis is performed through the membership model. Multi-layer convolution operations and nonlinear activation functions realize effective feature aggregation, and the membership analysis accurately calculates the relationship between each position node and the predefined tracking parameters. The motion state of the target object is predicted through Kalman filtering and particle filtering. The introduction of regional search model and non-homogeneous Poisson process makes the update of undiscovered targets more accurate. The use of posterior Cramer-Rao lower bound calculation and optimization objective function ensures the accuracy and stability of the predicted data. The feature matching and template update of the target object are completed through local search, ensuring that the target position and features can still be accurately matched under the condition of rapid target movement and environmental changes, effectively avoiding tracking drift and mistracking. By calculating the visual tracking deviation data, the position adjustment parameters and angle adjustment parameters of the gimbal are generated, which ensures that the target object is always within the field of view of the camera and can quickly respond to the movement changes of the target, thereby improving the accuracy of the gimbal's visual tracking. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0023] Figure 1 A schematic diagram of an embodiment of a visual tracking method based on image processing in an embodiment of the present application;
[0024] Figure 2 Schematic diagram of an embodiment of a visual tracking device based on image processing in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The embodiments of the present application provide a method and device for visual tracking based on image processing. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 , an embodiment of the visual tracking method based on image processing in the embodiment of the present application includes:
[0027] Step S101, collecting a continuous environment image sequence of a target object through a pan / tilt platform and performing image preprocessing to obtain a preprocessed environment image sequence;
[0028] It is understandable that the execution subject of the present application may be a visual tracking device based on image processing, or a terminal or a server, which is not limited here. The present application embodiment is described by taking the server as the execution subject as an example.
[0029] Specifically, the continuous environment image sequence of the target object is collected by the pan-tilt system to continuously and completely capture the movement process and surrounding environment information of the target object. The continuous environment image sequence is subjected to median filtering to remove salt and pepper noise in the image, obtain a denoised image sequence, and improve the clarity and quality of the image. The denoised image sequence is subjected to mean filtering to smooth the fine noise in the image, and obtain an initial smoothed image sequence. The initial smoothed image sequence is subjected to Gaussian filtering to remove high-frequency noise and make the image smoother, and obtain a Gaussian smoothed image sequence. The Gaussian smoothed image sequence is subjected to histogram equalization to enhance the contrast of the image and make the details in the image clearer, and obtain a contrast enhanced image sequence. The contrast enhanced image sequence is subjected to gamma correction, and the brightness of the image is adjusted by gamma correction to make the grayscale distribution of the image more reasonable, and obtain a brightness corrected image sequence. The brightness corrected image sequence is subjected to edge detection to extract edge information in the image, highlight the outline of the target object, and obtain an edge enhanced image sequence. The edge enhanced image sequence is subjected to binarization to convert the image into a black and white image, highlight the difference between the target object and the background, and obtain a binarized image sequence. The binary image sequence is morphologically processed to remove noise and small areas in the image, and the holes of the target object are filled to obtain the morphologically processed image sequence. The morphologically processed image sequence is cropped to remove unnecessary background areas and retain the main part of the target object to obtain the preprocessed environment image sequence.
[0030] Step S102: performing target detection analysis on the target object in the preprocessed environment image sequence to obtain a target detection result, and performing feature extraction on the target detection result to obtain first position data and first feature data;
[0031] Specifically, a sliding window process is performed on the preprocessed environment image sequence. By sliding a fixed-size window on the image step by step, multiple candidate region image sequences are generated. These candidate regions may contain the target object or its part, thereby covering the entire preprocessed environment image. Haar feature extraction is performed on the target object in the multiple candidate region image sequences to extract local texture and edge features of the target object to obtain Haar feature data. AdaBoost classification is performed on the Haar feature data. AdaBoost is a machine learning algorithm that improves the accuracy and robustness of classification by combining multiple weak classifiers. In this process, the AdaBoost classifier classifies the candidate regions according to the Haar feature data, determines which candidate regions contain the target object, and obtains the target detection result of the target object. ORB feature extraction is performed on the target detection result. ORB (Oriented FAST and Rotated BRIEF) is an efficient feature extraction and description algorithm. The local feature points and descriptors of the target object are extracted through ORB feature extraction to obtain ORB feature data. These feature data can describe the local information and overall morphology of the target object in more detail. The ORB feature data is analyzed for position and features to determine the specific position and related features of the target object in the image, and the first position data and the first feature data are obtained. The first position data describes the position coordinates of the target object in the image, and the first feature data contains the feature descriptor of the target object for subsequent tracking and matching.
[0032] Step S103: input the first position data and the first feature data into a preset graph convolutional network to perform feature aggregation and tracking parameter affiliation analysis to obtain an optimal tracking parameter combination, and construct a visual tracking model according to the optimal tracking parameter combination;
[0033] Specifically, the first position data is node-converted to obtain a plurality of position nodes, each of which represents the specific position of the target object in the image. The first feature data is node-attributed according to the plurality of position nodes to obtain node attribute data of each position node, and the attribute data describes the feature information of the target object at the position. A graph structure is constructed for the plurality of position nodes and the node attribute data of each position node to generate a position graph structure, wherein each node connection represents the relationship between the target object at different positions. The position graph structure is convoluted and multi-layer convolution feature aggregation is performed through a preset graph convolution network to obtain a feature aggregation result. The graph convolution network includes a plurality of graph convolution layers, and a nonlinear activation function is set after each graph convolution layer. The convolution layer and the activation function can extract and aggregate the feature information of the position node layer by layer, thereby improving the depth and accuracy of feature extraction. Through the affiliation model, the affiliation between each position node and the predefined tracking parameter is calculated according to the feature aggregation result. The affiliation model determines the most suitable tracking parameter for each position node by analyzing the feature aggregation result, thereby obtaining the best tracking parameter combination. The best tracking parameter combination can optimize the configuration of various parameters in the tracking process and improve the accuracy and stability of tracking. According to the optimal tracking parameter combination, the initial state and noise covariance of the Kalman filter as well as the target speed and acceleration are selected and configured to build a visual tracking model. The Kalman filter is a prediction and estimation algorithm that effectively predicts the motion state of the target object by configuring its initial state and noise covariance, and adjusts the tracking parameters in real time, so that the visual tracking model can more accurately capture and track the motion trajectory of the target object.
[0034] Step S104, performing Kalman filter analysis and motion state prediction on the visual tracking model to obtain motion state prediction data of the target object;
[0035] Specifically, the position of the target object at the next moment is predicted by the visual tracking model to obtain the target position prediction data. The target position prediction data is subjected to Kalman filter analysis, and the prediction data is smoothed and corrected by the Kalman filter to obtain the Kalman filter analysis results. The Kalman filter analysis results are subjected to particle filter prediction to predict the position of the target object to obtain particle position prediction data. The particle filter captures the nonlinear motion characteristics of the target object by estimating the states of multiple particles. The particle position prediction data is subjected to multi-sensor data fusion, and the data from different sensors are fused to obtain fused position prediction data. The corresponding regional search model is constructed according to the fused position prediction data, and the undiscovered target update data is generated by the regional search model. The regional search model determines the areas where the target object may appear by analyzing the fused position prediction data, and focuses on monitoring these areas. The undiscovered target update data is modeled by a non-homogeneous Poisson process to obtain a non-homogeneous Poisson process model. The non-homogeneous Poisson process model is used to describe the probability distribution of the target object appearing in different areas, which is helpful to dynamically adjust the search strategy. The posterior Cramer-Rao lower bound (PCRLB) is calculated for the non-homogeneous Poisson process model to obtain PCRLB quantitative data. PCRLB quantitative data is used to quantify the uncertainty of prediction and provide a theoretical lower bound on the accuracy of the target object position estimation. An optimization objective function is constructed based on the PCRLB quantitative data. The optimization objective function ensures the accuracy and reliability of the target object position estimation by minimizing the prediction uncertainty. The chaos mapping-multi-objective collaborative differential evolution algorithm is solved by optimizing the objective function to obtain the optimal sensor scheduling solution. The chaos mapping-multi-objective collaborative differential evolution algorithm can efficiently solve multi-objective optimization problems and provide the optimal sensor scheduling strategy by combining chaos theory and differential evolution algorithm. The motion state prediction data of the target object is generated through the optimal sensor scheduling solution and visual tracking model.
[0036] Step S105, performing feature matching on the motion state prediction data of the target object to obtain second position data and second feature data;
[0037] Specifically, a local search is performed on the motion state prediction data of the target object, and a search is performed in the area near the predicted target position to obtain local search data. Feature point extraction is performed on the local search data, and feature point data of the target object is obtained by using feature point extraction algorithms such as SIFT, SURF or ORB. These feature points can effectively represent the key points and local information of the target object. Feature descriptors are generated for the feature point data. By generating feature descriptors, the image information around the feature points is quantitatively described to obtain feature descriptor data. A fast approximate nearest neighbor search is performed on the feature descriptor data, and a fast search algorithm such as FLANN is used to find the nearest neighbor matching data of each feature descriptor. Random sampling consistency analysis (RANSAC) is performed on the nearest neighbor matching data. The matching data is screened by the RANSAC algorithm to exclude false matches and obtain the inlier matching data. The inlier matching data can more accurately describe the position and state of the target object in the image. Affine transformation estimation is performed on the internal point matching data to establish the geometric relationship between the target object in different image frames, obtain the affine transformation model, and transform and apply the affine transformation model to obtain the transformed target position data, thereby achieving accurate alignment of the target position. Dense correspondence matching is performed on the transformed target position data, and matching is performed in the entire area of the target object to obtain dense matching data. The template is updated on the dense matching data to ensure that the template data is always consistent with the current state of the target object to obtain the updated template data. The second position data and second feature data corresponding to the target object are generated according to the updated template data. The second position data describes the precise position of the target object in the image, while the second feature data contains detailed feature information of the target object.
[0038] Step S106, performing visual tracking deviation calculation on the second position data and the second feature data to obtain visual tracking deviation data, and generating position adjustment parameters and angle adjustment parameters of the gimbal according to the visual tracking deviation data to control the gimbal to perform visual tracking on the target object.
[0039] Specifically, the visual tracking deviation is calculated for the second position data and the second feature data, and the visual tracking deviation data is obtained by calculating the difference between the position of the target object in the current frame and the expected position, so as to quantify the degree of deviation of the position and features of the target object during the tracking process. The pan-tilt camera is controlled by the visual tracking deviation data, and the position adjustment parameters are calculated by using the deviation data. The position adjustment parameters can determine the specific movement amount of the pan-tilt in the horizontal direction and the vertical direction, so that the camera can be realigned to the position of the target object. The pan-tilt camera is controlled by the visual tracking deviation data to obtain the angle adjustment parameters, which are used to adjust the rotation angle of the camera to ensure that the target object is always in the center of the camera's field of view. The visual feedback signal is generated by the position adjustment parameters and the angle adjustment parameters to obtain the visual feedback signal. The visual feedback signal is a real-time signal that can reflect the current adjustment state of the camera and the position change of the target object. The pan-tilt camera control commands are generated according to the visual feedback signals, and these control commands contain specific adjustment instructions for guiding the movement and rotation operations of the pan-tilt camera so as to perform real-time target tracking. The pan-tilt camera is controlled according to the pan-tilt camera control commands to perform visual tracking of the target object. After receiving the control command, the gimbal automatically adjusts the position and angle of the camera to keep the target object within the camera's field of view. This process is a closed-loop control system that continuously calculates visual tracking deviation data, generates adjustment parameters and control commands, and enables the gimbal to follow the movement of the target object in real time, ensuring that the target object is always in the best observation position of the camera.
[0040] In the embodiment of the present application, the collected environmental image sequence is comprehensively optimized by image preprocessing. Noise is effectively removed, the contrast and edge information of the image are enhanced, the image quality is improved, and the target object in the image sequence can be accurately detected by feature extraction. Multi-level feature extraction improves the accuracy of target detection, and also retains rich information such as the shape, color and texture of the target object. The first position data and the first feature data are feature aggregated by a preset graph convolution network, and tracking parameter analysis is performed through a membership model. Multi-layer convolution operations and nonlinear activation functions realize effective aggregation of features, and the membership analysis accurately calculates the relationship between each position node and the predefined tracking parameters. The motion state of the target object is predicted by Kalman filtering and particle filtering. The introduction of regional search models and non-homogeneous Poisson processes makes the update of undiscovered targets more accurate. The use of posterior Cramer-Rao lower bound calculation and optimization objective function ensures the accuracy and stability of the predicted data. The feature matching and template update of the target object are completed by local search, ensuring that the target position and features can still be accurately matched under the condition of rapid target movement and environmental changes, effectively avoiding tracking drift and mistracking. By calculating the visual tracking deviation data, the position adjustment parameters and angle adjustment parameters of the gimbal are generated, which ensures that the target object is always within the field of view of the camera and can quickly respond to the movement changes of the target, thereby improving the accuracy of the gimbal's visual tracking.
[0041] In a specific embodiment, the process of executing step S101 may specifically include the following steps:
[0042] (1) Collect a continuous sequence of environmental images of the target object through the gimbal;
[0043] (2) Perform median filtering on the continuous environment image sequence to obtain a denoised image sequence;
[0044] (3) Perform mean filtering on the denoised image sequence to obtain an initial smoothed image sequence;
[0045] (4) Performing Gaussian filtering on the initial smoothed image sequence to obtain a Gaussian smoothed image sequence;
[0046] (5) Perform histogram equalization on the Gaussian smoothed image sequence to obtain a contrast enhanced image sequence;
[0047] (6) performing gamma correction on the contrast-enhanced image sequence to obtain a brightness-corrected image sequence;
[0048] (7) Performing edge detection on the brightness-corrected image sequence to obtain an edge-enhanced image sequence;
[0049] (8) Binarizing the edge enhanced image sequence to obtain a binary image sequence;
[0050] (9) Performing morphological processing on the binary image sequence to obtain a morphologically processed image sequence;
[0051] (10) Perform image cropping on the image sequence after morphological processing to obtain a preprocessed environment image sequence.
[0052] Specifically, a continuous environment image sequence of the target object is collected through the pan-tilt system. The continuous environment image sequence is processed by median filtering. Median filtering is an effective denoising method, which is suitable for removing salt and pepper noise in images. Median filtering achieves denoising by sorting the neighborhood of each pixel and taking the middle value to replace the current pixel value. Suppose there is an image I, in which the value of each pixel is , the formula of median filtering can be expressed as:
[0053] ;
[0054] in, Represents the pixel value after filtering, median represents the median operation, and W is a defined window range. Perform mean filtering on the denoised image sequence. By calculating the mean of each pixel in the image and its neighboring pixels, the image is smoothed and small noise is reduced. The formula for mean filtering is as follows:
[0055] ;
[0056] in, represents the pixel value after filtering, is the number of pixels in the window. After completing the mean filter, the initial smoothed image sequence is Gaussian filtered. Gaussian filtering is a weighted average filtering method that further removes noise and details by performing a convolution operation on the image. The kernel function of Gaussian filtering Usually defined as:
[0057] ;
[0058] in, is the standard deviation, which determines the degree of filtering. The process of Gaussian filtering of image I can be expressed as:
[0059] ;
[0060] Perform histogram equalization on the Gaussian smoothed image sequence. By stretching the grayscale distribution of the image, the contrast of the image is enhanced, making the details in the image more obvious. The grayscale value distribution of the input image is evenly distributed, thereby enhancing the overall contrast of the image. Its basic principle is to redistribute the grayscale value of the pixel through the cumulative distribution function (CDF). Perform gamma correction on the contrast enhanced image sequence. Gamma correction changes the brightness characteristics of the image by adjusting the grayscale value of the image. The formula for gamma correction is as follows:
[0061] ;
[0062] in, is the gamma value, which is usually greater than 1 to enhance the image brightness, or less than 1 to reduce the image brightness. Perform edge detection on the brightness correction image sequence. By identifying the area where the gray value changes dramatically in the image, the contour of the target object is highlighted. Common edge detection algorithms include Canny algorithm, Sobel operator, etc. The general process of Canny edge detection includes Gaussian filtering, gradient calculation, non-maximum suppression and double threshold detection. Binarize the edge enhanced image sequence. By dividing the pixel values in the image into two categories: target and background. Usually, a fixed threshold or adaptive threshold method is used for binarization, and the points with pixel values higher than the threshold are set to white (255) and the points with values lower than the threshold are set to black (0), and a binary image sequence is obtained. Perform morphological processing on the binary image sequence. Morphological processing includes erosion and dilation operations, through which noise and small areas in the image can be removed and holes of the target object can be filled. The erosion operation can remove small white noise, while the dilation operation can fill small holes of the target object. The image sequence after morphological processing is cropped to remove unnecessary background areas and retain the main part of the target object to obtain the preprocessed environment image sequence.
[0063] In a specific embodiment, the process of executing step S102 may specifically include the following steps:
[0064] (1) Perform sliding window processing on the preprocessed environment image sequence to generate multiple candidate region image sequences;
[0065] (2) Extracting Haar features of target objects in multiple candidate region image sequences to obtain Haar feature data;
[0066] (3) Perform AdaBoost classification on the Haar feature data to obtain the target object detection result;
[0067] (4) Extract ORB features from the target detection results to obtain ORB feature data;
[0068] (5) Perform position and feature analysis on the ORB feature data to obtain first position data and first feature data.
[0069] Specifically, the preprocessed environment image sequence is processed by sliding window. The whole image is divided into multiple overlapping small blocks, namely the candidate region image sequence. The size and step length of the sliding window need to be selected according to the actual application scenario and the size of the target object. Assume that the window size is (width is w, height is h), step length is s, then for a size of For an image, the number of candidate regions N that can be generated is calculated by the following formula:
[0070] ;
[0071] Where N is the number of candidate regions generated by the sliding window, W is the width of the image, H is the height of the image, w is the width of the sliding window, h is the height of the sliding window, and s is the step size of the sliding window. Indicates that x is rounded down. Sliding window processing ensures that each partial image is covered so that no area that may contain the target object is missed. Haar feature extraction is performed on the candidate area image sequence, and features are extracted by calculating the brightness difference between different areas in the image. Haar features are based on the calculation of the weighted sum of pixel values in a rectangular area, and are usually operated using simple black and white rectangular areas. For example, a typical Haar feature can be expressed as the difference between the brightness sum of two adjacent rectangular areas:
[0072] ;
[0073] Where f is the Haar eigenvalue, Indicates that the image is at position The pixel value of and Represent two adjacent rectangular areas. Perform AdaBoost classification on Haar feature data. AdaBoost is a machine learning algorithm that builds a strong classifier by combining multiple weak classifiers. Assume there are T weak classifiers, and the weight of each weak classifier is , the final classification result can be expressed as:
[0074] ;
[0075] in, is the classification result of the strong classifier, is a sign function, if ,but ;otherwise , represents the classification result of the tth weak classifier for sample x, is the weight of the t-th weak classifier. ORB feature extraction is performed on the target detection results. ORB combines the FAST key point detector and the BRIEF descriptor and adds direction information. In the ORB feature extraction process, the key points are detected by the FAST algorithm, and then the direction of each key point is determined by calculating the grayscale centroid of the key point neighborhood. The neighborhood of each key point is described by binary features using the BRIEF descriptor to obtain ORB feature data. For example, assuming that the number of key points detected by the FAST algorithm is K and the position of each key point is , by calculating the grayscale centroid of the key point neighborhood, determine the direction of each key point . Use BRIEF descriptor to perform binary feature description on the neighborhood of each key point to obtain ORB feature data. Perform position and feature parsing on the ORB feature data to obtain first position data and first feature data. ORB feature data includes the position and descriptor information of the key point. By analyzing these data, the specific position of the target object in the image is determined, and its detailed feature description is extracted.
[0076] In a specific embodiment, the process of executing step S103 may specifically include the following steps:
[0077] (1) performing node conversion on the first position data to obtain a plurality of position nodes, and performing node attribute conversion on the first feature data according to the plurality of position nodes to obtain node attribute data of each position node;
[0078] (2) constructing a graph structure for multiple location nodes and node attribute data of each location node to obtain a location graph structure;
[0079] (3) Perform convolution operations and multi-layer convolution feature aggregation on the position graph structure through a preset graph convolution network to obtain feature aggregation results. The graph convolution network includes multiple graph convolution layers, and a nonlinear activation function is set after each graph convolution layer;
[0080] (4) Using the affiliation model, the affiliation between each location node and the predefined tracking parameters is calculated based on the feature aggregation results to obtain the optimal tracking parameter combination;
[0081] (5) Based on the optimal tracking parameter combination, select and configure the initial state and noise covariance of the Kalman filter as well as the target velocity and acceleration, and build a visual tracking model.
[0082] Specifically, the first position data is node-converted. Assume that the first position data is , where N represents the number of key points, Represents the position of the i-th key point. Through node conversion, each position data point Transformed into a node in the graph, denoted by Each node Corresponds to a position , get multiple location nodes . Perform node attribute conversion on the first feature data according to the position node. For each position node, use its corresponding feature descriptor as node attribute data. Construct a graph structure for the position node and the node attribute data of each position node. Graph structure It consists of a node set V and an edge set E, where each node represents a location node. The edge set E represents the connection relationship between nodes, which can usually be determined based on the distance between nodes or other correlations. Assume that the distance between nodes is:
[0083] ;
[0084] Define a threshold ,when When the node and There is an edge between them, namely . The preset graph convolution network performs convolution operations on the position graph structure and multi-layer convolution feature aggregation to obtain feature aggregation results. The graph convolution network can effectively extract and aggregate features of graph structure data. Assuming that the graph convolution network has L layers, the output of each convolution layer can be expressed as:
[0085] ;
[0086] in, Indicates The node feature matrix of the layer, Indicates The node feature matrix of the layer, A is the adjacency matrix of the graph, D is the degree matrix, , It is The weight matrix of the layer, It is a nonlinear activation function, such as the ReLU function. After multiple layers of convolution operations, the feature aggregation result is obtained. , which contains the feature information of each node after aggregation. Through the membership model, the membership relationship between each location node and the predefined tracking parameters is calculated according to the feature aggregation results to obtain the best tracking parameter combination. The membership model can be implemented through fuzzy logic or other methods to calculate the membership degree of each location node and the tracking parameter, so as to determine the best tracking parameter combination. Assume that the tracking parameter set is , where M is the number of parameters, and the feature aggregation result is , then the affiliation relationship can be expressed as:
[0087] ;
[0088] in, Representation Node With tracking parameters The membership degree of Representation Node The characteristics of , f is the membership function. According to the membership , select the parameter combination with the largest membership as the best tracking parameter combination. According to the best tracking parameter combination, select and configure the initial state and noise covariance of the Kalman filter as well as the target speed and acceleration to build a visual tracking model. The Kalman filter is a classic estimation and prediction algorithm used to track the motion state of the target. The state update formula of the Kalman filter is as follows:
[0089] ;
[0090] ;
[0091] in, represents the state estimate at time k, Indicates at time The predicted state of is the Kalman gain, is the observation value, H is the observation matrix, is the state covariance matrix, is the identity matrix. An accurate and efficient visual tracking model is constructed by selecting the best tracking parameter combination, configuring the initial state of the Kalman filter, the noise covariance, and the target velocity and acceleration.
[0092] In a specific embodiment, the process of executing step S104 may specifically include the following steps:
[0093] (1) Predict the position of the target object at the next moment through the visual tracking model to obtain the target position prediction data;
[0094] (2) Perform Kalman filter analysis on the target position prediction data to obtain the Kalman filter analysis results;
[0095] (3) Perform particle filter prediction on the Kalman filter analysis results to obtain particle position prediction data;
[0096] (4) Perform multi-sensor data fusion on the particle position prediction data to obtain fused position prediction data;
[0097] (5) Build a corresponding regional search model based on the fused position prediction data, and generate undiscovered target update data through the regional search model;
[0098] (6) Perform non-homogeneous Poisson process modeling on the undiscovered target update data to obtain a non-homogeneous Poisson process model;
[0099] (7) Calculate the posterior Cramer-Rao lower bound for the non-homogeneous Poisson process model, obtain the PCRLB quantitative data, and construct the optimization objective function based on the PCRLB quantitative data;
[0100] (8) By optimizing the objective function, the chaotic mapping-multi-objective collaborative differential evolution algorithm is used to solve the optimal sensor scheduling solution;
[0101] (9) Generate motion state prediction data of the target object through the optimal sensor scheduling scheme and visual tracking model.
[0102] Specifically, the visual tracking model is used to predict the position of the target object at the next moment. Assume that the current state is , then the predicted state at the next moment is It can be predicted by the state transfer equation:
[0103] ;
[0104] in, is the state predicted at the next moment, F is the state transfer matrix, B is the control matrix, is the control input. The target position prediction data is analyzed by Kalman filter. Kalman filter provides a more accurate state estimate by combining the prediction data with the observation data. The update steps of Kalman filter are as follows:
[0105] ;
[0106] ;
[0107] ;
[0108] in, is the Kalman gain, is the prediction error covariance matrix, H is the observation matrix, R is the observation noise covariance matrix, is the observed value, is the updated state estimate, and I is the identity matrix. Particle filter prediction is performed on the Kalman filter analysis results. Particle filtering uses a large number of particles to represent the state distribution and estimates the state through importance sampling and resampling steps. Assuming that N particles are used, the state of each particle is , the weight is , then the update steps of the particle filter are:
[0109] ;
[0110] in, is the observation probability. Multi-sensor data fusion is performed on the particle position prediction data to combine data from different sensors to improve the accuracy of position prediction. The fusion method can adopt weighted average or an extended form of Kalman filtering. A corresponding regional search model is constructed based on the fused position prediction data, and undetected target update data is generated through the regional search model. The regional search model is used to search in areas where target objects may appear and generate undetected target update data. The regional search model can be constructed based on Bayesian updating or other probability models. Non-homogeneous Poisson process modeling is performed on the undetected target update data to obtain a non-homogeneous Poisson process model. The non-homogeneous Poisson process is used to describe the probability distribution of target appearance at different times and spaces, and its intensity function can be expressed as:
[0111] ;
[0112] in, is the intensity function at time t and position x, is the initial strength, is the attenuation factor, is the spatial distribution function. The posterior Cramer-Rao lower bound (PCRLB) is calculated for the non-homogeneous Poisson process model to obtain the PCRLB quantitative data. PCRLB is used to quantify the uncertainty of parameter estimation, and its calculation formula is:
[0113] ;
[0114] in, is the Fisher information matrix. The optimization objective function is constructed based on the PCRLB quantization data. The optimization objective function is used to minimize the estimation error. The chaos mapping-multi-objective collaborative differential evolution algorithm is solved by optimizing the objective function to obtain the optimal sensor scheduling scheme. The chaos mapping-multi-objective collaborative differential evolution algorithm combines the initial value sensitivity of chaos mapping and the global search capability of collaborative differential evolution, and can effectively solve multi-objective optimization problems. The motion state prediction data of the target object is generated through the optimal sensor scheduling scheme and the visual tracking model. The sensor scheduling scheme is used to optimize the configuration and use of sensors, so that the visual tracking model can accurately predict the motion state of the target object.
[0115] In a specific embodiment, the process of executing step S105 may specifically include the following steps:
[0116] (1) Performing a local search on the motion state prediction data of the target object to obtain local search data;
[0117] (2) Extracting feature points from the local search data to obtain feature point data, and generating feature descriptors from the feature point data to obtain feature descriptor data;
[0118] (3) Perform fast approximate nearest neighbor search on the feature descriptor data to obtain nearest neighbor matching data, and perform random sampling consistency analysis on the nearest neighbor matching data to obtain inlier matching data;
[0119] (4) Estimating the affine transformation of the internal point matching data to obtain an affine transformation model, and transforming and applying the affine transformation model to obtain the transformed target position data;
[0120] (5) performing dense correspondence matching on the transformed target position data to obtain dense matching data, and performing template updating on the dense matching data to obtain updated template data;
[0121] (6) Generate second position data and second feature data corresponding to the target object based on the updated template data.
[0122] Specifically, a local search is performed on the motion state prediction data of the target object to obtain local search data. A fine search is performed near the predicted position of the target object to more accurately locate the target object. The local search can be performed by sliding a window or a local area based on the predicted position. For example, if the predicted position of the target object is within the image, , then you can Search in a small area centered on the image to obtain local search data. Feature point extraction is performed on the local search data to obtain feature point data. Feature point extraction is used to identify salient points in the image. Common feature point extraction algorithms include SIFT (Scale Invariant Feature Transform), SURF (Speeded Up Robust Features) and ORB (Oriented FAST and Rotated BRIEF). These algorithms can detect corners or other salient points in the image. Assuming the ORB algorithm is used, the process of extracting feature points can be expressed as:
[0123] ;
[0124] Where I represents the input image, Represents the position of the i-th feature point, and N represents the number of feature points. Generate feature descriptors for feature point data to obtain feature descriptor data. Feature descriptors are used to describe local image information of feature points. Taking the ORB algorithm as an example, the descriptor of each feature point is a binary vector, which is generated by comparing the grayscale values of the area around the feature point. Perform fast approximate nearest neighbor search on the feature descriptor data to obtain nearest neighbor matching data. Fast approximate nearest neighbor search algorithms such as FLANN (Fast Nearest Neighbor Search Library) can effectively find the nearest neighbor of each feature descriptor in the feature space. Perform random sampling consensus (RANSAC) analysis on the nearest neighbor matching data to obtain inlier matching data. The RANSAC algorithm estimates model parameters by iteratively selecting random subsets and finds the maximum inlier set. Perform affine transformation estimation on the inlier matching data to obtain an affine transformation model. Affine transformation can map points of one image to another image, and estimate affine transformation parameters by minimizing the error of inlier matching pairs. Transform the affine transformation model to obtain the transformed target position data. Affine transformation can map the target position from the current frame to the next frame. Dense correspondence matching is performed on the transformed target position data to obtain dense matching data. Dense correspondence matching obtains more accurate matching results by matching more feature points in the target area. Dense matching can be implemented using optical flow method or dense descriptor matching method. The template is updated on the dense matching data to obtain updated template data. Template update enables the template to adapt to changes in the target object by integrating the matching results of the current frame into the template. Second position data and second feature data corresponding to the target object are generated according to the updated template data. The second position data represents the position of the target object in the current frame, and the second feature data represents the updated feature descriptor of the target object.
[0125] In a specific embodiment, the process of executing step S106 may specifically include the following steps:
[0126] (1) performing visual tracking deviation calculation on the second position data and the second feature data to obtain visual tracking deviation data;
[0127] (2) Using visual tracking deviation data to control the pan / tilt camera translation and obtain position adjustment parameters, and using visual tracking deviation data to control the pan / tilt camera rotation and obtain angle adjustment parameters;
[0128] (3) Generate a visual feedback signal by adjusting the position parameters and the angle parameters, obtain a visual feedback signal, and generate a pan / tilt camera control command according to the visual feedback signal;
[0129] (4) Control the gimbal to visually track the target object according to the gimbal camera control commands.
[0130] Specifically, the visual tracking deviation is calculated for the second position data and the second feature data to obtain the visual tracking deviation data. Assume that the second position data is , which is the position data of the target object in the current frame, and the target center position of the camera is The visual tracking deviation can be obtained by calculating the deviation between the target object position and the camera center position. The pan-tilt camera is controlled by the visual tracking deviation data to obtain the position adjustment parameters. Assuming that the pan-tilt camera can be adjusted in the horizontal and vertical directions, the position adjustment parameters can be expressed as:
[0131] ;
[0132] ;
[0133] in, represents the horizontal adjustment parameter, Represents the vertical adjustment parameter, is the proportional constant of position adjustment. At the same time, the rotation of the PTZ camera is controlled by visual tracking deviation data to obtain the angle adjustment parameter. Assume that the rotation angle of the PTZ camera in the horizontal direction is , the vertical direction is , the angle adjustment parameter can be expressed as:
[0134] ;
[0135] ;
[0136] in, Indicates the horizontal rotation angle adjustment parameter, Indicates the vertical rotation angle adjustment parameter, is the proportional constant of the angle adjustment. The visual feedback signal is generated by the position adjustment parameter and the angle adjustment parameter to obtain the visual feedback signal. The visual feedback signal is used to provide real-time feedback of the current camera status and position for dynamic adjustment. The visual feedback signal can be generated by fusing the position and angle adjustment parameters:
[0137] ;
[0138] ;
[0139] in, Represents the horizontal feedback signal, represents the vertical feedback signal, and f is a function that combines the position and angle adjustment parameters. The PTZ camera control commands are generated based on the visual feedback signal. These control commands are used to guide the actual action of the PTZ camera to align it with the position of the target object. The control command can be expressed as:
[0140] ;
[0141] ;
[0142] in, Indicates the horizontal control command, represents the vertical control command, and g is a function that converts the feedback signal into a control command. According to the PTZ camera control command, the PTZ is controlled to visually track the target object. After receiving the control command, the PTZ will adjust the position and angle of the camera so that the target object is always in the center of the camera's field of view.
[0143] The above describes the visual tracking method based on image processing in the embodiment of the present application. The following describes the visual tracking device based on image processing in the embodiment of the present application. Figure 2 In the embodiment of the present application, an embodiment of a visual tracking device based on image processing includes:
[0144] The acquisition module 201 is used to acquire a continuous environment image sequence of the target object through the pan-tilt head and perform image preprocessing to obtain a preprocessed environment image sequence;
[0145] The detection module 202 is used to perform target detection analysis on the target object in the pre-processed environment image sequence to obtain a target detection result, and perform feature extraction on the target detection result to obtain first position data and first feature data;
[0146] A construction module 203 is used to input the first position data and the first feature data into a preset graph convolutional network to perform feature aggregation and tracking parameter affiliation analysis to obtain an optimal tracking parameter combination, and to construct a visual tracking model according to the optimal tracking parameter combination;
[0147] Prediction module 204, used to perform Kalman filter analysis and motion state prediction on the visual tracking model to obtain motion state prediction data of the target object;
[0148] A matching module 205 is used to perform feature matching on the motion state prediction data of the target object to obtain second position data and second feature data;
[0149] The control module 206 is used to calculate the visual tracking deviation of the second position data and the second feature data to obtain the visual tracking deviation data, and generate the position adjustment parameters and angle adjustment parameters of the gimbal according to the visual tracking deviation data to control the gimbal to perform visual tracking on the target object.
[0150] Through the cooperation of the above components, the collected environmental image sequence is fully optimized through image preprocessing. The noise is effectively removed, the contrast and edge information of the image are enhanced, and the image quality is improved. The target object in the image sequence can be accurately detected through feature extraction. Multi-level feature extraction improves the accuracy of target detection and retains rich information such as the shape, color and texture of the target object. The preset graph convolution network is used to aggregate the first position data and the first feature data, and the tracking parameter analysis is performed through the membership model. Multi-layer convolution operations and nonlinear activation functions realize the effective aggregation of features. The membership analysis accurately calculates the relationship between each position node and the predefined tracking parameters. The motion state of the target object is predicted through Kalman filtering and particle filtering. The introduction of regional search model and non-homogeneous Poisson process makes the update of undiscovered targets more accurate. The use of posterior Cramer-Rao lower bound calculation and optimization objective function ensures the accuracy and stability of the predicted data. The feature matching and template update of the target object are completed through local search, ensuring that the target position and features can still be accurately matched under the condition of rapid target movement and environmental changes, effectively avoiding tracking drift and mistracking. By calculating the visual tracking deviation data, the position adjustment parameters and angle adjustment parameters of the gimbal are generated, which ensures that the target object is always within the field of view of the camera and can quickly respond to the movement changes of the target, thereby improving the accuracy of the gimbal's visual tracking.
[0151] The present application also provides a visual tracking device based on image processing, which includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor executes the steps of the image processing-based visual tracking method in the above-mentioned embodiments.
[0152] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the image processing-based visual tracking method.
[0153] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0154] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0155] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A visual tracking method based on image processing, characterized in that: The image processing-based visual tracking method comprises: The continuous environment image sequence of the target object is collected by the pan / tilt system and image preprocessing is performed to obtain a preprocessed environment image sequence; Performing target detection analysis on the target object in the preprocessed environment image sequence to obtain a target detection result, and performing feature extraction on the target detection result to obtain first position data and first feature data; Inputting the first position data and the first feature data into a preset graph convolutional network to perform feature aggregation and tracking parameter affiliation analysis to obtain an optimal tracking parameter combination, and constructing a visual tracking model according to the optimal tracking parameter combination; Performing Kalman filter analysis and motion state prediction on the visual tracking model to obtain motion state prediction data of the target object; Performing feature matching on the motion state prediction data of the target object to obtain second position data and second feature data; Perform visual tracking deviation calculation on the second position data and the second feature data to obtain visual tracking deviation data, and generate position adjustment parameters and angle adjustment parameters of the gimbal according to the visual tracking deviation data to control the gimbal to perform visual tracking on the target object.
2. The visual tracking method based on image processing according to claim 1, characterized in that: The method of collecting a continuous environment image sequence of the target object through the pan / tilt platform and performing image preprocessing to obtain a preprocessed environment image sequence includes: Collect a continuous sequence of environmental images of the target object through the pan-tilt system; Performing median filtering on the continuous environment image sequence to obtain a denoised image sequence; Performing mean filtering on the denoised image sequence to obtain an initial smoothed image sequence; Performing Gaussian filtering on the initial smoothed image sequence to obtain a Gaussian smoothed image sequence; Performing histogram equalization on the Gaussian smoothed image sequence to obtain a contrast enhanced image sequence; Performing gamma correction on the contrast-enhanced image sequence to obtain a brightness-corrected image sequence; Performing edge detection on the brightness-corrected image sequence to obtain an edge-enhanced image sequence; Binarizing the edge-enhanced image sequence to obtain a binary image sequence; Performing morphological processing on the binary image sequence to obtain a morphologically processed image sequence; The image sequence after the morphological processing is cropped to obtain a preprocessed environment image sequence.
3. The visual tracking method based on image processing according to claim 1, characterized in that: The performing target detection analysis on the target object in the preprocessed environment image sequence to obtain a target detection result, and performing feature extraction on the target detection result to obtain first position data and first feature data, includes: Performing sliding window processing on the preprocessed environment image sequence to generate multiple candidate area image sequences; Extracting Haar features of target objects in the plurality of candidate region image sequences to obtain Haar feature data; Performing AdaBoost classification on the Haar feature data to obtain a target detection result of the target object; Performing ORB feature extraction on the target detection result to obtain ORB feature data; The ORB feature data is subjected to position and feature analysis to obtain first position data and first feature data.
4. The visual tracking method based on image processing according to claim 1, characterized in that: The step of inputting the first position data and the first feature data into a preset graph convolutional network for feature aggregation and tracking parameter affiliation analysis to obtain an optimal tracking parameter combination, and constructing a visual tracking model according to the optimal tracking parameter combination includes: Performing node conversion on the first position data to obtain a plurality of position nodes, and performing node attribute conversion on the first feature data according to the plurality of position nodes to obtain node attribute data of each position node; Constructing a graph structure for the plurality of location nodes and the node attribute data of each location node to obtain a location graph structure; Performing convolution operation and multi-layer convolution feature aggregation on the position graph structure through a preset graph convolution network to obtain a feature aggregation result, wherein the graph convolution network includes multiple graph convolution layers, and a nonlinear activation function is set after each graph convolution layer; By using a membership model, the membership relationship between each location node and the predefined tracking parameters is calculated according to the feature aggregation result to obtain the best tracking parameter combination; According to the optimal tracking parameter combination, the initial state and noise covariance of the Kalman filter as well as the target speed and acceleration are selected and configured to construct a visual tracking model.
5. The visual tracking method based on image processing according to claim 1, characterized in that: The performing of Kalman filter analysis and motion state prediction on the visual tracking model to obtain motion state prediction data of the target object includes: Predicting the position of the target object at the next moment by using the visual tracking model to obtain target position prediction data; Performing Kalman filter analysis on the target position prediction data to obtain a Kalman filter analysis result; Performing particle filter prediction on the Kalman filter analysis result to obtain particle position prediction data; Performing multi-sensor data fusion on the particle position prediction data to obtain fused position prediction data; Constructing a corresponding regional search model according to the fused position prediction data, and generating undiscovered target update data through the regional search model; Performing non-homogeneous Poisson process modeling on the undiscovered target update data to obtain a non-homogeneous Poisson process model; Performing a posterior Cramer-Rao lower bound calculation on the non-homogeneous Poisson process model to obtain PCRLB quantitative data, and constructing an optimization objective function based on the PCRLB quantitative data; The optimal sensor scheduling scheme is obtained by performing a chaotic mapping-multi-objective collaborative differential evolution algorithm to solve the optimization objective function; The motion state prediction data of the target object is generated by the optimal sensor scheduling scheme and the visual tracking model.
6. The visual tracking method based on image processing according to claim 1, characterized in that: The performing feature matching on the motion state prediction data of the target object to obtain second position data and second feature data includes: Performing a local search on the motion state prediction data of the target object to obtain local search data; Extracting feature points from the local search data to obtain feature point data, and generating feature descriptors from the feature point data to obtain feature descriptor data; Performing a fast approximate nearest neighbor search on the feature descriptor data to obtain nearest neighbor matching data, and performing a random sampling consistency analysis on the nearest neighbor matching data to obtain inlier matching data; Performing affine transformation estimation on the interior point matching data to obtain an affine transformation model, and performing transformation application on the affine transformation model to obtain transformed target position data; Performing dense correspondence matching on the transformed target position data to obtain dense matching data, and performing template updating on the dense matching data to obtain updated template data; The second position data and the second feature data corresponding to the target object are generated according to the updated template data.
7. The visual tracking method based on image processing according to claim 1, characterized in that: The performing visual tracking deviation calculation on the second position data and the second feature data to obtain visual tracking deviation data, and generating position adjustment parameters and angle adjustment parameters of the gimbal according to the visual tracking deviation data, and controlling the gimbal to perform visual tracking on the target object, comprises: Performing visual tracking deviation calculation on the second position data and the second feature data to obtain visual tracking deviation data; The pan-tilt camera is controlled to translate using the visual tracking deviation data to obtain a position adjustment parameter, and the pan-tilt camera is controlled to rotate using the visual tracking deviation data to obtain an angle adjustment parameter; Generating a visual feedback signal by using the position adjustment parameter and the angle adjustment parameter to obtain a visual feedback signal, and generating a pan / tilt camera control command according to the visual feedback signal; The pan / tilt camera is controlled to visually track the target object according to the pan / tilt camera control command.
8. A visual tracking device based on image processing, characterized in that: The image processing-based visual tracking device comprises: An acquisition module is used to acquire a continuous environment image sequence of a target object through a pan / tilt platform and perform image preprocessing to obtain a preprocessed environment image sequence; A detection module, used for performing target detection analysis on the target object in the preprocessed environment image sequence to obtain a target detection result, and performing feature extraction on the target detection result to obtain first position data and first feature data; A construction module, used for inputting the first position data and the first feature data into a preset graph convolutional network to perform feature aggregation and tracking parameter affiliation analysis to obtain an optimal tracking parameter combination, and constructing a visual tracking model according to the optimal tracking parameter combination; A prediction module, used for performing Kalman filter analysis and motion state prediction on the visual tracking model to obtain motion state prediction data of the target object; A matching module, used for performing feature matching on the motion state prediction data of the target object to obtain second position data and second feature data; The control module is used to calculate the visual tracking deviation of the second position data and the second feature data to obtain the visual tracking deviation data, and generate the position adjustment parameters and angle adjustment parameters of the gimbal according to the visual tracking deviation data to control the gimbal to perform visual tracking on the target object.
9. A visual tracking device based on image processing, characterized in that: The image processing-based visual tracking device includes: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the image processing-based visual tracking device to perform the image processing-based visual tracking method according to any one of claims 1-7.
10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the image processing-based visual tracking method as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Marine multi-target long-term detection and tracking method based on cooperation of unmanned ship-mounted marine radar and visual image
CN113850848A
Target behavior tracking method and system based on tracking camera
CN116977434A
Visual tracking method and device, unmanned aerial vehicle and terminal device
US20180143637A1
Object tracking method and apparatus, and electronic device
WO2024011852A1
