Target motion estimation method, apparatus, device, and storage medium
By acquiring initial key point information from image sequences and performing coordinate transformation and error processing from a bird's-eye view, combined with Kalman filtering, the high cost and low accuracy problems of target motion estimation in existing technologies are solved, achieving low-cost and high-accuracy target motion estimation.
Patent Information
- Application Number
- CN202311449214.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-10-31
AI Technical Summary
In existing technologies, the acquisition of target motion information relies on high-cost sensors or vision solutions, which are prone to errors, resulting in low accuracy and making it difficult to achieve low-cost and high-accuracy target motion estimation.
By acquiring initial key point information from the image sequence, coordinate transformation is performed to obtain target key point information from a bird's-eye view. Motion estimation is then performed by combining error information and Kalman filtering to process the relationship between multiple frames of images.
It improves the accuracy and robustness of target motion estimation, reduces equipment costs, and minimizes the impact of positioning errors.
Smart Images

Figure CN117437262B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and in particular to a target motion estimation method, apparatus, device, and storage medium. Background Technology
[0002] In intelligent transportation scenarios, target motion information is widely used in traffic incident analysis, holographic intersection display, and other applications.
[0003] In existing technologies, the acquisition of target motion information usually relies on sensors such as millimeter-wave radar and lidar, which are costly and difficult to implement. In visual solutions that rely on video image data, there are more or less errors in each data processing stage, resulting in low accuracy of the acquired target motion information.
[0004] Currently, there is an urgent need for a low-cost and accurate method for estimating target motion. Summary of the Invention
[0005] This application provides at least one method, apparatus, device, and computer-readable storage medium for estimating target motion.
[0006] The first aspect of this application provides a target motion estimation method, comprising: acquiring initial key point information of a target object included in each image to be processed in an image sequence; performing coordinate transformation processing on the initial key point information to obtain target key point information from a bird's-eye view; determining error information corresponding to the target key point based on the target coordinate information of the target key point in the target key point information and the acquired data distribution state of the target key point; and performing motion estimation based on the sequence relationship between multiple frames of images to be processed, the target key point information in each frame of images to be processed, and the error information to obtain the motion estimation result of the target object.
[0007] In one embodiment, the step of performing coordinate transformation processing on the initial key point information to obtain target key point information from a bird's-eye view includes: constructing an initial key point set based on the initial coordinate information and variance information of the initial key points in the initial key point information; and performing inverse perspective transformation on the initial key point set based on a preset transformation matrix to obtain a target key point set, wherein the target key point set includes the target key points.
[0008] In one embodiment, the target key point includes a target center point and target neighboring points. The step of determining the error information corresponding to the target key point based on the target coordinate information of the target key point in the target key point information and the obtained data distribution state of the target key point includes: performing a weighted summation calculation based on the obtained center mean weight of the target center point and the obtained neighbor mean weight of the target neighboring points to obtain the error distribution mean in the error information; and performing a weighted summation calculation based on the error distribution mean and the obtained covariance weight of the target center point to obtain the error covariance in the error information.
[0009] In one embodiment, the step of performing motion estimation based on the sequence relationship between multiple frames of images to be processed, the target key point information in each frame of images to be processed, and the error information to obtain the motion estimation result of the target object includes: determining the pose information of the target object based on the target key point information of the target object in each frame of images to be processed; and performing Kalman filtering on the pose information of the target object in each frame of images to be processed and the error covariance based on the sequence relationship between the multiple frames of images to be processed to obtain the motion estimation result of the target object.
[0010] In one embodiment, the initial key point information includes initial key points, and the step of performing coordinate transformation processing on the initial key point information to obtain target key point information from a bird's-eye view includes: performing inverse perspective transformation on the initial key points based on a preset transformation matrix to obtain projection points from a bird's-eye view, wherein the initial key points and the projection points correspond; and selecting projection points with a confidence level greater than or equal to a preset confidence threshold from the projection points based on preset selection rules and the obtained confidence level of the initial key points as the target key points.
[0011] In one embodiment, the step of selecting projection points with a confidence level greater than or equal to a preset confidence threshold as the target key points based on preset selection rules and the confidence level of the obtained initial key points includes: if there are no projection points with a confidence level greater than or equal to the preset confidence threshold, determining an initial key region of the target object in the image to be processed based on the initial key points; selecting the center point of the initial key region as a first reference point; determining a second reference point at a preset distance from the first reference point based on the pose information of the target object in the image to be processed; and performing an inverse perspective transformation on the first reference point and the second reference point to obtain the target key points.
[0012] In one embodiment, the method further includes: performing target detection on target objects in each image to be processed in the image sequence to obtain the detection bounding box of the target object, the initial key point information, and the pose information of the target object; and performing target tracking processing on the target object based on the sequence relationship between the multiple frames of images to be processed, the detection bounding box of the target object, the initial key point information, and the pose information of the target object.
[0013] A second aspect of this application provides a target motion estimation device, comprising: an acquisition module for acquiring initial key point information of a target object included in each image to be processed in an image sequence; a transformation module for performing coordinate transformation processing on the initial key point information to obtain target key point information from a bird's-eye view; an error determination module for determining error information corresponding to the target key point based on the target coordinate information of the target key point in the target key point information and the acquired data distribution state of the target key point; and a detection module for performing motion estimation based on the sequence relationship between multiple frames of images to be processed, the target key point information in each frame of images to be processed, and the error information to obtain the motion estimation result of the target object.
[0014] A third aspect of this application provides an electronic device, including a memory and a processor, wherein the processor is configured to execute program instructions stored in the memory to implement the aforementioned target motion estimation method.
[0015] The fourth aspect of this application provides a computer-readable storage medium having program instructions stored thereon, which, when executed by a processor, implement the above-described target motion estimation method.
[0016] The above scheme achieves target object localization by converting the initial key point information of the detected target object in the image into target key point information from a bird's-eye view. Based on the target coordinate information of the target key points in the target key point information and the data distribution state of the acquired target key points, the error information corresponding to the target key points generated during target detection and data conversion is determined. Motion estimation is performed based on the sequence relationship between multiple frames of images to be processed, the target key point information in each frame of images to be processed, and the error information. Thus, by combining the error information and the localization results, the accuracy and robustness of motion estimation of the target object can be improved.
[0017] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this application. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.
[0019] Figure 1 This is a flowchart illustrating an exemplary embodiment of the target motion estimation method of this application;
[0020] Figure 2 This is a schematic diagram illustrating the effect of inverse perspective transformation in the target motion estimation method of this application;
[0021] Figure 3 This is a schematic diagram illustrating the effect of key point detection in the target motion estimation method of this application;
[0022] Figure 4 This is a schematic diagram illustrating the effect of the projected region of the target object in the target motion estimation method of this application;
[0023] Figure 5 This is a block diagram illustrating a target motion estimation device according to an exemplary embodiment of this application;
[0024] Figure 6 This is a schematic diagram of the structure of an embodiment of the electronic device of this application;
[0025] Figure 7 This is a schematic diagram of the structure of an embodiment of the computer-readable storage medium of this application. Detailed Implementation
[0026] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0027] In the following description, specific details such as particular system architectures, interfaces, and technologies are presented for illustrative purposes rather than for limiting purposes, in order to provide a thorough understanding of this application.
[0028] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship. Furthermore, "many" in this document means two or more. Moreover, the term "at least one" in this document means any combination of at least two of any one or more of a plurality of objects. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0029] In existing technical solutions, motion estimation of target objects is usually achieved based on multiple types of sensors, such as the combination of optical and radar sensors, or the use of binocular cameras to construct 3D scenes. This ensures that the information of the target object is relatively comprehensive, but this method is time-consuming and has high equipment costs. For low-cost and high-efficiency road section equipment, a perspective transformation algorithm can usually be used to convert the perspective of the image acquisition device into a bird's-eye view, which can also achieve a certain degree of scene restoration. However, this method has significant error interference, especially due to the perspective relationship of near objects appearing larger and distant objects appearing smaller. Distant targets appear smaller in the image, and the positioning error of distant targets is usually greater than that of nearby targets. Moreover, the positioning error of occluded targets is usually greater than that of unoccluded targets. When the positioning error is large, the trajectory of the target object is prone to jumps, which can easily cause delays in motion estimation.
[0030] Therefore, this application provides a low-cost, high-accuracy target motion estimation method that combines the positioning results (pose) from a bird's-eye view with the error information from the perspective transformation process to achieve accurate and robust motion estimation.
[0031] Please see Figure 1 , Figure 1 This is a flowchart illustrating an exemplary embodiment of the target motion estimation method of this application. Specifically, it may include the following steps:
[0032] Step S110: Obtain the initial key point information of the target object included in each image to be processed in the image sequence.
[0033] The image sequence can be obtained by extracting multiple frames of images to be processed from the acquired video to be processed, or it can be composed of multiple frames of images to be processed. The video or images to be processed are usually acquired based on the image acquisition equipment installed at the road end. That is, the perspective of the image content in each image to be processed is usually the perspective of the image acquisition equipment. For ease of explanation, it will be referred to as the image perspective below.
[0034] The target object refers to the target in the image to be processed for motion estimation. In the following embodiments, a vehicle is mainly used as the target object for illustrative purposes. There may be one or more target objects in the same image to be processed, which is not limited here.
[0035] Initial keypoint information refers to the initial keypoints of the target object obtained by detecting the target object in the image to be processed, as well as information related to the initial keypoints, such as the coordinates and confidence of the initial keypoints. The initial keypoint information is determined based on the image viewpoint.
[0036] For example, each image to be processed in the image sequence is input into a pre-trained object detection network to obtain the initial keypoint information of the target object output by the object detection network. The object detection network can directly provide the detection results of the projection region and orientation θ of the target object using a multi-task algorithm model such as YOLO-Pose or CenterNet; alternatively, it can first use an object detection algorithm to provide the object detection results, and then use a multi-task model for projection region and orientation detection based on the image captured from the object detection results. The detected initial keypoints should include initial keypoint information such as category, coordinates, and confidence level. Depending on specific business requirements, information such as whether the keypoint is visible or not can be added. The projection region can be a keypoint group {(x... i ,y i ,c i ),...} are used to represent.
[0037] Step S120: Perform coordinate transformation on the initial key point information to obtain the target key point information from a bird's-eye view.
[0038] Coordinate transformation is used to transform the initial key point information from the image perspective to the target key point information from the bird's-eye view. The target key point information includes the target key point itself and related information, such as the coordinates and confidence level of the target key point.
[0039] For example, coordinate transformation processing includes inverse perspective transformation. In images captured by a camera, due to the existence of perspective effects, objects that are originally parallel may appear to intersect in the image. Inverse perspective transformation is used to eliminate this perspective effect and transform the image viewpoint to a bird's-eye view, which can better locate and detect the target object.
[0040] Step S130: Determine the error information corresponding to the target key point based on the target coordinate information of the target key point in the target key point information and the data distribution status of the acquired target key point.
[0041] It should be noted that, due to various factors such as the stability of the algorithm model itself, occlusion of the target object, blurring of the image to be processed, and the small size of the target object, detection errors will exist when detecting the initial keypoints of the target object. These detection errors typically follow a Gaussian distribution with the mean being the initial coordinates of the initial keypoints and the variance being the confidence level of the initial keypoints (i.e., the data distribution of the initial keypoints). The variance can be obtained from the output of a pre-trained target detection network (the obtained initial keypoint information includes variance information), or it can be calculated using the following mathematical expression:
[0042]
[0043] in, This refers to the variance of the initial keypoints from the image's perspective. γ is a preset error scaling factor, which can be set differently for target objects of different sizes and types. i Then it represents the confidence level of the i-th initial keypoint.
[0044] Furthermore, after transforming the initial keypoints to the target keypoints using inverse perspective, a transformation error will also exist. This transformation error can be described by a Gaussian distribution (the data distribution state of the target keypoints) determined based on the target keypoints. That is, the transformation error follows a Gaussian distribution with the mean being the target coordinate information of the target keypoints and the variance being the confidence level of the target keypoints. Similarly, the variance of the target keypoints under the bird's-eye view... It can be determined by a preset error scaling factor and the confidence level of the target key points.
[0045] Therefore, the error information corresponding to the calculated target key points includes the detection error of the initial key points and the transformation error of transforming the initial key points into target key points during the motion estimation process of the target object.
[0046] For example, the transformation error generated during the inverse perspective transformation process can be modeled using Unscented Transformation (UT). The principle of UT is to approximate a Gaussian distribution with a certain number of parameters, that is, to describe the error information through a Gaussian distribution. In this application, the implementation process is as follows: the detection error (the data distribution state of the initial key points) described by the Gaussian distribution is sampled to obtain several sampling points. The sampling points can be all initial key points or some initial key points; the sampling points are subjected to inverse perspective transformation to obtain the target key points and the error information corresponding to the target key points.
[0047] Specifically, an initial keypoint set containing 2n+1 initial keypoints is constructed based on the coordinate and variance information of the initial keypoints. The initial keypoint set can consist of one or more keypoints, which is not limited here. Here, n is the dimension of the variable (both the two-dimensional plane of the image view and the ground plane of the bird's-eye view are two-dimensional coordinate systems, therefore n=2), and the initial keypoint set χ... i The mathematical expression is:
[0048]
[0049]
[0050] In the initial keypoint coordinate information, the x-coordinate is a random variable x, and its mean is 1 / x. Covariance is P x λ is the scaling factor λ = α 2(n+κ)-n, where parameters α and κ are used to control the dispersion of sampling points.
[0051] Then, based on the preset homography transformation matrix, inverse perspective transformation is performed on each initial key point in the initial key point set to obtain the target key point set from the bird's-eye view. The target key points in the target key point set correspond to the initial key points in the initial key point set. Therefore, data modeling is performed based on the data distribution of the target key points in the target key point set to obtain an error model (error information) that follows a Gaussian distribution.
[0052] Step S140: Motion estimation is performed based on the sequence relationship between multiple frames of images to be processed, the target key point information and error information in each frame of images to be processed, to obtain the motion estimation result of the target object.
[0053] For example, based on the sequence relationship between multiple frames of images to be processed, the target key point information and error information in each frame of images to be processed are input into a preset Kalman filter for motion estimation, and the motion estimation result output by the Kalman filter is obtained. The principle of Kalman filtering is an algorithm that uses the state equation of a linear system to make the optimal estimation of the system state through the system input and output observation data. The error information is used as the noise term in the Kalman filtering process, so that the detection of the motion state of the target object based on the target key point information is more accurate.
[0054] As can be seen, this application achieves target object localization by converting the initial key point information of the detected target object in the image into target key point information from a bird's-eye view. Based on the target coordinate information of the target key points in the target key point information and the data distribution state of the acquired target key points, the error information corresponding to the target key points generated during target detection, data conversion, etc. is determined. Motion estimation is performed based on the sequence relationship between multiple frames of images to be processed, the target key point information and error information in each frame of images to be processed. Thus, by combining the error information and the localization results, the accuracy and robustness of motion estimation of the target object can be improved.
[0055] Based on the above embodiments, this embodiment describes the steps of performing coordinate transformation processing on the initial key point information to obtain the target key point information from a bird's-eye view. Specifically, the method of this embodiment includes the following steps:
[0056] An initial keypoint set is constructed based on the initial coordinate information and variance information of the initial keypoints in the initial keypoint information; the initial keypoint set is then subjected to inverse perspective transformation based on a preset transformation matrix to obtain the target keypoint set, which includes the target keypoints.
[0057] It should be noted that, please refer to Figure 2 , Figure 2This is a schematic diagram of the effect of inverse transformation perspective in the target motion estimation method of this application. Further explanation is provided in conjunction with step S130. The two-dimensional plane of the image viewpoint and the ground plane of the bird's-eye viewpoint are both two-dimensional coordinate systems (including the horizontal axis x and the vertical axis y). Therefore, the variable dimension n = 2. Thus, one initial keypoint set includes 5 initial keypoints. The initial keypoint located at the center of the initial keypoint set is taken as the initial center point, and the initial keypoint located at the edge of the initial keypoint set is taken as the initial neighbor point. The initial neighbor point can be determined based on the horizontal and vertical directions of the two-dimensional coordinate system.
[0058] The preset transformation matrix can be a homography transformation matrix. During the pre-setting process, multiple marker points are placed on the ground surface captured by the image acquisition device, and the coordinates of these marker points on the ground are measured. Then, the pixel coordinates corresponding to each marker point are found and recorded in the image acquired by the image acquisition device. The homography transformation matrix is calculated from this, describing the mapping relationship between two planes. It is typically represented by a 3x3 matrix, such as:
[0059]
[0060] Furthermore, for the coordinate information and homography transformation matrix of the initial center point and initial neighboring points in each initial keypoint set, an inverse perspective transformation is performed to obtain the target center point and target neighboring points in the corresponding target keypoint set. Specifically, the mathematical expression of the inverse perspective transformation is as follows:
[0061]
[0062]
[0063]
[0064] Among them, (x ′ ,y ′ (x,y) represents the coordinate information of the target key points transformed to the ground plane (bird's-eye view) by inverse perspective transformation, (x,y) represents the coordinate information of the initial key points in the image to be processed, and H is the homography transformation matrix.
[0065] Based on the above embodiments, this embodiment describes the steps for determining the error information corresponding to the target key points based on the target coordinate information of the target key points in the target key point information and the obtained data distribution state of the target key points. The target key points include the target center point and target neighboring points. Specifically, the method of this embodiment includes the following steps:
[0066] The mean of the error distribution in the error information is obtained by weighting the mean weight of the center point of the target and the mean weight of the neighboring points of the target. The mean of the error distribution in the error information is obtained by weighting the mean of the error distribution and the covariance weight of the target center point.
[0067] The above embodiments will be used as a reference for further explanation. Figure 2 After performing inverse perspective transformation on the initial keypoints in the initial keypoint set, the target keypoints in the target keypoint set are obtained. These target keypoints include the target center point and target neighboring points. Figure 2 Taking the initial keypoint set A as an example, the initial keypoint set A includes an initial center point and four initial neighboring points. The error distribution in the image view follows a pattern with a mean of coordinate information of point set A and a variance of coordinate information of point set A. The Gaussian distribution is used to obtain the target key point set A after inverse perspective transformation to a bird's-eye view. ′ That is, the error distribution under the bird's-eye view follows a mean of A. ′ The coordinate information of the point set, with variance A ′ point set The Gaussian distribution.
[0068] Furthermore, weights are assigned to the target key points in the target key point set obtained after inverse perspective transformation. These weights include the mean weight W. (m) Covariance weights W (c) Specifically, the mean weight of the target center point is set to λ / (λ+n), the mean weight of the target's neighboring points is set to 1 / 2(λ+n), and the covariance weight of the target center point is set to λ / (λ+n)+(1-α). 2 The covariance weights of the target's neighboring points are set to 1 / 2(λ+n), where β is used to introduce prior information about the error distribution of the random variable x. The mean of the error distribution is obtained by summing the mean weights of the target center point and the target's neighboring points. Its mathematical expression is:
[0069]
[0070] The error covariance P is calculated by summing the mean values based on the covariance weights of the target center point and the target's neighboring points. y Its mathematical expression is:
[0071]
[0072] Thus, the mean and covariance of the error distribution in the error information are obtained, which are the key parameter information required in the motion estimation process of Kalman filtering.
[0073] Based on the above embodiments, this embodiment describes the steps for obtaining motion estimation results of a target object by performing motion estimation based on the sequence relationship between multiple frames of images to be processed, target key point information in each frame of images to be processed, and error information. Specifically, the method of this embodiment includes the following steps:
[0074] The pose information of the target object is determined based on the target key point information of the target object in each frame of the image to be processed; based on the sequence relationship between multiple frames of the image to be processed, Kalman filtering is performed on the pose information and error covariance of the target object in each frame of the image to be processed to obtain the motion estimation result of the target object.
[0075] For example, the coordinate information of the target key points in the target key point information of the target object is obtained. Taking a vehicle as an example, the four corner points of the vehicle body are detected to obtain the initial key points. The initial key points are then subjected to inverse perspective transformation to obtain the target key points. The vehicle body orientation is determined according to the relationship between the coordinate information of each target key point, thus obtaining the vehicle's pose information, size information, etc.
[0076] Then, based on the sequence relationship between multiple frames of images to be processed, the pose information, size information, and error covariance of the target object in each frame of the image to be processed are sequentially input into the Kalman filter. The Kalman filter makes predictions based on historical data and current data in the image sequence, and uses error information as a noise term to optimize the prediction process, thereby obtaining the predicted data of the target object (i.e., motion estimation results). The specific Kalman filtering process can refer to existing Kalman filtering techniques, which will not be elaborated here.
[0077] Therefore, it can be seen that by using the pose information, size information, coordinate information and variance of the target center point under the bird's-eye view as the observation data input for Kalman filtering, the variance of distant targets is greater than that of nearby targets, and the variance of occluded targets is greater than that of unoccluded targets. Among them, the error distribution corresponding to the target key points after inverse perspective transformation is affected by the original error distribution corresponding to the initial key points. The larger the original error, the larger the transformed error. Therefore, a larger original error can be set for occluded targets or the algorithm model can be used to predict the error directly, so that the positioning error of the target object under the bird's-eye view changes dynamically with the quality of the target detection result, thereby achieving more accurate and robust motion estimation.
[0078] Based on the above embodiments, this embodiment describes the steps of performing coordinate transformation processing on the initial key point information to obtain the target key point information from a bird's-eye view, wherein the initial key point information includes initial key points. Specifically, the method of this embodiment includes the following steps:
[0079] Based on the preset transformation matrix, the initial key points are subjected to inverse perspective transformation to obtain the projection points of the bird's-eye view. The initial key points and the projection points correspond. Based on the preset selection rules and the confidence level of the obtained initial key points, the projection points with a confidence level greater than or equal to the preset confidence threshold are taken as the target key points.
[0080] For example, combined Figure 3 To explain, Figure 3 This is a schematic diagram illustrating the effect of keypoint detection in the target motion estimation method of this application. For vehicle motion estimation, the focus is usually on the features of the vehicle body, such as... Figure 3 The system detects four initial key points for four-wheeled vehicles (the four initial key points can be determined by vehicle body features or wheel features), and three initial key points for three-wheeled vehicles. The following explanation will use four-wheeled vehicles as an example.
[0081] Furthermore, the four initial key points of the four-wheeled vehicle are the left front point, right front point, left rear point, and right rear point. Since some initial key points may be occluded, the detected key points are also called visible points, and the undetected key points are called invisible points. In the process of detecting the initial key points of the vehicle, the confidence of the visible points can be obtained. For example, the image to be processed can be input into a pre-trained object detection network to obtain the initial key points and the confidence of the initial key points output by the object detection network. For details, please refer to existing object detection methods or feature detection methods, which will not be elaborated here.
[0082] Then, based on a preset transformation matrix, inverse perspective transformation is performed on the initial keypoints to obtain the projection points (left front projection point, right front projection point, left rear projection point, and right rear projection point) from a bird's-eye view. The confidence scores of the projection points correspond to the confidence scores of the initial keypoints. The preset selection rules include, but are not limited to:
[0083] a. If the confidence levels of both the left rear projection point and the left front projection point are greater than or equal to the preset confidence threshold T1, or if both the left rear projection point and the left front projection point are visible, then the vehicle's orientation is the vector direction from the left rear projection point to the left front projection point after the inverse perspective transformation. In other words, the left rear projection point and the left front projection point are the selected target key points. Similarly, if the confidence levels of both the right rear projection point and the right front projection point are greater than or equal to the preset confidence threshold, or if both the right rear projection point and the right front projection point are visible, then the orientation is the vector direction from the right rear projection point to the right front projection point after the inverse perspective transformation. In other words, the right rear projection point and the right front projection point are the selected target key points.
[0084] b. If the conditions in rule a are not met, then if the confidence levels of both the left front projection point and the right front projection point are greater than or equal to the threshold T1, or if both the left front projection point and the right front projection point are visible, then the vehicle's orientation is the normal direction of the line connecting the left and right front projection points after the inverse perspective transformation. That is, the left front projection point and the right front projection point are the selected target key points. Similarly, if the confidence levels of both the left rear projection point and the right rear projection point are greater than or equal to the threshold T1, or if both the left rear projection point and the right rear projection point are visible, then the orientation is the normal direction of the line connecting the left and right rear projection points after the inverse perspective transformation. That is, the left rear projection point and the right rear projection point are the selected target key points.
[0085] c. If the confidence scores of the projection points do not meet the conditions in rules a and b, then take the center of the projection area of the vehicle on the image as the first reference point, and take a second reference point at a certain pixel distance D from the first reference point along the direction detected on the image. Transform the first and second reference points in reverse perspective to the bird's-eye view to obtain the first target key point and the second target key point. The direction from the transformed first target key point to the second target key point is the orientation of the vehicle in the bird's-eye view. The pixel distance D can be preset to a fixed value or dynamically set according to the size of the vehicle.
[0086] In addition, you can refer to Figure 4 , Figure 4 This is a schematic diagram illustrating the effect of the projected area of the target object in the target motion estimation method of this application. From a bird's-eye view, straight lines parallel and perpendicular to the target orientation are drawn through each projection point. The maximum distance between these lines represents the size information of the target object, specifically its width W and length L. The center of the rectangle formed by the two pairs of lines with the largest distance is the center (x) of the target's projected area from the bird's-eye view. i ,y i ).
[0087] It should be noted that the execution order of the above selection rules a, b, and c is variable and can be implemented simultaneously. For example, the confidence levels of the four projection points of the vehicle are all greater than or equal to the preset confidence threshold and are visible points. The specific real-time steps can be adjusted according to the actual effect of the algorithm model, which will not be elaborated here.
[0088] Based on the above embodiments, this embodiment describes the step of selecting projection points with a confidence level greater than or equal to a preset confidence threshold as target key points based on preset selection rules and the obtained confidence levels of initial key points. Specifically, the method of this embodiment includes the following steps:
[0089] If there are no projection points greater than or equal to the preset threshold, the initial key region of the target object in the image to be processed is determined based on the initial key points; the center point of the initial key region is selected as the first reference point; based on the pose information of the target object in the image to be processed, a second reference point at a preset distance from the first reference point is determined; the first reference point and the second reference point are subjected to inverse perspective transformation to obtain the target key points.
[0090] For example, in conjunction with the scenario of selecting rule c in the aforementioned embodiments, if the confidence of the initial key points is less than the confidence threshold, that is, the confidence of the projection points is also less than the confidence threshold, then the confidence of the projection points is low. Therefore, it is necessary to reselect the center point of the projection area (initial key area) of the target object as the first reference point; determine the second reference point based on the orientation information of the target object in the image to be processed and the preset distance; perform inverse perspective transformation on the first reference point and the second reference point to obtain the first target key point and the second target key point, as well as the orientation information of the target object after the inverse perspective transformation.
[0091] Based on the above embodiments, the embodiments of this application further include: performing target detection on the target objects of each image to be processed in the image sequence to obtain the detection box of the target object, the initial key point information and the pose information of the target object;
[0092] Target tracking is performed based on the sequence relationship between multiple frames of images to be processed, the detection box of the target object, the initial key point information, and the pose information of the target object.
[0093] For example, the target motion estimation method in this application also includes a multi-target tracking method, which detects the target object through a target detection network to obtain the target object's detection box and identification information. Based on the detection box obtained by detecting the target object and the key points and pose information before and after the inverse perspective transformation, the matching and association between the images to be processed in the previous and next frames are performed so that the target objects with the same identification information can establish a connection in motion state, thereby realizing the tracking of multiple target objects in the continuous images to be processed. The specific multi-target tracking technology can refer to the multi-target tracking algorithm in the prior art, and will not be elaborated here.
[0094] It should be further noted that the entity executing the target motion estimation method can be a target motion estimation device. For example, the target motion estimation method can be executed by a terminal device, a server, or other processing devices. The terminal device can be a user equipment (UE), computer, mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, in-vehicle device, wearable device, etc. In some possible implementations, the target motion estimation method can be implemented by a processor calling computer-readable instructions stored in memory.
[0095] Figure 5 This is a block diagram illustrating a target motion estimation device according to an exemplary embodiment of this application. Figure 5 As shown, this exemplary target motion estimation device includes: an acquisition module 510, a transformation module 520, an error determination module 530, and a detection module 540. Specifically:
[0096] The acquisition module 510 is used to acquire the initial key point information of the target objects included in each image to be processed in the image sequence.
[0097] The transformation module 520 is used to perform coordinate transformation processing on the initial key point information to obtain the target key point information from a bird's-eye view.
[0098] The error determination module 530 is used to determine the error information corresponding to the target key points based on the target coordinate information of the target key points in the target key point information and the data distribution status of the acquired target key points.
[0099] The detection module 540 is used to perform motion estimation based on the sequence relationship between multiple frames of images to be processed, the target key point information and error information in each frame of images to be processed, and to obtain the motion estimation result of the target object.
[0100] In this exemplary target motion estimation device, the target object is located by converting the initial key point information of the detected target object in the image into target key point information from a bird's-eye view. Based on the target coordinate information of the target key points in the target key point information and the data distribution state of the acquired target key points, the error information corresponding to the target key points generated during target detection, data conversion, etc. is determined. Motion estimation is performed based on the sequence relationship between multiple frames of images to be processed, the target key point information in each frame of images to be processed, and the error information. Thus, by combining the error information and the positioning results, the accuracy and robustness of motion estimation of the target object can be improved.
[0101] The functions of each module can be found in the implementation examples of the target motion estimation method, and will not be repeated here.
[0102] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of an embodiment of the electronic device of this application. The electronic device 600 includes a memory 601 and a processor 602. The processor 602 is used to execute program instructions stored in the memory 601 to implement the steps in any of the above-described embodiments of the target motion estimation method. In a specific implementation scenario, the electronic device 600 may include, but is not limited to, a microcomputer or a server. In addition, the electronic device 600 may also include mobile devices such as laptops and tablets, which are not limited here.
[0103] Specifically, processor 602 controls itself and memory 601 to implement the steps in any of the above-described embodiments of the target motion estimation method. Processor 602 can also be referred to as a CPU (Central Processing Unit). Processor 602 may be an integrated circuit chip with signal processing capabilities. Processor 602 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor. Furthermore, processor 602 can be implemented using integrated circuit chips.
[0104] The above scheme achieves target object localization by converting the initial key point information of the detected target object in the image into target key point information from a bird's-eye view. Based on the target coordinate information of the target key points in the target key point information and the data distribution state of the acquired target key points, the error information corresponding to the target key points generated during target detection and data conversion is determined. Motion estimation is performed based on the sequence relationship between multiple frames of images to be processed, the target key point information in each frame of images to be processed, and the error information. Thus, by combining the error information and the localization results, the accuracy and robustness of motion estimation of the target object can be improved.
[0105] Please see Figure 7 , Figure 7This is a schematic diagram of a computer-readable storage medium according to an embodiment of the present application. The computer-readable storage medium 710 stores program instructions 711 that can be executed by a processor. The program instructions 711 are used to implement the steps in any of the above-described embodiments of the target motion estimation method.
[0106] The above scheme achieves target object localization by converting the initial key point information of the detected target object in the image into target key point information from a bird's-eye view. Based on the target coordinate information of the target key points in the target key point information and the data distribution state of the acquired target key points, the error information corresponding to the target key points generated during target detection and data conversion is determined. Motion estimation is performed based on the sequence relationship between multiple frames of images to be processed, the target key point information in each frame of images to be processed, and the error information. Thus, by combining the error information and the localization results, the accuracy and robustness of motion estimation of the target object can be improved.
[0107] In some embodiments, the functions or modules of the apparatus provided in this disclosure can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0108] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.
[0109] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0110] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. If the integrated unit is implemented as 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 this application, in essence, 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. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A target motion estimation method, characterized in that, The method includes: Obtain the initial key point information of the target objects included in each image to be processed in the image sequence; The initial key point information is subjected to coordinate transformation to obtain the target key point information from a bird's-eye view. Based on the target coordinate information of the target key points in the target key point information and the obtained data distribution state of the target key points, the error information corresponding to the target key points is determined; The target key points include a target center point and target neighboring points. The step of determining the error information corresponding to the target key points based on the target coordinate information of the target key points and the obtained data distribution state of the target key points includes: performing a weighted summation calculation based on the obtained center mean weight of the target center point and the obtained neighbor mean weight of the target neighboring points to obtain the error distribution mean in the error information; and performing a weighted summation calculation based on the error distribution mean and the obtained covariance weight of the target center point to obtain the error covariance in the error information. Motion estimation is performed based on the sequence relationship between multiple frames of images to be processed, the target key point information in each frame of images to be processed, and the error information, to obtain the motion estimation result of the target object.
2. The method according to claim 1, characterized in that, The step of performing coordinate transformation processing on the initial key point information to obtain target key point information from a bird's-eye view includes: An initial keypoint set is constructed based on the initial coordinate information and variance information of the initial keypoints in the initial keypoint information. Based on a preset transformation matrix, the initial key point set is subjected to inverse perspective transformation to obtain the target key point set, which includes the target key points.
3. The method according to claim 1, characterized in that, The step of performing motion estimation based on the sequence relationship between multiple frames of images to be processed, the target key point information in each frame of images to be processed, and the error information to obtain the motion estimation result of the target object includes: The pose information of the target object is determined based on the target key point information of the target object in each frame of the image to be processed. Based on the sequential relationship between the multiple frames of images to be processed, Kalman filtering is performed on the pose information of the target object and the error covariance in each frame of the image to be processed to obtain the motion estimation result of the target object.
4. The method according to claim 1, characterized in that, The initial key point information includes initial key points, and the step of performing coordinate transformation processing on the initial key point information to obtain target key point information from a bird's-eye view includes: Based on a preset transformation matrix, the initial key points are subjected to inverse perspective transformation to obtain the projection points of the bird's-eye view. The initial key points and the projection points correspond to each other. Based on the preset selection rules and the confidence level of the initial key points, the projection points with a confidence level greater than or equal to the preset confidence threshold are selected as the target key points.
5. The method according to claim 4, characterized in that, The step of selecting the projection points with a confidence level greater than or equal to a preset confidence threshold as the target key points based on preset selection rules and the obtained confidence levels of the initial key points includes: If there is no projection point greater than or equal to the preset threshold, then the initial key region of the target object in the image to be processed is determined based on the initial key point; The center point of the initial key region is selected as the first reference point; Based on the pose information of the target object in the image to be processed, a second reference point is determined at a preset distance from the first reference point; The target key points are obtained by performing inverse perspective transformation on the first reference point and the second reference point.
6. The method according to claim 1, characterized in that, The method further includes: Target detection is performed on the target objects in each image to be processed in the image sequence to obtain the detection bounding box of the target object, the initial key point information, and the pose information of the target object; The target object is tracked based on the sequence relationship between the multiple frames of images to be processed, the detection box of the target object, the initial key point information, and the pose information of the target object.
7. A target motion estimation device, characterized in that, The device includes: The acquisition module is used to acquire the initial key point information of the target objects included in each image to be processed in the image sequence; The transformation module is used to perform coordinate transformation processing on the initial key point information to obtain the target key point information from a bird's-eye view. An error determination module is used to determine the error information corresponding to the target key point based on the target coordinate information of the target key point in the target key point information and the obtained data distribution state of the target key point; The target key points include a target center point and target neighboring points. The step of determining the error information corresponding to the target key points based on the target coordinate information of the target key points and the obtained data distribution state of the target key points includes: performing a weighted summation calculation based on the obtained center mean weight of the target center point and the obtained neighbor mean weight of the target neighboring points to obtain the error distribution mean in the error information; and performing a weighted summation calculation based on the error distribution mean and the obtained covariance weight of the target center point to obtain the error covariance in the error information. The detection module is used to perform motion estimation based on the sequence relationship between multiple frames of images to be processed, the target key point information in each frame of images to be processed, and the error information, so as to obtain the motion estimation result of the target object.
8. An electronic device, characterized in that, The method includes a memory and a processor, the processor being configured to execute program instructions stored in the memory to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, they implement the method described in any one of claims 1 to 6.
Citation Information
Patent Citations
Lane line detection post-processing method and device
CN116152767A
Method and apparatus for enabling sequential groundview image projection synthesis and complicated scene reconstruction at map anomaly hotspot
US20200232800A1
