Target association matching method and device, in-vehicle infotainment device and storage medium
By establishing a visual coordinate system based on cameras and decomposing lidar targets in intelligent driving, combined with Hungarian algorithm calculations, the problem of inaccuracy in sensor target matching is solved, and the obstacle detection accuracy and resource utilization efficiency in intelligent driving are improved.
Patent Information
- Application Number
- CN202310245568.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-09-10
AI Technical Summary
In the field of intelligent driving, when multiple sensors detect targets, the target matching inaccuracy is low. Especially when lidar and cameras are combined for obstacle detection, the preset position conversion relationship cannot guarantee the accuracy during the sensor installation process, resulting in matching The result is wrong, and obtaining the position conversion relationship consumes a lot of resources.
Establish a visual coordinate system based on the visual target detected by the camera, decompose the target position and speed detected by the lidar into the visual coordinate system, and calculate the comprehensive distance between the laser target and the visual target through the Hungarian algorithm to improve the accuracy of the matching results sex.
Through the establishment of the visual coordinate system and the Hungarian algorithm calculation, the accuracy of lidar and camera target matching is improved, resource consumption is reduced, and the feasibility of the matching results is enhanced.
Smart Images

Figure CN118625341A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a target association matching method, device, vehicle computer and storage medium. Background Art
[0002] At present, in the field of intelligent driving, since each sensor has its own advantages and disadvantages, more and more intelligent driving solutions do not rely on one sensor, but rely on multiple sensors to detect targets. However, when using multiple sensors to detect targets, the problem of target matching is involved; for example, when using the Lidar and camera in the vehicle for obstacle detection, the target detected by the Lidar will be associated and matched with the target detected by the camera to determine the information of the obstacle measured by the two sensors. Usually, when the target detected by the Lidar and the target detected by the Camera are associated and matched, a coordinate system is established with the center point of the rear axle of the vehicle as the coordinate origin, and then the target detected by the Lidar and the target detected by the Camera are unified in the coordinate system, and then the associated matching is performed based on the coordinate value. This associated matching method requires the position conversion relationship between each sensor to be determined in advance. Since the actual installation process cannot ensure that the positions of each sensor are completely consistent, if the preset position conversion relationship is used, the matching accuracy will be low, and even the matching result will be wrong. If the position conversion relationship is obtained after the sensor is installed, a large amount of resources will be consumed, and the actual feasibility is low. Summary of the invention
[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a target association matching method, device, vehicle computer and storage medium, which can improve the accuracy of association matching.
[0004] In order to achieve the above objectives, the technical solutions provided by the embodiments of the present disclosure are as follows:
[0005] In a first aspect, a target association matching method is provided, comprising:
[0006] Based on the n visual targets detected by the camera, n visual coordinate systems are established, wherein the visual coordinate system uses the installation position of the camera as the origin of the coordinate system, the line between the origin of the coordinate system and the visual target detected by the camera as the vertical axis, and the direction perpendicular to the vertical axis as the horizontal axis;
[0007] Decomposing the positions and velocities of the m laser targets detected by the laser radar into the longitudinal axis and the transverse axis of the n visual coordinate systems, respectively, to determine the positions and velocities of the m laser targets on the longitudinal axis and the positions and velocities of the m laser targets on the transverse axis in each visual coordinate system;
[0008] Based on the positions and speeds of the m laser targets on the longitudinal axis and the positions and speeds of the m laser targets on the transverse axis, a comprehensive distance between each laser target and each visual target is calculated to obtain s comprehensive distances, where s is the product of m and n, and s, m and n are all integers greater than or equal to 1;
[0009] Based on the s comprehensive distances, the matching results of the m laser targets and the n visual targets are calculated by the Hungarian algorithm solver.
[0010] In a second aspect, a target association matching device is provided, comprising:
[0011] A coordinate system establishment module, used to establish n visual coordinate systems based on the n visual targets detected by the camera, wherein the visual coordinate system uses the installation position of the camera as the origin of the coordinate system, uses the line between the origin of the coordinate system and the visual target detected by the camera as the vertical axis, and uses the direction perpendicular to the vertical axis as the horizontal axis;
[0012] A decomposition module, used for decomposing the positions and velocities of the m laser targets detected by the laser radar into the longitudinal axis and the transverse axis of the n visual coordinate systems, respectively, so as to determine the positions and velocities of the m laser targets on the longitudinal axis and the positions and velocities of the m laser targets on the transverse axis in each visual coordinate system;
[0013] a comprehensive distance calculation module, for calculating the comprehensive distance between each laser target and each visual target based on the positions and speeds of the m laser targets on the longitudinal axis and the positions and speeds of the m laser targets on the transverse axis, so as to obtain s comprehensive distances, wherein s is the product of m and n, and s, m and n are all integers greater than or equal to 1;
[0014] The matching module is used to calculate the matching results of the m laser targets and the n visual targets based on the s comprehensive distances through a Hungarian algorithm solver.
[0015] In a third aspect, an electronic device is provided, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the target association matching method as described in the first aspect or any one of its optional embodiments is implemented.
[0016] In a fourth aspect, a computer-readable storage medium is provided, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the target association matching method as described in the first aspect or any optional embodiment thereof is implemented.
[0017] In a fifth aspect, a computer program product is provided, comprising: when the computer program product is run on a computer, the computer is enabled to implement the target association matching method as described in the first aspect or any optional embodiment thereof.
[0018] The target association matching method provided by the embodiment of the present disclosure takes into account the measurement principle based on vision. The camera's detection of the azimuth angle of the target is very accurate. According to this feature, a visual coordinate system is established based on the visual target detected by the camera, and the position and speed of the laser target detected by the lidar are decomposed into the visual coordinate system. In this way, the calculated comprehensive distance between each laser target and each visual target is more accurate, and the subsequent matching results of the laser target and the visual target calculated by the Hungarian algorithm solver will also be more accurate, thereby improving the accuracy of the association matching. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] Figure 1 A flowchart of a target association matching method provided in an embodiment of the present disclosure;
[0022] Figure 2A A schematic diagram of the structure of a visual coordinate system provided by an embodiment of the present disclosure;
[0023] Figure 2B A schematic diagram of a point inside a rectangle provided in an embodiment of the present disclosure;
[0024] Figure 3 A flowchart of another target association matching method provided by an embodiment of the present disclosure;
[0025] Figure 4 A schematic diagram of a target coordinate system provided by an embodiment of the present disclosure;
[0026] Figure 5 A schematic diagram of the structure of a target association matching device provided in an embodiment of the present disclosure;
[0027] Figure 6 A schematic diagram of the structure of a vehicle computer provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0029] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0030] In order to solve the above-mentioned problem of inaccurate matching, an embodiment of the present disclosure provides a target association matching method. Taking into account the measurement principle based on vision, the camera's detection of the azimuth angle of the target is very accurate. According to this feature, a visual coordinate system is established based on the visual target detected by the camera, and the position and speed of the laser target detected by the lidar are decomposed into the visual coordinate system. In this way, the calculated comprehensive distance between each laser target and each visual target is more accurate, and the subsequent matching results of the laser target and the visual target calculated by the Hungarian algorithm solver will also be more accurate, thereby improving the accuracy of the association matching.
[0031] The executor of the target association matching method provided in the embodiment of the present disclosure may be a target association matching device, a vehicle computer or a vehicle. The target association matching device may be a functional module or functional entity in the vehicle or the vehicle computer that can implement the target association matching method. The vehicle computer may be a controller or an on-board device of the vehicle.
[0032] like Figure 1 As shown, it is a flow chart of a target association matching method provided by an embodiment of the present disclosure. Figure 1 As shown, the target association matching method may include but is not limited to the following steps:
[0033] 101. Based on the n visual targets detected by the camera, establish n visual coordinate systems.
[0034] Among them, the above-mentioned visual target refers to the target detected by the camera. The visual coordinate system uses the installation position of the camera as the origin of the coordinate system, the line between the origin of the coordinate system and the visual target detected by the camera as the vertical axis, and the direction perpendicular to the vertical axis as the horizontal axis. Due to the measurement principle of vision, the camera's azimuth measurement of the target is very accurate. According to this characteristic, the installation position of the camera is used as the origin of the coordinate system, the line between the origin of the coordinate system and the visual target detected by the camera is used as the vertical axis, and the direction perpendicular to the vertical axis is used as the horizontal axis. The horizontal and vertical axes of the n visual coordinate systems can all be in the same plane. Compared with the traditional method of establishing a coordinate system based on the center point of the rear axle of the vehicle as the coordinate origin, more accurate information on the position and speed of the target can be obtained later.
[0035] In some embodiments, the line between the origin of the coordinate system and the visual target detected by the camera may be a line between the origin of the coordinate system and the center point of a circumscribed rectangular frame of the visual target.
[0036] In some embodiments, the line between the coordinate system origin and the visual target detected by the camera may be a line between the coordinate system origin and any position point within the circumscribed rectangular frame of the visual target. For example, it may be a point within the circumscribed rectangular frame between the coordinate system origin and the visual target that is closest to the coordinate system origin, or it may be a point within the circumscribed rectangular frame between the coordinate system origin and the visual target that is farthest from the coordinate system origin.
[0037] Figure 2A A schematic diagram of the structure of a visual coordinate system provided in an embodiment of the present disclosure.
[0038] like Figure 2A As shown, point A in the vehicle is the camera installation position, point A is the coordinate origin of the visual coordinate system, the longitudinal axis 21 of the visual coordinate system is determined by the direction from point A to the target 23, and the transverse axis 22 of the visual coordinate system is perpendicular to the longitudinal axis 21.
[0039] In the disclosed embodiment, a corresponding visual coordinate system may be established based on each of the n visual targets, wherein the longitudinal axis of the visual coordinate system is the parallel direction, and the transverse axis of the visual coordinate system is the orthogonal direction.
[0040] 102. The positions and velocities of the m laser targets detected by the laser radar are respectively decomposed into the vertical axis and the horizontal axis of n visual coordinate systems to determine the positions and velocities of the m laser targets on the vertical axis and the positions and velocities of the m laser targets on the horizontal axis in each visual coordinate system.
[0041] Among them, the position and speed of each of the m laser targets can be decomposed into the longitudinal axis and the transverse axis of each of the n visual coordinate systems, respectively, so as to determine the position and speed of the m laser targets on the longitudinal axis of each visual coordinate system, as well as the position and speed on the transverse axis, that is, there are m positions and m speeds on the longitudinal axis of each visual coordinate system, and there are m positions and m speeds on the transverse axis of each visual coordinate system.
[0042] Based on the positions and velocities of the m laser targets on the vertical axis and the positions and velocities of the m laser targets on the horizontal axis, the comprehensive distance between each laser target and each visual target is calculated to obtain s comprehensive distances.
[0043] Wherein, s is the product of m and n, and s, m and n are all integers greater than or equal to 1.
[0044] Exemplarily, assuming that m=2, n=2, that is, for 2 laser targets and 2 visual targets, s=4, that is, 4 comprehensive distances will be finally calculated.
[0045] In some embodiments, based on the positions and velocities of the m laser targets on the longitudinal axis and the positions and velocities of the m laser targets on the transverse axis, calculating the integrated distance between each laser target and each visual target to obtain s integrated distances may include but is not limited to the following steps:
[0046] (1) Obtain the positions and velocities of n visual targets on the vertical axis, and the positions and velocities of n visual targets on the horizontal axis.
[0047] Among them, since the direction from the coordinate origin of the visual coordinate system to the visual target is used as the vertical axis in the embodiment of the present disclosure, the position of the visual target on the horizontal axis can be determined based on the distance between the visual target and the coordinate origin, and the position of the visual target on the vertical axis can be 0.
[0048] (2) Based on the positions and velocities of the m laser targets on the longitudinal axis and the positions and velocities of the n visual targets on the longitudinal axis, the absolute value of the position difference and the absolute value of the velocity difference of each laser target and each visual target on the longitudinal axis are calculated respectively to obtain the absolute values of the position differences on the longitudinal axis and the absolute values of the velocity differences on the longitudinal axis.
[0049] The absolute value of the position difference on the vertical axis can be expressed as: abs(lidar_parallel_position-camera_parallel_position), wherein lidar_parallel_position represents the position of the laser target on the vertical axis, and camera_parallel_position represents the position of the visual target on the vertical axis.
[0050] The absolute value of the velocity difference on the vertical axis can be expressed as: abs(lidar_parallel_velocity-camera_parallel_velocity), where lidar_parallel_velocity represents the velocity of the laser target on the vertical axis, and camera_parallel_velocity represents the velocity of the visual target on the vertical axis.
[0051] (3) Based on the positions and velocities of the m laser targets on the horizontal axis and the positions and velocities of the n visual targets on the horizontal axis, the absolute value of the position difference and the absolute value of the velocity difference of each laser target and each visual target on the horizontal axis are calculated respectively to obtain the absolute values of the position differences on the horizontal axis and the absolute values of the velocity differences on the horizontal axis.
[0052] The absolute value of the position difference on the horizontal axis can be expressed as: abs(lidar_orthogonal_position-camera_orthogonal_position), wherein lidar_orthogonal_position represents the position of the laser target on the horizontal axis, and camera_orthogonal_position represents the position of the visual target on the horizontal axis.
[0053] The absolute value of the velocity difference on the horizontal axis can be expressed as: abs(lidar_orthogonal_velocity-camera_orthogonal_velocity), wherein lidar_orthogonal_velocity represents the velocity of the laser target on the horizontal axis, and camera_orthogonal_velocity represents the velocity of the visual target on the horizontal axis.
[0054] (4) Determine s integrated distances based on the absolute values of the s vertical position differences, the absolute values of the s vertical speed differences, the absolute values of the s horizontal position differences, and the absolute values of the s horizontal speed differences.
[0055] In some embodiments, based on the absolute values of the position differences on the s vertical axes, the absolute values of the speed differences on the s vertical axes, the absolute values of the position differences on the s horizontal axes, and the absolute values of the speed differences on the s horizontal axes, determining the s integrated distances may include but is not limited to the following:
[0056] Case 1: When the target condition is not met, the i-th comprehensive distance is determined as the preset maximum distance value.
[0057] The preset maximum distance value may be 10000. If the target condition is not met, it is considered that there may be no associated match between the laser target and the visual target. At this time, the value of the i-th comprehensive distance may be set to the value of the preset maximum distance value, which can facilitate the subsequent calculation of the associated match result based on the Hungarian algorithm solver.
[0058] Case 2: When the target conditions are met, the absolute value of the position difference on the i-th vertical axis, the speed difference on the i-th vertical axis, and the absolute value of the position difference on the i-th horizontal axis are less than the vertical position difference threshold and weighted summed to obtain the i-th comprehensive distance.
[0059] The i-th comprehensive distance is any one of the s comprehensive distances. The above target conditions include but are not limited to the combination of the following conditions:
[0060] Condition 1: The absolute value of the position difference on the i-th vertical axis is less than the parallel position difference threshold;
[0061] Condition 2: The absolute value of the speed difference on the i-th vertical axis is less than the parallel speed difference threshold;
[0062] Condition 3: The absolute value of the position difference on the i-th horizontal axis is less than the vertical position difference threshold;
[0063] Condition 4: The absolute value of the velocity difference on the i-th horizontal axis is less than the vertical velocity difference threshold.
[0064] The absolute value of the position difference on the i-th vertical axis refers to any one of the absolute values of the position differences on the s vertical axes, and the speed difference on the i-th vertical axis refers to any one of the absolute values of the speed differences on the s vertical axes;
[0065] In the disclosed embodiment, the absolute values of the above four position difference values are indicators that can indicate whether the laser target and the visual target are associated. When the value is greater than or equal to the corresponding threshold (i.e., the above parallel position difference threshold, parallel speed difference threshold, vertical position difference threshold, and vertical speed difference threshold), it indicates that the possibility of the association match between the two targets is low, otherwise it indicates that the possibility of the association match is high. Therefore, when the above conditions 1, 2, 3, and 4 are met, it is considered that the possibility of the association match between the laser target and the visual target is high.
[0066] The parallel position difference threshold, parallel speed difference threshold, vertical position difference threshold and vertical speed difference threshold are indicators for measuring whether the laser target and the visual target can be associated and matched. These thresholds can be set mainly based on the measurement error between the sensors (i.e., the laser radar and the camera), and their specific values can be set in advance.
[0067] In some embodiments, the parallel position difference threshold can be determined based on the product of the position of the laser target on the longitudinal axis and the first proportional parameter, and the parallel position difference threshold is limited to a certain allowable range. The first proportional parameter and the allowable range of the parallel position difference threshold can be set according to actual needs, and the embodiments of the present disclosure do not limit them.
[0068] Exemplarily, assuming that the above-mentioned first proportional parameter is 20%, the allowable range of the parallel position difference threshold is between 4 and 30. If the calculated value of 20% of the position of the laser target on the longitudinal axis is between 4 and 30, the calculated result value is taken as the threshold. If the calculated result is lower than the lower limit of 4, the value is 4. If the calculated result exceeds the upper limit of 30, the value is 30. The purpose of this is to prevent the threshold from being too small at close distances and too large at long distances.
[0069] Exemplarily, parallel_position_threshold=0.2*lidar_parallel_position, wherein the allowable range of 0.2*lidar_parallel_position is between 4 and 30, parallel_position_threshold represents the parallel position difference threshold, and lidar_parallel_position represents the position of the laser target on the longitudinal axis.
[0070] In some embodiments, the parallel speed difference threshold can be determined according to the product of the speed of the laser target on the longitudinal axis and the second proportional parameter, and the parallel speed difference threshold is limited to a certain allowable range. Among them, the second proportional parameter and the allowable range of the parallel speed difference threshold can be set according to actual needs, and the embodiments of the present disclosure do not limit it.
[0071] Exemplarily, assuming that the above-mentioned second proportional parameter is 10%, the allowable range of the parallel speed difference threshold can be between 5 and 15. If the calculation result of 10% of the speed of the laser target on the longitudinal axis is between 5 and 15, the calculation result value is taken as the threshold. If the calculation result is lower than the lower limit of 5, the value is 5. If the calculation result exceeds the upper limit of 15, the value is 15. This can prevent the speed threshold from being too small or too large.
[0072] Exemplarily, parallel_velocity_threshold=0.1*lidar_parallel_velocity; wherein the allowable range of 0.1*lidar_parallel_velocity is between 5 and 15, parallel_velocity_threshold represents the parallel velocity difference threshold, and lidar_parallel_velocity represents the velocity of the laser target on the longitudinal axis.
[0073] In some embodiments, the vertical position difference threshold can be determined according to the product of the position of the laser target on the longitudinal axis and the third proportional parameter, and the vertical position difference threshold is limited to a certain allowable range. The third proportional parameter and the allowable range of the vertical position difference threshold can be set according to actual needs, and the embodiments of the present disclosure do not limit them.
[0074] Exemplarily, assuming that the third proportional parameter is 2.6% and the allowable range of the vertical position difference threshold is between 1.5 and 30, if the calculation result of 2.6% of the position of the laser target on the longitudinal axis is between 1.5 and 3.0, the calculation result value is taken as the threshold, if the calculation result is lower than the lower limit of 1.5, the value is 1.5, if the calculation result exceeds the upper limit of 3.0, the value is 3.0, which can prevent the position threshold from being too small or too large.
[0075] Exemplarily, orthogonal_position_threshold=0.026*lidar_parallel_position, wherein the allowable range of 0.026*lidar_parallel_position is between 1.5 and 3.0, orthogonal_position_threshold represents the vertical position difference threshold, and lidar_parallel_position represents the speed of the laser target on the longitudinal axis.
[0076] Since the detection on the horizontal axis is usually more accurate when detecting the azimuth, and the relative accuracy on the vertical axis is lower, the third scale parameter can be set smaller than the first scale parameter, and the allowable range of the vertical position difference threshold can be smaller than the allowable range of the parallel position difference threshold.
[0077] In some embodiments, the vertical velocity difference threshold can be set to a fixed threshold, which can be determined according to actual needs and is not limited in the embodiments of the present disclosure. For example, the vertical velocity difference threshold can be set to 3, orthogonal_velocity_threshold=3.0, orthogonal_velocity_threshold represents the vertical velocity difference threshold.
[0078] When at least one of the above conditions 1 to 4 is not met, it is considered that the target condition is not met; when all of the above conditions 1 to 4 are met, it is considered that the target condition is met.
[0079] The above-mentioned weighted summation of the absolute value of the position difference on the i-th vertical axis, the speed difference on the i-th vertical axis, and the absolute value of the position difference on the i-th horizontal axis is less than the vertical position difference threshold to obtain the i-th comprehensive distance can be achieved based on the following formula (1):
[0080] distance=0.3*delta_parallel_position+0.6*delta_orthogonal_position+0.1*delta_parallel_velocity;
[0081] Among them, distance represents the comprehensive distance, delta_parallel_position represents the absolute value of the position difference on the i-th vertical axis; delta_orthogonal_position represents the absolute value of the position difference on the i-th horizontal axis; delta_parallel_velocity represents the absolute value of the speed difference on the i-th vertical axis.
[0082] When calculating the i-th comprehensive distance, the weights corresponding to delta_parallel_position, delta_orthogonal_position and delta_parallel_velocity may be set according to actual conditions, which is not limited in the embodiments of the present disclosure.
[0083] In the above formula (1), the weight corresponding to delta_parallel_position is 0.3, the weight corresponding to delta_orthogonal_position is 0.6, and the weight corresponding to delta_parallel_velocity is 0.1. These weights are set based on the importance of these quantities in practice. Usually, the corresponding parameters on the horizontal axis are more important, so relative to the parameters on the vertical axis, the weights of the parameters on the horizontal axis are set relatively large. And for the absolute value of the speed difference, since the vertical axis is more important, the absolute value of the speed difference on the vertical axis accounts for a larger proportion than the absolute value of the speed difference on the horizontal axis. Therefore, the weight of the absolute value of the speed difference on the vertical axis can be set greater than the weight of the absolute value of the speed difference on the horizontal axis, or the weight of the absolute value of the speed difference on the horizontal axis can be set to 0, as shown in the above formula (1).
[0084] 104. Based on s comprehensive distances, the matching results of m laser targets and n visual targets are calculated through the Hungarian algorithm solver.
[0085] Among them, the s comprehensive distances between m laser targets and n visual targets can be stored in an m×n matrix, and the matrix is used as input to the Hungarian algorithm (Hungarian) solver. Finally, the Hungarian solver will calculate a matching result that satisfies the largest number of associated matches and the smallest overall comprehensive distance, and determine the matching relationship between the laser targets and the visual targets from the matching results.
[0086] The target association matching method provided by the embodiment of the present disclosure takes into account the measurement principle based on vision. The camera's detection of the azimuth angle of the target is very accurate. According to this feature, a visual coordinate system is established based on the visual target detected by the camera, and the position and speed of the laser target detected by the lidar are decomposed into the visual coordinate system. In this way, the calculated comprehensive distance between each laser target and each visual target is more accurate, and the subsequent matching results of the laser target and the visual target calculated by the Hungarian algorithm solver will also be more accurate, thereby improving the accuracy of the association matching.
[0087] In some embodiments, in a close-range scene or at the boundary of the FOV of the Lidar, the Lidar may only be able to observe a portion of the laser target, resulting in inaccurate rectangular frame information of the measured laser target. In this case, the target association matching method provided by 101 to 104 above will fail to successfully associate due to the large position difference of the parallel or orthogonal. Therefore, when executing the target association matching method provided by 101 to 104 above, it can be executed when the distance between the laser radar and the m laser targets is greater than or equal to the preset distance, and / or the m laser targets are within the non-boundary range of the FOV of the laser radar. That is, based on the n visual targets detected by the camera, n visual coordinate systems are established, which may include: when the distance between the laser radar and the m laser targets is greater than or equal to the preset distance, and / or the m laser targets are within the non-boundary range of the FOV of the laser radar, n visual coordinate systems are established based on the n visual targets detected by the camera.
[0088] In some embodiments, when the distance between the laser radar and the m laser targets is less than a preset distance, and / or the m laser targets are within the FOV boundary range of the laser radar, the following target association matching method can be used, including but not limited to the following steps:
[0089] (a) Determine the rectangular boxes of n visual targets and the rectangular boxes of m laser targets.
[0090] (b) Calculate the overlapping area of any visual target rectangle and any laser target rectangle.
[0091] Among them, any visual target rectangular frame is a rectangular frame of any visual target among the rectangular frames of n visual targets; and any laser target rectangular frame is a rectangular frame of any laser target among the rectangular frames of m laser targets.
[0092] In some embodiments, calculating the overlapping area of any visual target rectangular frame and any laser target rectangular frame may include:
[0093] 1. Determine the intersection points of all borders of any visual target rectangle and any laser target rectangle;
[0094] The following method can be used to find the focus of a line segment: any line segment ab in the visual target rectangular frame (i.e., a line segment formed by a certain side of the rectangle) can be expressed as L1=a+t(ba). Similarly, any line segment cd in the laser target rectangular frame (i.e., a line segment formed by a certain side of the rectangle) can be expressed as L2=c+u(dc). When ab and cd intersect, L1=L2, a+t(ba)=c+u(dc). The cross product (dc) of both sides of the equation can be solved to find the value of t, and the value of u can be obtained by substituting it into the equation. If t and u both satisfy [0,1], it means that the two line segments have an intersection. Substituting t or u can obtain the coordinates of the intersection. This method can be used to find all the intersections of the 8 line segments in the two rectangular frames.
[0095] 2. Determine the first vertex of any laser target rectangular frame within any visual target rectangular frame, and the second vertex of any visual target rectangular frame within any laser target rectangular frame.
[0096] Since the rectangular box is a convex hull, when a point falls inside the convex hull, the right-hand rule has the following properties: the four points of the rectangular box are judged in a clockwise or counterclockwise order, and the cross product of the current point and the judgment point vector and the current point and the next point clockwise (counterclockwise) is positive or negative. Based on this property, all vertices that fall inside the box are found.
[0097] Figure 2B A schematic diagram of a point inside a rectangle provided in an embodiment of the present disclosure. Figure 2B As shown, point P is inside the rectangle formed by the four vertices of point A, point B, point C and point D. Then when determining that the point is point P, Figure 2B In the example, when the current points are point A, point B, point C, and point D, the corresponding vectors can be calculated. With vector The cross product of the vectors, the vector With vector The cross product of the vectors, the vector With vector The product of the vector cross products between With vector The product of the vector cross products between them. If the products of these vector cross products are both positive or negative, it can be determined that point P is inside the rectangle formed by the four vertices of point A, point B, point C and point D.
[0098] 3. Delete duplicate points from the intersection points, first vertices, and second vertices of all borders to obtain the remaining points; the area of the polygon formed by connecting the remaining points is determined as the area of the overlapping area.
[0099] Remove the duplicate points from all the points found in 1 and 2, and the polygon formed by these points is the overlapping area. To find the area of this overlapping area, you can divide the area into multiple triangles, use vector cross multiplication to find the area of the triangle, and then find the sum of the areas of the polygons.
[0100] (c) Calculate the ratio of the area of the overlapping region to the area of the third rectangular frame.
[0101] The third rectangular frame is a rectangular frame with a smaller area among any visual target rectangular frame and any laser target rectangular frame.
[0102] (d) When the ratio is less than a preset value, it is determined that the association matching between the visual target corresponding to any visual target rectangular frame and the laser target corresponding to any laser target rectangular frame fails.
[0103] (e) When the ratio is greater than or equal to a preset value, it is determined that the visual target corresponding to any visual target rectangular frame and the laser target corresponding to any laser target rectangular frame are successfully associated and matched.
[0104] In the disclosed embodiment, the smaller ratio of the overlapping area to the area of the two rectangular frames is used as a criterion for judging whether the visual target and the laser target are associated and matched.
[0105] The above preset value can be set according to actual conditions, and the embodiments of the present disclosure do not limit it. For example, the preset value can be 0.3 or other values.
[0106] In close-range scenarios or at the boundaries of the Lidar's FOV, the Lidar may only be able to observe a portion of the laser target, resulting in inaccurate rectangular frame information of the measured laser target. In this case, the target association matching method provided by 101 to 104 above will fail to successfully associate due to the large position difference of the parallel or orthogonal. Therefore, when executing the target association matching method provided by 101 to 104 above, it can be executed when the distance between the Lidar and the m laser targets is greater than or equal to the preset distance, and / or the m laser targets are within the non-boundary range of the Lidar's FOV. In close-range scenarios or at the boundaries of the Lidar's FOV, the target association matching method of steps (a) to (e) above can be used to achieve it.
[0107] In some scenarios, the target association matching method of steps (a) to (e) above may be used to perform association matching in close-range scenarios or at the FOV boundary of the Lidar, and then association matching may be performed based on the target association matching method provided in steps 101 to 104 above.
[0108] In the above embodiment, different association matching algorithms are used according to different situations, which can improve the success rate of association matching.
[0109] When the vehicle performs obstacle matching, it also involves the association matching of the target detected by Lidar (also called Lidar target) and the target detected by millimeter wave radar (Radar) (also called Radar target). Usually, when Lidar target and Radar target are associated, the coordinate system is established with the center point of the rear axle of the vehicle as the coordinate origin to match the position and speed, and when performing the association matching, the corresponding association threshold needs to be set for both the speed and the position. Therefore, the current association matching method has low accuracy and the matching process is relatively complicated.
[0110] Among them, the low accuracy of the current association matching method is mainly reflected in the following aspects: there will be more false association matching when the target detected by Lidar and the target detected by Radar are more than 60 meters away from the vehicle. The accuracy and success rate of association matching between the target detected by Lidar and the target detected by Radar cannot be taken into account when the target crosses or turns with a large curvature.
[0111] like Figure 3 As shown, it is a flowchart of another target association matching method provided by an embodiment of the present disclosure. The execution subject of the method can be a target association matching device, a vehicle computer or a vehicle, the target association matching device can be a functional module or functional entity in the vehicle or the vehicle computer that can implement the target association matching method, and the vehicle computer can be a vehicle controller or a vehicle-mounted device.
[0112] 301. Determine a rectangular frame of any laser target among a laser targets, where the a laser targets are targets detected by the laser radar.
[0113] The laser target is a target detected by the laser radar. The laser radar that collects a laser targets here is the same laser radar as the laser radar that collects s laser targets previously. There may be different targets in the a laser targets and the s laser targets.
[0114] 302. Establish a target coordinate system by taking the center point of the rectangular frame of any laser target as the coordinate origin, the direction of the line connecting the coordinate origin and the center point of the front frame of the rectangular frame of any laser target as the vertical axis, and the direction of the line connecting the coordinate origin and the center point of the left frame of the rectangular frame of any laser target as the horizontal axis.
[0115] Figure 4 A schematic diagram of a target coordinate system provided in an embodiment of the present disclosure.
[0116] like Figure 4As shown, the rectangular frame 41 is the rectangular frame of the laser target, and the target coordinate system takes the center point 0 of the rectangular frame 41 as the coordinate origin, and the direction of the line connecting the center point O and the front frame center point Y of the rectangular frame 41 as the vertical axis, that is, Figure 4 The vertical axis 42 shown in the figure, and the horizontal axis is the direction of the line connecting the center point O and the left center point X of the rectangular frame 41, that is, Figure 4 The horizontal axis 43 is shown in FIG.
[0117] 303. Convert the position and velocity of any millimeter wave target among the b millimeter wave targets into the target coordinate system, and the b laser targets are the targets detected by the laser radar.
[0118] Among them, the millimeter wave target is the target detected by the millimeter wave radar.
[0119] 304. When the position of any millimeter wave target is within the rectangular frame of any laser target, and the absolute value of the speed difference between any millimeter wave target and any laser target is greater than or equal to the speed association threshold, the distance between the coordinate origin and the rear axle center point of the rectangular frame of any laser target is determined as the matching distance between any laser target and any millimeter wave target.
[0120] After executing the above steps 301 to 304 for each laser target and each millimeter wave target, c matching distances can be obtained, where c is the product of a and b, and a, b and c are all integers greater than or equal to 1.
[0121] Based on c matching distances, the matching results of a laser target and b millimeter wave target are calculated by the Hungarian algorithm solver.
[0122] Among them, the c matching distances between a laser targets and b millimeter wave targets can be stored in an a×b matrix, and the matrix is used as input to the Hungarian algorithm (Hungarian) solver. Finally, the Hungarian solver will calculate a matching result that satisfies the largest number of associated matches and the smallest overall matching distance.
[0123] The target association matching method provided by the embodiment of the present disclosure has a relatively high position and speed measurement accuracy for the target based on the distance and speed measurement principles of Lidar and Radar. Therefore, the Radar target is converted into a target coordinate system with the center point of the Lidar frame as the coordinate origin, the direction of the line connecting the center point and the center point of the front frame as the vertical axis, and the direction of the line connecting the center point and the center point of the left frame as the horizontal axis. This not only ensures the accuracy of the matching, but also, since there is no need to set an association threshold for the position later, the matching distance can be determined based on whether the Radar target falls within the rectangular frame of the Lidar as an association judgment condition, thereby reducing the complexity of the association matching process.
[0124] In some embodiments, after obtaining the matching results of a laser target and b millimeter wave targets, and obtaining the matching results of m laser targets and n visual targets, the final matching results can also be determined based on the matching results of a laser target and b millimeter wave targets, and the matching results of m laser targets and n visual targets. In this way, the three types of targets, namely laser targets, millimeter wave targets and millimeter wave targets, can be fused for associated matching, thereby realizing associated matching for multi-channel information and obtaining more accurate obstacle detection results.
[0125] Figure 5 A schematic diagram of the structure of a target association matching device provided in an embodiment of the present disclosure.
[0126] like Figure 5 As shown, the target association matching device includes:
[0127] A coordinate system establishing module 501 is used to establish n visual coordinate systems based on n visual targets detected by the camera, wherein the visual coordinate system uses the installation position of the camera as the coordinate system origin, uses the line between the coordinate system origin and the visual target detected by the camera as the vertical axis, and uses the direction perpendicular to the vertical axis as the horizontal axis;
[0128] A decomposition module 502 is used to decompose the positions and velocities of the m laser targets detected by the laser radar into the longitudinal axis and the transverse axis of the n visual coordinate systems, respectively, to determine the positions and velocities of the m laser targets on the longitudinal axis and the positions and velocities of the m laser targets on the transverse axis in each visual coordinate system;
[0129] A comprehensive distance calculation module 503 is used to calculate the comprehensive distance between each laser target and each visual target based on the positions and speeds of the m laser targets on the longitudinal axis and the positions and speeds of the m laser targets on the transverse axis to obtain s comprehensive distances, where s is the product of m and n, and s, m and n are all integers greater than or equal to 1;
[0130] The first matching module 504 is used to calculate the matching results of the m laser targets and the n visual targets based on the s comprehensive distances through the Hungarian algorithm solver.
[0131] In some embodiments, the comprehensive distance calculation module 503 is specifically used to:
[0132] Acquire the positions and velocities of the n visual targets on the vertical axis, and the positions and velocities of the n visual targets on the horizontal axis;
[0133] Based on the positions and velocities of the m laser targets on the longitudinal axis, and the positions and velocities of the n visual targets on the longitudinal axis, respectively calculating the absolute value of the position difference and the absolute value of the velocity difference of each laser target and each visual target on the longitudinal axis, so as to obtain the absolute values of the position difference on the longitudinal axis and the absolute values of the velocity difference on the longitudinal axis;
[0134] Based on the positions and velocities of the m laser targets on the horizontal axis, and the positions and velocities of the n visual targets on the horizontal axis, respectively calculating the absolute value of the position difference and the absolute value of the velocity difference of each laser target and each visual target on the horizontal axis, so as to obtain the absolute values of the position difference on the horizontal axis and the absolute values of the velocity difference on the horizontal axis;
[0135] The s integrated distances are determined based on the absolute values of the position differences on the s vertical axes, the absolute values of the speed differences on the s vertical axes, the absolute values of the position differences on the s horizontal axes, and the absolute values of the speed differences on the s horizontal axes.
[0136] In some embodiments, the comprehensive distance calculation module 503 is specifically used to: determine the s comprehensive distances based on the absolute values of the position differences on the s longitudinal axes, the absolute values of the speed differences on the s longitudinal axes, the absolute values of the position differences on the s transverse axes, and the absolute values of the speed differences on the s transverse axes, including:
[0137] In the case where the target condition is not met, the i-th integrated distance is determined as a preset maximum distance value, and the i-th integrated distance is any integrated distance among the s integrated distances;
[0138] The target conditions include: the absolute value of the position difference on the i-th vertical axis is less than the parallel position difference threshold, the absolute value of the speed difference on the i-th vertical axis is less than the parallel speed difference threshold, the absolute value of the position difference on the i-th horizontal axis is less than the vertical position difference threshold, and the absolute value of the speed difference on the i-th horizontal axis is less than the vertical speed difference threshold;
[0139] When the target conditions are met, the absolute value of the position difference on the i-th vertical axis, the speed difference on the i-th vertical axis, and the absolute value of the position difference on the i-th horizontal axis are less than the vertical position difference threshold and weighted summation is performed to obtain the i-th comprehensive distance.
[0140] In some embodiments, the coordinate system establishment module 501 is specifically used to:
[0141] The method of establishing n visual coordinate systems based on the n visual targets detected by the camera includes: when the distance between the laser radar and the m laser targets is greater than or equal to a preset distance, and / or when the m laser targets are within the non-boundary range of the FOV of the laser radar, establishing n visual coordinate systems based on the n visual targets detected by the camera.
[0142] In some embodiments, the apparatus further includes: a second matching module 505, configured to:
[0143] When the distance between the laser radar and the m laser targets is less than a preset distance, and / or the m laser targets are within the FOV boundary of the laser radar, determining the rectangular frames of the n visual targets and the rectangular frames of the m laser targets;
[0144] Calculate the overlapping area of any visual target rectangular frame and any laser target rectangular frame;
[0145] Calculating a ratio of the area of the overlapping region to the area of a third rectangular frame, wherein the third rectangular frame is a rectangular frame with a smaller area between any one of the visual target rectangular frames and any one of the laser target rectangular frames;
[0146] When the ratio is less than a preset value, it is determined that the visual target corresponding to any visual target rectangular frame and the laser target corresponding to any laser target rectangular frame have failed to be associated and matched;
[0147] When the ratio is greater than or equal to a preset value, it is determined that the visual target corresponding to any visual target rectangular frame and the laser target corresponding to any laser target rectangular frame are successfully associated and matched.
[0148] In some embodiments, the second matching module 505 is specifically configured to:
[0149] Determine the intersection points of all frames of any visual target rectangular frame and any laser target rectangular frame;
[0150] Determine a first vertex of any laser target rectangular frame within any visual target rectangular frame, and a second vertex of any visual target rectangular frame within any laser target rectangular frame;
[0151] Deleting duplicate points from the intersection points of all the borders, the first vertex, and the second vertex to obtain remaining points;
[0152] The area of the polygon formed by connecting the remaining points is determined as the area of the overlapping region.
[0153] In some embodiments, the apparatus further comprises a fusion module 506 for:
[0154] Obtain matching results of a laser targets and b millimeter wave targets, where a and b are both integers greater than or equal to 1, the a laser targets are targets detected by the laser radar, and the b millimeter wave targets are targets detected by the millimeter wave radar;
[0155] After the matching results of the m laser targets and the n visual targets are calculated based on the s comprehensive distances by using the Hungarian algorithm solver, the method further includes:
[0156] Based on the matching results of the a laser targets and the b millimeter wave targets, and the matching results of the m laser targets and the n visual targets, a final matching result is determined.
[0157] In some embodiments, the fusion module 506 is specifically configured to:
[0158] Step 1: Determine the rectangular frame of any laser target detected by the laser radar;
[0159] Step 2: Establish a target coordinate system with the center point of the rectangular frame of any laser target as the coordinate origin, the direction of the line connecting the coordinate origin and the center point of the front frame of the rectangular frame of any laser target as the vertical axis, and the direction of the line connecting the coordinate origin and the center point of the left frame of the rectangular frame of any laser target as the horizontal axis;
[0160] Step 3: Convert the position and velocity of any millimeter wave target into the target coordinate system;
[0161] Step 4: When the position of any millimeter wave target is within the rectangular frame of any laser target, and the absolute value of the speed difference between any millimeter wave target and any laser target is greater than or equal to the speed association threshold, the distance between the coordinate origin and the rear axle center point of the rectangular frame of any laser target is determined as the matching distance between any laser target and any millimeter wave target;
[0162] Perform the above steps 1 to 4 for each laser target and each millimeter wave target to obtain c integrated distances, where c is the product of a and b;
[0163] Based on the c matching distances, the matching results of the a laser targets and the b millimeter wave targets are calculated by a Hungarian algorithm solver.
[0164] Figure 6 A schematic diagram of the structure of a vehicle computer provided in an embodiment of the present disclosure.
[0165] like Figure 6As shown, the embodiment of the present disclosure provides a vehicle computer, which includes: a processor 601, a memory 602, and a computer program stored in the memory 602 and executable on the processor 601, and when the computer program is executed by the processor 601, each process of the target association matching method in the above method embodiment is implemented. And the same technical effect can be achieved, so it will not be repeated here to avoid repetition.
[0166] The present disclosure also provides a vehicle, which may include the above-mentioned Figure 5 The target association matching device shown, or, may include the above Figure 6 The vehicle shown.
[0167] An embodiment of the present invention provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the various processes of the target association matching method in the above method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0168] The computer readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0169] An embodiment of the present invention provides a computer program product, which stores a computer program. When the computer program is executed by a processor, the various processes of the target association matching method in the above method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0170] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.
[0171] In the present disclosure, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0172] In the present disclosure, memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0173] In the present disclosure, computer-readable media include permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0174] It should be noted that, in this article, relational terms such as "first" and "second" 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 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 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 device including the elements.
[0175] The above are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A target association matching method, It is characterized in that include: Based on the n visual targets detected by the camera, n visual coordinate systems are established, wherein the visual coordinate system uses the installation position of the camera as the origin of the coordinate system, the line between the origin of the coordinate system and the visual target detected by the camera as the vertical axis, and the direction perpendicular to the vertical axis as the horizontal axis; Decomposing the positions and velocities of the m laser targets detected by the laser radar into the longitudinal axis and the transverse axis of the n visual coordinate systems, respectively, to determine the positions and velocities of the m laser targets on the longitudinal axis and the positions and velocities of the m laser targets on the transverse axis in each visual coordinate system; Based on the positions and speeds of the m laser targets on the longitudinal axis and the positions and speeds of the m laser targets on the transverse axis, a comprehensive distance between each laser target and each visual target is calculated to obtain s comprehensive distances, where s is the product of m and n, and s, m and n are all integers greater than or equal to 1; Based on the s comprehensive distances, the matching results of the m laser targets and the n visual targets are calculated by the Hungarian algorithm solver.
2. The method according to claim 1, It is characterized in that The method of calculating the integrated distance between each laser target and each visual target based on the positions and speeds of the m laser targets on the longitudinal axis and the positions and speeds of the m laser targets on the transverse axis to obtain s integrated distances comprises: Acquire the positions and velocities of the n visual targets on the vertical axis, and the positions and velocities of the n visual targets on the horizontal axis; Based on the positions and velocities of the m laser targets on the longitudinal axis, and the positions and velocities of the n visual targets on the longitudinal axis, respectively calculating the absolute value of the position difference and the absolute value of the velocity difference of each laser target and each visual target on the longitudinal axis, so as to obtain the absolute values of the position difference on the longitudinal axis and the absolute values of the velocity difference on the longitudinal axis; Based on the positions and velocities of the m laser targets on the horizontal axis, and the positions and velocities of the n visual targets on the horizontal axis, respectively calculating the absolute value of the position difference and the absolute value of the velocity difference of each laser target and each visual target on the horizontal axis, so as to obtain the absolute values of the position difference on the horizontal axis and the absolute values of the velocity difference on the horizontal axis; The s integrated distances are determined based on the absolute values of the position differences on the s vertical axes, the absolute values of the speed differences on the s vertical axes, the absolute values of the position differences on the s horizontal axes, and the absolute values of the speed differences on the s horizontal axes.
3. The method according to claim 2, It is characterized in that Determining the s integrated distances based on the absolute values of the position differences on the s vertical axes, the absolute values of the speed differences on the s vertical axes, the absolute values of the position differences on the s horizontal axes, and the absolute values of the speed differences on the s horizontal axes comprises: When the target condition is not met, the i-th integrated distance is determined as a preset maximum distance value, wherein the i-th integrated distance is any one of the s integrated distances; The target conditions include: the absolute value of the position difference on the i-th vertical axis is less than the parallel position difference threshold, the absolute value of the speed difference on the i-th vertical axis is less than the parallel speed difference threshold, the absolute value of the position difference on the i-th horizontal axis is less than the vertical position difference threshold, and the absolute value of the speed difference on the i-th horizontal axis is less than the vertical speed difference threshold; When the target conditions are met, the absolute value of the position difference on the i-th vertical axis, the speed difference on the i-th vertical axis, and the absolute value of the position difference on the i-th horizontal axis are less than the vertical position difference threshold and weighted summation is performed to obtain the i-th comprehensive distance.
4. The method according to claim 1, It is characterized in that The method of establishing n visual coordinate systems based on n visual targets detected by the camera includes: When the distance between the laser radar and the m laser targets is greater than or equal to a preset distance, and / or the m laser targets are within the non-boundary range of the FOV of the laser radar, n visual coordinate systems are established based on the n visual targets detected by the camera.
5. The method according to claim 1, It is characterized in that The method further comprises: When the distance between the laser radar and the m laser targets is less than a preset distance, and / or the m laser targets are within the FOV boundary of the laser radar, determining the rectangular frames of the n visual targets and the rectangular frames of the m laser targets; Calculate the overlapping area of any visual target rectangular frame and any laser target rectangular frame; Calculating a ratio of the area of the overlapping region to the area of a third rectangular frame, wherein the third rectangular frame is a rectangular frame with a smaller area between any one of the visual target rectangular frames and any one of the laser target rectangular frames; When the ratio is less than a preset value, it is determined that the visual target corresponding to any visual target rectangular frame and the laser target corresponding to any laser target rectangular frame have failed to be associated and matched; When the ratio is greater than or equal to a preset value, it is determined that the visual target corresponding to any visual target rectangular frame and the laser target corresponding to any laser target rectangular frame are successfully associated and matched.
6. The method according to claim 5, It is characterized in that The calculating of the overlapping area of any visual target rectangular frame and any laser target rectangular frame comprises: Determine the intersection points of all frames of any visual target rectangular frame and any laser target rectangular frame; Determine a first vertex of any laser target rectangular frame within any visual target rectangular frame, and a second vertex of any visual target rectangular frame within any laser target rectangular frame; Deleting duplicate points from the intersection points of all the borders, the first vertex, and the second vertex to obtain remaining points; The area of the polygon formed by connecting the remaining points is determined as the area of the overlapping region.
7. The method according to claim 1, It is characterized in that The method further comprises: Obtain matching results of a laser targets and b millimeter wave targets, where a and b are both integers greater than or equal to 1, the a laser targets are targets detected by the laser radar, and the b millimeter wave targets are targets detected by the millimeter wave radar; After the matching results of the m laser targets and the n visual targets are calculated based on the s comprehensive distances by using the Hungarian algorithm solver, the method further includes: Based on the matching results of the a laser targets and the b millimeter wave targets, and the matching results of the m laser targets and the n visual targets, a final matching result is determined.
8. The method according to claim 7, It is characterized in that The obtaining of the matching results of a laser targets and b millimeter wave targets includes: Step 1: Determine the rectangular frame of any laser target detected by the laser radar; Step 2: Establish a target coordinate system with the center point of the rectangular frame of any laser target as the coordinate origin, the direction of the line connecting the coordinate origin and the center point of the front frame of the rectangular frame of any laser target as the vertical axis, and the direction of the line connecting the coordinate origin and the center point of the left frame of the rectangular frame of any laser target as the horizontal axis; Step 3: Convert the position and velocity of any millimeter wave target into the target coordinate system; Step 4: When the position of any millimeter wave target is within the rectangular frame of any laser target, and the absolute value of the speed difference between any millimeter wave target and any laser target is greater than or equal to the speed association threshold, the distance between the coordinate origin and the rear axle center point of the rectangular frame of any laser target is determined as the matching distance between any laser target and any millimeter wave target; Perform the above steps 1 to 4 for each laser target and each millimeter wave target to obtain c matching distances, where c is the product of a and b; Based on the c matching distances, the matching results of the a laser targets and the b millimeter wave targets are calculated by a Hungarian algorithm solver.
9. A target association matching device, It is characterized in that include: A coordinate system establishment module, used to establish n visual coordinate systems based on the n visual targets detected by the camera, wherein the visual coordinate system uses the installation position of the camera as the origin of the coordinate system, uses the line between the origin of the coordinate system and the visual target detected by the camera as the vertical axis, and uses the direction perpendicular to the vertical axis as the horizontal axis; A decomposition module, used for decomposing the positions and velocities of the m laser targets detected by the laser radar into the longitudinal axis and the transverse axis of the n visual coordinate systems, respectively, so as to determine the positions and velocities of the m laser targets on the longitudinal axis and the positions and velocities of the m laser targets on the transverse axis in each visual coordinate system; a comprehensive distance calculation module, for calculating the comprehensive distance between each laser target and each visual target based on the positions and speeds of the m laser targets on the longitudinal axis and the positions and speeds of the m laser targets on the transverse axis, so as to obtain s comprehensive distances, where s is the product of m and n, and s, m and n are all integers greater than or equal to 1; The first matching module is used to calculate the matching results of the m laser targets and the n visual targets based on the s comprehensive distances through a Hungarian algorithm solver.
10. A vehicle computer, It is characterized in that include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the target association matching method according to any one of claims 1 to 8.
11. A computer-readable storage medium, It is characterized in that include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the target association matching method according to any one of claims 1 to 8 is implemented.
