Obstacle visual perception algorithm evaluation method, device, equipment, medium and product
By time stamping and spatial alignment of lidar and visual perception algorithm data, and combining three-dimensional and two-dimensional evaluation rules, the problem of inaccurate obstacle identification in autonomous driving systems is solved, and efficient and accurate visual perception algorithm evaluation is achieved.
Patent Information
- Application Number
- CN202411032572.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-01
AI Technical Summary
In autonomous driving systems, the difference in timestamp output between visual perception algorithms and lidars results in inaccurate identification and evaluation of obstacles, and a single evaluation rule is difficult to adapt to obstacles with large volume deviations, affecting the evaluation results of prediction algorithm data.
By performing time stamp alignment, spatial alignment and keyframe extraction processing on lidar three-dimensional point cloud data and visual perception algorithm data, combining adaptive evaluation rules of three-dimensional and two-dimensional evaluation and calculation methods, matching the true value and prediction data, and improving evaluation accuracy and efficiency.
It realizes efficient and accurate evaluation of visual perception algorithms, reduces calculation and storage costs, adapts to the identification and evaluation of different types of obstacles, and improves the universality and accuracy of the system.
Smart Images

Figure CN118887499A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving information perception technology, and in particular to an obstacle visual perception algorithm evaluation method, device, equipment, medium and product. Background Art
[0002] The effective identification and evaluation of obstacles in the surrounding environment in the autonomous driving system is crucial to ensure the safety and efficient autonomous driving of the vehicle. The performance of its perception prediction can be effectively evaluated by evaluating the visual perception algorithm. When evaluating the visual perception algorithm, high-precision three-dimensional point cloud data provided by the lidar is usually used as the true value of the obstacle to make the underlying data more convincing, and through reliable evaluation rules, the confidence of the visual perception algorithm is higher. However, there is a difference in the timestamps output by the visual perception algorithm and the lidar, which makes it difficult to match the prediction algorithm data with the true value data. In addition, the use of a single evaluation rule is irrational for obstacles with large volume deviations, which affects the evaluation of the prediction algorithm data and leads to inaccurate evaluation results. Summary of the invention
[0003] The embodiments of the present invention provide an obstacle visual perception algorithm evaluation method, device, equipment, medium and product, which improve the efficiency and accuracy of analyzing the performance of the visual perception algorithm.
[0004] In a first aspect, this embodiment provides a method for evaluating an obstacle visual perception algorithm, the method comprising:
[0005] Acquire the three-dimensional point cloud data collected by the laser radar and the prediction algorithm data obtained by processing the road sampling data with the visual perception algorithm, and use the three-dimensional point cloud data as the true value data;
[0006] Preprocessing the true value data and the prediction algorithm data to obtain corresponding target true value data and target prediction algorithm data, wherein the preprocessing includes timestamp alignment, spatial alignment, and key frame extraction;
[0007] Determining the initial evaluation index of the visual perception algorithm according to the target true value data and the target prediction algorithm data in combination with a preset adaptive evaluation rule, wherein the adaptive evaluation rule includes a three-dimensional evaluation calculation method and a two-dimensional evaluation calculation method;
[0008] According to the initial evaluation index, a target evaluation index of the visual perception algorithm is determined.
[0009] In a second aspect, this embodiment provides an obstacle visual perception algorithm evaluation device, the device comprising:
[0010] A data acquisition module is used to acquire the three-dimensional point cloud data collected by the laser radar and the prediction algorithm data obtained by processing the road acquisition data by the visual perception algorithm, and use the three-dimensional point cloud data as the true value data;
[0011] A preprocessing module, used to preprocess the true value data and the prediction algorithm data to obtain corresponding target true value data and target prediction algorithm data, wherein the preprocessing includes timestamp alignment, spatial alignment and key frame extraction;
[0012] An initial evaluation module, used to determine the initial evaluation index of the visual perception algorithm according to the target true value data and the target prediction algorithm data, combined with a preset adaptive evaluation rule, wherein the adaptive evaluation rule is related to the size of the obstacle;
[0013] The target evaluation module is used to determine the target evaluation index of the visual perception algorithm based on the initial evaluation index.
[0014] In a third aspect, this embodiment provides an electronic device, including:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] 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 obstacle visual perception algorithm evaluation method described in any embodiment of the present invention.
[0018] In a fourth aspect, this embodiment provides a computer-readable storage medium, and the computer program is executed by the at least one processor so that the at least one processor can execute the obstacle visual perception algorithm evaluation method described in any embodiment of the present invention.
[0019] In a fifth aspect, an embodiment of the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the obstacle visual perception algorithm evaluation method as described in the embodiment of the first aspect.
[0020] An embodiment of the present invention provides an obstacle visual perception algorithm evaluation method, device, equipment, medium and product, the method comprising: first, obtaining three-dimensional point cloud data collected by a laser radar and prediction algorithm data obtained by processing road acquisition data with a visual perception algorithm, and using the three-dimensional point cloud data as true value data; secondly, preprocessing the true value data and the prediction algorithm data to obtain corresponding target true value data and target prediction algorithm data, the preprocessing comprising timestamp alignment, spatial alignment and key frame extraction; then, determining the initial evaluation index of the visual perception algorithm based on the target true value data and the target prediction algorithm data in combination with preset adaptive evaluation rules, the adaptive evaluation rules comprising a three-dimensional evaluation calculation method and a two-dimensional evaluation calculation method; finally, determining the target evaluation index of the visual perception algorithm based on the initial evaluation index. Different from the prior art, where the timestamps of the visual perception algorithm and the output of the laser radar are different, and the use of a single evaluation rule will affect the evaluation of the prediction algorithm data, resulting in inaccurate evaluation results; the above technical solution first aligns the timestamps and space of the true value data and the prediction algorithm data to match the true value data and the prediction algorithm data, and then performs key frame extraction processing on the aligned true value data and the prediction algorithm data, thereby effectively reducing the amount of data that needs to be processed and stored, and reducing the calculation and storage costs. At the same time, the three-dimensional evaluation calculation method and the two-dimensional evaluation calculation method are combined to adaptively adjust the evaluation rules, thereby improving the accuracy and efficiency of the evaluation of the visual perception algorithm.
[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 an obstacle visual perception algorithm evaluation method provided in Embodiment 1 of the present invention;
[0024] Figure 2 A schematic diagram of a flow chart of another obstacle visual perception algorithm evaluation method provided in the second embodiment of the present invention;
[0025] Figure 3 A schematic diagram of the structure of an obstacle visual perception algorithm evaluation device provided in Embodiment 3 of the present invention;
[0026] Figure 4 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0027] 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.
[0028] It should be noted that the terms "original", "target", 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 interchangeable 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 other variations 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.
[0029] Embodiment 1
[0030] Figure 1 A flow chart of an obstacle visual perception algorithm evaluation method provided in Embodiment 1 of the present invention is provided. The method can be applicable to the situation where an obstacle visual perception algorithm is evaluated. The method can be executed by an obstacle visual perception algorithm evaluation device. The obstacle visual perception algorithm evaluation device can be implemented in the form of hardware and / or software and is generally integrated in an electronic device.
[0031] like Figure 1 As shown, the obstacle visual perception algorithm evaluation method provided in the first embodiment may specifically include the following steps:
[0032] S101, obtaining the three-dimensional point cloud data collected by the laser radar and the prediction algorithm data obtained by processing the road sampling data with the visual perception algorithm, and taking the three-dimensional point cloud data as the true value data.
[0033] The application scenario of this embodiment can be described as: identifying obstacles in the road environment based on the laser radar and visual perception algorithm on the vehicle, taking the recognition result of the laser radar as the true value of the obstacle, taking the recognition result of the visual perception algorithm as the predicted value of the obstacle, and evaluating the predicted value based on the true value of the obstacle to evaluate the performance of the visual perception algorithm. Among them, obstacles may include large vehicles, small cars, pedestrians, two-wheeled vehicles, three-wheeled vehicles, water barriers and cone barrels in the road environment. The information of the obstacle may include: the size, shape and other information of the obstacle, and for dynamic obstacles, its speed or heading angle and other information can also be obtained.
[0034] In this embodiment, the laser radar installed on the vehicle collects the three-dimensional point cloud data of the road environment in real time, thereby obtaining information about various obstacles in the road environment. The road collection equipment (such as cameras, etc.) installed on the vehicle collects images and video data of the road environment in real time, which are recorded as road collection data. The road collection data will be processed by the visual perception algorithm integrated by the visual perception system on the vehicle to obtain information about various obstacles in the road environment. This step is used to obtain the three-dimensional point cloud data collected by the laser radar and the prediction algorithm data obtained by processing the road collection data by the visual perception algorithm, and the three-dimensional point cloud data is used as the true value data. Exemplarily, the true value data and the prediction algorithm data can be stored in a file, and the prediction algorithm data and the laser radar point cloud true value data can be read by python, and the two can be formed into a series form of the pandas library, and they are processed into the same format to facilitate the calculation and processing of subsequent data. Among them, python is a programming language, pandas is a tool created to solve data analysis tasks, and series is a data structure.
[0035] S102: Preprocess the true value data and the prediction algorithm data to obtain corresponding target true value data and target prediction algorithm data.
[0036] Among them, preprocessing includes timestamp alignment, spatial alignment and key frame extraction.
[0037] Considering that the output timestamps of the LiDAR and visual perception algorithms are not completely synchronized, the comparison between the 3D point cloud data and the prediction algorithm data results in the data being out of sync on the time axis, making it difficult to conduct effective evaluation. In addition, the installation locations of the LiDAR and road sampling equipment are different, and there are differences in the viewing angle and field of view when comparing the 3D point cloud data and the prediction perception data, which makes the spatial data alignment complicated. Therefore, high-precision time synchronization and spatial alignment are required to ensure that the 3D point cloud data and the prediction perception data at the same timestamp and in the same space are compared to improve the accuracy and reliability of the data.
[0038] At the same time, due to the huge amount of data generated by laser radar and road sampling equipment, directly processing all the data will bring high computing and storage costs, and in the autonomous driving system, computing resources are limited, and resources need to be used efficiently for data processing. Therefore, in this embodiment, after the three-dimensional point cloud data and the prediction algorithm data are aligned in time and space, the aligned data will also be processed by key frame extraction, and the visual perception algorithm will be evaluated based on the extracted data, thereby reducing computing and storage costs and achieving efficient data processing.
[0039] Specifically, the true value data and the prediction algorithm data are aligned in time stamp and space to obtain aligned true value data and prediction algorithm data, that is, true value data and prediction algorithm data in the same space at the same time stamp. Then, the aligned true value data and prediction algorithm data are processed by key frame extraction, and the corresponding true value data and prediction algorithm data after the frame extraction processing are recorded as the corresponding target true value data and target prediction algorithm data.
[0040] It should be noted that the corresponding target true value data and target prediction algorithm data can be considered as data obtained by collecting and processing the same picture. Therefore, the corresponding target prediction algorithm data can be evaluated based on the target true value data. For example, the true value data and prediction algorithm data within a period of time can be obtained, and then the true value data and the prediction algorithm data are aligned in time and space, and then the key frame extraction is performed to obtain the target true value data and target prediction algorithm data corresponding to several frames within this period of time, which is equivalent to obtaining the target true value data and target prediction algorithm data corresponding to several frames of the picture.
[0041] S103: Determine the initial evaluation index of the visual perception algorithm according to the target true value data and the target prediction algorithm data in combination with the preset adaptive evaluation rules.
[0042] Among them, the adaptive evaluation rules include three-dimensional evaluation calculation method and two-dimensional evaluation calculation method.
[0043] Considering that a single evaluation rule is irrational for obstacles with large volume deviations, the accuracy of the evaluation of the predicted data is affected. Larger obstacles have larger bounding boxes and are more likely to overlap. Smaller objects have smaller bounding boxes and are more difficult to accurately locate, so the true positive (TP), false positive (FP), and false negative (FN) of different types of obstacles need to be calculated in their own reasonable ways. In this embodiment, a combination of three-dimensional and two-dimensional evaluation calculation methods is used, which is more scientific and reasonable, thereby ensuring that the evaluation results are more accurate. In this embodiment, the true value obstacles contained in the target true value data and the predicted obstacles contained in the target prediction algorithm data are obtained. For larger obstacles, the prediction algorithm data can be evaluated based on the three-dimensional intersection and union ratio of the true value obstacles and the predicted obstacles to see whether they are positive detections. For smaller obstacles, the evaluation by the three-dimensional intersection and union ratio will result in large errors in the results. Therefore, for smaller obstacles, the two-dimensional Euclidean distance between the true value obstacles and the predicted obstacles can be used to evaluate whether the prediction algorithm data is positive detection.
[0044] In this embodiment, the true obstacle is used to evaluate whether the predicted obstacle is correct. For example, if the predicted result is a true detection or a false detection, the evaluation results of the true detection or the false detection are used as the initial evaluation index. Specifically, if the true obstacle is larger than the set obstacle threshold, the intersection-and-union ratio of the true obstacle and the predicted obstacle is calculated based on a three-dimensional calculation method, and the initial evaluation index is determined based on the intersection-and-union ratio; if the true obstacle is smaller than or equal to the set obstacle size, the Euclidean distance between the true obstacle and the predicted obstacle is calculated based on a two-dimensional calculation method, and the initial evaluation index is determined based on the Euclidean distance.
[0045] In this embodiment, an adaptive evaluation rule is used, which can integrate two-dimensional and three-dimensional evaluation rules to meet the visual perception requirements of different types of obstacles. This multi-dimensional evaluation rule design not only improves the versatility of the system, but also can more accurately identify and evaluate different types of obstacles.
[0046] S104: Determine target evaluation indicators of the visual perception algorithm based on the initial evaluation indicators.
[0047] In this embodiment, the initial evaluation index includes the evaluation of the prediction algorithm data as positive detection, false detection and missed detection, which is equivalent to TP, FP and FN. The precision and recall of different types of obstacles are calculated through TP, FP and FN. At the same time, under the premise of TP, with the true value data as the benchmark, the prediction algorithm data and the true value data in the same frame are used to calculate the horizontal and vertical errors, speed errors, heading angle errors, horizontal average relative errors, longitudinal average relative errors and other indicators frame by frame to measure the confidence and performance of the visual perception algorithm data, and calculate the indicators of the visual perception algorithm performance. The evaluation indicators calculated above are used as the target evaluation indicators of the visual perception algorithm.
[0048] The embodiment of the present invention provides an obstacle visual perception algorithm evaluation method, which is different from the prior art in that the timestamps of the visual perception algorithm and the laser radar output are different, and the use of a single evaluation rule will affect the evaluation of the prediction algorithm data, resulting in inaccurate evaluation results; the above technical solution first performs timestamp alignment and spatial alignment on the true value data and the prediction algorithm data to match the true value data and the prediction algorithm data, and then performs key frame extraction processing on the aligned true value data and the prediction algorithm data, thereby effectively reducing the amount of data that needs to be processed and stored, and reducing the calculation and storage costs. At the same time, a three-dimensional evaluation calculation method and a two-dimensional evaluation calculation method are combined to adaptively adjust the evaluation rules, thereby improving the accuracy and efficiency of the visual perception algorithm evaluation.
[0049] As a first optional embodiment of an embodiment of the present invention, based on the above embodiment, this first optional embodiment can optimize the method to also include: displaying the target evaluation index determined based on all obstacles within the perception range in a non-segmented manner on the human-computer interaction interface; and / or displaying the target evaluation index determined based on obstacles at every set distance within the perception range in a segmented manner on the human-computer interaction interface.
[0050] In this embodiment, the above-mentioned target calculation indicators are stored in two forms, segmented and non-segmented, such as in JSON form, and displayed on the human-computer interaction interface in a non-segmented or segmented manner. Among them, the non-segmented manner can be specifically understood as displaying the target evaluation indicators of all obstacles within the perception range in a summarized manner. The segmented manner can be understood as displaying the target evaluation indicators of obstacles within each set distance in segments according to the distance of the obstacle from the visual perception system. Exemplarily, the segmentation rule is to output a segment every 10m within 0-100m, that is, the target evaluation indicators of obstacles within 0-10m are displayed as one segment, and the target evaluation indicators of obstacles within 10-20m are displayed as one segment, and so on.
[0051] It should be noted that based on the segmented display of evaluation results, we can know which specific distance segments have more reliable evaluation results, and we can focus on the segments to optimize the perception algorithm. For example, for obstacles that are closer to the visual perception system, the performance evaluation is more accurate; for obstacles that are slightly farther away from the visual perception system, the accuracy of the performance evaluation is poor. There will be many obstacles perceived over a period of time, such as hundreds of obstacles to evaluate. By evaluating the distance between these obstacles and the vehicle, the farther the distance, the lower the prediction accuracy. The segmented display method allows users to see that the visual perception algorithm may not be as accurate at a distance, and the algorithm can be improved in this regard in the future.
[0052] This optional embodiment displays the target evaluation indicators in both summary and segmented forms, making the evaluation results of the visual perception algorithm more scientific and more reliable. Through efficient data processing methods and displaying the data on the platform, the performance of the perception algorithm is clearly demonstrated, providing guarantees for downstream algorithms and meeting the high data requirements and safety of the autonomous driving system. The final evaluation results are displayed in a combination of distance segmentation and non-segmentation. This display method can provide detailed distance segmentation information to help users or systems understand the distribution of obstacles within different distance ranges, and can also give an overall evaluation result through non-segmented display, which is convenient for users to quickly grasp the overall situation.
[0053] Embodiment 2
[0054] Figure 2 A flow chart of an obstacle visual perception algorithm evaluation method provided in Embodiment 2 of the present invention. This embodiment is a further optimization of the above embodiment. In this embodiment, "preprocessing the true value data and the prediction algorithm data to obtain corresponding target true value data and target prediction algorithm data" is further limited and optimized, and "determining the initial evaluation index of the visual perception algorithm based on the target true value data and the target prediction algorithm data in combination with preset adaptive evaluation rules" is further limited and optimized, and "determining the target evaluation index of the visual perception algorithm based on the initial evaluation index" is limited and optimized.
[0055] like Figure 2 As shown, this embodiment 2 provides an obstacle visual perception algorithm evaluation method, which specifically includes the following steps:
[0056] S201, obtaining the three-dimensional point cloud data collected by the laser radar and the prediction algorithm data obtained by processing the road sampling data with the visual perception algorithm, and taking the three-dimensional point cloud data as the true value data.
[0057] S202: align the timestamps of the true value data and the prediction algorithm data based on a time synchronization algorithm to obtain the true value data and the prediction algorithm data with the timestamps aligned.
[0058] In this embodiment, it can be considered that each frame of data corresponds to a road scene, and the true value data and prediction algorithm data corresponding to a road scene need to be aligned. A time synchronization algorithm combining exact matching and fuzzy matching is used to synchronize the prediction algorithm data with the three-dimensional point cloud data as the true value data, thereby obtaining the true value data and prediction algorithm data with aligned timestamps.
[0059] As a specific implementation method, the steps of aligning the timestamps of the true value data and the prediction algorithm data based on the time synchronization algorithm to obtain the true value data and the prediction algorithm data with the timestamps aligned may be optimized, including:
[0060] a1) Obtain the first timestamp of each frame of true value data and the second timestamp of each frame of prediction algorithm data.
[0061] Specifically, a file storing the true value data and the prediction algorithm data is obtained. One frame of the picture corresponds to one frame of the true value data and one frame of the prediction algorithm data. Several frames of the picture will be collected in a period of time, and there will also be several frames of true value data and several frames of prediction algorithm data. This step is used to obtain the timestamp of each frame of the true value data, recorded as the first timestamp, and at the same time obtain the timestamp of each frame of the prediction algorithm data, recorded as the second timestamp.
[0062] b1) Determine whether the first timestamp is equal to the second timestamp.
[0063] Specifically, the first timestamp of each frame of true value data and the second timestamp of each frame of prediction algorithm data are traversed to determine whether the first timestamp and the second timestamp are equal.
[0064] c1) If the first timestamp is equal to the second timestamp, aligning the true value data corresponding to the first timestamp with the prediction algorithm data corresponding to the second timestamp.
[0065] Specifically, if the first timestamp and the second timestamp are equal, the true value data corresponding to the first timestamp is aligned with the prediction algorithm data corresponding to the second timestamp. The matching method with completely equal timestamps can be considered as an exact matching method.
[0066] d1) If the first timestamp is not equal to the second timestamp, determine whether the difference between the first timestamp and the second timestamp is less than a set time threshold.
[0067] In this embodiment, if the first timestamp is not equal to the second timestamp, a fuzzy matching method can be used to determine whether the first timestamp and the second timestamp match. Specifically, the difference between the first timestamp and the second timestamp is calculated to determine whether the difference is less than a set time threshold. The set time threshold can be set according to an empirical value. For example, the set time threshold can be set to 50ms.
[0068] e1) If the difference is less than the set time threshold, align the true value data corresponding to the first timestamp with the prediction algorithm data corresponding to the second timestamp.
[0069] Specifically, if the difference between the first timestamp and the second timestamp is less than the set time threshold, it is considered that the first timestamp and the second timestamp correspond to the same time point, and the true value data corresponding to the first timestamp is aligned with the prediction algorithm data corresponding to the second timestamp.
[0070] f1) If the difference is greater than or equal to the set time threshold, it is determined that the true value data corresponding to the first timestamp is not aligned with the prediction algorithm data corresponding to the second timestamp.
[0071] Specifically, if the difference between the first timestamp and the second timestamp is greater than or equal to the set time threshold, it is considered that the first timestamp and the second timestamp are not the same time point, and the true value data corresponding to the first timestamp is not aligned with the prediction algorithm data corresponding to the second timestamp.
[0072] S203 . Perform spatial alignment on the time stamp-aligned true value data and prediction algorithm data to obtain spatially aligned true value data and prediction algorithm data.
[0073] In this embodiment, after the timestamps of the true value data and the prediction algorithm data are aligned, they also need to be spatially aligned. The installation positions of the laser radar and the camera are different. When fusing the laser radar point cloud and the camera's image data, there are differences in the viewing angle and field of view, which makes the spatial data alignment complicated. Therefore, in this embodiment, the relative position information and angle information of the laser radar and the camera are obtained through the calibration algorithm. The spatial transformation matrix can be used to convert the laser radar point cloud data into the camera's coordinate system to achieve spatial alignment so that they correspond to the same picture.
[0074] S204: Based on a preset time interval or event triggering mechanism, key frame extraction is performed on the true value data and prediction algorithm data that are aligned in time stamps and space to obtain corresponding target true value data and target prediction algorithm data.
[0075] Specifically, according to a preset time interval or event trigger mechanism, key frames are automatically extracted from the aligned video stream and point cloud data to obtain corresponding target truth data and target prediction algorithm data. The selection criteria for key frames can be based on algorithms such as motion detection and object recognition to ensure that the extracted frames are representative and important. For example, 1s contains a lot of frame data, but the road scene collected within 1s is almost unchanged, so it is meaningless to evaluate continuous frames, resulting in a waste of computing resources. For example, it can be set to extract frames every 8S as the frame data to be detected.
[0076] S205: Acquire true value obstacles contained in the target true value data and predicted obstacles contained in the target prediction algorithm data.
[0077] Specifically, the target true value data contains obstacles and obstacle-related information, and the obstacles obtained in the target true value data are recorded as true obstacles. The target prediction algorithm data also contains obstacles and obstacle-related information, and the obstacles obtained in the target prediction algorithm data are recorded as predicted obstacles. It should be noted that obstacle extraction is performed for both the target true value data and the target prediction data aligned for each frame. Each frame may contain one or more obstacles.
[0078] S206: Initially screen the true obstacles and predicted obstacles to obtain candidate matching true obstacles and predicted obstacles.
[0079] Considering that a frame may contain several obstacles, the computing resources in the autonomous driving system are limited, and it is necessary to use resources efficiently for data processing. In order to avoid having to calculate each predicted obstacle and each true obstacle to determine whether it is a positive detection, the true obstacles and predicted obstacles corresponding to the same frame can be preliminarily matched to obtain possible matching true obstacles and predicted obstacles. In this step, the true obstacles and predicted obstacles are initially screened to obtain matching true obstacles and predicted obstacles, which are recorded as candidate matching true obstacles and predicted obstacles. For example, it is assumed that the obstacles extracted from the true data corresponding to the frame are A, B, C, D, and E, and the predicted obstacles corresponding to the frame are A1, B1, C1, D1, and E1. After extracting the true obstacles A, B, C, D, E, and the predicted obstacles A1, B1, C1, D1, E1, first calculate the two-dimensional Euclidean distance between each true obstacle and each predicted obstacle, and use the predicted obstacle with the minimum Euclidean distance to each true obstacle as its candidate matching obstacle, so that A and A1 are the same obstacle, B and B1 are the same obstacle, C and C1 are the same obstacle, D and D1 are the same obstacle, and E and E1 are the same obstacle. In the subsequent evaluation, only the candidate matching true obstacle needs to be evaluated against the predicted obstacle.
[0080] As a specific implementation method, the true value obstacles and predicted obstacles are initially screened to obtain candidate matching true value obstacles and predicted obstacles, including:
[0081] a2) Calculate the Euclidean distance between the true obstacle and the predicted obstacle based on a two-dimensional evaluation calculation method.
[0082] Specifically, the two-dimensional Euclidean distance between the true obstacle and the predicted obstacle is calculated. The specific calculation method of the Euclidean distance is not described here.
[0083] b2) If the Euclidean distance is greater than the first set Euclidean distance, it is determined that the true obstacle and the predicted obstacle are not the same obstacle.
[0084] The first set Euclidean distance is set according to an empirical value, and is used to distinguish whether the true obstacle and the predicted obstacle are the same obstacle. Specifically, for each obstacle in the same frame, if the Euclidean distance between the true obstacle and the predicted obstacle is greater than the first set Euclidean distance, it is determined that the true obstacle and the predicted obstacle are not the same obstacle.
[0085] c2) If the Euclidean distance is less than or equal to the first set Euclidean distance, it is determined that the true obstacle and the predicted obstacle are the same obstacle and are used as candidate matched true obstacle and predicted obstacle.
[0086] Specifically, for each obstacle in the same frame, if the Euclidean distance between the true obstacle and the predicted obstacle is less than or equal to the first set Euclidean distance, it is determined that the true obstacle and the predicted obstacle are the same obstacle, and they are used as candidate matched true obstacle and predicted obstacle.
[0087] The above technical solution specifies the steps of initially screening the true obstacles and predicted obstacles to obtain candidate matching true obstacles and predicted obstacles. When evaluating the prediction results, there will be one predicted frame and one true frame for the same frame. If the predicted data and all the true data are evaluated once, it will result in a large amount of calculation. The above technical solution matches the predicted obstacles and the true obstacles by Euclidean distance. If the Euclidean distance is too far, it is considered that it is definitely not an obstacle, which can eliminate a large part of the calculation. If the Euclidean distance between the predicted algorithm data and the true data is very short and meets the standard, subsequent evaluation can reduce a lot of invalid calculations and improve evaluation speed and calculation efficiency.
[0088] S207: If the true obstacle of the candidate match is larger than the set obstacle threshold, the intersection-over-union ratio of the true obstacle and the predicted obstacle is calculated based on the three-dimensional evaluation calculation method, and an initial evaluation index is determined based on the intersection-over-union ratio.
[0089] Among them, setting the obstacle threshold size is used to divide obstacles into two categories, one type of obstacle is larger than the set obstacle threshold size, and the other type of obstacle is equal to or smaller than the set obstacle threshold size. When the obstacle size is larger than the set obstacle threshold size, a three-dimensional evaluation calculation method is used to evaluate whether the prediction algorithm data is a positive detection. Specifically, the intersection over union (IOU) of the true obstacle and the predicted obstacle is calculated based on the three-dimensional evaluation calculation method, that is, the intersection area of the predicted obstacle and the true obstacle is divided by their union area to obtain the intersection over union. If the intersection over union is greater than the set intersection over union filter threshold, it is considered to be a positive detection. If the intersection over union is less than or equal to the set intersection over union filter threshold, it is considered to be a false detection. Exemplarily, larger types of obstacles such as cars, carts, two-wheeled vehicles, etc. are calculated by IOU.
[0090] As a specific implementation method, the steps of determining the initial evaluation index based on the intersection-and-union ratio can be optimized, including:
[0091] a3) If the IoU is greater than the set IoU filtering threshold, it is determined to be a positive detection.
[0092] Among them, the intersection-and-union ratio filtering threshold is set to change in real time as the distance between the obstacle and the visual perception system increases. It should be noted that due to the limitations of the visual perception algorithm and the lower the accuracy as the distance increases, the evaluation filtering rules that change with the distance are set in this embodiment. This mechanism can dynamically adjust the evaluation parameters according to the distance between the obstacle and the visual perception system. That is, the intersection-and-union ratio filtering threshold set when the distance is close is stricter, and the intersection-and-union ratio filtering threshold set when the distance is far is looser. By setting the intersection-and-union ratio filtering threshold to change in real time as the distance increases, the accuracy and robustness of obstacle recognition are improved.
[0093] Specifically, if the intersection-over-intersection ratio of the true obstacle to the predicted obstacle is greater than the set intersection-over-intersection ratio filtering threshold, it is determined to be a positive detection.
[0094] b3) If the IoU is less than or equal to the set IoU filtering threshold, the target prediction algorithm data is determined to be a false positive.
[0095] Specifically, if the intersection-and-union ratio of the true obstacle to the predicted obstacle is less than or equal to the set intersection-and-union ratio filtering threshold, it is determined to be a false detection.
[0096] The above technical solution concretizes the steps of determining the initial evaluation index based on the intersection-and-union ratio, and sets the evaluation filtering rules that change with the distance. This mechanism can dynamically adjust the evaluation parameters according to the distance between the obstacle and the visual perception system, thereby improving the accuracy and robustness of obstacle recognition.
[0097] S208: If the true obstacle of the candidate match is smaller than or equal to the set obstacle threshold, the Euclidean distance between the true obstacle and the predicted obstacle is calculated based on a two-dimensional evaluation calculation method, and an initial evaluation index is determined based on the Euclidean distance.
[0098] In this embodiment, for obstacles that are less than or equal to the set obstacle threshold size, a two-dimensional evaluation calculation method is used to evaluate whether the prediction algorithm data is a positive detection. Specifically, the Euclidean distance between the true obstacle and the predicted obstacle is calculated based on the two-dimensional evaluation calculation method, that is, the distance between the corresponding points of the predicted obstacle and the true obstacle. If the Euclidean distance is less than the second set Euclidean distance, it is considered a positive detection. If the Euclidean distance is greater than or equal to the second set Euclidean distance, it is considered a false detection. Exemplarily, for smaller obstacles such as cones, water barriers and other obstacles, the Euclidean distance is calculated and filtered to obtain positive detections, false detections, etc. It should be noted that the aforementioned determined Euclidean distance can also be directly used here.
[0099] As a specific implementation method, the steps of determining the initial evaluation index based on the Euclidean distance can be optimized, including:
[0100] a4) If the Euclidean distance is less than the second set Euclidean distance, the target prediction algorithm data is determined to be a positive detection.
[0101] Among them, the second set Euclidean distance is smaller than the first set Euclidean distance, and the second set Euclidean value changes in real time as the distance between the obstacle and the visual perception system increases. It should be noted that due to the limitations of the visual perception algorithm and the lower the accuracy as the distance increases, the evaluation filtering rules that change with the distance are set in this embodiment. This mechanism can dynamically adjust the evaluation parameters according to the distance between the obstacle and the visual perception system. That is, the first set Euclidean distance set when the distance is close is stricter, and the first set Euclidean distance set when the distance is far is looser. By setting the intersection-union ratio filtering threshold to change in real time as the distance increases, the accuracy and robustness of obstacle recognition can be improved.
[0102] Specifically, if the Euclidean distance between the true obstacle and the predicted obstacle is less than the second set Euclidean distance, it is determined to be a positive detection.
[0103] b4) If the Euclidean distance is greater than or equal to the second set Euclidean distance, it is determined that the target prediction algorithm data is a false detection.
[0104] Specifically, if the Euclidean distance between the true obstacle and the predicted obstacle is greater than or equal to the second set Euclidean distance, it is determined to be a false detection.
[0105] The above technical solution concretizes the steps of determining the initial evaluation index based on the Euclidean distance, and sets the evaluation filtering rules that change with the distance. This mechanism can dynamically adjust the evaluation parameters according to the distance between the obstacle and the visual perception system, thereby improving the accuracy and robustness of obstacle recognition.
[0106] Further, the method may be optimized to include:
[0107] a5) For each obstacle, if the target prediction algorithm data exists and the target true value data does not exist, it is determined that the target prediction algorithm data is a false detection.
[0108] In this embodiment, for all obstacles, if the target prediction algorithm data exists but the true value data does not exist, it is considered a false detection.
[0109] b5) If the target prediction algorithm data does not exist and the target true value data exists, it is determined that the target prediction algorithm data is missed.
[0110] In this embodiment, for all obstacles, if the target prediction algorithm data does not exist but the true value data does exist, it is a missed detection.
[0111] The above technical solution increases the possibility of false detection or missed detection.
[0112] S209: Determine the number of correct detections, the number of false detections, and the number of missed detections of each obstacle based on the initial evaluation index.
[0113] Specifically, the initial evaluation index includes the detection results of each obstacle as a positive detection (ie, TP), a false detection (ie, FP), and a missed detection (ie, FN), and statistics are collected on the positive detection data, the number of false detections, and the number of missed detections of each obstacle.
[0114] S210: Determine the accuracy of the visual perception algorithm according to the number of true positive detections and the number of false positive detections.
[0115] Specifically, the number of true detections is divided by the sum of the number of true detections and the number of false detections to obtain the accuracy of different types of obstacles.
[0116] S211. Determine the recall rate of the visual perception algorithm based on the number of positive detections and the number of missed detections.
[0117] Specifically, the number of positive detections is divided by the sum of the number of positive detections and the number of missed detections to obtain the recall rates of different types of obstacles.
[0118] S212. When the detection result is a positive detection, various types of errors between the target prediction algorithm data and the target true value data are determined.
[0119] In this embodiment, under the premise of positive detection, taking the true value data as the benchmark, the lateral and longitudinal errors, speed error, heading angle error, lateral average relative error, longitudinal average relative error and other indicators are calculated frame by frame through the prediction algorithm data and the true value data in the same frame to measure the confidence and performance of the perception algorithm data. By calculating the lateral and longitudinal errors, speed error, heading angle error, lateral average relative error, and longitudinal average relative error frame by frame, these errors are various types of errors between the target prediction algorithm data and the true value data.
[0120] S213. Use precision, recall and various types of errors as target evaluation indicators for visual perception algorithms.
[0121] Specifically, precision, recall, and various types of errors such as lateral and longitudinal errors, speed error, heading angle error, lateral average relative error, and longitudinal average relative error are used as target evaluation indicators of the visual perception algorithm.
[0122] The above technical scheme specifies the steps of preprocessing the true value data and the prediction algorithm data, as well as the steps of determining the initial evaluation index of the visual perception algorithm based on the target true value data and the target prediction algorithm data in combination with preset adaptive evaluation rules, and the steps of determining the target evaluation index of the visual perception algorithm based on the initial evaluation index. It realizes the combination of three-dimensional and two-dimensional evaluation calculation methods, which is more scientific and reasonable; and the three-dimensional and two-dimensional filtering thresholds change in real time with the increase of distance. Through efficient data processing methods, it provides protection for downstream algorithms and meets the high requirements of autonomous driving systems for data and safety.
[0123] Embodiment 3
[0124] Figure 3 This is a schematic diagram of the structure of an obstacle visual perception algorithm evaluation device provided in the third embodiment of the present invention. The device is applicable to the situation of evaluating the obstacle visual perception algorithm. The obstacle visual perception algorithm evaluation device can be implemented in the form of hardware and / or software and is generally integrated in an electronic device. Figure 3 As shown, the system includes: a data acquisition module 31, a preprocessing module 32, an initial evaluation module 33 and a target evaluation module 34; wherein,
[0125] The data acquisition module 31 is used to acquire the three-dimensional point cloud data collected by the laser radar and the prediction algorithm data obtained by processing the road acquisition data by the visual perception algorithm, and use the three-dimensional point cloud data as the true value data;
[0126] A preprocessing module 32 is used to preprocess the true value data and the prediction algorithm data to obtain corresponding target true value data and target prediction algorithm data, and the preprocessing includes timestamp alignment, space alignment and key frame extraction;
[0127] An initial evaluation module 33 is used to determine the initial evaluation index of the visual perception algorithm based on the target true value data and the target prediction algorithm data in combination with a preset adaptive evaluation rule, where the adaptive evaluation rule is related to the size of the obstacle;
[0128] The target evaluation module 34 is used to determine the target evaluation index of the visual perception algorithm based on the initial evaluation index.
[0129] The embodiment of the present invention provides an obstacle visual perception algorithm evaluation device, which is different from the prior art in that the timestamps of the visual perception algorithm and the laser radar output are different, and the use of a single evaluation rule will affect the evaluation of the prediction algorithm data, resulting in inaccurate evaluation results; the above technical solution first performs timestamp alignment and spatial alignment on the true value data and the prediction algorithm data to match the true value data and the prediction algorithm data, and then performs key frame extraction processing on the aligned true value data and the prediction algorithm data, thereby effectively reducing the amount of data that needs to be processed and stored, and reducing the calculation and storage costs. At the same time, a combination of a three-dimensional evaluation calculation method and a two-dimensional evaluation calculation method is used to adaptively adjust the evaluation rules, thereby improving the accuracy and efficiency of the visual perception algorithm evaluation.
[0130] Optionally, the preprocessing module 32 includes:
[0131] A time alignment unit, used to perform time stamp alignment on the true value data and the prediction algorithm data based on a time synchronization algorithm to obtain the true value data and the prediction algorithm data with time stamp alignment;
[0132] A spatial alignment unit, used for spatially aligning the true value data and the prediction algorithm data aligned with the timestamp to obtain the spatially aligned true value data and the prediction algorithm data;
[0133] The frame extraction processing unit is used to extract key frames from the true value data and prediction algorithm data that are timestamp-aligned and spatially aligned based on a preset time interval or event trigger mechanism to obtain corresponding target true value data and target prediction algorithm data.
[0134] Optionally, the frame extraction processing unit includes:
[0135] Obtain a first timestamp for each frame of true value data and a second timestamp for each frame of prediction algorithm data;
[0136] Determine whether the first timestamp is equal to the second timestamp;
[0137] If the first timestamp is equal to the second timestamp, aligning the true value data corresponding to the first timestamp with the prediction algorithm data corresponding to the second timestamp;
[0138] If the first timestamp is not equal to the second timestamp, determining whether the difference between the first timestamp and the second timestamp is less than a set time threshold;
[0139] If the difference is less than the set time threshold, align the true value data corresponding to the first timestamp with the prediction algorithm data corresponding to the second timestamp;
[0140] If the difference is greater than or equal to the set time threshold, it is determined that the true value data corresponding to the first timestamp is not aligned with the prediction algorithm data corresponding to the second timestamp.
[0141] Optionally, the initial evaluation module 33 may include:
[0142] An obstacle acquisition unit, used to acquire true obstacles contained in the target true value data and predicted obstacles contained in the target prediction algorithm data;
[0143] An initial matching unit, used for initially screening true obstacles and predicted obstacles to obtain candidate matching true obstacles and predicted obstacles;
[0144] A three-dimensional evaluation unit, for calculating the intersection-and-union ratio of the true obstacle and the predicted obstacle based on a three-dimensional evaluation calculation method if the true obstacle of the candidate match is larger than the set obstacle threshold, and determining an initial evaluation index based on the intersection-and-union ratio;
[0145] The two-dimensional evaluation unit is used to calculate the Euclidean distance between the true obstacle and the predicted obstacle based on the two-dimensional evaluation calculation method if the true obstacle of the candidate match is less than or equal to the set obstacle threshold size, and determine the initial evaluation index based on the Euclidean distance.
[0146] Optionally, the initial matching unit is specifically configured to:
[0147] Calculate the Euclidean distance between the true obstacle and the predicted obstacle based on the two-dimensional evaluation calculation method;
[0148] If the Euclidean distance is greater than the first set Euclidean distance, it is determined that the true obstacle and the predicted obstacle are not the same obstacle;
[0149] If the Euclidean distance is less than or equal to the first set Euclidean distance, it is determined that the true obstacle and the predicted obstacle are the same obstacle, and they are used as candidate matched true obstacle and predicted obstacle.
[0150] Optionally, the device further includes a false omission detection determination module, configured to:
[0151] For each obstacle, if the target prediction algorithm data exists and the target true value data does not exist, the target prediction algorithm data is determined to be a false detection;
[0152] If the target prediction algorithm data does not exist and the target true value data exists, it is determined that the target prediction algorithm data is missed.
[0153] Optionally, the three-dimensional evaluation unit is specifically used for:
[0154] If the intersection-over-union ratio is greater than the set intersection-over-union ratio filtering threshold, it is determined to be a positive detection. The set intersection-over-union ratio filtering threshold changes in real time as the distance between the obstacle and the visual perception system increases;
[0155] If the IoU is less than or equal to the set IoU filtering threshold, the target prediction algorithm data is determined to be a false positive.
[0156] Optionally, the two-dimensional evaluation unit is specifically used for:
[0157] If the Euclidean distance is less than the second set Euclidean distance, the target prediction algorithm data is determined to be a positive detection;
[0158] If the Euclidean distance is greater than or equal to the second set Euclidean distance, it is determined that the target prediction algorithm data is a false detection;
[0159] The second set Euclidean distance is smaller than the first set Euclidean distance, and the second set Euclidean distance changes in real time as the distance between the obstacle and the visual perception system increases.
[0160] Optionally, the target evaluation module 34 is specifically used to:
[0161] According to the initial evaluation indicators, determine the number of correct detections, false detections, and missed detections of each obstacle;
[0162] Determine the accuracy of the visual perception algorithm based on the number of true positive detections and false positive detections;
[0163] Determine the recall rate of the visual perception algorithm based on the number of positive detections and missed detections;
[0164] When the detection result is a positive detection, various types of errors between the target prediction algorithm data and the target true value data are determined;
[0165] Precision, recall and various types of errors are used as target evaluation indicators of visual perception algorithms.
[0166] Optionally, the device further includes an indicator display module, which is used to:
[0167] The target evaluation index determined based on all obstacles within the sensing range is displayed in a non-segmented manner on the human-computer interaction interface;
[0168] And / or the target evaluation index determined based on obstacles at set distances within the perception range is displayed in a segmented manner on the human-computer interaction interface.
[0169] The obstacle visual perception algorithm evaluation device provided in the embodiment of the present invention can execute the obstacle visual perception algorithm evaluation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0170] Embodiment 4
[0171] Figure 4 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The components, their connections and relationships, and their functions shown herein are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0172] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0173] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0174] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 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 41 executes the various methods and processes described above, such as the obstacle visual perception algorithm evaluation method.
[0175] In some embodiments, the obstacle visual perception algorithm evaluation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the obstacle visual perception algorithm evaluation method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to execute the obstacle visual perception algorithm evaluation method in any other appropriate manner (e.g., by means of firmware).
[0176] 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.
[0177] 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 functions / 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.
[0178] 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.
[0179] To provide interaction with a user, the systems and techniques described herein can be implemented on a vehicle 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 pointing device (e.g., a mouse or trackball) through which the user can provide input to the vehicle. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0180] The systems and techniques described herein may 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 web 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 may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0181] 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 network. The client and server relationship is generated by computer programs running on the corresponding 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.
[0182] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code for the operation of the present disclosure, including but not limited to object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" language or similar programming languages. The program code can 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 can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0183] 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.
[0184] 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 evaluating an obstacle visual perception algorithm, characterized in that: include: Acquire the three-dimensional point cloud data collected by the laser radar and the prediction algorithm data obtained by processing the road sampling data with the visual perception algorithm, and use the three-dimensional point cloud data as the true value data; Preprocessing the true value data and the prediction algorithm data to obtain corresponding target true value data and target prediction algorithm data, wherein the preprocessing includes timestamp alignment, spatial alignment, and key frame extraction; Determining the initial evaluation index of the visual perception algorithm according to the target true value data and the target prediction algorithm data in combination with a preset adaptive evaluation rule, wherein the adaptive evaluation rule includes a three-dimensional evaluation calculation method and a two-dimensional evaluation calculation method; According to the initial evaluation index, a target evaluation index of the visual perception algorithm is determined.
2. The method according to claim 1, characterized in that The preprocessing of the true value data and the prediction algorithm data to obtain corresponding target true value data and target prediction algorithm data includes: Performing timestamp alignment on the true value data and the prediction algorithm data based on a time synchronization algorithm to obtain the true value data and prediction algorithm data with timestamp alignment; Performing spatial alignment on the true value data and the prediction algorithm data whose timestamps are aligned, to obtain the true value data and the prediction algorithm data whose spaces are aligned; Based on a preset time interval or event trigger mechanism, key frames are extracted from the true value data and prediction algorithm data that are timestamp-aligned and spatially aligned to obtain the corresponding target true value data and target prediction algorithm data.
3. The method according to claim 2, characterized in that The performing timestamp alignment on the true value data and the prediction algorithm data based on the time synchronization algorithm to obtain the true value data and the prediction algorithm data with timestamp alignment includes: Obtain a first timestamp for each frame of true value data and a second timestamp for each frame of prediction algorithm data; Determining whether the first timestamp is equal to the second timestamp; If the first timestamp is equal to the second timestamp, aligning the true value data corresponding to the first timestamp with the prediction algorithm data corresponding to the second timestamp; If the first timestamp is not equal to the second timestamp, determining whether the difference between the first timestamp and the second timestamp is less than a set time threshold; If the difference is less than the set time threshold, aligning the true value data corresponding to the first timestamp with the prediction algorithm data corresponding to the second timestamp; If the difference is greater than or equal to the set time threshold, it is determined that the true value data corresponding to the first timestamp is not aligned with the prediction algorithm data corresponding to the second timestamp.
4. The method according to claim 1, characterized in that: Determining the initial evaluation index of the visual perception algorithm according to the target true value data and the target prediction algorithm data in combination with a preset adaptive evaluation rule includes: Acquire the true value obstacles contained in the target true value data and the predicted obstacles contained in the target prediction algorithm data; Performing an initial screening on the true value obstacle and the predicted obstacle to obtain candidate matching true value obstacles and predicted obstacles; If the true obstacle of the candidate match is larger than the set obstacle threshold, the intersection-and-union ratio of the true obstacle and the predicted obstacle is calculated based on the three-dimensional evaluation calculation method, and the initial evaluation index is determined based on the intersection-and-union ratio; If the true obstacle of the candidate match is smaller than or equal to the set obstacle threshold, the Euclidean distance between the true obstacle and the predicted obstacle is calculated based on a two-dimensional evaluation calculation method, and the initial evaluation index is determined based on the Euclidean distance.
5. The method according to claim 4, characterized in that The initially screening the true value obstacle and the predicted obstacle to obtain candidate matching true value obstacles and predicted obstacles includes: Calculating the Euclidean distance between the true obstacle and the predicted obstacle based on a two-dimensional evaluation calculation method; If the Euclidean distance is greater than a first set Euclidean distance, it is determined that the true obstacle and the predicted obstacle are not the same obstacle; If the Euclidean distance is less than or equal to the first set Euclidean distance, it is determined that the true obstacle and the predicted obstacle are the same obstacle and are used as candidate matching true obstacle and predicted obstacle.
6. The method according to claim 4, characterized in that Also includes: For each obstacle, if the target prediction algorithm data exists and the target true value data does not exist, it is determined that the target prediction algorithm data is a false detection; If the target prediction algorithm data does not exist and the target true value data exists, it is determined that the target prediction algorithm data is missed.
7. The method according to claim 4, characterized in that The determining the initial evaluation index based on the intersection-over-union ratio includes: If the intersection-over-union ratio is greater than a set intersection-over-union ratio filtering threshold, it is determined to be a positive detection, and the set intersection-over-union ratio filtering threshold changes in real time as the distance between the obstacle and the visual perception system increases; If the IoU is less than or equal to the set IoU filtering threshold, it is determined that the target prediction algorithm data is a false detection.
8. The method according to claim 5, characterized in that The determining the initial evaluation index based on the Euclidean distance includes: If the Euclidean distance is less than a second set Euclidean distance, determining that the target prediction algorithm data is a positive detection; If the Euclidean distance is greater than or equal to the second set Euclidean distance, determining that the target prediction algorithm data is a false detection; Among them, the second set Euclidean distance is smaller than the first set Euclidean distance, and the second set Euclidean value changes in real time as the distance between the obstacle and the visual perception system increases.
9. The method according to claim 1, characterized in that: Determining the target evaluation index of the visual perception algorithm according to the initial evaluation index includes: According to the initial evaluation index, determine the number of correct detections, the number of false detections, and the number of missed detections of each obstacle; Determining the accuracy of the visual perception algorithm according to the number of true positive detections and the number of false positive detections; Determining a recall rate of the visual perception algorithm according to the number of positive detections and the number of missed detections; When the detection result is a positive detection, determining various types of errors between the target prediction algorithm data and the target true value data; The precision, recall and various types of errors are used as target evaluation indicators of the visual perception algorithm.
10. The method according to claim 1, characterized in that Also includes: The target evaluation index determined based on all obstacles within the sensing range is displayed in a non-segmented manner on the human-computer interaction interface; And / or the target evaluation index determined based on obstacles at set distances within the perception range is displayed in a segmented manner on the human-computer interaction interface.
11. An obstacle visual perception algorithm evaluation device, characterized in that: include: A data acquisition module is used to acquire the three-dimensional point cloud data collected by the laser radar and the prediction algorithm data obtained by processing the road acquisition data by the visual perception algorithm, and use the three-dimensional point cloud data as the true value data; A preprocessing module, used to preprocess the true value data and the prediction algorithm data to obtain corresponding target true value data and target prediction algorithm data, wherein the preprocessing includes timestamp alignment, spatial alignment and key frame extraction; An initial evaluation module, used to determine the initial evaluation index of the visual perception algorithm according to the target true value data and the target prediction algorithm data, combined with a preset adaptive evaluation rule, wherein the adaptive evaluation rule is related to the size of the obstacle; The target evaluation module is used to determine the target evaluation index of the visual perception algorithm according to the initial evaluation index.
12. An electronic device, characterized in that: include: at least one processor; as well as 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 obstacle visual perception algorithm evaluation method described in any one of claims 1-10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the obstacle visual perception algorithm evaluation method according to any one of claims 1 to 10 when executed.
14. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the obstacle visual perception algorithm evaluation method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Laser radar calibration method, computer equipment, readable storage medium and motor vehicle
CN116148820A
True value data acquisition method and device, storage medium and electronic equipment
CN117593892A
Cited By
Radar false target identification method, device and equipment and storage medium
CN119716840A
Method and apparatus for evaluating obstacle visual perception algorithm, device, medium, and product
WO2026025967A1
