Method, device, equipment and storage medium for determining posture based on visual tracking

Through the combination of multi-step image processing, Bayesian network, and reinforcement learning algorithms, the stability problem of pose determination in complex dynamic environments is solved, and the visual tracking accuracy and stability of the gimbal are improved.

CN118365707BActive Publication Date: 2024-09-03HOHEM TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410765998.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-03
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

Existing visual tracking-based pose determination methods have low stability and reliability in complex dynamic environments, and are particularly difficult to maintain efficiency and accuracy under conditions of environmental changes, unstable lighting, and device jitter.

Method used

Obtain target environment images with high contrast and clarity through multi-step image conversion and enhancement processing, combine hierarchical feature map extraction, non-maximum suppression and extended Kalman filtering to ensure the stability of visual feature points, and use Bayesian network and enhancement The learning algorithm integrates IMU sensor data for posture compensation, dynamic force balance analysis and adjustment of motion parameters to achieve path adjustment and feedback control.

Benefits of technology

It significantly improves the visual tracking accuracy of the gimbal, reduces feature matching errors, generates more accurate pose compensation data, and ensures stability and accuracy in dynamic environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118365707B
    Figure CN118365707B
Patent Text Reader

Abstract

The present application relates to the field of image processing technology, and discloses a method, device, equipment and storage medium for determining posture based on visual tracking. The method comprises: obtaining a target environment image of a target object through a gimbal according to a visual tracking path; extracting visual feature points to obtain multiple target visual feature points and target feature descriptors; performing feature matching to obtain feature point pair matching results and performing posture analysis and feedforward compensation to obtain initial posture compensation data; performing IMU sensor data fusion and posture compensation optimization based on a Bayesian network and reinforcement learning algorithm to obtain first posture compensation data; performing dynamic force balance compensation calculation to obtain second posture compensation data; adjusting the visual tracking path according to the second posture compensation data to obtain path adjustment parameters, and performing feedback control on the path adjustment parameters to generate a target control signal. The present application improves the visual tracking accuracy of the gimbal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, device, equipment and storage medium for determining a posture based on visual tracking. Background Art

[0002] Accurate pose determination is crucial to achieve efficient and accurate task execution. Currently, methods based on visual tracking have attracted much attention due to their high resolution and wide application. However, existing methods often face many challenges such as environmental changes, unstable lighting conditions, and device jitter when dealing with complex dynamic environments and diverse application scenarios. Although traditional image processing technology can provide certain pose information in static environments, its stability and reliability are greatly reduced in dynamic environments. Summary of the invention

[0003] The present application provides a method, apparatus, device and storage medium for determining a posture based on visual tracking, which are used to improve the visual tracking accuracy of a gimbal.

[0004] In a first aspect, the present application provides a method for determining a posture based on visual tracking, and the method for determining a posture based on visual tracking comprises:

[0005] Acquire an initial environment image of the target object through the gimbal according to the visual tracking path, and perform image conversion and image enhancement on the initial environment image to obtain a target environment image;

[0006] Extracting visual feature points from the target environment image to obtain a plurality of target visual feature points, and creating a target feature descriptor for each target visual feature point;

[0007] Performing feature matching on the target feature descriptor to obtain a feature point pair matching result, and performing posture analysis and feedforward compensation on the gimbal according to the feature point pair matching result to obtain initial posture compensation data;

[0008] Based on the Bayesian network and reinforcement learning algorithm, the initial posture compensation data is subjected to IMU sensor data fusion and posture compensation optimization to obtain the first posture compensation data;

[0009] Performing dynamic force balance compensation calculation on the first posture compensation data to obtain second posture compensation data;

[0010] The visual tracking path is adjusted according to the second posture compensation data to obtain a path adjustment parameter, and feedback control is performed on the path adjustment parameter to generate a target control signal.

[0011] In a second aspect, the present application provides a posture determination device based on visual tracking, the posture determination device based on visual tracking comprising:

[0012] An acquisition module is used to acquire an initial environment image of a target object through a pan-tilt platform according to a visual tracking path, and to perform image conversion and image enhancement on the initial environment image to obtain a target environment image;

[0013] A creation module is used to extract visual feature points from the target environment image to obtain multiple target visual feature points, and to create a target feature descriptor for each target visual feature point;

[0014] A matching module, used for performing feature matching on the target feature descriptor to obtain a feature point pair matching result, and performing posture analysis and feedforward compensation on the gimbal according to the feature point pair matching result to obtain initial posture compensation data;

[0015] An optimization module, for performing IMU sensor data fusion and posture compensation optimization on the initial posture compensation data based on a Bayesian network and a reinforcement learning algorithm to obtain first posture compensation data;

[0016] A calculation module, used for performing dynamic force balance compensation calculation on the first posture compensation data to obtain second posture compensation data;

[0017] An adjustment module is used to adjust the visual tracking path according to the second posture compensation data to obtain a path adjustment parameter, and to perform feedback control on the path adjustment parameter to generate a target control signal.

[0018] The third aspect of the present application provides a posture determination device based on visual tracking, 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 posture determination device based on visual tracking executes the above-mentioned posture determination method based on visual tracking.

[0019] A fourth aspect of the present application provides a computer-readable storage medium, which stores instructions that, when executed on a computer, enable the computer to execute the above-mentioned method for determining a posture based on visual tracking.

[0020] In the technical solution provided by the present application, by performing multi-step image conversion and enhancement processing such as color feature extraction, structural feature calculation, object shadow segmentation and linear scan fusion on the initial environment image, a target environment image with higher contrast and clarity can be obtained. The device jitter influence parameter is used to identify the surface of the object, and multiple processing technologies such as hierarchical feature map extraction, non-maximum suppression and extended Kalman filtering are combined to ensure that the extracted visual feature points have high stability and high reliability. At the same time, by generating highly distinguishable target feature descriptors, the accuracy and efficiency of feature matching can be improved. In the feature matching stage, combined with the feedforward compensation technology, the matching error can be significantly reduced, the initial posture compensation data can be obtained, and the accuracy of posture analysis can be improved. Based on the Bayesian network and reinforcement learning algorithm, the IMU sensor data is fully utilized for fusion processing to optimize the initial posture compensation data and generate more accurate first posture compensation data. Through dynamic force analysis, the dynamic force disputes caused by factors such as friction, gap and command delay in the dynamic environment can be effectively handled to obtain stable second posture compensation data. In the path adjustment and feedback control stage, the precise adjustment of the visual tracking path is ensured by path repositioning. Combined with the generation mechanism of observation-repair action pairs, it is possible to output stable target control signals, thereby improving the visual tracking accuracy of the gimbal. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] 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.

[0022] Figure 1 A schematic diagram of an embodiment of a method for determining a posture based on visual tracking in an embodiment of the present application;

[0023] Figure 2 Schematic diagram of an embodiment of a posture determination device based on visual tracking in an embodiment of the present application. DETAILED DESCRIPTION

[0024] Embodiments of the present application provide a method, apparatus, device and storage medium for determining a posture based on visual tracking. 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 interchanged 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.

[0025] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 In the embodiment of the present application, an embodiment of the method for determining a posture based on visual tracking includes:

[0026] Step S101, obtaining an initial environment image of a target object through a pan-tilt platform according to a visual tracking path, and performing image conversion and image enhancement on the initial environment image to obtain a target environment image;

[0027] It is understandable that the execution subject of the present application may be a posture determination device based on visual tracking, 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.

[0028] Specifically, the initial environment image of the target object is obtained by the gimbal according to the predetermined visual tracking path, and the gimbal moves along the set path to ensure that the full view of the target object is captured. The color feature extraction of the initial environment image is performed, and the overall color information of the image is extracted by calculating the average color feature of the image. At the same time, the structural feature calculation of the initial environment image is performed, and the average structural feature of the image is obtained by the local gradient method. According to the extracted average color feature and average structural feature, the initial environment image is converted to obtain a standard environment image. The conversion process can unify the color and structural features of the image, making the subsequent processing more stable and consistent. After obtaining the standard environment image, the object shadow segmentation similarity calculation is performed on it. By accurately segmenting and similarity measuring the shadow part in the image, the object shadow segmentation similarity measurement is obtained. This measurement reflects the distribution and characteristics of the shadow part in the image. Based on the object shadow segmentation similarity measurement, the standard environment image is subjected to linear scanning fusion measurement. Through linear scanning, different parts of the image are fused to obtain a comprehensive measurement result to enhance the overall characteristics of the image. According to the linear scanning fusion measurement, the standard environment image is subjected to image boundary enhancement and image refinement. Image boundary enhancement refers to highlighting the boundaries in an image through an algorithm to make the boundaries of the image clearer, while image refinement refers to removing redundant information in the image to make the details of the image more refined and clear, ultimately obtaining the target environment image.

[0029] Step S102: extract visual feature points from the target environment image to obtain multiple target visual feature points, and create a target feature descriptor for each target visual feature point;

[0030] Specifically, the target environment image is subjected to object surface recognition to obtain an initial object surface recognition result. The device jitter influence parameters are obtained, which can reflect the degree of jitter generated by the device during the image capture process. According to the device jitter influence parameters, the initial object surface recognition result is processed to eliminate the negative impact of jitter and output more accurate object surface information. The object surface information is subjected to feature hierarchical analysis, and different feature hierarchies of the object surface are analyzed to obtain feature hierarchical information. The feature hierarchical weight analysis is performed on the feature hierarchical information, and the feature hierarchical weight is obtained by analyzing the importance of different feature hierarchies. According to the feature hierarchical weight, the target environment image is subjected to hierarchical feature map extraction to obtain a target hierarchical feature map. The hierarchical feature map can more clearly display the details of different feature hierarchies in the image, making the detection of feature points more accurate. Based on the target hierarchical feature map, feature point detection is performed to preliminarily obtain multiple initial visual feature points. These initial feature points cover important features that may exist in the image. In order to further improve the accuracy of the feature points, the initial visual feature points are subjected to non-maximum suppression to remove unimportant feature points, and finally multiple target visual feature points are obtained, which can represent important feature information in the image. Descriptors are generated for multiple target visual feature points respectively, and each target visual feature point generates a corresponding target feature descriptor through a feature description algorithm. The descriptor can describe the specific information and features of the feature point in detail. Extended Kalman filtering is performed to optimize and adjust the target feature descriptor, eliminate noise and errors, and make the target feature descriptor of each target visual feature point more accurate and reliable.

[0031] Step S103, performing feature matching on the target feature descriptor to obtain feature point pair matching results, and performing posture analysis and feedforward compensation on the gimbal according to the feature point pair matching results to obtain initial posture compensation data;

[0032] Specifically, the target feature descriptor is divided into object contours, and the contour detection algorithm is used to extract the contour of the object in the image to obtain the object contour set. The object contour set is extracted from space points, and the points in the object contour set are converted into space points using the three-dimensional point cloud technology to form a set of space points. The object contour set is respectively mapped to quadratic curves, and each contour in the object contour set is mapped to a quadratic curve using the mathematical curve fitting technology. The quadratic curve is converted into a plane element, and the quadratic curve is converted into a plurality of plane element points using the geometric transformation method. These plane element points represent the basic structural features of the object in the three-dimensional space. The feature point distance measurement is performed on the plurality of plane element points, and the target matching distance is obtained by calculating the distance between the plane element points. The target matching distance can reflect the similarity between different feature points. The target matching distance is used to perform nearest neighbor matching, and the feature points are matched using the nearest neighbor algorithm to obtain the feature point pair matching result. The matching result can accurately find the corresponding feature point pair in the image. The motion vector analysis is performed on the feature point pair matching result to calculate the target motion vector. The target motion vector can reflect the motion state and direction of the object in space. The target motion vector is used to calculate the gimbal tracking posture and obtain the gimbal tracking posture data. These data include the position and posture of the gimbal in three-dimensional space. Feedforward compensation is performed on the gimbal through the gimbal tracking posture data. Feedforward compensation is a method of pre-adjusting the gimbal position and posture, which can reduce errors and improve accuracy in actual operation. Through compensation calculation, the initial posture compensation data is finally obtained.

[0033] Step S104: Based on the Bayesian network and reinforcement learning algorithm, the initial posture compensation data is subjected to IMU sensor data fusion and posture compensation optimization to obtain the first posture compensation data;

[0034] Specifically, the IMU sensor data of the gimbal is obtained, including information such as acceleration and angular velocity of the gimbal in various directions during movement. Wavelet transform is performed on the IMU sensor data to convert the sensor data into components of different frequency bands to obtain the target sensor data. A Bayesian network is constructed for the target sensor data. The Bayesian network is a probabilistic graph model that can represent the dependency between variables. By constructing a Bayesian network, the uncertainty and correlation in the sensor data are modeled. Fault mode analysis is performed on the Bayesian network to identify possible fault modes and obtain fault mode data. These fault mode data help understand abnormal conditions and potential problems in the sensor data. Prior probability calculation is performed on the fault mode data. The prior probability reflects the probability of various fault modes occurring when there is no observation data. A posteriori inference is performed on the prior probability, and the Bayesian theorem is used in combination with the actual observation data to obtain the Bayesian inference result. The inference result provides the updated probability of various fault modes occurring under the current observation conditions. Based on the Bayesian inference results, the initial posture compensation strategy of the gimbal is generated. This strategy aims to make preliminary compensation for the posture of the gimbal to reduce the error caused by inaccurate sensor data. The reward feedback data is calculated for the initial posture compensation strategy. By comparing the compensated posture with the actual expected posture, the reward feedback parameters are calculated. These parameters reflect the effectiveness of the compensation strategy. Based on the reward feedback parameters, the initial posture compensation strategy is updated. The reinforcement learning algorithm is used to continuously adjust and improve the compensation strategy to generate the target posture compensation strategy. Based on the target posture compensation strategy, the initial posture compensation data is optimized for posture compensation. The optimized compensation strategy is used to adjust the initial compensation data to obtain the first posture compensation data.

[0035] Step S105, performing dynamic force balance compensation calculation on the first posture compensation data to obtain second posture compensation data;

[0036] Specifically, the force analysis is performed on the first posture compensation data, and the various forces on the gimbal in different states are calculated using the mechanical analysis method and the actual physical parameters of the gimbal, and the dynamic force analysis results are generated. The analysis results provide detailed information on the dynamic forces borne by the gimbal during movement, including the magnitude, direction and point of action of the force. The threshold analysis is performed on the dynamic force analysis results to determine the target threshold. The target threshold refers to the maximum or minimum force value that the gimbal can withstand under specific conditions. The determination of this value needs to be determined by combining the physical characteristics of the gimbal and the actual working environment, and through calculation and experimental verification. When the force exceeds this threshold, the gimbal may experience abnormal shaking or other unstable phenomena. Based on the target threshold and the dynamic force analysis results, the gimbal is subjected to force point position analysis to generate multiple dynamic force force points. The force point position analysis includes calculating the specific positions of each force point on the gimbal under different dynamic forces. These force points are the main points of force action and determine the motion state and posture of the gimbal. The device jitter intensity is analyzed for multiple dynamic force stress points respectively. The device jitter intensity of each stress point under different stress conditions is calculated through sensor data and mechanical models, and the target device jitter intensity corresponding to each dynamic force stress point is generated. The device jitter intensity reflects the degree of jitter that the gimbal is subjected to at a specific stress point. The magnitude of the jitter intensity directly affects the stability and accuracy of the gimbal. Based on the target device jitter intensity, balance compensation calculation is performed. By adjusting the motion parameters and control strategy of the gimbal, the jitter intensity of each stress point is within a reasonable range, and the dynamic force is evenly distributed to obtain the second posture compensation data. The second posture compensation data is the optimal posture data of the gimbal during movement after dynamic force balance compensation. These data can effectively eliminate the jitter and error caused by unbalanced dynamic force, and ensure the stability and accuracy of the gimbal in different motion states.

[0037] Step S106: adjusting the visual tracking path according to the second posture compensation data to obtain a path adjustment parameter, and performing feedback control on the path adjustment parameter to generate a target control signal.

[0038] Specifically, the visual tracking path is repositioned according to the second posture compensation data. By analyzing the compensation data, the optimal tracking path of the gimbal in space is re-determined to ensure that the gimbal can stably and accurately track the target object. The visual tracking path is segmented according to the path repositioning data, and the entire path is decomposed into multiple segmented paths. The segmented path can more carefully describe the movement of the gimbal in each small period of time during the tracking process, which helps to improve the accuracy of the path adjustment. Each segmented path is optimized according to the repositioning data to ensure that the movement of the gimbal is optimal in each time period. The visual tracking path is adjusted for multiple segmented paths. By adjusting each segmented path, a path adjustment parameter is obtained. Feedback monitoring is performed on the path adjustment parameter and the path repositioning data. Feedback data is obtained by detecting the difference between the actual motion state of the gimbal and the expected path in real time. The feedback data can reflect the deviation and error that may occur during the actual motion process. Error calculation is performed on the feedback data, and an error value is obtained by comparing the actual motion trajectory with the expected path. The error value is a deviation indicator between the actual motion and the ideal path, which can help identify specific adjustment needs. The error value is adjusted in real time. According to the real-time monitoring data, the motion parameters of the gimbal are dynamically adjusted to obtain the initial control signal. The initial control signal is the preliminary control parameter generated according to the error calculation result after real-time adjustment. The initial control signal is observed and repaired. By continuously observing the actual motion state of the gimbal and making corresponding corrections based on the observation results, it is ensured that the gimbal can always stay on the optimal motion trajectory and generate the target control signal of the gimbal.

[0039] In the embodiment of the present application, by performing multi-step image conversion and enhancement processing such as color feature extraction, structural feature calculation, object shadow segmentation and linear scan fusion on the initial environment image, a target environment image with higher contrast and clarity can be obtained. The device jitter influence parameter is used to identify the surface of the object, and multiple processing technologies such as hierarchical feature map extraction, non-maximum suppression and extended Kalman filtering are combined to ensure that the extracted visual feature points have high stability and high reliability. At the same time, by generating highly distinguishable target feature descriptors, the accuracy and efficiency of feature matching can be improved. In the feature matching stage, combined with the feedforward compensation technology, the matching error can be significantly reduced, the initial posture compensation data can be obtained, and the accuracy of posture analysis can be improved. Based on the Bayesian network and reinforcement learning algorithm, the IMU sensor data is fully utilized for fusion processing to optimize the initial posture compensation data and generate more accurate first posture compensation data. Through dynamic force analysis, the dynamic force disputes caused by factors such as friction, gap and command delay in the dynamic environment can be effectively handled to obtain stable second posture compensation data. In the path adjustment and feedback control stage, the precise adjustment of the visual tracking path is ensured by path repositioning. Combined with the generation mechanism of observation-repair action pairs, it is possible to output stable target control signals, thereby improving the visual tracking accuracy of the gimbal.

[0040] In a specific embodiment, the process of executing step S101 may specifically include the following steps:

[0041] (1) Obtain the initial environment image of the target object through the gimbal according to the visual tracking path;

[0042] (2) Extract color features from the initial environment image to obtain average color features, and calculate structural features from the initial environment image using local gradients to obtain average structural features;

[0043] (3) Perform image conversion on the initial environment image according to the average color features and the average structural features to obtain a standard environment image;

[0044] (4) Calculate the object shadow segmentation similarity of the standard environment image to obtain the object shadow segmentation similarity measure;

[0045] (5) Perform linear scanning fusion measurement on the standard environment image based on the object shadow segmentation similarity measurement to obtain the linear scanning fusion measurement;

[0046] (6) Based on the linear scan fusion metric, the standard environment image is enhanced and refined to obtain the target environment image.

[0047] Specifically, the gimbal moves according to a pre-set visual tracking path and obtains the initial environment image of the target object. When capturing images, the gimbal uses its motion control system to ensure that the image of the target object can be captured at different positions and angles to obtain the initial environment image. Color features are extracted from the initial environment image. By analyzing the color information in the image, the average color features of the image are obtained. While extracting the color features, the structural features of the initial environment image are calculated. The local gradient of the image is calculated to obtain the structural features. The local gradient reflects the changes in the pixel values ​​in the image and can reveal the edge and texture information in the image. The specific calculation method is to use the Sobel operator to perform a convolution operation on the image to obtain the gradient image of the image:

[0048] ;

[0049] in, and Represent the gradient of the image in the horizontal and vertical directions respectively, Represents the total gradient amplitude image. The average structural features of the initial environment image are obtained by averaging the gradient image. According to the average color features and the average structural features, the initial environment image is converted to obtain a standard environment image. The initial environment image is standardized so that it has uniform color and structural features, which is convenient for subsequent processing. The conversion method can be color space transformation, histogram equalization, etc. Through the transformation, the color and brightness differences between different images are eliminated to make the image more consistent. The object shadow segmentation similarity calculation is performed on the standard environment image to identify and segment the shadow part in the image, and calculate the similarity between the shadow part and other parts. Using the shadow detection technology, the shadow area is identified by analyzing the brightness changes and color features in the image. By comparing the features of the shadow area and the non-shadow area, the object shadow segmentation similarity measure is calculated. The similarity measure can be expressed by the following formula:

[0050] ;

[0051] in, represents the shadow segmentation similarity metric, Indicates the number of shadow areas segmented in the image. Indicates The number of pixels in the shadow area, Represents the distance between the shadow area and the non-shadow area in the feature space. Based on the object shadow segmentation similarity measurement, the standard environment image is measured by linear scanning fusion. The features in the image are fused by linear scanning to obtain a comprehensive measurement result. According to the linear scanning fusion measurement, the standard environment image is enhanced in image boundary enhancement and image refinement. The image clarity is improved by strengthening the boundaries in the image to make them more obvious. The edge detection algorithm, such as Canny edge detection, is used to enhance the edge of the image. Image refinement is to remove redundant information in the image to make the details of the image clearer. The refinement algorithm can use morphological operations, such as skeleton extraction. Finally, the target environment image is obtained.

[0052] In a specific embodiment, the process of executing step S102 may specifically include the following steps:

[0053] (1) Perform object surface recognition on the target environment image, obtain the initial object surface recognition result, and obtain the device jitter impact parameters;

[0054] (2) Processing the initial object surface recognition result according to the device jitter influence parameter and outputting the object surface information;

[0055] (3) Performing feature hierarchical analysis on the surface information of the object to obtain feature hierarchical information, and performing hierarchical weight analysis on the feature hierarchical information to obtain feature hierarchical weights;

[0056] (4) Extracting a hierarchical feature map of the target environment image according to the feature hierarchical weights to obtain a target hierarchical feature map;

[0057] (5) Performing feature point detection on the target hierarchical feature map to obtain multiple initial visual feature points, and performing non-maximum suppression on the multiple initial visual feature points to obtain multiple target visual feature points;

[0058] (6) Perform descriptor generation and extended Kalman filtering on multiple target visual feature points respectively to obtain a target feature descriptor for each target visual feature point.

[0059] Specifically, the target environment image is subjected to object surface recognition. The surface features of the object in the image are recognized through image processing algorithms, such as convolutional neural networks, to obtain the initial object surface recognition results. The device jitter influence parameters are obtained through built-in sensors such as accelerometers and gyroscopes to reflect the jitter of the device during the image capture process. According to the obtained device jitter influence parameters, the initial object surface recognition results are processed to eliminate the influence of jitter on the recognition results. The recognition results are smoothed using filtering algorithms, such as Kalman filtering, to reduce the noise and error caused by jitter and obtain more stable object surface information. The object surface information is subjected to feature hierarchical analysis. By analyzing the different feature hierarchies in the object surface information, representative feature hierarchical information is extracted. For example, a multi-scale analysis method is used to decompose the object surface information at different scales and extract feature information at each scale. Such feature information includes edges, corners, textures, etc. The feature hierarchical information is subjected to hierarchical weight analysis. The importance of each feature hierarchical level, i.e., weight, is determined. The weight analysis is performed using the hierarchical analysis method. By constructing a hierarchical structure model, the weights of each feature hierarchical level are calculated in combination with expert experience and data statistics. The formula is as follows:

[0060] ;

[0061] in, Indicates The weights of the feature levels, Indicates The feature level is Ratings in comparison, is the number of comparisons, is the number of feature levels. According to the calculated feature level weights, the target environment image is subjected to hierarchical feature map extraction. According to the weights of each feature level, the features in the image are weighted and combined to obtain a comprehensive target hierarchical feature map. By fusing multi-scale and multi-feature information, it is ensured that the extracted feature map can fully reflect the surface features of the object. Feature point detection is performed on the target hierarchical feature map. By detecting key points in the image, such as corner points and edge points, multiple initial visual feature points are obtained. Common feature point detection algorithms include Harris corner point detection and SIFT (scale-invariant feature transform). These algorithms can detect feature points with high stability and high repeatability in the image. The initially detected feature points often contain a large number of redundant points and noise points, and non-maximum suppression is performed on them. Non-maximum suppression is to obtain the target visual feature points by comparing the local neighborhood of the feature points, removing non-maximum points, retaining local maximum points. These feature points have higher stability and uniqueness, and are suitable for subsequent feature description and matching. Descriptor generation and extended Kalman filtering are performed on the target visual feature points respectively. Descriptor generation is to generate a unique feature descriptor for each feature point through feature description algorithms such as SIFT, SURF, etc. The descriptor can describe the local image information of the feature point in detail, so that the feature points between different images can be matched and compared. The extended Kalman filter further optimizes and filters the feature descriptor to eliminate noise and errors, thereby improving the accuracy and robustness of the feature descriptor.

[0062] In a specific embodiment, the process of executing step S103 may specifically include the following steps:

[0063] (1) Perform object contour segmentation on the target feature descriptor to obtain an object contour set; perform spatial point extraction on the object contour set to obtain a spatial point set;

[0064] (2) Perform quadratic curve mapping on the object contour sets respectively to obtain multiple quadratic curves;

[0065] (3) Performing plane element conversion on multiple quadratic curves respectively to obtain multiple plane element points;

[0066] (4) Perform feature point distance measurement on multiple plane element points to obtain the target matching distance, and perform nearest neighbor matching based on the target matching distance to obtain the feature point pair matching result;

[0067] (5) Perform motion vector analysis on the matching results through feature points to obtain the target motion vector;

[0068] (6) Calculate the gimbal tracking posture using the target motion vector to obtain the gimbal tracking posture data;

[0069] (7) Feed-forward compensation is performed on the gimbal using the gimbal tracking posture data to obtain initial posture compensation data.

[0070] Specifically, the target feature descriptor is subjected to object contour segmentation. By analyzing the spatial information in the feature descriptor, the feature points corresponding to the descriptor are classified according to the object boundary to which they belong, and the object contour set is obtained. The image is processed using image segmentation technology and contour detection algorithms, such as Canny edge detection and contour extraction algorithms, so as to identify and segment the contour of the object. The object contour set is subjected to spatial point extraction. The points in the object contour set are converted into coordinate points in three-dimensional space to form a set of spatial points. Combined with the depth information of the image or the registration result of the multi-view image, the specific position of each contour point in three-dimensional space is calculated by triangulation. The object contour set is respectively subjected to quadratic curve mapping. The points in the object contour set are fitted to represent it as a quadratic curve. The quadratic curve can better describe the curve features of the object, making the geometric shape of the object clearer. The multiple quadratic curves are respectively subjected to plane element conversion. The representation of the quadratic curve in three-dimensional space is converted into plane element points, and the plane element points can reflect the projection of the quadratic curve on the plane. The projection of the quadratic curve on different planes is calculated to obtain multiple plane element points. The feature point distance measurement is performed on the multiple plane element points. By calculating the Euclidean distance between plane element points, the distance between each plane element point is obtained. The formula is as follows:

[0071] ;

[0072] in, Indicates plane element points and the The distance between the points of the plane elements, , , It is the coordinate of the plane element point. The nearest neighbor matching is performed based on the target matching distance. By calculating the distance between the feature points, the nearest matching point pair is found to obtain the feature point pair matching result. The motion vector analysis is performed based on the feature point pair matching result. The relative motion between the feature point pairs is analyzed to calculate the motion vector of the object in space. The motion vector can describe the moving direction and speed of the object. The gimbal tracking posture calculation is performed based on the target motion vector. The tracking posture data of the gimbal is calculated through mathematical models and algorithms. The tracking posture data includes the position and posture of the gimbal in three-dimensional space. These data can be used to control the movement of the gimbal so that it can accurately track the target object. The gimbal is feedforward compensated through the gimbal tracking posture data. Feedforward compensation is a method of pre-adjusting the position and posture of the gimbal, which can reduce errors and improve accuracy in actual operation. Through compensation calculation, the initial posture compensation data is finally obtained.

[0073] In a specific embodiment, the process of executing step S104 may specifically include the following steps:

[0074] (1) Obtain the IMU sensor data of the gimbal and perform wavelet transform on the IMU sensor data to obtain the target sensor data;

[0075] (2) constructing a Bayesian network for the target sensor data to obtain a Bayesian network, and performing a fault mode analysis on the Bayesian network to obtain fault mode data;

[0076] (3) Calculate the prior probability of the fault mode data to obtain the prior probability, and perform posterior inference on the prior probability to obtain the Bayesian inference result;

[0077] (4) Based on the Bayesian inference results, the initial posture compensation strategy of the gimbal is generated, and the reward feedback data of the initial posture compensation strategy is calculated to obtain the reward feedback parameters;

[0078] (5) Update the initial posture compensation strategy based on the reward feedback parameters to generate the target posture compensation strategy;

[0079] (6) Based on the target posture compensation strategy, the initial posture compensation data is optimized to obtain the first posture compensation data.

[0080] Specifically, obtain the IMU sensor data of the gimbal. IMU sensor data includes data from accelerometers and gyroscopes, which can reflect the movement and rotation of the gimbal in three-dimensional space. Through the built-in IMU sensor, these data are collected in real time to form a basic data set. Perform wavelet transform on the IMU sensor data. Wavelet transform is a time-frequency analysis method that can decompose the signal into different frequency components, and then extract more detailed features to obtain the target sensor data. The wavelet transform formula is as follows:

[0081] ;

[0082] in, represents the wavelet coefficients, represents the original signal, is the wavelet function, and Represent the scale parameter and displacement parameter respectively. A Bayesian network is constructed for the target sensor data. A Bayesian network is a probabilistic graph model that can represent the dependencies between variables. The target sensor data is regarded as a random variable. By constructing a Bayesian network, these data are modeled to obtain a Bayesian network structure. The Bayesian network represents variables and their interdependencies through nodes and edges. The formula is as follows:

[0083] Pa ;

[0084] in, represents the joint probability distribution, Representation Node The parent node set of . Through the Bayesian network, the potential fault modes in the IMU data are analyzed, the abnormal conditions in the sensor data are identified, and the fault mode data is obtained. Fault mode analysis identifies possible fault modes by comparing the sensor data under normal working conditions with the actual collected data. Prior probability calculation is performed on the fault mode data. Prior probability reflects the possibility of various fault modes when there is no observation data. Prior probability is determined through historical data and empirical data. Posterior inference is performed on the prior probability. Posterior inference is based on Bayes' theorem. By combining the actual observation data, the prior probability is updated to obtain the Bayesian inference result. The formula is as follows:

[0085] ;

[0086] in, represents the posterior probability, represents the likelihood function, represents the prior probability, Represents the marginal probability. Based on the Bayesian inference results, the initial posture compensation strategy of the gimbal is generated. The initial posture compensation strategy is to compensate the movement of the gimbal according to the inference results to reduce the posture deviation caused by the sensor data error. Perform reward feedback data calculation. The reward feedback data calculation is to calculate the reward feedback parameters by comparing the compensated posture with the expected posture. Based on the reward feedback parameters, the initial posture compensation strategy is updated. The reinforcement learning algorithm is used to optimize the compensation strategy through continuous trial and learning to generate the target posture compensation strategy. The reinforcement learning algorithm finds the optimal compensation strategy through continuous exploration and utilization, making the posture adjustment of the gimbal more accurate. Based on the target posture compensation strategy, the posture compensation optimization of the initial posture compensation data is performed. By comparing the actual motion trajectory with the ideal path, the motion parameters of the gimbal are dynamically adjusted to obtain the first posture compensation data.

[0087] In a specific embodiment, the process of executing step S105 may specifically include the following steps:

[0088] (1) Perform force analysis on the first posture compensation data to generate dynamic force analysis results;

[0089] (2) Perform threshold analysis on the dynamic force analysis results to determine the target threshold;

[0090] (3) Based on the target threshold and the dynamic force analysis results, the gimbal is subjected to force point position analysis to generate multiple dynamic force points;

[0091] (4) Perform device jitter intensity analysis on multiple dynamic force application points respectively, and generate a target device jitter intensity corresponding to each dynamic force application point;

[0092] (5) Perform balanced compensation calculation based on the jitter intensity of the target device to obtain the second posture compensation data.

[0093] Specifically, the force analysis is performed on the first posture compensation data. Through the mechanical model, various forces on the gimbal in different positions and states are calculated, including gravity, inertia, and external environmental forces. By combining the mass distribution and motion state of the gimbal, the force conditions at each position are calculated. Threshold analysis is performed on the dynamic force analysis results to determine the safety thresholds of the gimbal under different force states. These thresholds are determined by experimental and empirical data and reflect the maximum or minimum force range that the gimbal can withstand. The process of determining the target threshold includes comparing the force analysis results with the predetermined safety standards and determining the critical value of each force state through mathematical models and data analysis. Based on the target threshold and the dynamic force analysis results, the gimbal is analyzed for the force point position. By calculating the positions of each force point on the gimbal, the specific coordinates of these force points in three-dimensional space are determined. Using the mechanical equilibrium equation, multiple dynamic force force points are generated by analyzing the force distribution of the gimbal under different force states. The device jitter intensity analysis is performed on multiple dynamic force force points respectively to evaluate the jitter of each force point under different force states. Through sensor data and dynamic models, the jitter intensity of each force point during the force application process is calculated. The jitter intensity is determined by the dynamic response characteristics of the device and can be calculated through frequency domain analysis and time domain analysis. The formula is as follows:

[0094] ;

[0095] in, Indicates the jitter intensity. Indicates The force point at time The displacement of represents the average value of displacement, Represents the total time. By calculating the jitter intensity of each force point, the jitter intensity of the target device corresponding to each dynamic force force point is generated. The intensity value reflects the stability and anti-disturbance ability of different force points during the force process. Balanced compensation calculation is performed based on the jitter intensity of the target device. By adjusting the control parameters of the gimbal, the jitter intensity of each force point is within a reasonable range to achieve a balanced distribution of dynamic force. By optimizing the control algorithm, such as PID control, LQR control, etc., the optimal compensation parameters are calculated to obtain the second posture compensation data. These data can effectively adjust the posture of the gimbal to keep it stable under different force states.

[0096] In a specific embodiment, the process of executing step S106 may specifically include the following steps:

[0097] (1) Relocating the visual tracking path according to the second posture compensation data to obtain path relocation data;

[0098] (2) Segment the visual tracking path according to the path relocation data to obtain multiple segmented paths;

[0099] (3) Perform visual tracking path adjustment on multiple segmented paths to obtain path adjustment parameters;

[0100] (4) performing feedback monitoring on the path adjustment parameters and the path relocation data to obtain feedback data;

[0101] (5) Calculate the error of the feedback data to obtain the error value, and adjust the error value in real time to obtain the initial control signal;

[0102] (6) Perform observation-repair action pairs on the initial control signal to generate the target control signal of the gimbal.

[0103] Specifically, the visual tracking path is relocated according to the second posture compensation data. By analyzing the compensation data, the optimal tracking path of the gimbal in space is re-determined. Combined with the actual motion state of the gimbal and the position of the target object, a new path is calculated by an optimal path algorithm, such as a Dijkstra algorithm or an A* algorithm, so that the gimbal can track the target object more accurately. The generation of path relocation data is based on the analysis and processing of the compensation data to ensure that the new path can improve the accuracy and stability of tracking. The visual tracking path is segmented according to the path relocation data. The entire tracking path is decomposed into multiple smaller segmented paths, so that the path adjustment is more refined and specific. By subdividing the path relocation data, multiple segmented paths are obtained, each of which represents the motion trajectory of the gimbal in a specific time period. The generation of the segmented path needs to consider factors such as the motion speed, acceleration of the gimbal and the moving speed of the target object to ensure that each segmented path can accurately reflect the actual motion situation. The visual tracking path is adjusted for multiple segmented paths. By optimizing each segmented path, the optimal path adjustment parameters are calculated. Path adjustment parameters include the displacement, rotation angle, speed and acceleration of the gimbal, which determine the specific movement mode of the gimbal in each segmented path. Use optimization algorithms, such as particle swarm optimization algorithm or genetic algorithm, to optimize the calculation of path adjustment parameters to ensure that each segmented path can achieve the best tracking effect. Feedback monitoring of path adjustment parameters and path repositioning data. By real-time monitoring of the actual motion state of the gimbal, and comparing it with the path repositioning data and path adjustment parameters, feedback data is obtained. Error calculation is performed on the feedback data. By comparing the actual motion trajectory with the expected path, the motion error of the gimbal is calculated. The error value is adjusted in real time, and the motion error is reduced by adjusting the control parameters of the gimbal, so that the actual motion trajectory of the gimbal is closer to the expected path. Use control algorithms, such as PID control, to adjust the proportional, integral and differential parameters to control the movement of the gimbal in real time and obtain the initial control signal. The PID control formula is as follows:

[0104] ;

[0105] in, Indicates at time The control signal on represents the proportionality coefficient, represents the integral coefficient, represents the differential coefficient, Indicates at time The error value on From time 0 to The integral of the error, Represents the error value versus time The derivative of the initial control signal is observed and repaired to generate the target control signal of the gimbal. By continuously observing the actual motion state of the gimbal and making corresponding corrections based on the observation results, it is ensured that the gimbal can always stay on the optimal motion trajectory. Finally, the target control signal is generated, which enables the gimbal to achieve high-precision visual tracking in complex environments.

[0106] The above describes the method for determining the position and posture based on visual tracking in the embodiment of the present application. The following describes the device for determining the position and posture based on visual tracking in the embodiment of the present application. Figure 2 In the embodiment of the present application, an embodiment of a posture determination device based on visual tracking includes:

[0107] The acquisition module 201 is used to acquire the initial environment image of the target object through the pan-tilt platform according to the visual tracking path, and perform image conversion and image enhancement on the initial environment image to obtain the target environment image;

[0108] A creation module 202 is used to extract visual feature points from the target environment image to obtain multiple target visual feature points and create a target feature descriptor for each target visual feature point;

[0109] The matching module 203 is used to perform feature matching on the target feature descriptor to obtain feature point pair matching results, and perform posture analysis and feedforward compensation on the gimbal according to the feature point pair matching results to obtain initial posture compensation data;

[0110] The optimization module 204 is used to perform IMU sensor data fusion and posture compensation optimization on the initial posture compensation data based on the Bayesian network and reinforcement learning algorithm to obtain the first posture compensation data;

[0111] A calculation module 205 is used to perform dynamic force balance compensation calculation on the first posture compensation data to obtain second posture compensation data;

[0112] The adjustment module 206 is used to adjust the visual tracking path according to the second posture compensation data, obtain a path adjustment parameter, and perform feedback control on the path adjustment parameter to generate a target control signal.

[0113] Through the cooperation of the above components, the target environment image with higher contrast and clarity can be obtained by performing multi-step image conversion and enhancement processing such as color feature extraction, structural feature calculation, object shadow segmentation and linear scan fusion on the initial environment image. The device jitter influence parameters are used to identify the surface of the object, and multiple processing technologies such as hierarchical feature map extraction, non-maximum suppression and extended Kalman filtering are combined to ensure that the extracted visual feature points have high stability and reliability. At the same time, by generating highly discriminative target feature descriptors, the accuracy and efficiency of feature matching can be improved. In the feature matching stage, combined with feedforward compensation technology, the matching error can be significantly reduced, the initial posture compensation data can be obtained, and the accuracy of posture analysis can be improved. Based on Bayesian network and reinforcement learning algorithm, the IMU sensor data is fully utilized for fusion processing to optimize the initial posture compensation data and generate more accurate first posture compensation data. Dynamic force analysis can effectively deal with dynamic force disputes caused by factors such as friction, gap and command delay in dynamic environments, and obtain stable second posture compensation data. In the path adjustment and feedback control stage, the path repositioning is used to ensure the precise adjustment of the visual tracking path. Combined with the generation mechanism of observation-repair action pairs, it is possible to output stable target control signals, thereby improving the visual tracking accuracy of the gimbal.

[0114] The present application also provides a posture determination device based on visual tracking, 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 posture determination method based on visual tracking in the above-mentioned embodiments.

[0115] 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 posture determination method based on visual tracking.

[0116] 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.

[0117] 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.

[0118] 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 method for determining a posture based on visual tracking, characterized in that: The posture determination method based on visual tracking includes: The initial environment image of the target object is acquired through the gimbal according to the visual tracking path, and the initial environment image is converted and enhanced to obtain the target environment image; specifically comprising: acquiring the initial environment image of the target object through the gimbal according to the visual tracking path; extracting color features from the initial environment image to obtain average color features, and calculating structural features from the initial environment image through local gradients to obtain average structural features; performing image conversion on the initial environment image according to the average color features and the average structural features to obtain a standard environment image; calculating object shadow segmentation similarity on the standard environment image to obtain an object shadow segmentation similarity metric; performing linear scanning fusion metric on the standard environment image based on the object shadow segmentation similarity metric to obtain a linear scanning fusion metric; performing image boundary enhancement and image refinement on the standard environment image according to the linear scanning fusion metric to obtain the target environment image; Extract visual feature points from the target environment image to obtain multiple target visual feature points, and create a target feature descriptor for each target visual feature point; specifically including: perform object surface recognition on the target environment image to obtain an initial object surface recognition result, and obtain device jitter influence parameters; process the initial object surface recognition result according to the device jitter influence parameters, and output object surface information; perform feature hierarchy analysis on the object surface information to obtain feature hierarchy information, and perform hierarchy weight analysis on the feature hierarchy information to obtain feature hierarchy weights; perform hierarchy feature map extraction on the target environment image according to the feature hierarchy weights to obtain a target hierarchy feature map; perform feature point detection on the target hierarchy feature map to obtain multiple initial visual feature points, and perform non-maximum suppression on the multiple initial visual feature points to obtain multiple target visual feature points; perform descriptor generation and extended Kalman filtering on the multiple target visual feature points respectively to obtain a target feature descriptor for each target visual feature point; Perform feature matching on the target feature descriptor to obtain a feature point pair matching result, and perform posture analysis and feed-forward compensation on the gimbal according to the feature point pair matching result to obtain initial posture compensation data; specifically including: performing object contour division on the target feature descriptor to obtain an object contour set; performing spatial point extraction on the object contour set to obtain a spatial point set; performing quadratic curve mapping on the object contour set to obtain multiple quadratic curves; performing plane element conversion on the multiple quadratic curves to obtain multiple plane element points; performing feature point distance measurement on the multiple plane element points to obtain a target matching distance, and performing nearest neighbor matching through the target matching distance to obtain a feature point pair matching result; performing motion vector analysis through the feature point pair matching result to obtain a target motion vector; performing gimbal tracking posture calculation through the target motion vector to obtain gimbal tracking posture data; performing feed-forward compensation on the gimbal through the gimbal tracking posture data to obtain initial posture compensation data; Based on the Bayesian network and reinforcement learning algorithm, the initial posture compensation data is subjected to IMU sensor data fusion and posture compensation optimization to obtain the first posture compensation data; specifically comprising: obtaining the IMU sensor data of the gimbal, and performing wavelet transform on the IMU sensor data to obtain target sensor data; constructing a Bayesian network on the target sensor data to obtain a Bayesian network, and performing fault mode analysis on the Bayesian network to obtain fault mode data; calculating the prior probability of the fault mode data to obtain the prior probability, and performing a posteriori inference on the prior probability to obtain the Bayesian inference result; based on the Bayesian inference result, generating the initial posture compensation strategy of the gimbal, and calculating the reward feedback data for the initial posture compensation strategy to obtain the reward feedback parameter; updating the initial posture compensation strategy based on the reward feedback parameter to generate the target posture compensation strategy; performing posture compensation optimization on the initial posture compensation data based on the target posture compensation strategy to obtain the first posture compensation data; Performing dynamic force balance compensation calculation on the first posture compensation data to obtain second posture compensation data; specifically comprising: performing force analysis on the first posture compensation data to generate a dynamic force analysis result; performing threshold analysis on the dynamic force analysis result to determine a target threshold; performing force point position analysis on the gimbal based on the target threshold and the dynamic force analysis result to generate multiple dynamic force force points; performing device jitter intensity analysis on the multiple dynamic force force points respectively to generate a target device jitter intensity corresponding to each dynamic force force point; performing balanced compensation calculation based on the target device jitter intensity to obtain second posture compensation data; The visual tracking path is visually adjusted according to the second posture compensation data to obtain path adjustment parameters, and the path adjustment parameters are feedback-controlled to generate a target control signal; specifically comprising: relocating the visual tracking path according to the second posture compensation data to obtain path relocation data; segmenting the visual tracking path according to the path relocation data to obtain a plurality of segmented paths; visually adjusting the plurality of segmented paths to obtain path adjustment parameters; feedback-monitoring the path adjustment parameters and the path relocation data to obtain feedback data; performing error calculation on the feedback data to obtain an error value, and adjusting the error value in real time to obtain an initial control signal; performing an observation-repair action pair on the initial control signal to generate a target control signal for the gimbal.

2. A posture determination device based on visual tracking, characterized in that: The position and posture determination device based on visual tracking comprises: An acquisition module is used to acquire an initial environment image of a target object through a gimbal according to a visual tracking path, and perform image conversion and image enhancement on the initial environment image to obtain a target environment image; specifically comprising: acquiring an initial environment image of a target object through a gimbal according to a visual tracking path; performing color feature extraction on the initial environment image to obtain an average color feature, and performing structural feature calculation on the initial environment image through a local gradient to obtain an average structural feature; performing image conversion on the initial environment image according to the average color feature and the average structural feature to obtain a standard environment image; performing object shadow segmentation similarity calculation on the standard environment image to obtain an object shadow segmentation similarity measurement; performing linear scanning fusion measurement on the standard environment image based on the object shadow segmentation similarity measurement to obtain a linear scanning fusion measurement; performing image boundary enhancement and image refinement on the standard environment image according to the linear scanning fusion measurement to obtain a target environment image; A creation module is used to extract visual feature points from the target environment image to obtain multiple target visual feature points, and create a target feature descriptor for each target visual feature point; specifically comprising: performing object surface recognition on the target environment image to obtain an initial object surface recognition result, and obtaining a device jitter influence parameter; performing object surface recognition result processing on the initial object surface recognition result according to the device jitter influence parameter, and outputting object surface information; performing feature hierarchy analysis on the object surface information to obtain feature hierarchy information, and performing hierarchy weight analysis on the feature hierarchy information to obtain feature hierarchy weights; performing hierarchy feature map extraction on the target environment image according to the feature hierarchy weights to obtain a target hierarchy feature map; performing feature point detection on the target hierarchy feature map to obtain multiple initial visual feature points, and performing non-maximum suppression on the multiple initial visual feature points to obtain multiple target visual feature points; performing descriptor generation and extended Kalman filtering on the multiple target visual feature points respectively to obtain a target feature descriptor for each target visual feature point; A matching module is used to perform feature matching on the target feature descriptor to obtain a feature point pair matching result, and perform posture analysis and feed-forward compensation on the gimbal according to the feature point pair matching result to obtain initial posture compensation data; specifically comprising: performing object contour division on the target feature descriptor to obtain an object contour set; performing spatial point extraction on the object contour set to obtain a spatial point set; performing quadratic curve mapping on the object contour set to obtain multiple quadratic curves; performing plane element conversion on the multiple quadratic curves to obtain multiple plane element points; performing feature point distance measurement on the multiple plane element points to obtain a target matching distance, and performing nearest neighbor matching through the target matching distance to obtain a feature point pair matching result; performing motion vector analysis through the feature point pair matching result to obtain a target motion vector; performing gimbal tracking posture calculation through the target motion vector to obtain gimbal tracking posture data; performing feed-forward compensation on the gimbal through the gimbal tracking posture data to obtain initial posture compensation data; An optimization module is used to perform IMU sensor data fusion and posture compensation optimization on the initial posture compensation data based on a Bayesian network and a reinforcement learning algorithm to obtain the first posture compensation data; specifically comprising: obtaining the IMU sensor data of the gimbal, and performing wavelet transform on the IMU sensor data to obtain target sensor data; constructing a Bayesian network on the target sensor data to obtain a Bayesian network, and performing fault mode analysis on the Bayesian network to obtain fault mode data; calculating a priori probability on the fault mode data to obtain a priori probability, and performing a posteriori inference on the prior probability to obtain a Bayesian inference result; generating an initial posture compensation strategy for the gimbal based on the Bayesian inference result, and performing reward feedback data calculation on the initial posture compensation strategy to obtain reward feedback parameters; performing strategy update on the initial posture compensation strategy based on the reward feedback parameters to generate a target posture compensation strategy; performing posture compensation optimization on the initial posture compensation data based on the target posture compensation strategy to obtain the first posture compensation data; A calculation module, used to perform dynamic force balance compensation calculation on the first posture compensation data to obtain second posture compensation data; specifically comprising: performing force analysis on the first posture compensation data to generate a dynamic force analysis result; performing threshold analysis on the dynamic force analysis result to determine a target threshold; based on the target threshold and the dynamic force analysis result, performing force point position analysis on the gimbal to generate multiple dynamic force force points; performing device jitter intensity analysis on the multiple dynamic force force points respectively to generate a target device jitter intensity corresponding to each dynamic force force point; performing balanced compensation calculation based on the target device jitter intensity to obtain second posture compensation data; An adjustment module is used to perform visual tracking path adjustment on the visual tracking path according to the second posture compensation data to obtain path adjustment parameters, and perform feedback control on the path adjustment parameters to generate a target control signal; specifically comprising: performing path repositioning on the visual tracking path according to the second posture compensation data to obtain path repositioning data; performing path segmentation on the visual tracking path according to the path repositioning data to obtain multiple segmented paths; performing visual tracking path adjustment on the multiple segmented paths to obtain path adjustment parameters; performing feedback monitoring on the path adjustment parameters and the path repositioning data to obtain feedback data; performing error calculation on the feedback data to obtain an error value, and performing real-time adjustment on the error value to obtain an initial control signal; performing observation-repair action pairs on the initial control signal to generate a target control signal for the gimbal.

3. A posture determination device based on visual tracking, characterized in that: The posture determination device based on visual tracking includes: a memory and at least one processor, wherein the memory stores instructions; The at least one processor calls the instructions in the memory to enable the visual tracking-based pose determination device to perform the visual tracking-based pose determination method as claimed in claim 1.

4. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the method for determining the posture based on visual tracking as described in claim 1 is implemented.