Automatic driving annotation data filtering method and device, electronic equipment and storage medium

By reading and filtering the obstacle timestamp data of autonomous vehicles, determining obstacle trajectories and filtering using trajectory comparison thresholds, the problem of low quality annotated data in autonomous vehicles is solved, and the accuracy and efficiency of filtering annotated data are improved.

CN118568414APending Publication Date: 2024-08-30CHINA FAW CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410710164.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the existing technology, it is difficult for self-driving vehicles to obtain high-quality annotation data, which leads to error in obstacle identification matching and positional movement of stationary obstacles, making it impossible to identify the quality of the annotation data, increasing human resource costs and low efficiency.

Method used

By reading the obstacle timestamp data collected by the autonomous vehicle, the obstacle identification and timestamp data are obtained, the obstacle trajectory data is determined, a trajectory change set is constructed based on the obstacle category and coordinate information, and the trajectory comparison threshold is used to filter the data. , determine the trajectory comparison ratio, and if it is greater than the preset threshold, it is determined to be normal trajectory data.

Benefits of technology

It improves the screening accuracy and efficiency of annotated data, removes low-quality data, retains high-quality annotated data, and solves the problem of being unable to obtain high-quality annotated data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568414A
    Figure CN118568414A
Patent Text Reader

Abstract

The invention discloses an automatic driving annotation data filtering method and device, electronic equipment and a storage medium. The method is characterized by comprising the following steps: acquiring an obstacle category and obstacle coordinate information in obstacle trajectory data, and constructing a trajectory change set corresponding to the obstacle trajectory data according to the obstacle coordinate information and the obstacle category; performing data statistics on each obstacle category in the trajectory change set, and determining the proportion of at least one trajectory category in the obstacle trajectory data; if the maximum track category proportion is larger than a preset normal category proportion threshold value, the maximum track category proportion is determined as a target comparison category, a track comparison threshold value corresponding to the target comparison category is obtained, data comparison is conducted on the track change set through the track comparison threshold value, and the track change set is obtained. Determining a track comparison proportion corresponding to the track change set; and if the trajectory comparison proportion is greater than a preset normal trajectory threshold, determining the obstacle trajectory data as normal trajectory data. And the data screening accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving data processing technology, and in particular to an autonomous driving labeled data filtering method, device, electronic device and storage medium. Background Art

[0002] When an autonomous vehicle is driving automatically, it can collect environmental information around the autonomous vehicle after sensing the surrounding environment of the vehicle through the vehicle's camera, laser radar, millimeter wave radar and other sensors. The collected environmental information needs to be labeled to distinguish the various obstacles and obstacle-related data in the environmental information. In an autonomous vehicle, accurate labeled data can effectively improve the route planning and safe driving capabilities of the vehicle's autonomous driving. At present, when processing the perceived data of the autonomous vehicle, due to the limited labeling level, the quality of the labeled original data and the influence of the frame extraction of the labeled data, obstacle identification matching errors are prone to occur during the labeling process, resulting in large fluctuations in the actual position of the stationary obstacle, and the stationary obstacle has speed problems. Due to the inability to identify the quality of the labeled data, some of the labeled data cannot be used. In the existing technology, the quality and number of labeling personnel are usually increased to improve the quality of the labeled data, but the human resource cost is high and the efficiency is low. Summary of the invention

[0003] The present invention provides a method, device, electronic device and storage medium for filtering autonomous driving annotation data to solve the technical problem that high-quality autonomous driving annotation data cannot be obtained in the prior art.

[0004] According to one aspect of the present invention, a method for filtering labeled data for autonomous driving is provided, comprising:

[0005] Reading obstacle timestamp data collected by the autonomous driving vehicle, obtaining at least one obstacle identifier of the obstacle timestamp data, and determining obstacle trajectory data according to the obstacle identifier and the obstacle timestamp data;

[0006] Obtaining obstacle categories and obstacle coordinate information in the obstacle trajectory data, and constructing a trajectory change set corresponding to the obstacle trajectory data according to the obstacle coordinate information and the obstacle category;

[0007] Acquire a trajectory comparison threshold corresponding to the obstacle category, perform data comparison on the trajectory change set using the trajectory comparison threshold, and determine a trajectory comparison ratio corresponding to the trajectory change set;

[0008] If the trajectory comparison ratio is greater than a preset normal trajectory threshold, the obstacle trajectory data is determined as normal trajectory data.

[0009] According to another aspect of the present invention, there is provided an apparatus for filtering labeled data for autonomous driving, comprising:

[0010] a data acquisition module, configured to read obstacle timestamp data collected by the autonomous driving vehicle, acquire at least one obstacle identifier of the obstacle timestamp data, and determine obstacle trajectory data according to the obstacle identifier and the obstacle timestamp data;

[0011] A data processing module, used to obtain the obstacle category and obstacle coordinate information in the obstacle trajectory data, and construct a trajectory change set corresponding to the obstacle trajectory data according to the obstacle coordinate information and the obstacle category;

[0012] An obstacle category comparison module, used to perform data statistics on each obstacle category in the trajectory change set, and determine the proportion of at least one trajectory category in the obstacle trajectory data;

[0013] A data filtering module is used to determine the largest trajectory category ratio as the target comparison category if it is greater than a preset normal category ratio threshold, and obtain the trajectory comparison threshold corresponding to the target comparison category, perform data comparison on the trajectory change set by using the trajectory comparison threshold, and determine the trajectory comparison ratio corresponding to the trajectory change set

[0014] The data judgment module is used to determine the obstacle trajectory data as normal trajectory data if the trajectory comparison ratio is greater than a preset normal trajectory threshold.

[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0016] at least one processor; and

[0017] a memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the autonomous driving annotation data filtering method described in any embodiment of the present invention.

[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for filtering autonomous driving annotation data as described in any embodiment of the present invention when executed.

[0020] The technical solution of the embodiment of the present invention reads the obstacle timestamp data collected by the autonomous driving vehicle, obtains at least one obstacle identifier of the obstacle timestamp data, determines the obstacle trajectory data according to the obstacle identifier and the obstacle timestamp data, sorts the data corresponding to each obstacle identifier based on the obstacle identifier and the obstacle timestamp data, and determines the trajectory data corresponding to an obstacle identifier, which helps to determine the trajectory data corresponding to the obstacle in complex data and improves the filtering efficiency and accuracy; obtains the obstacle category and obstacle coordinate information in the obstacle trajectory data, constructs a trajectory change set corresponding to the obstacle trajectory data according to the obstacle coordinate information and the obstacle category, determines a trajectory change set corresponding to the obstacle according to the obstacle coordinate information and the obstacle category, and then filters the annotation information corresponding to the obstacle in the form of trajectory, which can effectively improve the efficiency of data filtering, and by filtering The method of obtaining trajectory data can ensure the quality of filtering; obtaining the trajectory comparison threshold corresponding to the obstacle category, performing data comparison on the trajectory change set through the trajectory comparison threshold, determining the trajectory comparison ratio corresponding to the trajectory change set, and determining the trajectory comparison ratio of the trajectory change set that meets the high-quality labeled data through data comparison, and then if the trajectory comparison ratio is greater than the preset normal trajectory threshold, the obstacle trajectory data is determined to be normal trajectory data. When the trajectory comparison ratio is greater than the preset normal trajectory threshold, the obstacle trajectory data is determined to be high-quality labeled data, thereby realizing data filtering of the obstacle trajectory data, retaining high-quality labeled data, and removing unusable low-quality data, solving the technical problem that high-quality autonomous driving labeled data cannot be obtained in the prior art, realizing filtering of abnormal trajectory information through trajectory screening, retaining high-quality labeled data, and improving the accuracy and efficiency of labeled data screening.

[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 A flowchart of a method for filtering annotated data for autonomous driving is provided for an embodiment of the present invention;

[0024] Figure 2A schematic diagram describing trajectory changes in a trajectory change set is disclosed;

[0025] Figure 3 A flowchart of another method for filtering autonomous driving annotation data provided by an embodiment of the present invention;

[0026] Figure 4 A flowchart of another method for filtering autonomous driving annotation data provided by an embodiment of the present invention;

[0027] Figure 5 A flowchart of another method for filtering autonomous driving annotation data provided by an embodiment of the present invention;

[0028] Figure 6 A schematic diagram of the structure of a dynamic driving annotation data filtering device provided in an embodiment of the present invention.

[0029] Figure 7 A schematic structural diagram of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "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.

[0032] Figure 1A flowchart of a method for filtering annotated data for autonomous driving is provided for an embodiment of the present invention. This embodiment is applicable to filtering the annotated data after the obstacle data collected by the autonomous driving vehicle is annotated. The method can be performed by an autonomous driving annotated data filtering device. The autonomous driving annotated data filtering device can be implemented in the form of hardware and / or software. The autonomous driving annotated data filtering device can be configured in an electronic device. Figure 1 As shown, the method includes:

[0033] S110. Read obstacle timestamp data collected by the autonomous driving vehicle, obtain at least one obstacle identifier of the obstacle timestamp data, and determine obstacle trajectory data based on the obstacle identifier and the obstacle timestamp data.

[0034] Among them, the autonomous driving vehicle can be a vehicle equipped with various perception sensors and capable of automatic driving.

[0035] Among them, the obstacle timestamp data can be obstacle data recorded in a timestamp format after the autonomous driving vehicle collects information about the vehicle's surrounding environment. It should be noted that when the autonomous driving vehicle collects obstacle information in the environment through the perception sensor, the obstacle information collected by the autonomous driving vehicle is recorded in the form of a timestamp, and all obstacle information collected at the current time is recorded in the time identifier corresponding to each timestamp, and in the obstacle timestamp data, different obstacles are respectively set with corresponding obstacle identifiers, and each obstacle identifier corresponding to the obstacle is automatically identified, and the obstacle category, timestamp coordinate information, obstacle motion state, obstacle orientation angle information, obstacle size information, obstacle lane information and obstacle point cloud information are marked.

[0036] Among them, the obstacle identification can be a unique identification of the obstacle. Exemplarily, the obstacle identification can be used to distinguish each different obstacle in the form of an ID. The obstacle category can be a category to which the obstacle belongs. Exemplarily, the obstacle category can include vehicles, bicycles, pedestrians, traffic equipment and traffic blocking objects. The obstacle motion state can be the current motion state information of the obstacle, and the obstacle motion state includes two states: static and moving. The obstacle lane information can be the relationship between the lane where the obstacle is located and the lane where the target driving vehicle is located. Exemplarily, in a three-lane road, the target driving vehicle is located in the second lane, and the obstacle lane information can be the same lane, the first lane and the third lane. The obstacle size information can be the size information of the obstacle. Exemplarily, the obstacle size information can be represented by length, width and height, and an obstacle size information can be represented as: length, width and height, and the obstacle orientation angle information can be the orientation information representing the obstacle. For example, the obstacle orientation angle information is represented by the yaw angle, which is composed of X-roll (X-roll represents the roll angle), Y-pitch (Y-pitch represents the pitch angle) and Z-yaw (Z-yaw represents the yaw angle). The obstacle point cloud information can be the number of point clouds contained in the obstacle. The timestamp coordinate information can be the coordinate information of the obstacle in the vehicle coordinate system of the autonomous driving vehicle, and the vehicle coordinate system can be a coordinate system pre-constructed by the autonomous driving vehicle.

[0037] Among them, the obstacle trajectory data can be the trajectory of an obstacle within a certain time range. It should be noted that the obstacle trajectory data is composed of obstacle timestamp data corresponding to the obstacle identifier within a certain time range. Exemplarily, the obstacle timestamp data is in units of 1s, recording the obstacle information collected by the autonomous driving vehicle within 30s. There are 30 obstacle timestamps and corresponding obstacle information. There are 3 obstacle IDs in the obstacle information, namely obstacle 001, obstacle 002 and obstacle 003. Each obstacle timestamp and corresponding obstacle information have information corresponding to 3 obstacle IDs, and then the obstacle ID is selected as obstacle 001, and the obstacle information corresponding to obstacle 001 in each obstacle timestamp is obtained from the 30 obstacle timestamps and corresponding obstacle information, and then the obstacle trajectory data corresponding to obstacle 001 is formed in the 30s time range in chronological order.

[0038] Optionally, the autonomous driving vehicle collects obstacles around the vehicle environment through perception sensors, records the collected obstacle information in the form of timestamps, obtains obstacle timestamp data, stores the obstacle timestamp data in a storage medium of the autonomous driving vehicle, and directly calls and reads the stored obstacle timestamp data when processing the obstacle timestamp data.

[0039] Specifically, by reading the obstacle timestamp data stored in the autonomous driving vehicle, at least one obstacle identifier in the obstacle timestamp data is obtained, data retrieval is performed in the obstacle timestamp data according to the obstacle identifier, the obstacle information corresponding to the obstacle identifier is determined, and then the obstacle trajectory data corresponding to the obstacle identifier is determined.

[0040] Optionally, in another optional embodiment of the present invention, determining obstacle trajectory data according to the obstacle identifier and the obstacle timestamp data includes:

[0041] Performing data retrieval in the obstacle timestamp data through the obstacle identifier to determine the automatic annotation data and coordinate system conversion matrix corresponding to the obstacle identifier;

[0042] Acquire the timestamp coordinate information in the automatic annotation data, perform coordinate system conversion on the timestamp coordinate information through the coordinate system conversion matrix, and determine the obstacle coordinate information corresponding to the timestamp coordinate information;

[0043] Performing speed calculation based on the obstacle coordinate information to determine the obstacle speed and the trajectory speed vector;

[0044] Setting the obstacle identifier as an obstacle trajectory identifier, and determining the automatic annotation data, the obstacle speed, and the trajectory speed vector corresponding to the obstacle identifier as an obstacle trajectory file corresponding to the obstacle trajectory identifier;

[0045] The obstacle trajectory identifier and the obstacle trajectory file corresponding to the obstacle trajectory identifier are determined as obstacle trajectory data.

[0046] Among them, the automatically labeled data can be the data that the autonomous driving vehicle automatically labels and organizes after sensing the obstacle. It should be noted that the automatically labeled data includes obstacle category, timestamp coordinate information, obstacle motion state, obstacle orientation angle information, obstacle size information, obstacle lane information and obstacle point cloud information. The automatically labeled data has the timestamp information of the corresponding obstacle timestamp data.

[0047] The coordinate system conversion matrix may be a conversion matrix that converts coordinates in the vehicle coordinate system into coordinates in the world coordinate system. It should be noted that the coordinate system conversion matrix may be pre-set in the autonomous driving vehicle, and the coordinates of obstacles in the autonomous driving vehicle can be directly converted into coordinate information in the world coordinate system through the coordinate system conversion matrix.

[0048] Optionally, after obtaining the obstacle timestamp data, data retrieval is performed in the obstacle timestamp data according to the obstacle identifier, and the automatic annotation data and coordinate system conversion matrix corresponding to the obstacle identifier are retrieved. Exemplarily, the obstacle identifier is set to obstacle 001, and the automatic annotation data corresponding to the obstacle identifier 001 and the coordinate system conversion matrix preset in the obstacle timestamp data are retrieved in the obstacle timestamp data.

[0049] The obstacle coordinate information may be obstacle coordinate information corresponding to the timestamp coordinate information in the world coordinate system.

[0050] Optionally, the timestamp coordinate information in the automatic annotation data is obtained, and the timestamp coordinate information is converted into a coordinate system using a preset coordinate system conversion matrix, so as to convert the timestamp coordinate information in the vehicle coordinate system into obstacle coordinate information.

[0051] Among them, the obstacle speed can be the linear speed of the obstacle in the obstacle timestamp data. The trajectory speed vector can be the absolute speed of the obstacle in the obstacle timestamp data. It should be noted that the obstacle speed can be the speed of the obstacle, and the trajectory speed vector can be the speed vector of the obstacle. Exemplarily, the trajectory speed vector can be represented by [Vx, Vy, Vz], where Vx represents the speed vector in the X-axis direction in the world coordinate system, Vy represents the speed vector in the Y-axis direction in the world coordinate system, and Vz represents the speed vector in the Z-axis direction in the world coordinate system.

[0052] Optionally, after obtaining the obstacle coordinate information in the world coordinate system, the linear velocity and velocity vector of the obstacle are calculated according to the obstacle coordinate information and the timestamp to obtain the obstacle velocity and trajectory velocity vector.

[0053] The obstacle trajectory file may be a file that uses the obstacle trajectory identifier as a storage identifier and stores the automatically labeled data, obstacle speed, and trajectory speed vector corresponding to the obstacle trajectory identifier. It should be noted that when generating the obstacle trajectory file, the obstacle trajectory identifier is used as a file identifier, and the automatically labeled data, obstacle speed, and trajectory speed vector corresponding to the obstacle trajectory identifier are stored as file data.

[0054] Optionally, for each obstacle trajectory identifier, the obstacle trajectory identifier and an obstacle trajectory file corresponding to the obstacle trajectory identifier are set as obstacle trajectory data corresponding to the obstacle trajectory identifier.

[0055] Optionally, after calculating the obstacle speed, for the time interval corresponding to each timestamp, the trajectory acceleration data of the obstacle coordinates corresponding to each timestamp is calculated using the obstacle speed and the time interval, the trajectory acceleration data is stored in the obstacle trajectory file, and then the trajectory acceleration data is set as the obstacle trajectory data corresponding to the obstacle trajectory identifier.

[0056] S120: Obtain obstacle categories and obstacle coordinate information in the obstacle trajectory data, and construct a trajectory change set corresponding to the obstacle trajectory data according to the obstacle coordinate information and the obstacle categories.

[0057] The trajectory change set may be a set of all obstacle coordinate information corresponding to different obstacle categories. It should be noted that, after sensing an obstacle, the autonomous driving vehicle cannot accurately determine the obstacle category when automatically labeling the information corresponding to the same obstacle identifier, and thus there may be multiple different obstacle categories in one trajectory, resulting in multiple obstacle categories for one obstacle in the trajectory change set.

[0058] Specifically, data is extracted from the obstacle trajectory data to obtain the obstacle category and obstacle coordinate information corresponding to each timestamp, and a trajectory change set is constructed in turn according to the obstacle category and obstacle coordinate information corresponding to each timestamp to determine the trajectory change set.

[0059] S130: Perform data statistics on each obstacle category in the trajectory change set to determine a proportion of at least one trajectory category in the obstacle trajectory data.

[0060] The trajectory category ratio may be the ratio of the number of obstacle categories in the trajectory change set.

[0061] Optionally, in the trajectory change set, there are multiple different obstacle categories. By counting the number of each obstacle category, and then calculating the proportion of each obstacle category in the trajectory change set, the trajectory category proportion corresponding to each obstacle list is determined. Exemplarily, there are 30 obstacle identifiers in the trajectory change set, and there are 4 obstacle categories. The number of obstacle categories corresponding to the statistics is 21 vehicles, 5 bicycles, 2 traffic blocking objects and 2 pedestrians, respectively. Then, the corresponding trajectory category proportions can be calculated as: 70%, 16.7%, 6.7% and 6.7%.

[0062] S140: If the largest trajectory category ratio is greater than a preset normal category ratio threshold, the largest trajectory category ratio is determined as a target comparison category, and a trajectory comparison threshold corresponding to the target comparison category is obtained, and data comparison is performed on a trajectory change set using the trajectory comparison threshold to determine a trajectory comparison ratio corresponding to the trajectory change set.

[0063] The target comparison category may be the obstacle category corresponding to the trajectory change set. It should be noted that when filtering the trajectories in the trajectory change set, in order to improve the efficiency and accuracy of filtering, it is necessary to determine the obstacle category corresponding to the trajectory change set and set the target comparison category of the trajectory change set.

[0064] The normal category comparison threshold may be a threshold pre-set to determine the obstacle category corresponding to the obstacle in the trajectory change set. It should be noted that, since the obstacle category calibration of the autonomous driving vehicle is too chaotic during automatic calibration, the trajectory category ratio corresponding to the calibrated obstacle category is compared with the normal category comparison threshold to determine the true category corresponding to the obstacle.

[0065] Optionally, the normal category comparison threshold is usually calibrated and set in advance, and the set normal category comparison threshold is generally above 50%. When comparing with the normal list comparison threshold, the maximum value in the trajectory category ratio is usually selected to compare with the normal category comparison threshold. If the maximum value in the trajectory category ratio is greater than the normal category comparison threshold, the obstacle category corresponding to the maximum value in the trajectory category ratio is determined as the target comparison category.

[0066] The track comparison threshold may be a pre-calibrated data threshold for determining whether the track is abnormal. It should be noted that, for a track of an obstacle, an adaptive calibration is usually performed according to the type of obstacle, and different track comparison thresholds are calibrated for different obstacle types.

[0067] The trajectory comparison ratio may be a ratio of the number of elements in the trajectory change set whose set elements are greater than the trajectory comparison threshold to the total number of elements in the trajectory change set.

[0068] Optionally, when describing the obstacle trajectory through a trajectory change set, the timestamp and the obstacle coordinate information corresponding to each timestamp are connected to form the obstacle trajectory, and the trajectory angle that appears after the obstacle coordinate information corresponding to each timestamp and the obstacle coordinate information corresponding to the adjacent timestamp is calculated, and the trajectory angle corresponding to each timestamp is used as an element in the trajectory change set, and the trajectory angles of all timestamps and the obstacle coordinate information corresponding to the timestamp are calculated in turn, so as to obtain the trajectory change set. The preset trajectory comparison threshold is also set as the angle threshold, and then according to the data comparison between the trajectory comparison threshold and the trajectory change set, the size relationship between each trajectory angle in the trajectory change set and the trajectory comparison threshold is judged in turn. If the trajectory angle is greater than the trajectory comparison threshold, the trajectory angle is recorded as an element greater than the trajectory comparison threshold. If the trajectory angle is less than the trajectory comparison threshold, the trajectory angle is recorded as an element less than the trajectory comparison threshold. Finally, the number of trajectory angles greater than the trajectory comparison threshold in the trajectory change set is counted, and then the ratio between the number and the total number of elements in the trajectory change set is determined to obtain the trajectory comparison ratio. The trajectory angle is used to represent the obstacle displacement change between the obstacle coordinate information corresponding to each timestamp and the obstacle coordinate information corresponding to the next timestamp.

[0069] For example, Figure 2 A schematic diagram for describing trajectory changes in a trajectory change set is disclosed. Figure 2 In the equation, i is used to represent the coordinate point of the obstacle in the world coordinate system at the i-th timestamp, i-1 is used to represent the coordinate point of the obstacle in the world coordinate system at the timestamp before the i-th timestamp, that is, the i-1-th timestamp, i+1 is used to represent the coordinate point of the obstacle in the world coordinate system at the timestamp after the i-th timestamp, that is, the i+1-th timestamp, and so on. The i+2-th is used to represent the coordinate point of the obstacle in the world coordinate system at the two timestamps after the i-th timestamp. Connect each coordinate point to obtain the trajectory motion change diagram of the obstacle, and then calculate the trajectory angle yaw_i of the displacement change from the i-th timestamp to the i+1-th timestamp according to the coordinate points from the i-th timestamp to the i+1-th timestamp, and calculate the trajectory angle yaw_i+1 of the displacement change from the i+1-th timestamp to the i+2-th timestamp. Then, the trajectory change set is calculated in sequence. The trajectory change set is a combination of all angle changes in the trajectory of the obstacle, which can be expressed as {yaw_1, ...yaw_i, yaw_i+1, ...yaw_n}.

[0070] S150: If the trajectory comparison ratio is greater than a preset normal trajectory threshold, determining the obstacle trajectory data as normal trajectory data.

[0071] The normal trajectory threshold may be a ratio threshold pre-set to determine whether the obstacle trajectory is a normal trajectory.

[0072] Specifically, after obtaining the trajectory comparison ratio corresponding to the trajectory change set, the trajectory comparison ratio is compared with a preset normal trajectory threshold. If the trajectory comparison ratio is greater than the preset normal trajectory threshold, the obstacle trajectory data is determined as normal trajectory data.

[0073] The technical solution of the embodiment of the present invention reads the obstacle timestamp data collected by the autonomous driving vehicle, obtains at least one obstacle identifier of the obstacle timestamp data, determines the obstacle trajectory data according to the obstacle identifier and the obstacle timestamp data, sorts the data corresponding to each obstacle identifier based on the obstacle identifier and the obstacle timestamp data, and determines the trajectory data corresponding to an obstacle identifier, which helps to determine the trajectory data corresponding to the obstacle in complex data and improves the filtering efficiency and accuracy; obtains the obstacle category and obstacle coordinate information in the obstacle trajectory data, constructs a trajectory change set corresponding to the obstacle trajectory data according to the obstacle coordinate information and the obstacle category, determines a trajectory change set corresponding to the obstacle according to the obstacle coordinate information and the obstacle category, and then filters the annotation information corresponding to the obstacle in the form of trajectory, which can effectively improve the efficiency of data filtering, and by filtering The method of obtaining trajectory data can ensure the quality of filtering; obtaining the trajectory comparison threshold corresponding to the obstacle category, performing data comparison on the trajectory change set through the trajectory comparison threshold, determining the trajectory comparison ratio corresponding to the trajectory change set, and determining the trajectory comparison ratio of the trajectory change set that meets the high-quality labeled data through data comparison, and then if the trajectory comparison ratio is greater than the preset normal trajectory threshold, the obstacle trajectory data is determined to be normal trajectory data. When the trajectory comparison ratio is greater than the preset normal trajectory threshold, the obstacle trajectory data is determined to be high-quality labeled data, thereby realizing data filtering of the obstacle trajectory data, retaining high-quality labeled data, and removing unusable low-quality data, solving the technical problem that high-quality autonomous driving labeled data cannot be obtained in the prior art, realizing filtering of abnormal trajectory information through trajectory screening, retaining high-quality labeled data, and improving the accuracy and efficiency of labeled data screening.

[0074] Figure 3 A flowchart of another method for filtering annotated data for autonomous driving provided by an embodiment of the present invention. The relationship between this embodiment and the above embodiment is that after the obstacle trajectory data does not meet the obstacle trajectory filtering conditions, a specific method for further filtering the obstacle trajectory data is required, such as Figure 3 As shown, the method includes:

[0075] S310: If the trajectory comparison ratio is less than a preset normal trajectory threshold, obtaining the obstacle speed and obstacle motion state in the obstacle trajectory data.

[0076] Specifically, after obtaining the trajectory comparison ratio corresponding to the trajectory change set, the trajectory comparison ratio is compared with a preset normal trajectory threshold. If the trajectory comparison ratio is less than the preset normal trajectory threshold, the obstacle speed and obstacle motion state in the obstacle trajectory data are obtained.

[0077] S320: construct a trajectory speed set according to the target comparison category and the obstacle speed, and construct a trajectory running state set according to the target comparison category and the obstacle motion state.

[0078] The trajectory speed set may be a set consisting of all obstacle speeds corresponding to the target comparison categories of the recorded obstacles; and the trajectory running state set may be a set consisting of all obstacle motion states corresponding to the target comparison categories of the recorded obstacles.

[0079] Specifically, a trajectory speed set is constructed according to the target comparison category of the obstacle and the obstacle speed, and a trajectory running state set is constructed according to the target comparison category of the obstacle and the obstacle motion state.

[0080] Exemplarily, the target comparison category of the obstacle can be set to vehicle, the obstacle speed can be represented by speed, the obstacle speed corresponding to the i-th timestamp can be speed_i, and the obstacle speed corresponding to the i+1-th timestamp can be speed_i+1, and the elements in the trajectory speed set can be {speed_0, speed_1, ...speed_i, speed_i+1, ...speed_n}; and there are two corresponding obstacle motion states, which are divided into static and dynamic states. The value corresponding to the dynamic state can be set to 1, and the static state can be 0. The obstacle motion state can be represented by status, the obstacle motion state corresponding to the i-th timestamp can be status_i, and the obstacle motion state corresponding to the i+1-th timestamp can be status_i+1, and the trajectory running state set can be represented by {status_0, status_1, ...status_i, status_i+1, ...status_n}.

[0081] S330: Obtain a speed comparison threshold and a motion state threshold corresponding to the target comparison category, perform data comparison on the trajectory speed set using the speed comparison threshold, and determine a speed comparison ratio corresponding to the trajectory speed set.

[0082] The speed comparison threshold may be a pre-calibrated data threshold for determining whether there is an abnormality in the trajectory speed; it should be noted that the speed comparison threshold is calibrated with different values ​​according to different obstacle categories, and the speed comparison threshold is used to determine whether the speed change of the obstacle meets the obstacle category. For example, if the target comparison category is a pedestrian, and the corresponding pedestrian speed comparison threshold is set to a maximum of 10km / h, if the trajectory speed in the trajectory speed set is greater than the speed comparison threshold, it is considered that the trajectory speed in the trajectory speed set corresponding to the obstacle is abnormal.

[0083] The motion state threshold may be a data threshold pre-calibrated for determining the relationship between the trajectory speed and the static motion state of the obstacle. It should be noted that the motion state of the obstacle needs to be the same as the motion state corresponding to the trajectory speed of the obstacle, and the trajectory speed of the obstacle needs to be compared with the motion state threshold. If the trajectory speed of the obstacle is less than the motion state threshold, the state corresponding to the trajectory speed of the obstacle is considered to be a static state. If the trajectory speed of the obstacle is greater than the motion state threshold, the state corresponding to the trajectory speed of the obstacle is considered to be a motion state. After the obstacle trajectory speed is identified, it is determined whether the motion state of the obstacle is the same as the motion state corresponding to the trajectory speed of the obstacle.

[0084] Optionally, for the target comparison category corresponding to the obstacle, a speed comparison threshold and a motion state threshold corresponding to the target comparison category are obtained, and the speed comparison threshold is compared with each trajectory speed in the trajectory speed set. If the trajectory speed in the trajectory speed set is greater than the speed comparison threshold, the trajectory speed is recorded as an element greater than the speed comparison threshold; if the trajectory speed is less than the speed comparison threshold, the trajectory speed is recorded as an element less than the speed comparison threshold. Finally, the number of trajectory speeds greater than the speed comparison threshold in the trajectory speed set is counted, and the ratio between the number and the total number of elements in the trajectory speed set is determined to obtain the speed comparison ratio.

[0085] S340: If the speed comparison ratio is greater than a preset normal speed threshold, the trajectory speed set is compared using the motion state threshold to determine a trajectory speed state comparison set.

[0086] The normal speed threshold may be a proportional threshold pre-set to determine whether the trajectory speed corresponding to the obstacle trajectory is a normal speed, and the normal speed threshold is used to determine whether the obstacle trajectory is an abnormal trajectory.

[0087] The trajectory speed state comparison set may be a set of motion states corresponding to the trajectory speed of the obstacle. It should be noted that after determining whether the motion state of the obstacle is the same as the motion state corresponding to the trajectory speed of the obstacle, the corresponding determination result is stored in the trajectory speed state comparison set, and the position of the set element in the trajectory speed state comparison set corresponds to the position of the element in the trajectory speed set one by one, and the position corresponding to the trajectory speed in each trajectory speed set and the position corresponding to the determination result in the trajectory speed state comparison set are the same.

[0088] Specifically, after obtaining the speed comparison ratio corresponding to the trajectory speed set, the speed comparison ratio is compared with a preset normal speed threshold. If the speed comparison ratio is greater than the preset normal speed threshold, the trajectory speed set is compared through the motion state threshold to determine the trajectory speed state comparison set.

[0089] S350: Compare the set elements of the trajectory speed state comparison set with the set elements of the trajectory running state set one by one to determine the same proportion of the elements corresponding to the trajectory speed state comparison set.

[0090] The set elements of the trajectory speed state comparison set may be the motion state of the obstacle and the judgment result of the motion state corresponding to the trajectory speed of the obstacle.

[0091] The element same ratio may be a ratio of the set elements in the trajectory speed state comparison set to the set elements in the trajectory running state set.

[0092] Optionally, by comparing the set elements of the trajectory speed state comparison set with the corresponding set elements of the trajectory running state set one by one, it is determined whether the judgment results of the motion state of the obstacle and the motion state corresponding to the trajectory speed of the obstacle are the same. If the values ​​corresponding to the set elements of the two are the same, the number corresponding to the record set element is increased and the next set element is determined. If the set elements of the two are different, the next set element is determined, and then the total number of set elements of the trajectory speed state comparison set that are the same as the set elements of the trajectory running state set is obtained, and then the same proportion of elements corresponding to the trajectory speed state comparison set is determined.

[0093] S360: If the element identical ratio is greater than a preset normal motion state threshold, then obtaining the trajectory acceleration data in the obstacle trajectory data and the acceleration comparison threshold corresponding to the target comparison category.

[0094] The normal motion state threshold may be a ratio threshold pre-set to determine whether the motion state of the obstacle is normal.

[0095] The acceleration comparison threshold may be a data threshold that is pre-calibrated and used to determine whether there is an abnormality in the acceleration of the trajectory.

[0096] Specifically, if the same ratio of elements corresponding to the trajectory speed state comparison set is greater than the preset normal motion state threshold, the trajectory corresponding to the obstacle identifier satisfies the filtering of motion speed and motion state, then the trajectory acceleration data in the obstacle trajectory data and the acceleration comparison threshold corresponding to the target comparison category are obtained, and the trajectory of the obstacle corresponding to the obstacle identifier is accelerated.

[0097] S370: construct a trajectory acceleration set corresponding to the obstacle trajectory data according to the trajectory acceleration data and the target comparison category.

[0098] The trajectory acceleration set may be a set consisting of all trajectory acceleration data corresponding to the target comparison category.

[0099] Optionally, after obtaining the trajectory acceleration data, a trajectory acceleration set is constructed according to the target comparison category and the trajectory acceleration data. The set elements in the trajectory acceleration set are arranged in order according to the timestamps corresponding to the obstacle coordinates, and the set elements are the trajectory acceleration data corresponding to each timestamp. Exemplarily, the trajectory acceleration data can be represented by acceleration, the trajectory acceleration data of the i-th timestamp can be represented by acceleration_i, the trajectory acceleration data of the i+1-th timestamp can be represented by acceleration_i+1, and so on. The trajectory acceleration set can be represented by {acceleration_1, ... acceleration_i, acceleration_i+1, ... acceleration_n}.

[0100] S380: Perform data comparison on the trajectory acceleration set using the acceleration comparison threshold to determine an acceleration comparison ratio corresponding to the trajectory acceleration set.

[0101] The acceleration comparison ratio may be a ratio of the number of elements in the trajectory acceleration set whose set elements are less than the acceleration comparison threshold to the total number of elements in the trajectory acceleration set.

[0102] Optionally, the set elements of the trajectory acceleration set are compared with the acceleration comparison threshold one by one, that is, the relationship between the numerical value of the trajectory acceleration data and the acceleration comparison threshold is determined; if the numerical value of the trajectory acceleration data is less than the acceleration comparison threshold, the number of elements whose numerical value of the trajectory acceleration data is less than the acceleration comparison threshold is recorded; if the numerical value of the trajectory acceleration data is greater than the acceleration comparison threshold, the numerical value of the next trajectory acceleration data is determined; after the data comparison is completed, the total number of trajectory acceleration data whose numerical value is less than the acceleration comparison threshold is determined, and then the acceleration comparison ratio corresponding to the trajectory acceleration set is determined.

[0103] S390: If the acceleration comparison ratio is less than a preset normal acceleration threshold, the obstacle trajectory data is determined as normal trajectory data.

[0104] The normal acceleration threshold may be a proportional threshold preset to determine whether the obstacle acceleration is normal acceleration.

[0105] Specifically, after the acceleration comparison ratio is obtained, the acceleration comparison ratio is compared with a preset normal acceleration threshold value. If the acceleration comparison ratio is greater than the preset normal acceleration threshold value, the obstacle trajectory data is determined as normal trajectory data.

[0106] After comparing the obstacle trajectory, when the obstacle trajectory data does not meet the obstacle trajectory filtering conditions, the present invention compares the trajectory speed and the motion state of the obstacle, and after meeting the filtering conditions corresponding to the obstacle trajectory speed and the motion state, further filters the obstacle acceleration information, and then determines that the obstacle trajectory data is normal trajectory data. It can realize accurate filtering of obstacle timestamp data through filtering rules of different priorities, further improve the filtering accuracy of abnormal trajectory information in the obstacle timestamp data, effectively retain high-quality labeled data, and improve the accuracy and efficiency of labeled data screening.

[0107] Figure 4 A flowchart of another method for filtering annotated data for autonomous driving provided by an embodiment of the present invention. The relationship between this embodiment and the above embodiment is that after the obstacle trajectory data does not meet the obstacle motion state filtering condition, a specific method for further filtering the obstacle trajectory data is required, such as Figure 4 As shown, the method includes:

[0108] S410: If the element identical ratio is less than a preset normal motion state threshold, obtain a trajectory speed vector in the obstacle trajectory data and a speed direction comparison threshold corresponding to the target comparison category.

[0109] The speed direction comparison threshold may be a pre-calibrated data threshold for determining whether the trajectory speed vector has an abnormality. It should be noted that in the obstacle trajectory data, the direction of the obstacle cannot be determined, and then the velocity angle is calculated for each timestamp using the trajectory speed vector to obtain the trajectory speed angle for filtering the speed direction. The value of the speed direction comparison threshold may be an angle threshold.

[0110] For example, the trajectory velocity vector can be represented by [Vx, Vy, Vz], and the trajectory velocity vector of the i-th timestamp can be represented by [Vx_i, Vy_i, Vz_i]. Then, the velocity vectors in the two directions of Vx_i and Vy_i are calculated by the inverse tangent method to obtain the trajectory velocity angle. The trajectory velocity angle can be represented by direction.

[0111] Specifically, after obtaining the acceleration comparison ratio, the acceleration comparison ratio is compared with the preset normal acceleration threshold. If the acceleration comparison ratio is less than the preset normal acceleration threshold, the obstacle trajectory data needs to be further filtered to obtain the trajectory velocity vector in the obstacle trajectory data and the velocity direction comparison threshold corresponding to the target comparison category.

[0112] S420: construct a trajectory speed direction set corresponding to the obstacle trajectory data according to the trajectory speed vector and the target comparison category.

[0113] The trajectory speed direction set may be a set of all trajectory speed angles corresponding to the target comparison category of the recorded obstacles.

[0114] Specifically, after the trajectory velocity vector is obtained, the trajectory velocity angle is calculated according to the trajectory velocity vector to obtain the trajectory velocity angle corresponding to each trajectory velocity vector, and then a trajectory velocity direction set is constructed according to all trajectory velocity angles and a target comparison list.

[0115] Exemplarily, the trajectory speed angle is represented by direction, then the trajectory speed angle of the i-th timestamp can be represented by direction_i, the trajectory speed angle of the i+1-th timestamp can be represented by direction_i+1, and so on. The trajectory speed direction set can be represented by {direction_1, ...direction_i, direction_i+1, ...direction_n}.

[0116] S430 , performing data comparison on the trajectory speed direction set using the speed direction comparison threshold to determine a speed direction comparison ratio corresponding to the trajectory speed direction set.

[0117] The speed direction comparison ratio may be a ratio of the number of elements in the trajectory speed direction set whose set elements are smaller than the speed direction comparison threshold to the total number of elements in the trajectory speed direction set.

[0118] Optionally, the trajectory speed angles of the trajectory speed direction set are compared with the speed direction comparison threshold one by one, that is, the magnitude relationship between the angle value of the trajectory speed angle and the speed direction comparison threshold is determined; if the angle value of the trajectory speed angle is less than the speed direction comparison threshold, the number of set elements whose angle value of the trajectory speed angle is less than the speed direction comparison threshold is recorded; if the angle value of the trajectory speed angle is greater than the speed direction comparison threshold, the angle value of the next trajectory speed angle is determined; after the data comparison is completed, the total number of set elements whose angle value of the trajectory speed angle is less than the speed direction comparison threshold is determined, and then the speed direction comparison ratio corresponding to the trajectory speed direction set is determined.

[0119] S440: If the speed direction comparison ratio is greater than a preset normal speed direction ratio threshold, obtain the obstacle orientation angle information in the obstacle trajectory data and the orientation angle judgment threshold corresponding to the target comparison category.

[0120] The normal speed direction ratio threshold may be a ratio threshold pre-set to determine whether the speed direction of the obstacle is the normal speed direction.

[0121] The orientation angle determination threshold may be a pre-calibrated data threshold for determining whether the orientation angle of the obstacle is abnormal.

[0122] Specifically, when the speed direction comparison ratio corresponding to the trajectory speed direction set is greater than the preset normal motion state threshold, the trajectory corresponding to the obstacle identifier satisfies the trajectory speed direction filtering, and the obstacle orientation angle information in the obstacle trajectory data and the orientation angle judgment threshold corresponding to the target comparison category are obtained.

[0123] S450: construct a trajectory direction angle set corresponding to the obstacle trajectory data according to the obstacle direction angle information and the target comparison category.

[0124] The trajectory orientation angle set may be a set consisting of all obstacle orientation angle information corresponding to the target comparison category.

[0125] Optionally, after obtaining the trajectory orientation angle information, a trajectory orientation angle set is constructed according to the target comparison category and the obstacle orientation angle information. The trajectory orientation angle set is arranged in the order of the timestamps corresponding to the obstacle coordinates, and the set elements are the obstacle orientation angle information corresponding to each timestamp. Exemplarily, the obstacle orientation angle information can be represented by rotation, the obstacle orientation angle information of the i-th timestamp can be represented by rotation_i, the obstacle orientation angle information of the i+1-th timestamp can be represented by rotation_i+1, and so on. The trajectory acceleration set can be represented by {rotation_1, ...rotation_i, rotation_i+1, ...rotation_n}.

[0126] S460: Perform data comparison on the trajectory direction angle set by using the direction angle judgment threshold to determine a direction angle comparison ratio corresponding to the trajectory direction angle set.

[0127] The direction angle comparison ratio may be a ratio of the number of elements in the trajectory direction angle set whose set elements are smaller than the direction angle judgment threshold to the total number of elements in the trajectory direction angle set.

[0128] Optionally, the obstacle direction angle information of the trajectory direction angle set is compared with the direction angle judgment threshold one by one, that is, the relationship between the angle value of the obstacle direction angle information and the direction angle judgment threshold is determined; if the angle value of the obstacle direction angle information is less than the direction angle judgment threshold, the number of set elements whose angle values ​​of the obstacle direction angle information are less than the direction angle judgment threshold is recorded; if the angle value of the obstacle direction angle information is greater than the direction angle judgment threshold, the angle value of the next obstacle direction angle information is determined; after the data comparison is completed, the total number of set elements whose angle values ​​of the obstacle direction angle information are less than the direction angle judgment threshold is determined, and then the direction angle comparison ratio corresponding to the trajectory direction angle set is determined.

[0129] S470: If the orientation angle comparison ratio is greater than a preset normal orientation angle ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0130] The normal orientation angle ratio threshold may be a ratio threshold pre-set for determining whether the obstacle orientation angle information is a normal obstacle orientation angle.

[0131] Specifically, after obtaining the orientation angle comparison ratio, the orientation angle comparison ratio is compared with a preset normal orientation angle ratio threshold. If the orientation angle comparison ratio is greater than the preset normal orientation angle ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0132] When comparing obstacle trajectories, the present invention compares the obstacle trajectory speed direction and obstacle orientation angle information of the obstacle after the obstacle trajectory data does not meet the obstacle motion state filtering condition. After meeting the filtering conditions corresponding to the obstacle trajectory speed direction and obstacle orientation angle information, the obstacle trajectory data is further determined to be normal trajectory data. By setting filtering rules with different priorities for the trajectory speed direction and obstacle orientation angle information, accurate filtering of obstacle timestamp data can be achieved, further improving the filtering accuracy of abnormal trajectory information in the obstacle timestamp data, effectively retaining high-quality labeled data, and improving the accuracy and efficiency of labeled data screening.

[0133] Optionally, in another optional embodiment of the present invention, after performing data comparison on the trajectory orientation angle set by using the orientation angle judgment threshold to determine the orientation angle comparison ratio corresponding to the trajectory orientation angle set, the method includes:

[0134] If the orientation angle comparison ratio is less than a preset normal orientation angle ratio threshold, obtaining the obstacle size information in the obstacle trajectory data and a size judgment threshold corresponding to the target comparison category, and constructing a trajectory size set according to the obstacle size information and the target comparison category;

[0135] Performing data comparison on the trajectory size set by using the size judgment threshold, determining a size comparison ratio corresponding to the trajectory size set, and if the size comparison ratio is greater than a preset normal size comparison ratio threshold, obtaining the obstacle lane information in the obstacle trajectory data and the lane judgment threshold corresponding to the target comparison category, and constructing a trajectory lane set according to the obstacle lane information and the target comparison category;

[0136] Performing data comparison on the trajectory lane set by using the lane judgment threshold, determining a lane comparison ratio corresponding to the trajectory lane set, and if the lane comparison ratio is greater than a preset normal lane comparison ratio threshold, obtaining the obstacle point cloud information in the obstacle trajectory data and the point cloud judgment threshold corresponding to the target comparison category, and constructing a trajectory point cloud set according to the obstacle point cloud information and the target comparison category;

[0137] The trajectory point cloud set is compared with the point cloud judgment threshold to determine the point cloud comparison ratio corresponding to the trajectory point cloud set. If the point cloud comparison ratio is greater than a preset normal point cloud comparison ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0138] The size judgment threshold may be a pre-calibrated data threshold for judging whether the size of an obstacle is abnormal. During the judgment process, although the obstacle size information is length, width and height, the two largest values ​​of the length, width and height of the obstacle size information are selected as the length and width used when judging the obstacle size. At the same time, the size judgment threshold may only be pre-calibrated as the size threshold in the length and width directions.

[0139] The trajectory size set may be a set consisting of all trajectory size values ​​corresponding to the target comparison category. It should be noted that after obtaining the obstacle size information, the trajectory size set is constructed according to the target comparison category and the obstacle size information. The trajectory size set is arranged in order according to the timestamps corresponding to the obstacle coordinates, and the set elements are the trajectory size values ​​corresponding to the obstacle size information corresponding to each timestamp. Exemplarily, obstacle size information can be represented by scale. The two largest values ​​in the obstacle size information are selected as the length and width used to judge the obstacle size to obtain the trajectory size value. Therefore, the trajectory size value of the i-th timestamp can be represented by max(scale_l_i, scale_w_i), where scale_l_i is the length of the obstacle at time i, and scale_w_i is the width of the obstacle at time i. The trajectory size value of the i+1-th timestamp can be represented by max(scale_l_i+1, scale_w_i+1), and so on. The trajectory acceleration set can be represented by {max(scale_l_0, scale_w_0), ... max(scale_l_i, scale_w_i), max(scale_l_i+1, scale_w_i+1), ... max(scale_l_n, scale_w_n)}.

[0140] The normal size comparison ratio threshold may be a ratio threshold preset for determining whether the obstacle size information is a normal obstacle size.

[0141] The lane judgment threshold may be a pre-calibrated data threshold for judging whether there is an abnormality in the lane of the obstacle. It should be noted that when filtering the obstacle lane information, only obstacles in the same lane as the autonomous driving vehicle will affect the driving of the autonomous driving vehicle. Therefore, when setting the lane judgment threshold, the vehicle number in the same lane as the autonomous driving vehicle is usually specified.

[0142] Among them, the track lane set can be a set consisting of all obstacle lane information corresponding to the target comparison category. It should be noted that since the obstacle lane information is the lane number corresponding to the lane, the set element in the track lane set is the lane number. Exemplarily, the set element in the track lane set is the lane number, and the lane number can be represented by lane, the lane number of the i-th timestamp can be represented by lane_i, the lane number of the i+1-th timestamp can be represented by lane_i+1, and so on. The track lane set can be represented by {lane_0, ... lane_i, lane_i+1, ... lane_n}.

[0143] The size comparison ratio may be the ratio of the number of elements in the trajectory size set whose set elements are smaller than the size judgment threshold to the total number of elements in the trajectory size set. Optionally, the trajectory size values ​​of the trajectory size set are compared with the size judgment threshold one by one, that is, the relationship between the angle value of the trajectory size value and the size judgment threshold is determined. If the angle value of the trajectory size value is smaller than the size judgment threshold, the number of set elements whose angle value of the trajectory size value is smaller than the size judgment threshold is recorded. If the angle value of the trajectory size value is larger than the size judgment threshold, the angle value of the next trajectory size value is determined. After the data comparison is completed, the total number of set elements whose angle value of the trajectory size value is smaller than the size judgment threshold is determined, and then the size comparison ratio corresponding to the trajectory size set is determined.

[0144] The lane comparison ratio may be the ratio of the number of elements in the trajectory lane set whose set elements are equal to the lane judgment threshold to the total number of elements in the trajectory size set. Optionally, for the lane numbers in the trajectory lane set, the lane numbers are compared with the lane judgment threshold one by one to determine whether the lane number is the same as the lane judgment threshold. If the lane number is the same as the lane judgment threshold, the number of set elements whose lane number is the same as the lane judgment threshold is recorded. If the lane number is not the same as the lane judgment threshold, the next lane number is determined. After the data comparison is completed, the total number of set elements whose lane number is the same as the lane judgment threshold is determined, and then the lane comparison ratio corresponding to the trajectory lane set is determined.

[0145] The preset normal lane comparison ratio threshold may be a ratio threshold preset for determining whether the obstacle lane information is a normal obstacle lane.

[0146] The point cloud judgment threshold may be a pre-calibrated data threshold for determining whether there is an abnormality in the number of point clouds of an obstacle.

[0147] The trajectory point cloud set can be a set consisting of all obstacle point cloud information corresponding to the target comparison category. It should be noted that the obstacle point cloud information corresponding to the obstacle identifier is recorded as the number of point clouds, and the set elements in the trajectory point cloud set are the number of point clouds corresponding to each timestamp. Exemplarily, the obstacle point cloud information can be represented by num_pts, the obstacle point cloud information of the i-th timestamp can be represented by num_pts_i, the obstacle point cloud information of the i+1-th timestamp can be represented by num_pts_i+1, and so on. The trajectory lane set can be represented by {num_pts_0, ...num_pts_i, num_pts_i+1, ...num_pts_n}.

[0148] Among them, the point cloud comparison ratio can be the ratio of the number of elements in the trajectory point cloud set whose collection elements are greater than the point cloud judgment threshold and the total number of elements in the point cloud comparison ratio. It should be noted that by comparing the number of collection elements in the trajectory point cloud set with the point cloud judgment threshold one by one, if the collection element in the trajectory point cloud set is greater than the point cloud judgment threshold, the number of collection elements in the trajectory point cloud set whose collection elements are greater than the point cloud judgment threshold is compared; if the collection element in the trajectory point cloud set is less than the point cloud judgment threshold, the next collection element is compared. After the data comparison is completed, the total number of collection elements in the trajectory point cloud set whose collection elements are greater than the point cloud judgment threshold is determined, and then the point cloud comparison ratio is obtained.

[0149] The preset normal point cloud comparison ratio threshold may be a ratio threshold pre-set to determine whether the obstacle point cloud information is a normal obstacle point cloud quantity.

[0150] Specifically, after obtaining the orientation angle comparison ratio, the size relationship between the orientation angle comparison ratio and the preset normal orientation angle ratio threshold is determined. If the orientation angle comparison ratio is less than the preset normal orientation angle ratio threshold, the obstacle size information in the obstacle trajectory data and the size judgment threshold corresponding to the target comparison category are obtained, and a trajectory size set is constructed according to the obstacle size information and the target comparison category. Then, data comparison is performed on the trajectory size set through the size judgment threshold to determine the size comparison ratio corresponding to the trajectory size set, and the size relationship between the size comparison ratio and the preset normal size comparison ratio threshold is further determined. If the size comparison ratio is greater than the preset normal size comparison ratio threshold, the obstacle lane information in the obstacle trajectory data is obtained. A lane judgment threshold corresponding to the target comparison category is determined, and a trajectory lane set is constructed according to the obstacle lane information and the target comparison category. The trajectory lane set is compared with the lane judgment threshold to determine the lane comparison ratio corresponding to the trajectory lane set. If the lane comparison ratio is greater than the preset normal lane comparison ratio threshold, the obstacle point cloud information in the obstacle trajectory data and the point cloud judgment threshold corresponding to the target comparison category are obtained, and a trajectory point cloud set is constructed according to the obstacle point cloud information and the target comparison category. The trajectory point cloud set is compared with the point cloud judgment threshold to determine the point cloud comparison ratio corresponding to the trajectory point cloud set. If the point cloud comparison ratio is greater than the preset normal point cloud comparison ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0151] Optionally, in another optional embodiment of the present invention, after performing data comparison on the trajectory speed direction set by using the speed direction comparison threshold to determine the speed direction comparison ratio corresponding to the trajectory speed direction set, the method includes:

[0152] If the speed direction comparison ratio is less than a preset normal speed direction ratio threshold, then obtaining the obstacle size information in the obstacle trajectory data and a size judgment threshold corresponding to the target comparison category, and constructing a trajectory size set according to the obstacle size information and the target comparison category;

[0153] Performing data comparison on the trajectory size set by using the size judgment threshold, determining a size comparison ratio corresponding to the trajectory size set, and if the size comparison ratio is greater than a preset normal size comparison ratio threshold, obtaining the obstacle lane information in the obstacle trajectory data and the lane judgment threshold corresponding to the target comparison category, and constructing a trajectory lane set according to the obstacle lane information and the target comparison category;

[0154] The lane judgment threshold is used to compare the data of the trajectory lane set, and the lane comparison ratio corresponding to the trajectory lane set is determined. Then, the obstacle point cloud information in the obstacle trajectory data and the point cloud judgment threshold corresponding to the target comparison category are obtained, and a trajectory point cloud set is constructed according to the obstacle point cloud information and the target comparison category.

[0155] The trajectory point cloud set is compared with the point cloud judgment threshold to determine the point cloud comparison ratio corresponding to the trajectory point cloud set. If the point cloud comparison ratio is greater than a preset normal point cloud comparison ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0156] Specifically, when the speed direction comparison ratio corresponding to the trajectory speed direction set is less than the preset normal motion state threshold, the trajectory corresponding to the obstacle identifier does not meet the trajectory speed direction filtering, then the obstacle size information in the obstacle trajectory data and the size judgment threshold corresponding to the target comparison category are obtained, and a trajectory size set is constructed according to the obstacle size information and the target comparison category, and then the trajectory size set is compared with the size judgment threshold to determine the size comparison ratio corresponding to the trajectory size set, and the size relationship between the size comparison ratio and the preset normal size comparison ratio threshold is further determined. If the size comparison ratio is greater than the preset normal size comparison ratio threshold, the obstacle lane information and the target comparison category in the obstacle trajectory data are obtained. A lane judgment threshold corresponding to the obstacle is determined, and a trajectory lane set is constructed according to the obstacle lane information and the target comparison category. The trajectory lane set is compared with the lane judgment threshold to determine the lane comparison ratio corresponding to the trajectory lane set. If the lane comparison ratio is greater than the preset normal lane comparison ratio threshold, the obstacle point cloud information in the obstacle trajectory data and the point cloud judgment threshold corresponding to the target comparison category are obtained, and a trajectory point cloud set is constructed according to the obstacle point cloud information and the target comparison category. The trajectory point cloud set is compared with the point cloud judgment threshold to determine the point cloud comparison ratio corresponding to the trajectory point cloud set. If the point cloud comparison ratio is greater than the preset normal point cloud comparison ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0157] Optionally, in the above embodiment, if during the data filtering process, the size comparison ratio corresponding to the obstacle trajectory data is less than a preset normal size comparison ratio threshold, it means that the obstacle trajectory data does not meet the data filtering requirements and the obstacle trajectory data is low-quality data.

[0158] Optionally, in the above embodiment, if during the data filtering process, the lane comparison ratio corresponding to the obstacle trajectory data is less than a preset normal lane comparison ratio threshold, it means that the obstacle trajectory data does not meet the data filtering requirements and the obstacle trajectory data is low-quality data.

[0159] Optionally, in the above embodiment, if during the data filtering process, the point cloud contrast ratio corresponding to the obstacle trajectory data is less than a preset normal point cloud contrast ratio threshold, it means that the obstacle trajectory data does not meet the data filtering requirements and the obstacle trajectory data is low-quality data.

[0160] Figure 5 A flowchart of another method for filtering annotated data for autonomous driving provided by an embodiment of the present invention. The relationship between this embodiment and the above embodiment is that after the obstacle trajectory data does not meet the trajectory acceleration filtering condition, a specific method for further filtering the obstacle trajectory data is required, such as Figure 5 As shown, the method includes:

[0161] S510: If the acceleration comparison ratio is less than a preset normal acceleration threshold, obtaining obstacle orientation angle information in the obstacle trajectory data and an orientation angle judgment threshold corresponding to the target comparison category.

[0162] Specifically, after obtaining the acceleration comparison ratio, the acceleration comparison ratio is compared with the preset normal acceleration threshold. If the acceleration comparison ratio is less than the preset normal acceleration threshold, it means that the obstacle acceleration corresponding to the obstacle mark does not meet the filtering condition, then the obstacle orientation angle information in the obstacle trajectory data and the orientation angle judgment threshold corresponding to the target comparison category are obtained.

[0163] S520: Construct a trajectory direction angle set corresponding to the obstacle trajectory data according to the obstacle direction angle information and the target comparison category.

[0164] Optionally, after obtaining the trajectory orientation angle set, a trajectory orientation angle set is constructed according to the target comparison category and the obstacle orientation angle information. The trajectory orientation angle set is arranged in order according to the timestamps corresponding to the obstacle coordinates, and the set elements are the obstacle orientation angle information corresponding to each timestamp.

[0165] S530: Perform data comparison on the trajectory direction angle set by using the direction angle judgment threshold to determine a direction angle comparison ratio corresponding to the trajectory direction angle set.

[0166] Optionally, the obstacle direction angle information of the trajectory direction angle set is compared with the direction angle judgment threshold one by one, that is, the relationship between the angle value of the obstacle direction angle information and the direction angle judgment threshold is determined; if the angle value of the obstacle direction angle information is less than the direction angle judgment threshold, the number of set elements whose angle values ​​of the obstacle direction angle information are less than the direction angle judgment threshold is recorded; if the angle value of the obstacle direction angle information is greater than the direction angle judgment threshold, the angle value of the next obstacle direction angle information is determined; after the data comparison is completed, the total number of set elements whose angle values ​​of the obstacle direction angle information are less than the direction angle judgment threshold is determined, and then the direction angle comparison ratio corresponding to the trajectory direction angle set is determined.

[0167] S540: If the orientation angle comparison ratio is greater than a preset normal orientation angle ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0168] Specifically, after obtaining the orientation angle comparison ratio, the orientation angle comparison ratio is compared with a preset normal orientation angle ratio threshold. If the orientation angle comparison ratio is greater than the preset normal orientation angle ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0169] When comparing obstacle trajectories, after the obstacle trajectory data does not meet the trajectory acceleration filtering condition, the present invention compares the obstacle orientation angle information of the obstacle, and after meeting the filtering condition corresponding to the obstacle orientation angle information, further determines that the obstacle trajectory data is normal trajectory data, and can achieve accurate filtering of obstacle timestamp data by setting filtering rules of different priorities for obstacle orientation angle information, further improves the filtering accuracy of abnormal trajectory information in obstacle timestamp data, effectively retains high-quality annotation data, and improves the accuracy and efficiency of annotation data screening.

[0170] Optionally, in another optional embodiment of the present invention, after performing data comparison on the trajectory orientation angle set by using the orientation angle judgment threshold to determine the orientation angle comparison ratio corresponding to the trajectory orientation angle set, the method includes:

[0171] If the orientation angle comparison ratio is less than a preset normal orientation angle ratio threshold, obtaining the obstacle size information in the obstacle trajectory data and a size judgment threshold corresponding to the target comparison category, and constructing a trajectory size set according to the obstacle size information and the target comparison category;

[0172] Performing data comparison on the trajectory size set by using the size judgment threshold, determining a size comparison ratio corresponding to the trajectory size set, and if the size comparison ratio is greater than a preset normal size comparison ratio threshold, obtaining the obstacle lane information in the obstacle trajectory data and the lane judgment threshold corresponding to the target comparison category, and constructing a trajectory lane set according to the obstacle lane information and the target comparison category;

[0173] Performing data comparison on the trajectory lane set by using the lane judgment threshold, determining a lane comparison ratio corresponding to the trajectory lane set, and if the lane comparison ratio is greater than a preset normal lane comparison ratio threshold, obtaining the obstacle point cloud information in the obstacle trajectory data and the point cloud judgment threshold corresponding to the target comparison category, and constructing a trajectory point cloud set according to the obstacle point cloud information and the target comparison category;

[0174] The trajectory point cloud set is compared with the point cloud judgment threshold to determine the point cloud comparison ratio corresponding to the trajectory point cloud set. If the point cloud comparison ratio is greater than a preset normal point cloud comparison ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0175] Specifically, after obtaining the orientation angle comparison ratio, the size relationship between the orientation angle comparison ratio and the preset normal orientation angle ratio threshold is determined. If the orientation angle comparison ratio is less than the preset normal orientation angle ratio threshold, the obstacle size information in the obstacle trajectory data and the size judgment threshold corresponding to the target comparison category are obtained, and a trajectory size set is constructed according to the obstacle size information and the target comparison category. Then, data comparison is performed on the trajectory size set through the size judgment threshold to determine the size comparison ratio corresponding to the trajectory size set, and the size relationship between the size comparison ratio and the preset normal size comparison ratio threshold is further determined. If the size comparison ratio is greater than the preset normal size comparison ratio threshold, the obstacle lane information in the obstacle trajectory data is obtained. A lane judgment threshold corresponding to the target comparison category is determined, and a trajectory lane set is constructed according to the obstacle lane information and the target comparison category. The trajectory lane set is compared with the lane judgment threshold to determine the lane comparison ratio corresponding to the trajectory lane set. If the lane comparison ratio is greater than the preset normal lane comparison ratio threshold, the obstacle point cloud information in the obstacle trajectory data and the point cloud judgment threshold corresponding to the target comparison category are obtained, and a trajectory point cloud set is constructed according to the obstacle point cloud information and the target comparison category. The trajectory point cloud set is compared with the point cloud judgment threshold to determine the point cloud comparison ratio corresponding to the trajectory point cloud set. If the point cloud comparison ratio is greater than the preset normal point cloud comparison ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0176] Figure 6The structure diagram of a driving annotation data filtering device provided by an embodiment of the present invention is shown in FIG. Figure 6 As shown, the device includes: a data acquisition module 610, a data processing module 620, an obstacle category comparison module 630, a data filtering module 640 and a data judgment module 650; wherein,

[0177] The data acquisition module 610 is used to read the obstacle timestamp data collected by the autonomous driving vehicle, obtain at least one obstacle identifier of the obstacle timestamp data, and determine the obstacle trajectory data according to the obstacle identifier and the obstacle timestamp data;

[0178] The data processing module 620 is used to obtain the obstacle category and obstacle coordinate information in the obstacle trajectory data, and construct a trajectory change set corresponding to the obstacle trajectory data according to the obstacle coordinate information and the obstacle category;

[0179] The obstacle category comparison module 630 is used to perform data statistics on each obstacle category in the trajectory change set to determine the proportion of at least one trajectory category in the obstacle trajectory data;

[0180] The data filtering module 640 is used to determine the largest trajectory category ratio as the target comparison category if it is greater than the preset normal category ratio threshold, and obtain the trajectory comparison threshold corresponding to the target comparison category, and perform data comparison on the trajectory change set according to the trajectory comparison threshold to determine the trajectory comparison ratio corresponding to the trajectory change set

[0181] The data judgment module 650 is configured to determine the obstacle trajectory data as normal trajectory data if the trajectory comparison ratio is greater than a preset normal trajectory threshold.

[0182] The technical solution of the embodiment of the present invention reads the obstacle timestamp data collected by the autonomous driving vehicle, obtains at least one obstacle identifier of the obstacle timestamp data, determines the obstacle trajectory data according to the obstacle identifier and the obstacle timestamp data, sorts the data corresponding to each obstacle identifier based on the obstacle identifier and the obstacle timestamp data, and determines the trajectory data corresponding to an obstacle identifier, which helps to determine the trajectory data corresponding to the obstacle in complex data and improves the filtering efficiency and accuracy; obtains the obstacle category and obstacle coordinate information in the obstacle trajectory data, constructs a trajectory change set corresponding to the obstacle trajectory data according to the obstacle coordinate information and the obstacle category, determines a trajectory change set corresponding to the obstacle according to the obstacle coordinate information and the obstacle category, and then filters the annotation information corresponding to the obstacle in the form of trajectory, which can effectively improve the efficiency of data filtering, and by filtering The method of obtaining trajectory data can ensure the quality of filtering; obtaining the trajectory comparison threshold corresponding to the obstacle category, performing data comparison on the trajectory change set through the trajectory comparison threshold, determining the trajectory comparison ratio corresponding to the trajectory change set, and determining the trajectory comparison ratio of the trajectory change set that meets the high-quality labeled data through data comparison, and then if the trajectory comparison ratio is greater than the preset normal trajectory threshold, the obstacle trajectory data is determined to be normal trajectory data. When the trajectory comparison ratio is greater than the preset normal trajectory threshold, the obstacle trajectory data is determined to be high-quality labeled data, thereby realizing data filtering of the obstacle trajectory data, retaining high-quality labeled data, and removing unusable low-quality data, solving the technical problem that high-quality autonomous driving labeled data cannot be obtained in the prior art, realizing filtering of abnormal trajectory information through trajectory screening, retaining high-quality labeled data, and improving the accuracy and efficiency of labeled data screening.

[0183] Optionally, the data acquisition module is specifically used for:

[0184] Performing data retrieval in the obstacle timestamp data through the obstacle identifier to determine the automatic annotation data and coordinate system conversion matrix corresponding to the obstacle identifier;

[0185] Acquire the timestamp coordinate information in the automatic annotation data, perform coordinate system conversion on the timestamp coordinate information through the coordinate system conversion matrix, and determine the obstacle coordinate information corresponding to the timestamp coordinate information;

[0186] Performing speed calculation based on the obstacle coordinate information to determine the obstacle speed and the trajectory speed vector;

[0187] Setting the obstacle identifier as an obstacle trajectory identifier, and determining the automatic annotation data, the obstacle speed, and the trajectory speed vector corresponding to the obstacle identifier as an obstacle trajectory file corresponding to the obstacle trajectory identifier;

[0188] The obstacle trajectory identifier and the obstacle trajectory file corresponding to the obstacle trajectory identifier are determined as obstacle trajectory data.

[0189] Optionally, the device further includes a speed filtering module; wherein the speed filtering module is specifically used for:

[0190] If the trajectory comparison ratio is less than a preset normal trajectory threshold, obtaining the obstacle speed and obstacle motion state in the obstacle trajectory data;

[0191] Constructing a trajectory speed set according to the target comparison category and the obstacle speed, and constructing a trajectory running state set according to the target comparison category and the obstacle motion state;

[0192] Acquire a speed comparison threshold and a motion state threshold corresponding to the target comparison category, perform data comparison on the trajectory speed set using the speed comparison threshold, and determine a speed comparison ratio corresponding to the trajectory speed set;

[0193] If the speed comparison ratio is greater than a preset normal speed threshold, comparing the trajectory speed set by the motion state threshold to determine a trajectory speed state comparison set;

[0194] Compare the set elements of the trajectory speed state comparison set with the set elements of the trajectory running state set one by one, and determine the same proportion of the elements corresponding to the trajectory speed state comparison set;

[0195] If the element identical ratio is greater than a preset normal motion state threshold, then obtaining the trajectory acceleration data in the obstacle trajectory data and the acceleration comparison threshold corresponding to the target comparison category;

[0196] Constructing a trajectory acceleration set corresponding to the obstacle trajectory data according to the trajectory acceleration data and the target comparison category;

[0197] Performing data comparison on the trajectory acceleration set by using the acceleration comparison threshold, and determining an acceleration comparison ratio corresponding to the trajectory acceleration set;

[0198] If the acceleration comparison ratio is less than a preset normal acceleration threshold, the obstacle trajectory data is determined as normal trajectory data.

[0199] Optionally, the device further includes a velocity vector filtering module; wherein the velocity vector filtering module is specifically used to:

[0200] If the element same ratio is less than a preset normal motion state threshold, obtaining a trajectory velocity vector in the obstacle trajectory data and a velocity direction comparison threshold corresponding to the target comparison category;

[0201] Constructing a trajectory speed direction set corresponding to the obstacle trajectory data according to the trajectory speed vector and the target comparison category;

[0202] Performing data comparison on the trajectory speed direction set by using the speed direction comparison threshold, and determining a speed direction comparison ratio corresponding to the trajectory speed direction set;

[0203] If the speed direction comparison ratio is greater than a preset normal speed direction ratio threshold, obtaining the obstacle direction angle information in the obstacle trajectory data and the direction angle judgment threshold corresponding to the target comparison category;

[0204] Constructing a trajectory orientation angle set corresponding to the obstacle trajectory data according to the obstacle orientation angle information and the target comparison category;

[0205] Performing data comparison on the trajectory direction angle set by using the direction angle judgment threshold, and determining a direction angle comparison ratio corresponding to the trajectory direction angle set;

[0206] If the orientation angle comparison ratio is greater than a preset normal orientation angle ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0207] Optionally, the velocity vector filtering module is further used for:

[0208] If the acceleration comparison ratio is less than a preset normal acceleration threshold, obtaining the obstacle orientation angle information in the obstacle trajectory data and the orientation angle judgment threshold corresponding to the target comparison category;

[0209] Constructing a trajectory orientation angle set corresponding to the obstacle trajectory data according to the obstacle orientation angle information and the target comparison category;

[0210] Performing data comparison on the trajectory direction angle set by using the direction angle judgment threshold, and determining a direction angle comparison ratio corresponding to the trajectory direction angle set;

[0211] If the orientation angle comparison ratio is greater than a preset normal orientation angle ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0212] Optionally, the device further includes an obstacle basic information filtering module; wherein the obstacle basic information filtering module is specifically used to:

[0213] If the orientation angle comparison ratio is less than a preset normal orientation angle ratio threshold, obtaining the obstacle size information in the obstacle trajectory data and a size judgment threshold corresponding to the target comparison category, and constructing a trajectory size set according to the obstacle size information and the target comparison category;

[0214] Performing data comparison on the trajectory size set by using the size judgment threshold, determining a size comparison ratio corresponding to the trajectory size set, and if the size comparison ratio is greater than a preset normal size comparison ratio threshold, obtaining the obstacle lane information in the obstacle trajectory data and the lane judgment threshold corresponding to the target comparison category, and constructing a trajectory lane set according to the obstacle lane information and the target comparison category;

[0215] Performing data comparison on the trajectory lane set by using the lane judgment threshold, determining a lane comparison ratio corresponding to the trajectory lane set, and if the lane comparison ratio is greater than a preset normal lane comparison ratio threshold, obtaining the obstacle point cloud information in the obstacle trajectory data and the point cloud judgment threshold corresponding to the target comparison category, and constructing a trajectory point cloud set according to the obstacle point cloud information and the target comparison category;

[0216] The trajectory point cloud set is compared with the point cloud judgment threshold to determine the point cloud comparison ratio corresponding to the trajectory point cloud set. If the point cloud comparison ratio is greater than a preset normal point cloud comparison ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0217] Optionally, the velocity vector filtering module is further used for:

[0218] If the speed direction comparison ratio is less than a preset normal speed direction ratio threshold, then obtaining the obstacle size information in the obstacle trajectory data and a size judgment threshold corresponding to the target comparison category, and constructing a trajectory size set according to the obstacle size information and the target comparison category;

[0219] Performing data comparison on the trajectory size set by using the size judgment threshold, determining a size comparison ratio corresponding to the trajectory size set, and if the size comparison ratio is greater than a preset normal size comparison ratio threshold, obtaining the obstacle lane information in the obstacle trajectory data and the lane judgment threshold corresponding to the target comparison category, and constructing a trajectory lane set according to the obstacle lane information and the target comparison category;

[0220] The lane judgment threshold is used to compare the data of the trajectory lane set, and the lane comparison ratio corresponding to the trajectory lane set is determined. Then, the obstacle point cloud information in the obstacle trajectory data and the point cloud judgment threshold corresponding to the target comparison category are obtained, and a trajectory point cloud set is constructed according to the obstacle point cloud information and the target comparison category.

[0221] The trajectory point cloud set is compared with the point cloud judgment threshold to determine the point cloud comparison ratio corresponding to the trajectory point cloud set. If the point cloud comparison ratio is greater than a preset normal point cloud comparison ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

[0222] The autonomous driving annotation data filtering device provided in the embodiment of the present invention can execute the autonomous driving annotation data filtering method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0223] Figure 7 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their modes are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0224] like Figure 7 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0225] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer grid such as the Internet and / or various telecommunication grids.

[0226] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as the autonomous driving annotation data filtering method.

[0227] In some embodiments, the autonomous driving annotation data filtering method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the autonomous driving annotation data filtering method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the autonomous driving annotation data filtering method in any other appropriate manner (e.g., by means of firmware).

[0228] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0229] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the modes / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0230] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0231] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0232] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a grid browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication grid). Examples of communication grids include: a local area network (LAN), a wide area network (WAN), a blockchain grid, and the Internet.

[0233] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication grid. The client and server relationship is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0234] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0235] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method steps for filtering labeled data for autonomous driving provided in any embodiment of the present invention are implemented. The method includes:

[0236] Reading obstacle timestamp data collected by the autonomous driving vehicle, obtaining at least one obstacle identifier of the obstacle timestamp data, and determining obstacle trajectory data according to the obstacle identifier and the obstacle timestamp data;

[0237] Obtaining obstacle categories and obstacle coordinate information in the obstacle trajectory data, and constructing a trajectory change set corresponding to the obstacle trajectory data according to the obstacle coordinate information and the obstacle category;

[0238] Performing data statistics on each obstacle category in the trajectory change set to determine a proportion of at least one trajectory category in the obstacle trajectory data;

[0239] If the largest trajectory category ratio is greater than a preset normal category ratio threshold, the largest trajectory category ratio is determined as a target comparison category, and a trajectory comparison threshold corresponding to the target comparison category is obtained, and data comparison is performed on the trajectory change set by using the trajectory comparison threshold to determine the trajectory comparison ratio corresponding to the trajectory change set;

[0240] If the trajectory comparison ratio is greater than a preset normal trajectory threshold, the obstacle trajectory data is determined as normal trajectory data.

[0241] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0242] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0243] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0244] Computer program code for performing the operation of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of grid, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0245] It should be understood by those skilled in the art that the above modules or steps of the present invention can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a grid composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0246] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0247] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for filtering labeled data for autonomous driving. It is characterized in that include: Reading obstacle timestamp data collected by the autonomous driving vehicle, obtaining at least one obstacle identifier of the obstacle timestamp data, and determining obstacle trajectory data according to the obstacle identifier and the obstacle timestamp data; Obtaining obstacle categories and obstacle coordinate information in the obstacle trajectory data, and constructing a trajectory change set corresponding to the obstacle trajectory data according to the obstacle coordinate information and the obstacle category; Performing data statistics on each obstacle category in the trajectory change set to determine a proportion of at least one trajectory category in the obstacle trajectory data; If the largest trajectory category ratio is greater than a preset normal category ratio threshold, the largest trajectory category ratio is determined as a target comparison category, and a trajectory comparison threshold corresponding to the target comparison category is obtained, and data comparison is performed on the trajectory change set by using the trajectory comparison threshold to determine the trajectory comparison ratio corresponding to the trajectory change set; If the trajectory comparison ratio is greater than a preset normal trajectory threshold, the obstacle trajectory data is determined as normal trajectory data.

2. The method according to claim 1, It is characterized in that The determining obstacle trajectory data according to the obstacle identifier and the obstacle timestamp data includes: Performing data retrieval in the obstacle timestamp data through the obstacle identifier to determine the automatic annotation data and coordinate system conversion matrix corresponding to the obstacle identifier; Acquire the timestamp coordinate information in the automatic annotation data, perform coordinate system conversion on the timestamp coordinate information using the coordinate system conversion matrix, and determine the obstacle coordinate information corresponding to the timestamp coordinate information; Performing speed calculation based on the obstacle coordinate information to determine the obstacle speed and the trajectory speed vector; Setting the obstacle identifier as an obstacle trajectory identifier, and determining the automatic annotation data, the obstacle speed, and the trajectory speed vector corresponding to the obstacle identifier as an obstacle trajectory file corresponding to the obstacle trajectory identifier; The obstacle trajectory identifier and the obstacle trajectory file corresponding to the obstacle trajectory identifier are determined as obstacle trajectory data.

3. The method according to claim 2, It is characterized in that After performing data comparison on the trajectory change set by using the trajectory comparison threshold to determine the trajectory comparison ratio corresponding to the trajectory change set, the method further includes: If the trajectory comparison ratio is less than a preset normal trajectory threshold, obtaining the obstacle speed and obstacle motion state in the obstacle trajectory data; Constructing a trajectory speed set according to the target comparison category and the obstacle speed, and constructing a trajectory running state set according to the target comparison category and the obstacle motion state; Acquire a speed comparison threshold and a motion state threshold corresponding to the target comparison category, perform data comparison on the trajectory speed set using the speed comparison threshold, and determine a speed comparison ratio corresponding to the trajectory speed set; If the speed comparison ratio is greater than a preset normal speed threshold, comparing the trajectory speed set by the motion state threshold to determine a trajectory speed state comparison set; Compare the set elements of the trajectory speed state comparison set with the set elements of the trajectory running state set one by one, and determine the same proportion of the elements corresponding to the trajectory speed state comparison set; If the element identical ratio is greater than a preset normal motion state threshold, then obtaining the trajectory acceleration data in the obstacle trajectory data and the acceleration comparison threshold corresponding to the target comparison category; Constructing a trajectory acceleration set corresponding to the obstacle trajectory data according to the trajectory acceleration data and the target comparison category; Performing data comparison on the trajectory acceleration set by using the acceleration comparison threshold, and determining an acceleration comparison ratio corresponding to the trajectory acceleration set; If the acceleration comparison ratio is less than a preset normal acceleration threshold, the obstacle trajectory data is determined as normal trajectory data.

4. The method according to claim 3, It is characterized in that After comparing the set elements of the trajectory speed state comparison set with the set elements of the trajectory running state set one by one to determine the same proportion of the elements corresponding to the trajectory speed state comparison set, the method further includes: If the element same ratio is less than a preset normal motion state threshold, obtaining a trajectory velocity vector in the obstacle trajectory data and a velocity direction comparison threshold corresponding to the target comparison category; Constructing a trajectory speed direction set corresponding to the obstacle trajectory data according to the trajectory speed vector and the target comparison category; Performing data comparison on the trajectory speed direction set by using the speed direction comparison threshold, and determining a speed direction comparison ratio corresponding to the trajectory speed direction set; If the speed direction comparison ratio is greater than a preset normal speed direction ratio threshold, obtaining the obstacle direction angle information in the obstacle trajectory data and the direction angle judgment threshold corresponding to the target comparison category; Constructing a trajectory orientation angle set corresponding to the obstacle trajectory data according to the obstacle orientation angle information and the target comparison category; Performing data comparison on the trajectory direction angle set by using the direction angle judgment threshold, and determining a direction angle comparison ratio corresponding to the trajectory direction angle set; If the orientation angle comparison ratio is greater than a preset normal orientation angle ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

5. The method according to claim 3, It is characterized in that After performing data comparison on the trajectory acceleration set by using the acceleration comparison threshold to determine the acceleration comparison ratio corresponding to the trajectory acceleration set, the method further includes: If the acceleration comparison ratio is less than a preset normal acceleration threshold, obtaining the obstacle orientation angle information in the obstacle trajectory data and the orientation angle judgment threshold corresponding to the target comparison category; Constructing a trajectory orientation angle set corresponding to the obstacle trajectory data according to the obstacle orientation angle information and the target comparison category; Performing data comparison on the trajectory direction angle set by using the direction angle judgment threshold, and determining a direction angle comparison ratio corresponding to the trajectory direction angle set; If the orientation angle comparison ratio is greater than a preset normal orientation angle ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

6. The method according to claim 4 or 5, It is characterized in that After performing data comparison on the trajectory direction angle set by using the direction angle judgment threshold to determine the direction angle comparison ratio corresponding to the trajectory direction angle set, the method includes: If the orientation angle comparison ratio is less than a preset normal orientation angle ratio threshold, obtaining the obstacle size information in the obstacle trajectory data and a size judgment threshold corresponding to the target comparison category, and constructing a trajectory size set according to the obstacle size information and the target comparison category; Performing data comparison on the trajectory size set by using the size judgment threshold, determining a size comparison ratio corresponding to the trajectory size set, and if the size comparison ratio is greater than a preset normal size comparison ratio threshold, obtaining the obstacle lane information in the obstacle trajectory data and the lane judgment threshold corresponding to the target comparison category, and constructing a trajectory lane set according to the obstacle lane information and the target comparison category; Performing data comparison on the trajectory lane set by using the lane judgment threshold, determining a lane comparison ratio corresponding to the trajectory lane set, and if the lane comparison ratio is greater than a preset normal lane comparison ratio threshold, obtaining the obstacle point cloud information in the obstacle trajectory data and the point cloud judgment threshold corresponding to the target comparison category, and constructing a trajectory point cloud set according to the obstacle point cloud information and the target comparison category; The trajectory point cloud set is compared with the point cloud judgment threshold to determine the point cloud comparison ratio corresponding to the trajectory point cloud set. If the point cloud comparison ratio is greater than a preset normal point cloud comparison ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

7. The method according to claim 4, It is characterized in that After performing data comparison on the trajectory speed direction set by using the speed direction comparison threshold to determine the speed direction comparison ratio corresponding to the trajectory speed direction set, the method includes: If the speed direction comparison ratio is less than a preset normal speed direction ratio threshold, then obtaining the obstacle size information in the obstacle trajectory data and a size judgment threshold corresponding to the target comparison category, and constructing a trajectory size set according to the obstacle size information and the target comparison category; Performing data comparison on the trajectory size set by using the size judgment threshold, determining a size comparison ratio corresponding to the trajectory size set, and if the size comparison ratio is greater than a preset normal size comparison ratio threshold, obtaining the obstacle lane information in the obstacle trajectory data and the lane judgment threshold corresponding to the target comparison category, and constructing a trajectory lane set according to the obstacle lane information and the target comparison category; The lane judgment threshold is used to compare the data of the trajectory lane set, and the lane comparison ratio corresponding to the trajectory lane set is determined. Then, the obstacle point cloud information in the obstacle trajectory data and the point cloud judgment threshold corresponding to the target comparison category are obtained, and a trajectory point cloud set is constructed according to the obstacle point cloud information and the target comparison category. The trajectory point cloud set is compared with the point cloud judgment threshold to determine the point cloud comparison ratio corresponding to the trajectory point cloud set. If the point cloud comparison ratio is greater than a preset normal point cloud comparison ratio threshold, the obstacle trajectory data is determined as normal trajectory data.

8. An autonomous driving labeled data filtering device, It is characterized in that include: a data acquisition module, configured to read obstacle timestamp data collected by the autonomous driving vehicle, acquire at least one obstacle identifier of the obstacle timestamp data, and determine obstacle trajectory data according to the obstacle identifier and the obstacle timestamp data; A data processing module, used to obtain the obstacle category and obstacle coordinate information in the obstacle trajectory data, and construct a trajectory change set corresponding to the obstacle trajectory data according to the obstacle coordinate information and the obstacle category; An obstacle category comparison module, used to perform data statistics on each obstacle category in the trajectory change set, and determine the proportion of at least one trajectory category in the obstacle trajectory data; A data filtering module is used to determine the largest trajectory category ratio as the target comparison category if it is greater than a preset normal category ratio threshold, and obtain the trajectory comparison threshold corresponding to the target comparison category, perform data comparison on the trajectory change set by using the trajectory comparison threshold, and determine the trajectory comparison ratio corresponding to the trajectory change set The data judgment module is used to determine the obstacle trajectory data as normal trajectory data if the trajectory comparison ratio is greater than a preset normal trajectory threshold.

9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the autonomous driving annotation data filtering method described in any one of claims 1-7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the autonomous driving annotation data filtering method described in any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Velocity planning method and device for autonomous vehicle and storage medium

    CN109814576A

  • Vehicle control method and device, electronic equipment and computer readable medium

    CN115534939A