Target detection method, electronic device, product and medium

By processing multiple camera data in parallel on a vehicle-mounted distributed platform, the problem of overloaded computing power in the autonomous driving perception calculation model is solved, the accuracy and efficiency of target detection are improved, and the perception capability of the autonomous driving system is enhanced.

CN118279857BActive Publication Date: 2024-09-13INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410692260.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-13
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

Autonomous driving's bird's-eye view perception computing model requires high computing power. A single computing chip has a heavy load and long delays. Optimization through model quantification and other methods will result in loss of perception accuracy, making it impossible to guarantee the accuracy of target detection results.

Method used

Using a vehicle-mounted distributed platform, multiple chips process multi-channel camera data in parallel, generate a set of parallel inference results, and fuse the results to obtain target detection results from a bird's-eye view, using categories, distances, angle differences, intersection and union ratios, etc. The indicators construct a score matrix to determine the target correlation and improve detection accuracy and efficiency.

Benefits of technology

It improves the accuracy and efficiency of target detection, reduces false detections and missed detections, provides global target detection results, helps vehicles better understand the surrounding environment, and enhances the perception and decision-making capabilities of the autonomous driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118279857B
    Figure CN118279857B
Patent Text Reader

Abstract

The present application provides a target detection method, electronic device, product and medium, which relates to the field of BEV perception technology and is applied to a vehicle-mounted distributed platform. The vehicle-mounted distributed platform includes multiple chips, which obtain data from multiple cameras on an autonomous driving vehicle, and the perspectives of the multiple cameras are different; based on multiple chips, the data of the multiple cameras are divided to obtain multiple data streams, each of which contains data from at least one camera; through multiple chips, multiple data streams are inferred in parallel to obtain multiple inference result sets, each of which is generated by one of the multiple chips; each inference result set in the multiple inference result sets is fused to obtain the target detection result from a bird's-eye view. It is possible to complete the inference of data in parallel based on multiple chips of the vehicle-mounted distributed platform, and to fuse each inference result of the multiple inference result sets to obtain the target detection result, thereby improving the accuracy and efficiency of target detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of BEV perception technology, and in particular to a target detection method, electronic equipment, product and medium. Background Art

[0002] Autonomous driving perception refers to the reconstruction of the three-dimensional geometric environment around the vehicle body, so as to express the real scene information of the physical world using sensors such as lidar and cameras. Based on the data perceived by the sensors, the autonomous driving perception, positioning, planning, and control modules can automatically change lanes and automatically park the vehicle. As the core module of autonomous driving, the perception module is mainly divided into environmental perception such as vehicles, pedestrians, traffic lights, and lane lines in the environment. The specific technical routes include 2D and 3D target detection, map segmentation, and target tracking technology, which are mainly based on deep learning technology to achieve the above goals.

[0003] BEV perception refers to a method of representing the environment from a top-down perspective. BEV perception can unify the perception results from different perspectives into a bird's-eye view. In this way, on the one hand, the relationship between objects in the surrounding environment is more clearly expressed, and on the other hand, objects can be represented at a unified scale, avoiding the situation where objects are larger near and smaller far away. In addition, the perception results can be more easily used by downstream under a unified bird's-eye view, such as prediction and planning modules. Currently, the BEV-based perception methods are mainly divided into two categories: LLS and Transformer large model technology. The core technology of the above two technologies is to convert 2D images into 3D space for data representation, estimate the depth of the target object, and then convert it to a bird's-eye view for expression.

[0004] Bird's-eye view perception technology requires a lot of computing power from the vehicle computing platform, so it is necessary to choose a reasonable computing platform and optimize the calculation under the premise of ensuring perception accuracy. At present, it is mainly based on a single chip for inference optimization, including model quantization and cropping, model network structure rewriting, etc., to ensure the frame rate of the image and reduce the delay of the entire computing pipeline to less than 100ms to meet the requirements of vehicle computing. In this process, there are mainly the following disadvantages: At present, the computing power requirements of the bird's-eye view perception computing model for autonomous driving are high, the computing load of a single computing chip is high, the latency is high, and the computing load increases exponentially with the increase of perception distance and perception granularity. The on-board computing power of a single computing chip is low. If the model is compressed by model quantization or other methods, it will cause the loss of model accuracy, reduce the perception accuracy of autonomous driving, and cannot guarantee the accuracy of target detection results. Summary of the invention

[0005] In view of this, embodiments of the present application provide a target detection method, electronic device, product and medium to overcome the above problems or at least partially solve the above problems.

[0006] A first aspect of an embodiment of the present application provides a target detection method, which is applied to a vehicle-mounted distributed platform, wherein the vehicle-mounted distributed platform includes multiple chips, and the method includes:

[0007] Acquire data from multiple cameras on an autonomous vehicle, where the viewing angles of the multiple cameras are different.

[0008] Based on the multiple chips, the data of the multiple cameras are divided to obtain multiple data streams, wherein each of the data streams contains data of at least one camera;

[0009] Performing parallel reasoning on the multiple data streams through the multiple chips to obtain multiple reasoning result sets, wherein each reasoning result set is generated by one chip among the multiple chips;

[0010] The respective inference results in the plurality of inference result sets are fused to obtain a target detection result from a bird's-eye view.

[0011] Optionally, before acquiring data from multiple cameras on the autonomous driving vehicle, the method further includes:

[0012] Taking the partial overlap between the viewing angles of multiple cameras corresponding to different chips as a target, the viewing angles of the multiple cameras are set respectively;

[0013] The viewing angles of the multiple cameras corresponding to each chip are continuous.

[0014] Optionally, fusing the respective inference results in the plurality of inference result sets to obtain the target detection result from a bird's-eye view includes:

[0015] Determine the number of inference results matching the same target in the multiple inference result sets corresponding to the multiple chips, wherein one inference result corresponds to one target;

[0016] When there are multiple inference results matching the same target, the inference result with the highest confidence among the multiple inference results matching the same target is used as the inference result corresponding to the target;

[0017] When the number of inference results matching the same target is one, taking the one inference result as the inference result corresponding to the target;

[0018] The reasoning results corresponding to the various targets are combined to obtain target detection results from the data of the multiple cameras on the autonomous driving vehicle under the BEV perspective.

[0019] Optionally, the chip includes a first chip and a second chip, and the inference result set generated by the first chip includes multiple inference results of the first target, and the inference result set generated by the second chip includes multiple inference results of the second target. Before determining the number of inference results matching the same target in the multiple inference result sets corresponding to the multiple chips, the method further includes:

[0020] Based on category, distance, angle difference, and intersection-and-union ratio, a plurality of score matrices are constructed respectively, and based on the plurality of score matrices, it is determined whether there are a plurality of inference results with targets being mutually related in the plurality of inference result sets corresponding to the plurality of chips, wherein the score matrices include a category association matrix, a distance matrix, an angle difference matrix, and an intersection-and-union ratio matrix;

[0021] For multiple inference results whose targets are mutually related, calculating the correlation scores between the multiple targets corresponding to the multiple inference results;

[0022] For the multiple inference results whose association scores are greater than a preset association score threshold, determining that the multiple targets corresponding to the multiple inference results match;

[0023] The calculation formula of the correlation score is:

[0024] ,in, is the association score, d is the distance between the targets, d_max is the maximum distance between all targets.

[0025] Optionally, the inference result at least includes a category of the target, and the steps of constructing a plurality of score matrices based on the category, distance, angle difference, and intersection-over-union ratio, respectively, and determining whether there are a plurality of inference results whose targets are interrelated in the plurality of inference result sets corresponding to the plurality of chips based on the plurality of score matrices, comprises:

[0026] Creating the category association matrix according to the reasoning results of the first targets included in the reasoning result set generated by the first chip and the reasoning results of the second targets included in the reasoning result set generated by the second chip;

[0027] In the category association matrix, according to the categories of the targets in the inference result, the category association degrees between the category of each first target and the categories of the plurality of second targets are calculated;

[0028] The category association degree between the first target and the second target corresponds to the value of an element in the category association matrix.

[0029] Optionally, in the category association matrix, according to the categories of the targets in the inference result, calculating the category association degree between the category of each first target and the categories of the plurality of second targets respectively includes:

[0030] When the category association degree between the category of the first target and the category of the second target is not less than a preset category association degree, determining that the values ​​of the elements corresponding to the first target and the second target in the category association matrix are 1;

[0031] When the category association degree between the category of the first target and the category of the second target is less than the preset category association degree, it is determined that the values ​​of the elements corresponding to the first target and the second target in the category association matrix are 0.

[0032] Optionally, the inference result includes at least a coordinate position of a target, and the steps of constructing a plurality of score matrices based on category, distance, angle difference, and intersection-over-union ratio, respectively, and determining whether there are a plurality of inference results whose targets are interrelated in a plurality of inference result sets corresponding to the plurality of chips based on the plurality of score matrices, comprises:

[0033] Creating the distance matrix according to a plurality of first targets included in the inference result set generated by the first chip and a plurality of second targets included in the inference result set generated by the second chip;

[0034] In the distance matrix, according to the coordinate positions of the targets, the distances between the coordinate positions of each first target and the coordinate positions of the plurality of second targets are calculated;

[0035] The first target and the second target correspond to the value of an element in the distance matrix.

[0036] Optionally, in the distance matrix, according to the coordinate positions of the targets, calculating the distances between the coordinate positions of each first target and the coordinate positions of a plurality of second targets respectively includes:

[0037] For a first target and a second target whose corresponding element value in the category association matrix is ​​1, calculating a distance between a coordinate position of the first target and a coordinate position of the second target;

[0038] When the distance between the coordinate position of the first target and the coordinate position of the second target is less than a preset distance, determining that the value of the element corresponding to the first target and the second target in the distance matrix is ​​the distance;

[0039] When the distance between the coordinate position of the first target and the coordinate position of the second target is not less than the preset distance, it is determined that the values ​​of the elements corresponding to the first target and the second target in the distance matrix are empty.

[0040] Optionally, the inference result includes at least an angle difference of a target, and constructing a plurality of score matrices based on category, distance, angle difference, and intersection-over-union ratio, respectively, and determining whether there are a plurality of inference results whose targets are mutually related in the plurality of inference result sets corresponding to the plurality of chips based on the plurality of score matrices, comprises:

[0041] Creating the angle difference matrix according to the reasoning results of the first targets included in the reasoning result set generated by the first chip and the reasoning results of the second targets included in the reasoning result set generated by the second chip;

[0042] In the angle difference matrix, according to the angle of the target in the inference result, the angle difference between the angle of each first target and the angles of the plurality of second targets is calculated;

[0043] The angle difference between the first target and the second target corresponds to the value of an element in the angle difference matrix.

[0044] Optionally, in the angle difference matrix, according to the angle of the target in the inference result, calculating the angle difference between the angle of each first target and the angles of the plurality of second targets respectively includes:

[0045] For a first target and a second target whose corresponding element values ​​in the distance matrix are not empty, calculating an angle difference between an angle of the first target and an angle of the second target;

[0046] When the angle difference between the angle of the first target and the angle of the second target is less than a preset angle difference, determining that the values ​​of the elements corresponding to the first target and the second target in the angle difference matrix are the angle difference;

[0047] When the angle difference between the angle of the first target and the angle of the second target is not less than the preset angle difference, it is determined that the values ​​of the elements corresponding to the first target and the second target in the angle difference matrix are empty.

[0048] Optionally, the inference result includes at least a volume of a target, and constructing a plurality of score matrices based on category, distance, angle difference, and intersection-over-union ratio, respectively, and determining whether there are a plurality of inference results whose targets are mutually related in the plurality of inference result sets corresponding to the plurality of chips based on the plurality of score matrices, comprises:

[0049] Creating the intersection-over-union matrix according to the inference results of the first targets included in the inference result set generated by the first chip and the inference results of the second targets included in the inference result set generated by the second chip;

[0050] In the intersection-and-union ratio matrix, according to the volumes of the targets in the inference result, the intersection-and-union ratios between the volume of each first target and the volumes of the plurality of second targets are calculated;

[0051] The intersection-and-union ratio of the first target and the second target corresponds to the value of an element in the intersection-and-union ratio matrix.

[0052] Optionally, in the intersection-and-union ratio matrix, according to the volume of the target in the inference result, calculating the intersection-and-union ratio between the volume of each first target and the volumes of the plurality of second targets respectively includes:

[0053] For a first target and a second target whose corresponding element values ​​in the angle difference matrix are not empty, calculating an intersection-over-union ratio between a volume of the first target and a volume of the second target;

[0054] When the intersection-and-union ratio between the volume of the first target and the volume of the second target is greater than a preset intersection-and-union ratio, determining that the values ​​of the elements corresponding to the first target and the second target in the intersection-and-union ratio matrix are the intersection-and-union ratio;

[0055] When the intersection-and-union ratio between the volume of the first target and the volume of the second target is not greater than the preset intersection-and-union ratio, determining that the values ​​of the elements corresponding to the first target and the second target in the intersection-and-union ratio matrix are empty;

[0056] The method further includes: determining that the first target and the second target corresponding to the elements of the first target and the second target that are not empty in the intersection-over-union matrix are mutually associated.

[0057] A second aspect of an embodiment of the present application provides a target detection device, which is applied to a vehicle-mounted distributed platform, wherein the vehicle-mounted distributed platform includes multiple chips, and the device includes:

[0058] An acquisition module is used to acquire data from multiple cameras on the autonomous driving vehicle, where the viewing angles of the multiple cameras are different from each other;

[0059] A division module, used for dividing the data of the multiple cameras based on the multiple chips to obtain multiple data streams, wherein each of the data streams contains data of at least one camera;

[0060] An inference module, configured to perform parallel inference on the multiple data streams through the multiple chips to obtain multiple inference result sets, wherein each inference result set is generated by one chip among the multiple chips;

[0061] The fusion module is used to fuse the respective inference results in the plurality of inference result sets to obtain the target detection result from a bird's-eye view.

[0062] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the target detection method as described in the first aspect.

[0063] According to a fourth aspect of an embodiment of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the target detection method as described in the first aspect.

[0064] According to a fifth aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored, wherein when the computer program is executed by a processor, the target detection method as described in the first aspect is implemented.

[0065] Beneficial effects of this application:

[0066] The embodiments of the present application provide a target detection method, electronic device, product and medium, which are applied to a vehicle-mounted distributed platform, wherein the vehicle-mounted distributed platform includes multiple chips, and the method includes: obtaining data from multiple cameras on an autonomous driving vehicle, wherein the perspectives of the multiple cameras are different; based on the multiple chips, dividing the data from the multiple cameras to obtain multiple data streams, wherein each of the data streams includes data from at least one camera; performing parallel reasoning on the multiple data streams through the multiple chips to obtain multiple reasoning result sets, wherein each reasoning result set is generated by a chip among the multiple chips; and fusing the respective reasoning results in the multiple reasoning result sets to obtain a target detection result from a bird's-eye view.

[0067] It is able to complete data reasoning in parallel based on multiple chips on the vehicle-mounted distributed platform, and fuse the individual reasoning results of multiple reasoning result sets to obtain target detection results from a bird's-eye view, thereby improving the accuracy and efficiency of target detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application.

[0069] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0070] Figure 1 It is a flowchart of a target detection method provided by an embodiment of the present application;

[0071] Figure 2 This is a hardware architecture diagram of an on-board distributed platform on an autonomous driving vehicle in a target detection method provided in one embodiment of the present application;

[0072] Figure 3 is a calculation flow chart of a target detection method provided in an embodiment of the present application;

[0073] Figure 4 It is a schematic diagram of the overlapping perspectives of two chips included in a vehicle-mounted distributed platform in a target detection method provided by an embodiment of the present application;

[0074] Figure 5 This is a schematic diagram of a calculation process of different score matrices in a target detection method provided in an embodiment of the present application;

[0075] Figure 6 It is a schematic diagram of a framework of a target detection device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0076] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.

[0077] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0078] Figure 1 is a flow chart of a target detection method provided by an embodiment of the present application, Figure 2 is a hardware architecture diagram of a vehicle-mounted distributed platform on an autonomous driving vehicle in a target detection method provided in one embodiment of the present application, such as Figure 1 As shown, an object detection method provided by an embodiment of the present application is applied to a vehicle-mounted distributed platform, the vehicle-mounted distributed platform includes multiple chips, and the method includes:

[0079] In step S101, data from multiple cameras on the autonomous driving vehicle are acquired, where the viewing angles of the multiple cameras are different from each other;

[0080] In step S102, based on the multiple chips, the data of the multiple cameras are divided to obtain multiple data streams, wherein each of the data streams contains data of at least one camera;

[0081] In step S103, the multiple data streams are inferred in parallel by the multiple chips to obtain multiple inference result sets, wherein each inference result set is generated by one chip among the multiple chips;

[0082] In step S104, the respective inference results in the plurality of inference result sets are fused to obtain a target detection result from a bird's-eye view.

[0083] First, in step S101, data from multiple cameras on the autonomous driving vehicle are acquired, where the viewing angles of the multiple cameras are different.

[0084] In the embodiment of the present application, the technical solution of the present application is applied to a vehicle-mounted distributed platform of an intelligent transportation system (i.e., an autonomous driving vehicle) with autonomous perception, decision-making and control capabilities, wherein the hardware architecture diagram of the vehicle-mounted distributed system is as follows: Figure 2 As shown, the in-vehicle distributed system includes multiple chips (SOC, System on Chip), each of which integrates multiple processor cores, peripherals and system-level function chips, which are used for distributed computing and control of the in-vehicle system of autonomous driving vehicles.

[0085] Among them, each chip deploys BEVdet (bird's eye view perception model), which is a purely visual autonomous driving perception framework. In the authoritative autonomous driving evaluation set nuScenes, it has won the world's first place in pure visual 3D target detection. BEVDet is the first public BEV spatial 3D perception paradigm that combines high performance, scalability and practicality. The vehicle-mounted computing platform is an important carrier for running autonomous driving applications. The vehicle-mounted computing platform used in the embodiment of this application is a vehicle-mounted distributed platform. The chip is used as a computing unit, and the computing unit is 2*Orin. The specific device information of the chip is shown in Table 1:

[0086] Table 1

[0087]

[0088] BEVdet (bird's-eye view perception model) is deployed on each chip. Running BEVdet based on the vehicle-mounted distributed platform requires the ability to complete functions such as model conversion, data and model parallel processing, so as to ensure the real-time performance of the system while ensuring the accuracy of BEV perception and recognition distance.

[0089] The model conversion process includes: The model generated after model training based on the data center needs to be loaded and adapted on the on-board computing chip. For the pth file generated by the BEVDet model training, it is necessary to first convert the BEVDet model format to the onnx format. The pth model in the BEVDet model is divided into two onnx files according to the different module functions: bev_stage.onnx and image_stage.onnx. Among them, bev_stage.onnx mainly contains the spatial conversion of the camera's 2D space to 3D space, and image_stage.onnx mainly performs the camera's feature extraction function. By converting the two onnx files to the trt file format supported by the TensorRT format, the final generated model can be correctly loaded into the on-board chip using the TensorRT engine.

[0090] At the same time, on a single chip, the use of CUDA parallel computing technology on the GPU in the chip can greatly improve GPU utilization, including rewriting the image data preprocessing operators resize, crop, and Nearest interpolation, and using the NvJPEG library for JPEG encoding, thereby achieving more efficient data preprocessing and model reasoning, and improving the model reasoning capabilities of a single chip.

[0091] Figure 3 is a calculation flow chart of a target detection method provided in an embodiment of the present application, such as Figure 3 As shown, in the technical solution of the present application, first, the model conversion is performed (including conversion of pth files into onnx files, and conversion of onnx files into trt), then the data is split (common perspective setting and splitting the data according to the number of chips to obtain multiple data streams), and then through model parallel reasoning (parallel reasoning data streams of models on multiple chips, and parallel preprocessing of data), and finally the reasoning results are fused (calculation of the score matrix and optimization of the Hungarian algorithm).

[0092] In the technical solution of this application, a multi-eye vision system is configured on the autonomous driving vehicle. By installing multiple cameras with different viewing angles, different cameras observe different scenes and angles, providing a more comprehensive and accurate environmental perception capability.

[0093] As an example: suppose there are four cameras installed on the autonomous vehicle, including:

[0094] Forward-facing camera: Located at the front of the vehicle, it is used to observe the road and obstacles ahead.

[0095] Rear-facing camera: Located at the rear of the vehicle, used to observe the road and obstacles behind.

[0096] Left camera: Located on the left side of the vehicle, used to observe the left road and obstacles.

[0097] Right camera: Located on the right side of the vehicle, used to observe the road and obstacles on the right side.

[0098] These cameras have different viewing angles and can provide image data from different directions and angles. By processing and fusing these image data, more comprehensive environmental perception information can be obtained, including road edges, pedestrians, vehicles, traffic signs, etc., to support the perception and decision-making of autonomous vehicles.

[0099] Among them, the setting of multi-channel cameras plays an important role in the field of autonomous driving and can be applied to the following scenarios:

[0100] Road edge detection: By using different camera perspectives, road edges and obstacles can be detected more accurately.

[0101] Road sign recognition: Different camera perspectives can provide more comprehensive road sign information, helping to accurately identify and interpret road signs.

[0102] Vehicle tracking: With multiple camera views, the behavior of other vehicles can be tracked and predicted more accurately.

[0103] Turning and intersection perception: Multi-view vision systems can provide more comprehensive perception information of intersections and turning areas, which helps safe driving.

[0104] Further, in step S102, the data of the multiple cameras are divided based on the multiple chips to obtain multiple data streams, wherein each of the data streams contains data of at least one camera.

[0105] In an embodiment of the present application, multiple cameras will capture objects around the autonomous driving vehicle while it is driving, and obtain a large amount of data, including images and videos. After obtaining the data from the multiple cameras, the data from the multiple cameras are divided according to the number of chips in the on-board distributed platform to obtain multiple data streams, each of which contains data from at least one camera, that is, each data stream can be collected by one or more cameras. One data stream is assigned to one chip, which also means that the data stream processed by each chip contains data from at least one camera, and can process data from multiple cameras at the same time.

[0106] Further, in step S103, the multiple data streams are inferred in parallel by the multiple chips to obtain multiple inference result sets, wherein each inference result set is generated by one chip among the multiple chips.

[0107] In an embodiment of the present application, after the divided multiple data streams are respectively assigned to different chips, each of the multiple chips simultaneously performs inference calculations on the data streams that the chip is responsible for, thereby realizing parallel inference. Each chip obtains a set of inference results, which includes the results obtained by the chip after performing inference calculations on the data streams that it is responsible for. For example, it may include inference results of various perception tasks, such as target detection, depth estimation, optical flow estimation, path planning, lane line detection, and state estimation, etc. These contents can be used for decision-making and control of the autonomous driving system, helping the vehicle to perceive the surrounding environment and make corresponding driving decisions.

[0108] Finally, in step S104, each inference result in the plurality of inference result sets is fused to obtain a target detection result from a bird's-eye view.

[0109] In an embodiment of the present application, in the previous parallel reasoning process, each chip generates a reasoning result set, which includes the results obtained by the chip after reasoning and calculating the data stream it is responsible for. Further, the individual reasoning results in multiple reasoning result sets are fused, that is, the reasoning results of different chips are combined and optimized to obtain more accurate and complete target detection results. The target inspection result is a detection result based on a bird's eye view (BEV), that is, the position, size and category, confidence, speed, trajectory, direction angle, etc. of each target in the data are converted into information in three-dimensional space.

[0110] Through the above embodiments, multiple chips are set on the on-board distributed platform of the autonomous driving vehicle, and the multi-channel camera data on the autonomous driving vehicle is divided into multiple data streams, and the multiple data streams are respectively allocated to multiple chips for parallel reasoning, and then the reasoning results of each chip are fused to finally obtain the target detection result based on the bird's-eye view (BEV).

[0111] It can adapt to the different perspectives of multiple cameras through the setting of multiple cameras, use the information of different cameras for target detection, and improve the robustness and comprehensiveness of target detection; the inference results of multiple chips can be integrated to reduce false detections and missed detections, and improve the accuracy and stability of target detection; the inference tasks corresponding to the data stream are assigned to multiple chips for parallel processing, which can improve the speed and efficiency of target detection; the inference results of multiple chips can be integrated to provide global target detection results, helping vehicles better understand the surrounding environment.

[0112] Optionally, before acquiring data from multiple cameras on the autonomous driving vehicle, the method further includes:

[0113] Taking the partial overlap between the viewing angles of multiple cameras corresponding to different chips as a target, the viewing angles of the multiple cameras are set respectively;

[0114] The viewing angles of the multiple cameras corresponding to each chip are continuous.

[0115] Specifically, in an embodiment of the present application, before collecting data on objects around the autonomous driving vehicle through a multi-channel camera, the viewing angle of the multi-channel camera of the autonomous driving vehicle needs to be set. In order to ensure the continuity between multiple viewing angles, avoid missed detections, false detections, etc. during target detection, reduce the loss of targets between different cameras, and provide the chip with more coherent global visual information, in the process of setting the viewing angle, the different viewing angles of the multi-channel camera can be set with the goal of having partial overlapping areas between the viewing angles of the multi-channel cameras corresponding to different chips.

[0116] For example, the viewing angle of each camera can be set to partially overlap with other cameras adjacent to the camera, that is, the boundary area of ​​the viewing angle of one camera can also be found from the viewing angles of other cameras; the overlapping area of ​​the viewing angle can also be set for different chips. A data stream is assigned to a chip, and this data stream can be composed of data collected by several consecutive and adjacent cameras. Therefore, for the several cameras corresponding to this data stream, the cameras at both ends of the viewing angle corresponding to the data stream can be set to have overlapping areas with the several cameras corresponding to other data streams.

[0117] Figure 4 FIG. 1 is a schematic diagram of an overlapping perspective of two chips in a vehicle-mounted distributed platform in a target detection method provided by an embodiment of the present application, such as Figure 4 shown.

[0118] As an example, the vehicle-mounted distributed platform includes two chips. The first chip is used to infer the data stream composed of the three cameras with different perspectives, namely, the front, left front, and right front. The second chip is used to infer the data stream composed of the three cameras with different perspectives, namely, the rear, left rear, and right rear. Among them, the boundary areas of the three cameras with different perspectives, namely, the boundary areas of the three cameras with different perspectives, namely, the rear, left rear, and right rear, have an area where the perspectives partially overlap. Figure 4 The common perspective in.

[0119] By setting a common viewing angle, it is possible to effectively avoid missed detection and false detection of obstacle information caused by using only a single chip, which will affect the final effect of BEV perception.

[0120] Through the above embodiment, it can be ensured that there is a partial overlap between the perspectives of multiple cameras corresponding to different chips, and they are continuous, so as to provide more comprehensive visual information, which is helpful for the accuracy and robustness of tasks such as target detection and path planning. This way of setting the camera perspective can improve the perception and decision-making ability of the autonomous driving system and contribute to the development of autonomous driving technology.

[0121] Optionally, fusing the respective inference results in the plurality of inference result sets to obtain the target detection result from a bird's-eye view includes:

[0122] Determine the number of inference results matching the same target in the multiple inference result sets corresponding to the multiple chips, wherein one inference result corresponds to one target;

[0123] When there are multiple inference results matching the same target, the inference result with the highest confidence among the multiple inference results matching the same target is used as the inference result corresponding to the target;

[0124] When the number of inference results matching the same target is one, taking the one inference result as the inference result corresponding to the target;

[0125] The reasoning results corresponding to the various targets are combined to obtain target detection results from the data of the multiple cameras on the autonomous driving vehicle under the BEV perspective.

[0126] Specifically, in the embodiment of the present application, determining the number of inference results matching the same target means: after obtaining multiple inference result sets, each inference result set contains the inference results of multiple targets in the data stream, and a target is represented as a specific object, such as a car, a pedestrian, etc. The inference result of a target is the type, position, volume, direction angle, distance, etc. of this target. For the same target, the number of inference results matching the same target can be counted from multiple inference result sets corresponding to multiple chips. It can be understood that multiple chips can simultaneously infer the inference results of the same target, but different chips have different contents for the same inference result, especially for targets in overlapping areas, reasoning through different chips can be for multiple inference results.

[0127] When there are multiple inference results that match the same target, the inference result with the highest confidence is selected as the inference result corresponding to the target. Confidence refers to the confidence level of the inference result on the target, usually a probability value. Among them, the inference result with the highest confidence can more accurately represent the information related to this target.

[0128] When the number of inference results matching the same target is one, it means that there is only one inference result for this target. Therefore, in this case, the only inference result is used as the inference result corresponding to the target.

[0129] The inference results corresponding to the targets inferred by all chips (i.e. the inference result with the highest confidence and the only inference result) are combined to obtain the target detection results of the data from multiple cameras on the autonomous driving vehicle from the perspective of the BEV.

[0130] For example:

[0131] The vehicle-mounted distributed platform contains two chips, and two inference results are obtained through the two chips: set A and set B. Each inference result set contains multiple inference results. Now it is necessary to fuse the multiple inference results contained in these two inference result sets to obtain the target detection result.

[0132] There are 3 inference results in set A, corresponding to target 1, target 2 and target 3 respectively.

[0133] There are 2 inference results in set B, corresponding to goal 1 and goal 3 respectively.

[0134] In the case of matching target 1, both set A and set B have inference results that match target 1. For example, the confidence of the inference result about target 1 in set A is higher than the confidence of the inference result about target 1 in set B. Therefore, the inference result with the highest confidence (the inference result about target 1 in set A) is selected as the inference result of target 1.

[0135] In the case of matching target 2, set A has inference results matching target 2, but set B does not, so the inference results in set A are selected as the inference results of target 2.

[0136] In the case of matching target 3, both set A and set B have inference results that match target 3, so the inference result with the highest confidence is selected as the inference result of target 3.

[0137] Finally, the reasoning results corresponding to each target are combined to obtain the target detection results from the BEV perspective based on the data from multiple cameras on the autonomous driving vehicle.

[0138] This method of fusing the reasoning result sets corresponding to multiple chips can improve the accuracy and robustness of target detection. By fusing the reasoning results of multiple chips, the advantages of different chips can be fully utilized, the loss and false detection of targets between different reasoning results can be reduced, and the performance of target detection can be improved. This method has important application value in autonomous driving technology, which can improve the perception and decision-making capabilities of autonomous driving systems and contribute to the development of autonomous driving technology.

[0139] Through the above-mentioned embodiment, by fusing the inference results from the two chips, the advantages of different chips can be fully utilized, and the loss and false detection of the target between different inference results can be reduced, thereby improving the accuracy of target detection. Moreover, when there are multiple inference results for the same target, it is possible to ultimately determine which of the multiple inference results for the target is used to generate the target detection result from the BEV perspective based on the confidence of the multiple detection results.

[0140] Optionally, the chip includes a first chip and a second chip, and the inference result set generated by the first chip includes multiple inference results of the first target, and the inference result set generated by the second chip includes multiple inference results of the second target. Before determining the number of inference results matching the same target in the multiple inference result sets corresponding to the multiple chips, the method further includes:

[0141] Based on category, distance, angle difference, and intersection-and-union ratio, a plurality of score matrices are constructed respectively, and based on the plurality of score matrices, it is determined whether there are a plurality of inference results with targets being mutually related in the plurality of inference result sets corresponding to the plurality of chips, wherein the score matrices include a category association matrix, a distance matrix, an angle difference matrix, and an intersection-and-union ratio matrix;

[0142] For multiple inference results whose targets are mutually related, calculating the correlation scores between the multiple targets corresponding to the multiple inference results;

[0143] For the multiple inference results whose association scores are greater than a preset association score threshold, determining that the multiple targets corresponding to the multiple inference results match;

[0144] The calculation formula of the correlation score is:

[0145] ,in, is the association score, d is the distance between the targets, d_max is the maximum distance between all targets.

[0146] Specifically, in an embodiment of the present application, the number of chips of the vehicle-mounted distributed platform can be two, namely, a first chip and a second chip. The reasoning result set generated by the first chip includes the reasoning results of multiple first targets, and the reasoning result set generated by the second chip includes the reasoning results of multiple second targets. Before determining the number of reasoning results matching the same target in the multiple reasoning result sets corresponding to the multiple chips, it is necessary to first use multiple score matrices to determine which targets belong to the same target. Therefore, it can be comprehensively considered according to indicators such as category, distance, angle difference and intersection-over-union ratio. The category is the category of the target, the distance is the distance between the two targets in three-dimensional space, the angle difference is the difference between the direction angles of the two targets, and the intersection-over-union ratio is the ratio between the intersection of the volumes of the two targets and the union of the volumes of the two targets. Therefore, different score matrices can be constructed for different indicators, such as category association matrix, distance matrix, angle difference matrix and intersection-over-union ratio matrix.

[0147] And through multiple score matrices, it is determined whether there are multiple inference results with interrelated targets in the multiple inference result sets corresponding to the multiple chips. That is to say, when the results of the above-mentioned category association matrix, distance matrix, angle difference matrix and intersection ratio matrix are used, it is determined whether the targets corresponding to different inference results are interrelated.

[0148] After determining that there are multiple inference results whose targets are interrelated, for the multiple inference results whose targets are interrelated, calculate the correlation scores between the multiple targets corresponding to the multiple inference results whose targets are interrelated. When the correlation scores between the targets corresponding to the multiple inference results are greater than the preset correlation score threshold, it means that the multiple inference results correspond to the same target. Therefore, it is determined that the multiple targets corresponding to the multiple inference results match.

[0149] It should be noted that the correlation between targets does not mean that the targets are the same target, but rather that there is a greater connection between the targets, and they may be the same target. It is necessary to calculate the correlation scores between the targets to ultimately determine whether the targets are the same target (that is, whether they are the same entity object). After calculating the correlation scores of multiple targets, if it is determined that multiple targets match, then it is determined that the multiple targets are the same entity object.

[0150] In the embodiment of the present application, the calculation formula of the association score is:

[0151] ;

[0152] in, is the association score, d is the distance between targets, and d_max is the maximum distance between all targets.

[0153] Through the above embodiments, it is possible to analyze and compare the degree of association between different targets and whether they match, ensuring that matching targets in the reasoning result sets generated by different chips are correctly matched, thereby improving the accuracy and reliability of target recognition.

[0154] It should be noted that the order of creating the score matrix in the embodiment of the present application is in the order of category association matrix, distance matrix, angle difference matrix, and intersection-union ratio matrix. The distance matrix only targets the distance between targets that satisfy the category association, the angle difference matrix only creates the angle difference between targets that satisfy the preset distance, and the intersection-union ratio matrix only creates the intersection-union ratio between targets that satisfy the preset angle difference.

[0155] Optionally, the inference result at least includes a category of the target, and the steps of constructing a plurality of score matrices based on the category, distance, angle difference, and intersection-over-union ratio, respectively, and determining whether there are a plurality of inference results whose targets are interrelated in the plurality of inference result sets corresponding to the plurality of chips based on the plurality of score matrices, comprises:

[0156] Creating the category association matrix according to the reasoning results of the first targets included in the reasoning result set generated by the first chip and the reasoning results of the second targets included in the reasoning result set generated by the second chip;

[0157] In the category association matrix, according to the categories of the targets in the inference result, the category association degrees between the category of each first target and the categories of the plurality of second targets are calculated;

[0158] The category association degree between the first target and the second target corresponds to the value of an element in the category association matrix.

[0159] Specifically, in an embodiment of the present application, the inference results for a target in the inference result set include at least the category of this target; further, based on the inference results of multiple first targets included in the inference result set generated by the first chip and the inference results of multiple second targets included in the inference result set generated by the second chip, a category association matrix is ​​created (at this time, the value of each element in the category association matrix is ​​empty), and the category association matrix is ​​used to measure the category association between different targets, that is, the category similarity or correlation between different targets; further, in the created category association matrix, according to the categories of different targets in the multiple inference results included in the inference result sets of different chips, the category association between the category of each first target and the categories of the multiple second targets is calculated, and the category association between the first target and the second target corresponds to the value of an element in the category association matrix.

[0160] Through the above-mentioned embodiments, target matching and correlation calculation are performed according to the category correlation between targets, thereby improving the system's ability to understand and identify targets.

[0161] Optionally, in the category association matrix, according to the categories of the targets in the inference result, calculating the category association degree between the category of each first target and the categories of the plurality of second targets respectively includes:

[0162] When the category association degree between the category of the first target and the category of the second target is not less than a preset category association degree, determining that the values ​​of the elements corresponding to the first target and the second target in the category association matrix are 1;

[0163] When the category association degree between the category of the first target and the category of the second target is less than the preset category association degree, it is determined that the values ​​of the elements corresponding to the first target and the second target in the category association matrix are 0.

[0164] Specifically, in an embodiment of the present application, it is necessary to calculate the category association between the categories of targets in the reasoning results of different chips respectively. When the calculated category association is not less than the preset category association, the value of the element corresponding to the first target and the second target in the category association matrix is ​​determined to be 1, and it is determined that the categories between the first target and the second target are related, that is, there is sufficient association between the first target and the second target in terms of category; when the calculated category association is less than the preset category association, the value of the element corresponding to the first target and the second target in the category association matrix is ​​determined to be 0, and it is determined that the categories between the first target and the second target are not related, that is, the association between the first target and the second target in terms of category is not strong enough, wherein the preset category association can be determined according to the actual calculation method of the category association, which is not specifically limited here.

[0165] Table 2 is the category association matrix between the first target and the second target, as shown in Table 2.

[0166] Table 2

[0167]

[0168] In Table 2, "1" indicates that there is a category association between two targets, and "0" indicates that there is no category association between two targets, such as there is no category association between cars and pedestrians, and there is a category association between bicycles and motorcycles. It should be noted that the categories such as "car", "truck", and "bicycle" shown in Table 2 represent the predicted results of the target category, which is not equivalent to the actual category.

[0169] Through the above embodiments, the relationship between the targets in the category association matrix can be determined according to the category association degrees between the targets and the preset category association degrees, thereby enabling a better understanding and analysis of the category association relationship between the targets.

[0170] Optionally, the category association between the first target and the second target may be calculated in the following manner:

[0171] Target category information: First, determine the category to which each target belongs. The category of the target can be determined by label, classifier prediction, or other means. Assume that target A belongs to category A and target B belongs to category B.

[0172] Category association measurement: Determine the measurement method used to measure the association between categories. This measurement method can be cosine similarity, Euclidean distance, Jaccard similarity coefficient, etc. Choose the appropriate measurement based on the data characteristics and problem requirements.

[0173] Calculate the category association: Calculate the association between category A and category B using the selected category association measurement method. For example, the category association between category A and category B can be calculated in the following way:

[0174]

[0175] in, represents the category association between category A and category B, A and B represent the category feature vectors of category A and category B respectively (such as one-hot encoded vectors), “•” represents the vector dot product, ||A|| and ||B|| represent the modulus of the category feature vectors of category A and category B respectively.

[0176] Determine the category association degree: After obtaining the category association degree between category A and category B, compare it with the preset category association degree. If the association degree is greater than or equal to the threshold, the value of the corresponding element of the two targets in the category association matrix is ​​determined to be 1; if the association degree is less than the threshold, the value of the corresponding element of the two targets in the category association matrix is ​​determined to be 0.

[0177] Through the above steps, the category association between two targets can be calculated, and their association relationship in the category association matrix can be determined according to a preset category association threshold.

[0178] Optionally, the inference result includes at least a coordinate position of a target, and the steps of constructing a plurality of score matrices based on category, distance, angle difference, and intersection-over-union ratio, respectively, and determining whether there are a plurality of inference results whose targets are interrelated in a plurality of inference result sets corresponding to the plurality of chips based on the plurality of score matrices, comprises:

[0179] Creating the distance matrix according to a plurality of first targets included in the inference result set generated by the first chip and a plurality of second targets included in the inference result set generated by the second chip;

[0180] In the distance matrix, according to the coordinate positions of the targets, the distances between the coordinate positions of each first target and the coordinate positions of the plurality of second targets are calculated;

[0181] The first target and the second target correspond to the value of an element in the distance matrix.

[0182] Specifically, in an embodiment of the present application, the inference result for a target in the inference result set includes at least the coordinate position of the target; further, a distance association matrix is ​​created based on the inference results of multiple first targets included in the inference result set generated by the first chip and the inference results of multiple second targets included in the inference result set generated by the second chip (at this time, the value of each element in the distance association matrix is ​​empty), and the distance association matrix is ​​used to measure the distance between different targets; further, in the created distance association matrix, according to the coordinate positions of different targets in the multiple inference results included in the inference result sets of different chips, the distance between the coordinate position of each first target and the coordinate positions of the multiple second targets is calculated, and the distance between the first target and the second target corresponds to the value of an element in the distance association matrix.

[0183] Through the above embodiments, the distance between targets is calculated according to the coordinate positions between the targets, and the distance correlation between targets is determined by the distance factor, thereby improving the system's ability to understand and identify targets.

[0184] It should be noted that when calculating the distance between targets, if there is no association between the target categories, the judgment of the distance is meaningless. Therefore, when calculating the distance, only targets with association between categories are considered, that is, the distance between targets whose element value in the category association matrix is ​​1.

[0185] Optionally, in the distance matrix, according to the coordinate positions of the targets, calculating the distances between the coordinate positions of each first target and the coordinate positions of a plurality of second targets respectively includes:

[0186] For a first target and a second target whose corresponding element value in the category association matrix is ​​1, calculating a distance between a coordinate position of the first target and a coordinate position of the second target;

[0187] When the distance between the coordinate position of the first target and the coordinate position of the second target is less than a preset distance, determining that the value of the element corresponding to the first target and the second target in the distance matrix is ​​the distance;

[0188] When the distance between the coordinate position of the first target and the coordinate position of the second target is not less than the preset distance, it is determined that the values ​​of the elements corresponding to the first target and the second target in the distance matrix are empty.

[0189] Specifically, in the embodiment of the present application, the coordinate positions of each target contained in the inference result set output by each chip are unified into the same three-dimensional coordinate system, and each target has a coordinate position in the three-dimensional coordinate space, which can be represented by a coordinate value, such as the (x, y, z) coordinate in the three-dimensional space. The distance between two targets whose element value is 1 in the category association matrix is ​​calculated.

[0190] Euclidean distance or other distance measurement methods are usually used to calculate the distance between targets. The calculation formula of Euclidean distance is as follows:

[0191] The coordinate position of the first target is , the coordinate position of the second target is For example, the Euclidean distance between the first target and the second target is:

[0192] ;

[0193] A preset distance is set, and when the distance between the first target and the second target is less than the preset distance, the values ​​of the corresponding positions of the elements of the first target and the second target in the distance matrix are updated to the distance between them.

[0194] When the distance between the first target and the second target is not less than the preset distance or, the values ​​of the corresponding positions of the elements of the first target and the second target in the distance matrix are kept as null values ​​or set to specific marks (such as spaces or " / "), indicating that the distance between them does not meet the preset distance condition.

[0195] Table 3 is a distance matrix between the first target and the second target, as shown in Table 3. " / " indicates that the distance between the first target and the second target exceeds the preset distance or the value of the element of the category of the first target and the second target in the category association matrix is ​​0. The meaning of " / " in other score matrices is similar.

[0196] Table 3

[0197]

[0198] Through the above embodiment, the distance between the first target and the second target whose value is 1 in the category association matrix can be calculated, and the value of the corresponding position of the distance matrix can be updated according to the preset distance. This method can combine the category association and spatial position information to obtain meaningful associations and distances (i.e., the distance between the first target and the second target whose value is 1 in the category association matrix), and promote a deeper understanding of the relationship between the targets.

[0199] Optionally, the inference result includes at least an angle difference of a target, and constructing a plurality of score matrices based on category, distance, angle difference, and intersection-over-union ratio, respectively, and determining whether there are a plurality of inference results whose targets are mutually related in the plurality of inference result sets corresponding to the plurality of chips based on the plurality of score matrices, comprises:

[0200] Creating the angle difference matrix according to the reasoning results of the first targets included in the reasoning result set generated by the first chip and the reasoning results of the second targets included in the reasoning result set generated by the second chip;

[0201] In the angle difference matrix, according to the angle of the target in the inference result, the angle difference between the angle of each first target and the angles of the plurality of second targets is calculated;

[0202] The angle difference between the first target and the second target corresponds to the value of an element in the angle difference matrix.

[0203] Specifically, in an embodiment of the present application, the inference result for a target in the inference result set includes at least the angle of the target; the angle of the target is the direction angle of the target when it moves. Further, based on the inference results of multiple first targets included in the inference result set generated by the first chip and the inference results of multiple second targets included in the inference result set generated by the second chip, an angle difference matrix is ​​created (at this time, the value of each element in the angle difference matrix is ​​empty), and the angle difference matrix is ​​used to measure the angle difference between different targets; further, in the created angle difference matrix, according to the angles of different targets in the multiple inference results included in the inference result sets of different chips, the angle difference between the angle of each first target and the angles of the multiple second targets is calculated, and the angle difference between the first target and the second target corresponds to the value of an element in the angle difference matrix.

[0204] Through the above embodiments, creating an angle difference matrix based on the angle information of the reasoning results can provide more knowledge and analysis of the angle relationship between targets, help to deeply understand the movement and positioning relationship between targets, and provide more sufficient information support for subsequent target detection data processing and decision-making.

[0205] Optionally, in the angle difference matrix, according to the angle of the target in the inference result, calculating the angle difference between the angle of each first target and the angles of the plurality of second targets respectively includes:

[0206] For a first target and a second target whose corresponding element values ​​in the distance matrix are not empty, calculating an angle difference between an angle of the first target and an angle of the second target;

[0207] When the angle difference between the angle of the first target and the angle of the second target is less than a preset angle difference, determining that the values ​​of the elements corresponding to the first target and the second target in the angle difference matrix are the angle difference;

[0208] When the angle difference between the angle of the first target and the angle of the second target is not less than the preset angle difference, it is determined that the values ​​of the elements corresponding to the first target and the second target in the angle difference matrix are empty.

[0209] Specifically, in an embodiment of the present application, it is necessary to further calculate the angle difference between the first target and the second target based on the angle between the two, and update the angle difference matrix in combination with the relationship between the angle difference and the preset angle difference. First, for the first target and the second target whose corresponding element values ​​in the distance matrix are not empty (as shown in Table 3), the angle difference between the angle of the first target and the angle of the second target is calculated based on the angles contained in the reasoning results of the first target and the second target. The angle difference can be calculated by subtracting the two angles. At the same time, a preset angle difference is set to determine whether the angle relationship between the two targets meets the expected conditions (i.e., whether it is less than the preset angle difference). When the angle difference between the first target and the second target is less than the preset angle difference, the values ​​of the positions corresponding to the elements of the two targets in the angle difference matrix are updated to the angle difference between the first target and the second target.

[0210] When the angle difference between the first target and the second target is not less than the preset angle difference, the values ​​of the positions corresponding to the elements of the first target and the second target in the angle difference matrix are kept as null values ​​or set to specific identifiers, indicating that the angle difference between the first target and the second target does not meet the expected conditions of the preset angle difference.

[0211] Table 4 is the angle difference matrix between the first target and the second target, as shown in Table 4.

[0212] Table 4

[0213]

[0214] As shown in Table 4, for the first target and the second target whose element values ​​in the distance matrix are empty, the angle difference will not be calculated in the angle difference matrix. At the same time, for the first target and the second target whose angle difference is greater than the preset angle difference, it means that the angle difference between the two targets is too large, and they are understood to be not the same entity object. Therefore, the first target and the second target whose angle difference is greater than the preset angle difference will not appear in the angle difference matrix, and the corresponding element values ​​are empty.

[0215] Through the above embodiments, an angle difference matrix is ​​constructed based on the angle information in the target reasoning result, and the angle relationship between the targets is evaluated and updated based on the preset angle difference threshold, thereby providing more knowledge about the relative directions between the targets and helping to understand the spatial relationship and movement law of the targets.

[0216] Optionally, the inference result includes at least a volume of a target, and constructing a plurality of score matrices based on category, distance, angle difference, and intersection-over-union ratio, respectively, and determining whether there are a plurality of inference results whose targets are mutually related in the plurality of inference result sets corresponding to the plurality of chips based on the plurality of score matrices, comprises:

[0217] Creating the intersection-over-union matrix according to the inference results of the first targets included in the inference result set generated by the first chip and the inference results of the second targets included in the inference result set generated by the second chip;

[0218] In the intersection-and-union ratio matrix, according to the volumes of the targets in the inference result, the intersection-and-union ratios between the volume of each first target and the volumes of the plurality of second targets are calculated;

[0219] The intersection-and-union ratio of the first target and the second target corresponds to the value of an element in the intersection-and-union ratio matrix.

[0220] Specifically, in an embodiment of the present application, the inference result for a target in the inference result set includes at least the volume of this target; further, an intersection-and-union ratio matrix is ​​created based on the inference results of multiple first targets included in the inference result set generated by the first chip and the inference results of multiple second targets included in the inference result set generated by the second chip (at this time, the value of each element in the intersection-and-union ratio matrix is ​​empty); further, in the created intersection-and-union ratio matrix, according to the volumes of different targets in the multiple inference results included in the inference result sets of different chips, the intersection-and-union ratio between the volume of each first target and the volumes of the multiple second targets is calculated, and the volumes of the first target and the second target correspond to the value of an element in the intersection-and-union ratio matrix.

[0221] Through the above embodiment, an intersection-and-union ratio matrix is ​​created based on the volume information of the target, thereby quantifying the intersection and union relationship between the targets. This method can provide richer information for target detection and positioning tasks, and helps to deeply understand the spatial relationship and overlap between targets.

[0222] Optionally, in the intersection-and-union ratio matrix, according to the volume of the target in the inference result, calculating the intersection-and-union ratio between the volume of each first target and the volumes of the plurality of second targets respectively includes:

[0223] For a first target and a second target whose corresponding element values ​​in the angle difference matrix are not empty, calculating an intersection-over-union ratio between a volume of the first target and a volume of the second target;

[0224] When the intersection-and-union ratio between the volume of the first target and the volume of the second target is greater than a preset intersection-and-union ratio, determining that the values ​​of the elements corresponding to the first target and the second target in the intersection-and-union ratio matrix are the intersection-and-union ratio;

[0225] When the intersection-and-union ratio between the volume of the first target and the volume of the second target is not greater than the preset intersection-and-union ratio, determining that the values ​​of the elements corresponding to the first target and the second target in the intersection-and-union ratio matrix are empty;

[0226] The method further includes: determining that the first target and the second target corresponding to the elements of the first target and the second target that are not empty in the intersection-over-union matrix are mutually associated.

[0227] Specifically, in the embodiment of the present application, it is necessary to calculate the intersection-and-union ratio between targets based on the volumes of the targets, so as to update the intersection-and-union ratio matrix according to the relationship between the intersection-and-union ratio between targets and the preset intersection-and-union ratio.

[0228] First, according to the volume of the target, the intersection-and-union ratio between the volume of each first target and the volume of multiple second targets is calculated. The intersection-and-union ratio is calculated by dividing the intersection between the volumes of the two targets by the union between the volumes of the two targets. A preset intersection-and-union ratio is set, and the preset intersection-and-union ratio is a preset intersection-and-union ratio threshold value set, which is used to determine whether the overlap between the two targets meets the expected requirements. When the intersection-and-union ratio of the first target and the second target is greater than the preset intersection-and-union ratio, the value of the position corresponding to the element of the intersection-and-union ratio of the first target and the second target in the intersection-and-union ratio matrix is ​​updated to the intersection-and-union ratio between the first target and the second target. When the intersection-and-union ratio of the first target and the second target is not greater than the preset intersection-and-union ratio, the values ​​of the corresponding positions of the first target and the second target in the intersection-and-union ratio matrix are set to null values, indicating that the overlap between them does not meet the preset requirements, and the two targets are two different entity objects.

[0229] Finally, after the above four score matrices are updated, it is determined that the first target and the second target corresponding to the elements that are not empty in the intersection and union ratio matrix are interrelated, that is, it is determined that the first target and the second target corresponding to the elements that are not empty in the intersection and union ratio matrix are the same entity object, that is, in the intersection and union ratio matrix, the first target and the second target corresponding to the elements whose values ​​are not empty are interrelated.

[0230] Table 5 is the intersection-and-union ratio matrix between the first target and the second target, as shown in Table 5.

[0231] Table 5

[0232]

[0233] As shown in Table 5, for the first target and the second target whose element values ​​in the intersection-and-union ratio matrix are empty, the intersection-and-union ratio will not be calculated in the intersection-and-union ratio matrix. At the same time, for the first target and the second target whose intersection-and-union ratio is greater than the preset intersection-and-union ratio, it means that the volume overlap area between the two targets is too small, and they are understood to be not the same entity object. Therefore, the first target and the second target whose intersection-and-union ratio is greater than the preset intersection-and-union ratio will not appear in the intersection-and-union ratio matrix, and the corresponding element values ​​are empty.

[0234] Through the above embodiment, the intersection-union ratio matrix can be calculated based on the volume information of the target, and the overlap degree between the targets can be evaluated and updated through a preset threshold. This method is helpful to analyze the intersection and union relationship between targets, further measure the accuracy and consistency of target detection results, and determine the correlation between targets with overlapping relationships.

[0235] Figure 5 is a schematic diagram of a calculation process of different score matrices in a target detection method provided in an embodiment of the present application, such as Figure 5 shown.

[0236] Taking target i and target j as an example, first, according to the correlation between target i and target j in the category association matrix (i.e., category association), if target i and target j have category association (for example, both are four-wheeled vehicles), then the correlation between target i and target j is 1, and the value of the element corresponding to target i and target j in the category association matrix is ​​determined to be 1; otherwise, the correlation between target i and target j is 0, the value of the element corresponding to target i and target j in the category association matrix is ​​0, and the next step is not performed.

[0237] Further, when it is determined that the correlation between target i and target j is 1, the distance between target i and target j is calculated again. When the distance between target i and target j is not greater than the preset distance, the value of the element corresponding to target i and target j in the distance matrix is ​​determined to be the distance between target i and target j. Otherwise, when the distance between target i and target j is greater than the preset distance, the distance between target i and target j is too large, and the value of the element corresponding to target i and target j in the distance matrix is ​​determined to be " / ", indicating that it is empty, and the next step is not performed.

[0238] Further, when the value of the element corresponding to target i and target j in the distance matrix is ​​the distance between target i and target j, the angle difference between target i and target j is calculated again. When the angle difference between target i and target j is not greater than the preset angle difference, the value of the element corresponding to target i and target j in the angle difference matrix is ​​determined to be the angle difference between target i and target j. Otherwise, when the angle difference between target i and target j is greater than the preset angle difference, the angle difference between target i and target j is too large. The value of the element corresponding to target i and target j in the angle difference matrix is ​​determined to be " / ", indicating that it is empty, and the next step is not performed.

[0239] Further, when the value of the element corresponding to target i and target j in the angle difference matrix is ​​the angle difference between target i and target j, the intersection-and-union ratio of the volumes between target i and target j is calculated again. When the intersection-and-union ratio of the volumes between target i and target j is not greater than the preset intersection-and-union ratio, the value of the element corresponding to target i and target j in the intersection-and-union ratio matrix is ​​determined to be the intersection-and-union ratio of target i and target j. Otherwise, when the intersection-and-union ratio between target i and target j is greater than the preset intersection-and-union ratio, the intersection-and-union ratio of target i and target j is too large, and the value of the element corresponding to target i and target j in the intersection-and-union ratio matrix is ​​determined to be " / ", indicating that it is empty, and the next step is not performed.

[0240] Finally, when the values ​​of the elements corresponding to target i and target j in the intersection-and-union ratio matrix are the intersection-and-union ratio of target i and target j, it means that target i and target j both meet the correlation of 1, preset distance, preset angle difference, and preset intersection-and-union ratio, indicating that target i and target j are related to each other. Only then is the correlation score between target i and target j calculated. When the correlation score between target i and target j meets the preset correlation score, it means that target i and target j match the same target (i.e., the same entity object). And the association between targets can be performed based on the Hungarian algorithm to solve the associated targets in the reasoning result set of multiple chips.

[0241] Figure 6 is a schematic diagram of a framework of a target detection device provided by an embodiment of the present application, such as Figure 6 shown.

[0242] Based on the same inventive concept, another embodiment of the present application further provides a target detection device, which is applied to a vehicle-mounted distributed platform, wherein the vehicle-mounted distributed platform includes multiple chips, and the device includes:

[0243] An acquisition module 11 is used to acquire data from multiple cameras on the autonomous driving vehicle, where the viewing angles of the multiple cameras are different from each other;

[0244] A division module 12 is used to divide the data of the multiple cameras based on the multiple chips to obtain multiple data streams, wherein each of the data streams contains data of at least one camera;

[0245] An inference module 13, configured to perform parallel inference on the multiple data streams through the multiple chips to obtain multiple inference result sets, wherein each inference result set is generated by one chip among the multiple chips;

[0246] The fusion module 14 is used to fuse the respective inference results in the plurality of inference result sets to obtain the target detection result from a bird's-eye view.

[0247] Optionally, the device further comprises:

[0248] A viewing angle setting module is used to set the viewing angles of the multiple cameras respectively before acquiring data from the multiple cameras on the autonomous driving vehicle, with the viewpoints of the multiple cameras corresponding to different chips being partially overlapped.

[0249] The viewing angles of the multiple cameras corresponding to each chip are continuous.

[0250] Optionally, the fusion module 14 includes:

[0251] A quantity determination module, used to determine the number of inference results matching the same target in the multiple inference result sets corresponding to the multiple chips, wherein one inference result corresponds to one target;

[0252] A first reasoning result matching module is used to, when there are multiple reasoning results matching the same target, use the reasoning result with the highest confidence among the multiple reasoning results matching the same target as the reasoning result corresponding to the target;

[0253] A second reasoning result matching module, configured to, when the number of reasoning results matching the same target is one, use one of the reasoning results as the reasoning result corresponding to the target;

[0254] The fusion unit is used to combine the reasoning results corresponding to each target to obtain the target detection result of the data of the multi-channel cameras on the autonomous driving vehicle under the BEV perspective.

[0255] Optionally, the chip includes a first chip and a second chip, the reasoning result set generated by the first chip includes a plurality of reasoning results of the first target, the reasoning result set generated by the second chip includes a plurality of reasoning results of the second target, and the device further includes:

[0256] A score matrix construction module is used to construct a plurality of score matrices based on category, distance, angle difference, and intersection-and-union ratio respectively before determining the number of inference results matching the same target in the plurality of inference result sets corresponding to the plurality of chips, and determine whether there are a plurality of inference results whose targets are mutually related in the plurality of inference result sets corresponding to the plurality of chips based on the plurality of score matrices, wherein the score matrix includes a category association matrix, a distance matrix, an angle difference matrix, and an intersection-and-union ratio matrix;

[0257] A correlation score calculation module, for calculating correlation scores between multiple targets corresponding to multiple inference results whose targets are mutually related;

[0258] A target matching module, for determining, for a plurality of inference results whose association scores are greater than a preset association score threshold, that a plurality of targets corresponding to the plurality of inference results are matched;

[0259] The calculation formula of the correlation score is:

[0260] ,in, is the association score, d is the distance between the targets, d_max is the maximum distance between all targets.

[0261] Optionally, the inference result at least includes the category of the target, and the score matrix construction module includes:

[0262] A category association matrix creation module, used to create the category association matrix according to the reasoning results of the multiple first targets included in the reasoning result set generated by the first chip and the reasoning results of the multiple second targets included in the reasoning result set generated by the second chip;

[0263] A category association calculation module, used to calculate, in the category association matrix, the category association between the category of each first target and the categories of multiple second targets according to the categories of the targets in the inference result;

[0264] The category association degree between the first target and the second target corresponds to the value of an element in the category association matrix.

[0265] Optionally, the category association calculation module includes:

[0266] A first category association degree determination module, configured to determine that the value of the element corresponding to the first target and the second target in the category association matrix is ​​1 when the category association degree between the category of the first target and the category of the second target is not less than a preset category association degree;

[0267] The second category association determination module is used to determine that the values ​​of the elements corresponding to the first target and the second target in the category association matrix are 0 when the category association between the first target and the second target is less than the preset category association.

[0268] Optionally, the reasoning result includes at least the coordinate position of the target, and the score matrix construction module includes:

[0269] A distance matrix creation module, used to create the distance matrix according to the multiple first targets included in the inference result set generated by the first chip and the multiple second targets included in the inference result set generated by the second chip;

[0270] A distance calculation module, used for calculating the distances between the coordinate positions of each first target and the coordinate positions of a plurality of second targets in the distance matrix according to the coordinate positions of the targets;

[0271] The first target and the second target correspond to the value of an element in the distance matrix.

[0272] Optionally, the distance calculation module includes:

[0273] a distance calculation unit, for calculating, for a first target and a second target whose corresponding element value in the category association matrix is ​​1, a distance between a coordinate position of the first target and a coordinate position of the second target;

[0274] A first distance determination unit, configured to determine, when the distance between the coordinate position of the first target and the coordinate position of the second target is less than a preset distance, that the value of the element corresponding to the first target and the second target in the distance matrix is ​​the distance;

[0275] The second distance determination unit is used to determine that the values ​​of the elements corresponding to the first target and the second target in the distance matrix are empty when the distance between the coordinate position of the first target and the coordinate position of the second target is not less than the preset distance.

[0276] Optionally, the reasoning result includes at least an angle difference of the target, and the score matrix building module includes:

[0277] An angle difference matrix creation module, used to create the angle difference matrix according to the reasoning results of the multiple first targets included in the reasoning result set generated by the first chip and the reasoning results of the multiple second targets included in the reasoning result set generated by the second chip;

[0278] An angle difference calculation module, used to calculate the angle difference between the angle of each first target and the angles of multiple second targets in the angle difference matrix according to the angle of the target in the reasoning result;

[0279] The angle difference between the first target and the second target corresponds to the value of an element in the angle difference matrix.

[0280] Optionally, the angle difference calculation module includes:

[0281] an angle difference calculation unit, for calculating, for a first target and a second target whose corresponding element values ​​in the distance matrix are not empty, an angle difference between an angle of the first target and an angle of the second target;

[0282] A first angle difference determining unit, configured to determine, when an angle difference between an angle of the first target and an angle of the second target is less than a preset angle difference, a value of an element corresponding to the first target and the second target in the angle difference matrix as the angle difference;

[0283] The second angle difference determining unit is used to determine that the values ​​of the elements corresponding to the first target and the second target in the angle difference matrix are empty when the angle difference between the first target and the second target is not less than the preset angle difference.

[0284] Optionally, the reasoning result includes at least the volume of the target, and the score matrix building module includes:

[0285] An intersection-and-union ratio matrix creation module, used to create the intersection-and-union ratio matrix according to the reasoning results of the multiple first targets included in the reasoning result set generated by the first chip and the reasoning results of the multiple second targets included in the reasoning result set generated by the second chip;

[0286] An intersection-and-union ratio calculation module, used to calculate the intersection-and-union ratios between the volume of each first target and the volumes of multiple second targets in the intersection-and-union ratio matrix according to the volumes of the targets in the reasoning result;

[0287] The intersection-and-union ratio of the first target and the second target corresponds to the value of an element in the intersection-and-union ratio matrix.

[0288] Optionally, the intersection-over-union ratio calculation module includes:

[0289] an intersection-and-union ratio calculation unit, configured to calculate, for a first target and a second target whose corresponding elements in the angle difference matrix have non-empty values, an intersection-and-union ratio between the volume of the first target and the volume of the second target;

[0290] A first intersection-and-union ratio determination module, configured to determine, when the intersection-and-union ratio between the volume of the first target and the volume of the second target is greater than a preset intersection-and-union ratio, that the values ​​of the elements corresponding to the first target and the second target in the intersection-and-union ratio matrix are the intersection-and-union ratio;

[0291] a second IoU determining module, configured to determine that the values ​​of the elements corresponding to the first target and the second target in the IoU matrix are empty when the IoU between the volume of the first target and the volume of the second target is not greater than the preset IoU;

[0292] The device further comprises: a mutual correlation determination module, configured to determine that the first target and the second target corresponding to the non-empty elements of the intersection-over-union matrix of the first target and the second target are mutually correlated.

[0293] Based on the same inventive concept, another embodiment of the present application further provides an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the target detection method as described in any of the above embodiments.

[0294] Based on the same inventive concept, another embodiment of the present application further provides a computer program product, including a computer program, which is executed by a processor to perform the target detection method as described in any of the above embodiments.

[0295] Based on the same inventive concept, another embodiment of the present application further provides a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, the target detection method as described in any of the above embodiments is implemented.

[0296] As for the device, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0297] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0298] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0299] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0300] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0301] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0302] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0303] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0304] The target detection method, electronic device, product and medium provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A target detection method, characterized in that: Applied to a vehicle-mounted distributed platform, the vehicle-mounted distributed platform includes multiple chips, and the method includes: The viewing angles of the multiple cameras corresponding to different chips are respectively set with the goal of having a partially overlapping area between the viewing angles of the multiple cameras corresponding to different chips; wherein the viewing angles of the multiple cameras corresponding to each of the chips are continuous; Acquire data from multiple cameras on an autonomous vehicle, where the viewing angles of the multiple cameras are different. Based on the multiple chips, the data of the multiple cameras are divided to obtain multiple data streams, wherein each of the data streams contains data of at least one camera; By using the multiple chips, the multiple data streams are inferred in parallel to obtain multiple inference result sets, wherein each inference result set is generated by one chip among the multiple chips, and each chip infers the data of the multiple cameras corresponding to the chip to obtain a inference result set corresponding to the chip; The respective inference results in the plurality of inference result sets are fused to obtain a target detection result from a bird's-eye view.

2. The target detection method according to claim 1, characterized in that: The fusing of the respective inference results in the plurality of inference result sets to obtain the target detection result from a bird's-eye view includes: Determine the number of inference results matching the same target in the multiple inference result sets corresponding to the multiple chips, wherein one inference result corresponds to one target; When there are multiple inference results matching the same target, the inference result with the highest confidence among the multiple inference results matching the same target is used as the inference result corresponding to the target; When the number of inference results matching the same target is one, taking the one inference result as the inference result corresponding to the target; The reasoning results corresponding to the various targets are combined to obtain target detection results from the data of the multiple cameras on the autonomous driving vehicle under the BEV perspective.

3. The target detection method according to claim 2, characterized in that: The chip includes a first chip and a second chip, the inference result set generated by the first chip includes inference results of multiple first targets, and the inference result set generated by the second chip includes inference results of multiple second targets, and before determining the number of inference results matching the same target in the multiple inference result sets corresponding to the multiple chips, further comprising: Based on category, distance, angle difference, and intersection-and-union ratio, a plurality of score matrices are constructed respectively, and based on the plurality of score matrices, it is determined whether there are a plurality of inference results with targets being mutually related in the plurality of inference result sets corresponding to the plurality of chips, wherein the score matrices include a category association matrix, a distance matrix, an angle difference matrix, and an intersection-and-union ratio matrix; For multiple inference results whose targets are mutually related, calculating the correlation scores between the multiple targets corresponding to the multiple inference results; For the multiple inference results whose association scores are greater than a preset association score threshold, determining that the multiple targets corresponding to the multiple inference results match; The calculation formula of the correlation score is: ,in, is the association score, d is the distance between the targets, d_max is the maximum distance between all targets.

4. The target detection method according to claim 3, characterized in that: The inference result at least includes the category of the target, and based on the category, distance, angle difference, and intersection-over-union ratio, a plurality of score matrices are constructed respectively, and based on the plurality of score matrices, it is determined whether there are a plurality of inference results with targets being mutually related in the plurality of inference result sets corresponding to the plurality of chips, including: Creating the category association matrix according to the reasoning results of the first targets included in the reasoning result set generated by the first chip and the reasoning results of the second targets included in the reasoning result set generated by the second chip; In the category association matrix, according to the categories of the targets in the inference result, the category association degrees between the category of each first target and the categories of the plurality of second targets are calculated; The category association degree between the first target and the second target corresponds to the value of an element in the category association matrix.

5. The target detection method according to claim 4, characterized in that: The calculating, in the category association matrix, the category association degree between the category of each first target and the categories of the plurality of second targets respectively according to the categories of the targets in the inference result includes: When the category association degree between the category of the first target and the category of the second target is not less than a preset category association degree, determining that the values ​​of the elements corresponding to the first target and the second target in the category association matrix are 1; When the category association degree between the category of the first target and the category of the second target is less than the preset category association degree, it is determined that the values ​​of the elements corresponding to the first target and the second target in the category association matrix are 0.

6. The target detection method according to claim 5, characterized in that: The inference result at least includes the coordinate position of the target, and the multiple score matrices are constructed based on the category, distance, angle difference, and intersection ratio, and the multiple score matrices are determined based on the multiple score matrices to determine whether there are multiple inference results with the target being mutually related in the multiple inference result sets corresponding to the multiple chips, including: Creating the distance matrix according to a plurality of first targets included in the inference result set generated by the first chip and a plurality of second targets included in the inference result set generated by the second chip; In the distance matrix, according to the coordinate positions of the targets, the distances between the coordinate positions of each first target and the coordinate positions of the plurality of second targets are calculated; The first target and the second target correspond to the value of an element in the distance matrix.

7. The target detection method according to claim 6, characterized in that: The step of calculating the distances between the coordinate positions of each first target and the coordinate positions of a plurality of second targets in the distance matrix according to the coordinate positions of the targets includes: For a first target and a second target whose corresponding element value in the category association matrix is ​​1, calculating a distance between a coordinate position of the first target and a coordinate position of the second target; When the distance between the coordinate position of the first target and the coordinate position of the second target is less than a preset distance, determining that the value of the element corresponding to the first target and the second target in the distance matrix is ​​the distance; When the distance between the coordinate position of the first target and the coordinate position of the second target is not less than the preset distance, it is determined that the values ​​of the elements corresponding to the first target and the second target in the distance matrix are empty.

8. The target detection method according to claim 7, characterized in that: The reasoning result at least includes an angle difference of the target, and constructing a plurality of score matrices based on the category, the distance, the angle difference, and the intersection-and-union ratio, respectively, and determining whether there are a plurality of reasoning results with the targets being mutually related in the plurality of reasoning result sets corresponding to the plurality of chips based on the plurality of score matrices, including: Creating the angle difference matrix according to the reasoning results of the first targets included in the reasoning result set generated by the first chip and the reasoning results of the second targets included in the reasoning result set generated by the second chip; In the angle difference matrix, according to the angle of the target in the inference result, the angle difference between the angle of each first target and the angles of the plurality of second targets is calculated; The angle difference between the first target and the second target corresponds to the value of an element in the angle difference matrix.

9. The target detection method according to claim 8, characterized in that: The step of calculating the angle difference between the angle of each first target and the angles of the plurality of second targets in the angle difference matrix according to the angle of the target in the inference result includes: For a first target and a second target whose corresponding element values ​​in the distance matrix are not empty, calculating an angle difference between an angle of the first target and an angle of the second target; When the angle difference between the angle of the first target and the angle of the second target is less than a preset angle difference, determining that the values ​​of the elements corresponding to the first target and the second target in the angle difference matrix are the angle difference; When the angle difference between the angle of the first target and the angle of the second target is not less than the preset angle difference, it is determined that the values ​​of the elements corresponding to the first target and the second target in the angle difference matrix are empty.

10. The target detection method according to claim 9, characterized in that: The reasoning result includes at least the volume of the target, and the multiple score matrices are constructed based on the category, distance, angle difference, and intersection ratio, and the multiple score matrices are determined based on the multiple score matrices to determine whether there are multiple reasoning results with the target being mutually related in the multiple reasoning result sets corresponding to the multiple chips, including: Creating the intersection-over-union matrix according to the inference results of the first targets included in the inference result set generated by the first chip and the inference results of the second targets included in the inference result set generated by the second chip; In the intersection-and-union ratio matrix, according to the volumes of the targets in the inference result, the intersection-and-union ratios between the volume of each first target and the volumes of the plurality of second targets are calculated; The intersection-and-union ratio of the first target and the second target corresponds to the value of an element in the intersection-and-union ratio matrix.

11. The target detection method according to claim 10, characterized in that: The step of calculating the intersection-and-union ratios between the volume of each first target and the volumes of the plurality of second targets in the intersection-and-union ratio matrix according to the volumes of the targets in the inference result includes: For a first target and a second target whose corresponding element values ​​in the angle difference matrix are not empty, calculating an intersection-over-union ratio between a volume of the first target and a volume of the second target; When the intersection-and-union ratio between the volume of the first target and the volume of the second target is greater than a preset intersection-and-union ratio, determining that the values ​​of the elements corresponding to the first target and the second target in the intersection-and-union ratio matrix are the intersection-and-union ratio; When the intersection-and-union ratio between the volume of the first target and the volume of the second target is not greater than the preset intersection-and-union ratio, determining that the values ​​of the elements corresponding to the first target and the second target in the intersection-and-union ratio matrix are empty; The method further includes: determining that the first target and the second target corresponding to the non-empty elements of the intersection-over-union matrix of the first target and the second target are mutually associated.

12. An electronic device, characterized in that: The device comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the target detection method according to any one of claims 1 to 11.

13. A computer readable medium, characterized in that A computer program is stored thereon, wherein when the computer program is executed by a processor, the target detection method according to any one of claims 1 to 11 is implemented.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the target detection method according to any one of claims 1 to 11 is implemented.