External parameter calibration method, device, electronic equipment and storage medium

By generating rotation angle and displacement data, the coordinate system transformation matrix between radar devices is determined, which solves the problem of low efficiency and accuracy of external parameter calibration when radar devices work together, and realizes efficient and automated external calibration between multiple radar devices. Accurate unification of parameter calibration and point cloud data.

CN112946591BActive Publication Date: 2024-09-20SENSETIME GRP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110219865.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-26
Publication Date
2024-09-20
Estimated Expiration
2041-02-26

AI Technical Summary

Technical Problem

Radar equipment has blind spots after it is installed on the vehicle. When multiple radar equipment work together, external parameter calibration is required to unify the point cloud data. However, the existing methods have low efficiency and accuracy.

Method used

By acquiring point cloud data of the same target scene collected by multiple radar devices, generating rotation angle data and displacement data, determining the coordinate system transformation matrix, and realizing automated external parameter calibration between radar devices.

Benefits of technology

It improves the efficiency and accuracy of external parameter calibration, ensures the accurate conversion of point cloud data between multiple radar devices in the same coordinate system, and enhances the certainty of target object pose data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112946591B
    Figure CN112946591B
Patent Text Reader

Abstract

The present disclosure provides an external parameter calibration method, device, electronic device and storage medium, the method comprising: obtaining point cloud data obtained by at least two radar devices arranged on a target vehicle respectively collecting the same target scene; generating rotation angle data and displacement data based on the point cloud data collected by different radar devices; wherein the rotation angle data is used to characterize the angular deviation of the point cloud data collected by different radar devices in different directions, and the displacement data is used to characterize the displacement deviation of the point cloud data collected by different radar devices in different directions; and determining the coordinate system conversion matrix between different radar devices based on the rotation angle data and the displacement data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of radar equipment, and in particular to an external parameter calibration method, device, electronic equipment and storage medium. Background Art

[0002] Radar is an electronic device that uses electromagnetic waves to detect targets. Radar emits electromagnetic waves to illuminate the target and receives its echo, thereby obtaining information such as the distance from the target to the electromagnetic wave emission point, the rate of change of distance, direction, altitude, etc. Due to its wide detection range and high detection accuracy, radar has become a commonly used sensor in unmanned vehicle technology and assisted driving technology.

[0003] Generally, a radar can be installed on the roof of a vehicle, but due to the limitations of the radar harness and the installation angle, the vehicle after installing the radar has a blind spot. Therefore, in order to eliminate the blind spot, multiple radars can be installed at different positions of the vehicle so that multiple radars can work together to complete the detection of the vehicle's surrounding environment. In order to achieve the collaborative work of multiple radars, the point cloud data obtained by multiple radar detections needs to be unified in the same coordinate system to achieve external parameter calibration between radars. Summary of the invention

[0004] In view of this, the present disclosure at least provides an external parameter calibration method, device, electronic device and storage medium.

[0005] In a first aspect, the present disclosure provides an external parameter calibration method, comprising:

[0006] Acquire point cloud data of the same target scene obtained by respectively collecting at least two radar devices arranged on the target vehicle;

[0007] Generate rotation angle data and displacement data based on point cloud data collected by different radar devices; wherein the rotation angle data is used to characterize the angular deviation of point cloud data collected by different radar devices in different directions, and the displacement data is used to characterize the displacement deviation of point cloud data collected by different radar devices in different directions;

[0008] Based on the rotation angle data and the displacement data, a coordinate system conversion matrix between different radar devices is determined.

[0009] By adopting the above method, point cloud data obtained by respectively collecting the same target scene by at least two radar devices installed on the target vehicle are obtained, rotation angle data and displacement data are generated based on the point cloud data collected by different radar devices, and then the rotation angle data and displacement data are used to determine the coordinate system conversion matrix between different radar devices, thereby realizing automatic external parameter calibration between different radar devices. Compared with the manual calibration process, the efficiency and accuracy of the external parameter calibration are improved.

[0010] In a possible implementation manner, generating rotation angle data and displacement data based on point cloud data collected by different radar devices includes:

[0011] Extracting ground point cloud data belonging to the ground from the point cloud data collected by different radar devices respectively; and generating a roll angle and a pitch angle in the rotation angle data, and a height value in the displacement data based on the ground point cloud data extracted from the point cloud data collected by different radar devices respectively;

[0012] Based on other point cloud data except the ground point cloud data in the point cloud data collected by different radar devices, the yaw angle in the rotation angle data and the length value and the width value in the displacement data are determined.

[0013] Since the roll angle, pitch angle and height value are related to the ground point cloud data belonging to the ground, and the yaw angle, length value and width value are related to other point cloud data except the ground point cloud data, the ground point cloud data belonging to the ground can be first extracted from the point cloud data collected by different radar devices, and the roll angle and pitch angle in the rotation angle data and the height value in the displacement data can be generated based on the extracted ground point cloud data corresponding to different radar devices respectively; and then the yaw angle in the rotation angle data and the length value and width value in the displacement data can be determined by using other point cloud data corresponding to different radar devices respectively.

[0014] In a possible implementation, extracting ground point cloud data belonging to the ground from point cloud data collected by different radar devices respectively includes:

[0015] For each radar device among the different radar devices, based on the direction angle pointing from the position of the radar device to the position of each point cloud point in the point cloud data collected by the radar device, the point cloud points in the point cloud data collected by the radar device are divided into a plurality of groups, wherein the difference between the direction angles respectively corresponding to the point cloud points in the same group is less than a set threshold;

[0016] For each group, based on the height difference between the point cloud points in the group and the point cloud points adjacent to it, determine the point cloud points in the group that belong to the ground;

[0017] Based on the point cloud points belonging to the ground in each group, the ground point cloud data belonging to the ground in the point cloud data collected by the radar device is determined.

[0018] Here, the point cloud points in the point cloud data can be divided into multiple groups according to the direction angle of the position of the radar device pointing to the position of each point cloud point in the point cloud data collected by the radar device. Generally, the height difference between adjacent ground point cloud points in a group is small. Therefore, for each group, the point cloud points belonging to the ground in the group can be more accurately determined based on the height difference between the point cloud points in the group and the point cloud points adjacent to it, and then the ground point cloud data belonging to the ground in the point cloud data can be more accurately determined.

[0019] In a possible implementation, for each group, based on the height difference between the point cloud points in the group and the point cloud points adjacent to the group, determining the point cloud points in the group that belong to the ground includes:

[0020] sorting the point cloud points in the group based on the distance between each point cloud point in the group and the radar device that collected the point cloud point;

[0021] For each sorted point cloud point, determine the height difference between the point cloud point and its adjacent point cloud points;

[0022] When the height difference is less than or equal to a set first height threshold and the height of the point cloud point is less than a second height threshold corresponding to the point cloud point, it is determined that the point cloud point belongs to the ground.

[0023] Taking into account the small height difference between adjacent ground point cloud points, and after the installation height of the radar equipment is determined, the height value of the ground point cloud point is consistent with the installation height of the radar equipment, so here after sorting the point cloud points in the group, for each sorted point cloud point, the height difference between the point cloud point and the point cloud point adjacent to it is determined. When the height difference is less than or equal to the set first height threshold, and the height of the point cloud point is less than the second height threshold corresponding to the point cloud point, it is determined that the point cloud point belongs to the ground, thereby more accurately determining the ground point cloud points in the group.

[0024] In a possible implementation, the second height threshold corresponding to each point cloud point is determined according to the following steps:

[0025] Based on the coordinate information of the point cloud point, determining the target distance on the horizontal plane between the point cloud point and the radar device that collected the point cloud point;

[0026] The second height threshold corresponding to the point cloud point is determined based on the installation height of the radar device that collects the point cloud point, the target distance, and the set plane angle.

[0027] Since the ground may have a slope (i.e., the ground has a corresponding plane angle), the height distance between the ground and the radar device at different locations is different, that is, the point cloud points at different locations may correspond to different second height thresholds. Therefore, for each point cloud point, the second height threshold corresponding to the point cloud point can be determined, and then it can be more accurately determined whether each point cloud point belongs to a ground point cloud point.

[0028] In a possible implementation, generating the roll angle and pitch angle in the rotation angle data and the height value in the displacement data based on the ground point cloud data extracted from the point cloud data collected by different radar devices respectively includes:

[0029] Based on the ground point cloud data extracted from the point cloud data collected by different radar devices, respectively, generating ground fitting parameters corresponding to each radar device in the different radar devices;

[0030] Based on the ground fitting parameters respectively corresponding to different radar devices, the roll angle and pitch angle in the rotation angle data and the height value in the displacement data are determined.

[0031] In a possible implementation, determining the roll angle and pitch angle in the rotation angle data and the height value in the displacement data based on the ground fitting parameters corresponding to different radar devices respectively includes:

[0032] Based on the ground fitting parameters respectively corresponding to the different radar devices, determining the normals of the fitting planes corresponding to the ground fitting parameters of the different radar devices;

[0033] generating a roll angle and a pitch angle in the rotation angle data based on normals of the fitting planes corresponding to the ground fitting parameters of different radar devices;

[0034] Based on the roll angle and the pitch angle in the rotation angle data, the ground fitting parameters corresponding to the first radar device among the different radar devices are adjusted to obtain adjusted ground fitting parameters; wherein the fitting plane corresponding to the adjusted ground fitting parameters is parallel to the fitting plane corresponding to the unadjusted ground fitting parameters corresponding to the different radar devices;

[0035] Based on the unadjusted ground fitting parameters and the adjusted ground fitting parameters respectively corresponding to the different radar devices, a height value in the displacement data is determined.

[0036] Here, since the ground is fixed, the different normals corresponding to the ground should be parallel, so the roll angle and pitch angle in the rotation angle data can be generated based on the normals of the fitting planes corresponding to the ground fitting parameters of different radar devices; further, since the ground is a fixed plane, that is, the fitting planes corresponding to the ground fitting parameters of different radar devices are planes at the same height, after adjusting the ground fitting parameters corresponding to the first radar device in the different radar devices using the roll angle and the pitch angle, the height value in the displacement data can be determined based on the unadjusted ground fitting parameters and the adjusted ground fitting parameters corresponding to the different radar devices.

[0037] In a possible implementation manner, the method further includes:

[0038] Based on the roll angle and pitch angle in the generated rotation angle data and the height value in the displacement data, adjusting the point cloud data collected by the second radar device in the different radar devices to generate adjusted point cloud data; wherein the adjusted point cloud data and the unadjusted point cloud data collected in the different radar devices are located in the same plane;

[0039] The method of determining the yaw angle in the rotation angle data and the length value and the width value in the displacement data based on other point cloud data except the ground point cloud data in the point cloud data collected by different radar devices comprises:

[0040] Based on the other point cloud data in the point cloud data collected by other radar devices among the different radar devices except the second radar device, and the other point cloud data in the adjusted point cloud data corresponding to the second radar device, the yaw angle in the rotation angle data, and the length value and width value in the displacement data are determined.

[0041] In a possible implementation manner, the target vehicle is parked on a straight road, and the target scene includes a plurality of three-dimensional identification objects placed around the target vehicle;

[0042] Determining the yaw angle in the rotation angle data and the length value and the width value in the displacement data based on other point cloud data except the ground point cloud data in the point cloud data collected by different radar devices, including:

[0043] Based on the length coordinate value and the width coordinate value of each point cloud point indicated by the other point cloud data corresponding to the different radar devices, the other point cloud data corresponding to the different radar devices are clustered to obtain a plurality of clustered point cloud sets corresponding to the other point cloud data of the different radar devices; wherein each point cloud set corresponds to one of the three-dimensional identification objects;

[0044] Based on the coordinate information of the point cloud points included in each point cloud set, determining the average coordinate information corresponding to the point cloud set;

[0045] Based on the average coordinate information respectively corresponding to the plurality of point cloud sets, the yaw angle in the rotation angle data and the length value and the width value in the displacement data are determined.

[0046] In the above implementation, each point cloud set after clustering corresponds to a three-dimensional identification object. Since the position of the three-dimensional identification object is fixed, the three-dimensional identification object can be used as a reference point to determine the yaw angle in the rotation angle data and the length and width values ​​in the displacement data.

[0047] In a possible implementation, after determining the coordinate system conversion matrix between different radar devices, the method further includes:

[0048] Using the generated coordinate system conversion matrix, the point cloud data collected by the different radar devices are converted into the same coordinate system;

[0049] Based on the converted point cloud data, the pose data of the target object is determined.

[0050] By adopting the above method, the point cloud data collected by different radar devices can be converted to the same coordinate system using the generated coordinate system conversion matrix. Since the generated coordinate system conversion matrix has a high accuracy, the point cloud data after coordinate conversion is more accurate, thereby improving the accuracy of the determined position and posture data of the target object.

[0051] The effects of the following devices, electronic devices, etc. are described in the description of the above method and will not be repeated here.

[0052] In a second aspect, the present disclosure provides an external parameter calibration device, comprising:

[0053] An acquisition module, used to acquire point cloud data obtained by at least two radar devices installed on the target vehicle respectively collecting the same target scene;

[0054] A generation module, used to generate rotation angle data and displacement data based on point cloud data collected by different radar devices; wherein the rotation angle data is used to characterize the angular deviation of the point cloud data collected by different radar devices in different directions, and the displacement data is used to characterize the displacement deviation of the point cloud data collected by different radar devices in different directions;

[0055] A determination module is used to determine a coordinate system conversion matrix between different radar devices based on the rotation angle data and the displacement data.

[0056] In a third aspect, the present disclosure provides an electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the external parameter calibration method described in the first aspect or any one of the embodiments are performed.

[0057] In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the external parameter calibration method as described in the first aspect or any one of the embodiments above are executed.

[0058] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0060] Figure 1 A schematic diagram of a flow chart of an external parameter calibration method provided by an embodiment of the present disclosure is shown;

[0061] Figure 2 A schematic diagram of a target scene in an external parameter calibration method provided by an embodiment of the present disclosure is shown;

[0062] Figure 3 A flowchart of a specific method for generating rotation angle data and displacement data based on point cloud data collected by different radar devices in an external parameter calibration method provided by an embodiment of the present disclosure is shown;

[0063] Figure 4 A flowchart of a specific method for extracting ground point cloud data belonging to the ground from point cloud data collected by different radar devices in an external parameter calibration method provided by an embodiment of the present disclosure is shown;

[0064] Figure 5 A schematic diagram showing a method for determining a second height threshold in an external parameter calibration method provided in an embodiment of the present disclosure is shown;

[0065] Figure 6 A schematic diagram of the architecture of an external parameter calibration device provided by an embodiment of the present disclosure is shown;

[0066] Figure 7 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0068] Generally, a radar can be installed on the roof of a vehicle, but due to the limitations of the radar harness and the installation angle, the vehicle after installing the radar has a blind spot. Therefore, in order to eliminate the blind spot, multiple radars can be installed at different positions of the vehicle so that the multiple radars can work together to complete the detection of the vehicle's surrounding environment. In order to achieve the collaborative work of multiple radars, it is necessary to unify the point cloud data obtained by the detection of multiple radars in the same coordinate system to achieve external parameter calibration between radars. In order to complete the external parameter calibration between radars, the embodiment of the present disclosure provides an external parameter calibration method.

[0069] The defects existing in the above solutions are the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed by the present disclosure for the above problems below should be the contributions made by the inventor to the present disclosure during the disclosure process.

[0070] The technical solutions in the present disclosure will be clearly and completely described below in conjunction with the drawings in the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0071] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0072] To facilitate understanding of the embodiments of the present disclosure, a method for calibrating an external parameter disclosed in the embodiments of the present disclosure is first introduced in detail. The execution subject of the method for calibrating an external parameter provided in the embodiments of the present disclosure is generally a computer device with a certain computing capability, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device may be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the method for calibrating an external parameter may be implemented by a processor calling a computer-readable instruction stored in a memory.

[0073] See also Figure 1 FIG. 1 is a flow chart of an external parameter calibration method provided in an embodiment of the present disclosure, the method comprising S101-S103, wherein:

[0074] S101, obtaining point cloud data of the same target scene obtained by respectively collecting data from at least two radar devices installed on the target vehicle;

[0075] S102, generating rotation angle data and displacement data based on the point cloud data collected by different radar devices; wherein the rotation angle data is used to characterize the angle deviation of the point cloud data collected by different radar devices in different directions, and the displacement data is used to characterize the displacement deviation of the point cloud data collected by different radar devices in different directions;

[0076] S103, determining a coordinate system conversion matrix between different radar devices based on the rotation angle data and the displacement data.

[0077] By adopting the above method, point cloud data obtained by respectively collecting the same target scene by at least two radar devices installed on the target vehicle are obtained, rotation angle data and displacement data are generated based on the point cloud data collected by different radar devices, and then the rotation angle data and displacement data are used to determine the coordinate system conversion matrix between different radar devices, thereby realizing automatic external parameter calibration between different radar devices. Compared with the manual calibration process, the efficiency and accuracy of the external parameter calibration are improved.

[0078] S101 to S103 are described in detail below.

[0079] For S101:

[0080] Here, the target vehicle may be parked on a straight road, and the target scene may include a plurality of three-dimensional identification objects placed around the target vehicle. Exemplarily, a plurality of placement areas may be set around the target vehicle, and at least one three-dimensional identification object may be placed in each placement area, forming a target scene where the target vehicle is located. The three-dimensional identification object may be any three-dimensional object, for example, the three-dimensional identification object may be a cone barrel, etc. Among them, the area where the detection ranges of different radar devices overlap may be determined, and within the determined overlapping area, a plurality of placement areas may be determined, so that different radar devices may detect the point cloud data of each placed cone barrel.

[0081] See also Figure 2 A schematic diagram of a target scene in an external parameter calibration method shown in FIG. 1 includes a target vehicle 21 and eight cone barrels 22 placed around the target vehicle 21. After the cone barrels are placed, it is necessary to avoid blocking each other between the cone barrels. For example, Figure 2 As shown, the position range of the determined placement area is within the range of 2 meters to 4 meters horizontally and 7 meters to 10 meters vertically from the center of the target vehicle as the origin.

[0082] The positions and numbers of the multiple radar devices installed on the target vehicle can be set as needed; and the models or types of the multiple radar devices can also be set as needed. In one application scenario, a main radar device can be set at the center of the roof position on the target vehicle, and the main radar device installed on the target vehicle can be a 64-line laser radar; an auxiliary radar device can be set on the side of the target vehicle (for example, the auxiliary radar device can be set on one side of the target vehicle, or on both sides of the target vehicle), and the auxiliary radar device installed on the target vehicle can be a 16-line laser radar.

[0083] The following is a specific description of an application scenario in which at least two radar devices including a main radar device and an auxiliary radar device are arranged on a target vehicle.

[0084] In specific implementation, after the target scene is constructed, the first point cloud data corresponding to the target scene collected by the main radar device installed on the target vehicle and the second point cloud data corresponding to the target scene collected by the auxiliary radar device installed on the target vehicle can be obtained; when there are multiple auxiliary radar devices, the second point cloud data collected by each auxiliary radar device can be obtained respectively. The point cloud data may include the three-dimensional coordinate data of multiple point cloud points, and may also include the reflection intensity information, color information, etc. of each point cloud point.

[0085] For S102:

[0086] Continuing with the example of the application scenario in the above S101, after obtaining the first point cloud data and the second point cloud data, the rotation angle data and the displacement data corresponding to the auxiliary radar device can be generated based on the first point cloud data and the second point cloud data; when there are multiple auxiliary radar devices, for each auxiliary radar device, the rotation angle data and the displacement data corresponding to the auxiliary radar device can be determined based on the first point cloud data and the second point cloud data collected by the auxiliary radar device.

[0087] Among them, the rotation angle data is used to characterize the angular deviation of the point cloud data collected by different radar devices in different directions, and the displacement data is used to characterize the displacement deviation of the point cloud data collected by different radar devices in different directions. For example, in the application scenario mentioned above, the rotation angle data can be used to characterize the angular deviation of the first point cloud data collected by the main radar device and the second point cloud data collected by the auxiliary radar device in different directions. The rotation angle data can be characterized by Euler angle data, and the rotation angle data may include pitch angle, yaw angle, and roll angle; the displacement data can be used to characterize the displacement deviation of the first point cloud data collected by the main radar device and the second point cloud data collected by the auxiliary radar device in different directions, and the displacement data includes the deviation in the length direction, the deviation in the width direction, and the deviation in the height direction.

[0088] In an alternative embodiment, see Figure 3 As shown, based on the point cloud data collected by different radar devices, rotation angle data and displacement data are generated, including:

[0089] S301, extracting ground point cloud data belonging to the ground from the point cloud data collected by different radar devices respectively; and based on the ground point cloud data extracted from the point cloud data collected by different radar devices respectively, generating the roll angle and pitch angle in the rotation angle data, and the height value in the displacement data.

[0090] S302, based on other point cloud data except the ground point cloud data in the point cloud data collected by different radar devices, determine the yaw angle in the rotation angle data, and the length value and width value in the displacement data.

[0091] Since the roll angle, pitch angle and height value are related to the ground point cloud data belonging to the ground, and the yaw angle, length value and width value are related to other point cloud data except the ground point cloud data, the ground point cloud data belonging to the ground can be first extracted from the point cloud data collected by different radar devices, and the roll angle and pitch angle in the rotation angle data and the height value in the displacement data can be generated based on the extracted ground point cloud data corresponding to different radar devices respectively; and then the yaw angle in the rotation angle data and the length value and width value in the displacement data can be determined by using other point cloud data corresponding to different radar devices respectively.

[0092] For S301, taking the application scenario described above as an example, first ground point cloud data belonging to the ground can be extracted from the first point cloud data collected by the main radar device, and second ground point cloud data belonging to the ground can be extracted from the second point cloud data collected by the auxiliary radar device; that is, the first point cloud data is divided into first ground point cloud data belonging to the ground, and first other point cloud data except the first ground point cloud data, and the second point cloud data is divided into second ground point cloud data belonging to the ground, and second other point cloud data except the second ground point cloud data.

[0093] Furthermore, based on the first ground point cloud data and the second ground point cloud data, the roll angle roll and the pitch angle pitch in the rotation angle data and the height value in the displacement data can be generated.

[0094] The following specifically describes the process of extracting ground point cloud data belonging to the ground from the point cloud data collected by different radar devices in S301.

[0095] In an alternative embodiment, see Figure 4 As shown, ground point cloud data belonging to the ground are extracted from point cloud data collected by different radar devices, including:

[0096] S401, for each radar device among the different radar devices, based on the azimuth angle pointing from the position of the radar device to the position of each point cloud point in the point cloud data collected by the radar device, dividing the point cloud points in the point cloud data collected by the radar device into a plurality of groups, wherein the difference between the azimuth angles corresponding to the point cloud points in the same group is less than a set threshold;

[0097] S402, for each group, based on the height difference between the point cloud points in the group and the point cloud points adjacent to it, determine the point cloud points in the group that belong to the ground;

[0098] S403, based on the point cloud points belonging to the ground in each group, determining the ground point cloud data belonging to the ground in the point cloud data collected by the radar device.

[0099] Here, the point cloud points in the point cloud data can be divided into multiple groups according to the direction angle of the position of the radar device pointing to the position of each point cloud point in the point cloud data collected by the radar device. Generally, the height difference between adjacent ground point cloud points in a group is small. Therefore, for each group, the point cloud points belonging to the ground in the group can be more accurately determined based on the height difference between the point cloud points in the group and the point cloud points adjacent to it, and then the ground point cloud data belonging to the ground in the point cloud data can be more accurately determined.

[0100] In S401, for each radar device installed on the target vehicle, the direction angle from the position of the radar device to the position of each point cloud point in the point cloud data collected by the radar device is determined, and the direction angle is the angle between the line from the position of the radar device to the position of each point cloud point in the point cloud data collected by the radar device and a preset reference line. Based on the direction angle corresponding to each point cloud point, the point cloud points in the point cloud data collected by the radar device are divided into multiple groups, wherein the difference between the direction angles corresponding to the point cloud points in the same group is less than a set threshold.

[0101] Among them, the number of groups to be set can be determined as needed. For example, the number of groups to be set can be 2400, and 360 degrees are divided into 2400 intervals, that is, the angle range corresponding to each group is (0°~0.15°], (0.15°~0.30°], (0.30°~0.45°], ..., (359.70°~359.85°] (359.85°~360°], it can be seen that the difference between the direction angles corresponding to the point cloud points in each group is less than 0.15° (set threshold). After determining the direction angle corresponding to each point cloud point, the group identifier corresponding to the point cloud point can be determined according to the direction angle. For example, if the direction angle corresponding to point cloud point A is 0.20°, it is determined that point cloud point A belongs to the second group with an angle range of (0.15°~0.30°]; if the direction angle corresponding to point cloud point B is 360°, it is determined that point cloud point A belongs to the 2400th group with an angle range of (359.85°~360°]. Furthermore, the point cloud points in the point cloud data are divided into multiple groups according to the direction angles corresponding to each point cloud point.

[0102] In S402, in an optional implementation manner, for each group, based on the height difference between the point cloud points in the group and the point cloud points adjacent to the group, determining the point cloud points in the group that belong to the ground includes:

[0103] Step 1: Sort the point cloud points in the group based on the distance between each point cloud point in the group and the radar device that collected the point cloud point;

[0104] Step 2: for each sorted point cloud point, determine the height difference between the point cloud point and its adjacent point cloud points;

[0105] Step three: when the height difference is less than or equal to the set first height threshold, and the height of the point cloud point is less than the second height threshold corresponding to the point cloud point, determine that the point cloud point belongs to the ground.

[0106] Taking into account the small height difference between adjacent ground point cloud points, and after the installation height of the radar equipment is determined, the height value of the ground point cloud point is consistent with the installation height of the radar equipment, so here after sorting the point cloud points in the group, for each sorted point cloud point, the height difference between the point cloud point and the point cloud point adjacent to it is determined. When the height difference is less than or equal to the set first height threshold, and the height of the point cloud point is less than the second height threshold corresponding to the point cloud point, it is determined that the point cloud point belongs to the ground, thereby more accurately determining the ground point cloud points in the group.

[0107] In the disclosed embodiment, for each group, the distance between each point cloud point in the group and the radar device that collected the point cloud point is used to sort the point cloud points in the group. In specific implementation, the distance between each point cloud point and the radar device that collected the point cloud point can be determined based on the horizontal coordinate value and the vertical coordinate value in the three-dimensional coordinate data of each point cloud point, and the point cloud points in the group can be sorted using the determined distance corresponding to each point cloud point.

[0108] For each sorted point cloud point, determine the height difference between the point cloud point and its adjacent point cloud point; if the height difference is less than or equal to the set first height threshold, and the height of the point cloud point is less than the second height threshold corresponding to the point cloud point, determine that the point cloud point belongs to the ground; if the height difference is greater than the set first height threshold, and / or the height of the point cloud point is greater than or equal to the second height threshold corresponding to the point cloud point, determine that the point cloud point does not belong to the ground.

[0109] For example, if the sorted point cloud points include: point cloud point one, point cloud point two, point cloud point three, and point cloud point four, then for point cloud point one, use the height h1 in the three-dimensional coordinate data of point cloud point one and the height h2 in the three-dimensional coordinate data of point cloud point two to calculate the height difference between point cloud point one and point cloud point two, that is, h2-h1. If the height difference is less than or equal to the set first height threshold, and the height h1 of point cloud point one is less than the second height threshold corresponding to point cloud point one, it is determined that the point cloud point belongs to the ground; if the height difference is greater than the set first height threshold, or the height h1 of point cloud point one is greater than or equal to the second height threshold corresponding to point cloud point one, it is confirmed that point cloud point one does not belong to the ground, that is, point cloud point one is not a ground point cloud point. Since point cloud point four is the last point cloud point after sorting, the height difference between point cloud point four and point cloud point three can be calculated. If the height difference is less than or equal to the set first height threshold, and the height h4 of point cloud point four is less than the second height threshold corresponding to point cloud point four, it is determined that the point cloud point belongs to the ground.

[0110] For each point cloud point, the second height threshold corresponding to each point cloud point can be determined according to the following steps:

[0111] 1. Based on the coordinate information of the point cloud point, determine the target distance between the point cloud point and the radar device that collects the point cloud point on the horizontal plane;

[0112] 2. Determine a second height threshold corresponding to the point cloud point based on the installation height, target distance, and set plane angle of the radar device that collects the point cloud point.

[0113] In specific implementation, the target distance between the point cloud point and the radar device that collected the point cloud point on the horizontal plane is calculated for the coordinate information (horizontal coordinate value and vertical coordinate value) of the point cloud point. The plane height corresponding to the point cloud point is determined using the tangent value of the set plane angle and the target distance; then, based on the installation height of the radar device that collected the point cloud point and the plane height corresponding to the point cloud point, the second height threshold corresponding to the point cloud point is determined. Among them, the plane angle is used to characterize the degree of inclination of the plane, and the plane angle can be determined according to the actual scene. For example, the plane angle can be 5°.

[0114] See also Figure 5 As shown, the figure includes a radar device 51 for collecting a point cloud point 52, a point cloud point 52, and a ground 53, wherein the installation height of the radar device is h, the second height threshold corresponding to the point cloud point 52 is H, the plane angle is set to θ, and l is the target distance. That is, the plane height h0 corresponding to the point cloud point can be determined by using the tangent value of the plane angle and the target distance, and the second height threshold corresponding to the point cloud point is determined based on the installation height of the radar device 51 and the determined plane height corresponding to the point cloud point. For example, the second height threshold can be H=h-h0+a, and the value of a can be set as needed, such as a can be 0.08. Alternatively, the second height threshold can be H=h-h0.

[0115] Since the ground may have a slope (i.e., the ground has a corresponding plane angle), the height distance between the ground and the radar device at different locations is different, that is, the point cloud points at different locations may correspond to different second height thresholds. Therefore, for each point cloud point, the second height threshold corresponding to the point cloud point can be determined, and then it can be more accurately determined whether each point cloud point belongs to a ground point cloud point.

[0116] In S403, the ground point cloud data belonging to the ground in the point cloud data can be determined based on the point cloud points belonging to the ground in each group, that is, the point cloud data of each point cloud point belonging to the ground in each group constitutes the ground point cloud data in the point cloud data.

[0117] The following specifically describes the process of determining the roll angle and pitch angle in the rotation angle data and the height value in the displacement data in S301.

[0118] In an optional implementation, generating the roll angle and pitch angle in the rotation angle data and the height value in the displacement data based on the ground point cloud data extracted from the point cloud data collected by different radar devices respectively includes:

[0119] Step 1: based on the ground point cloud data extracted from the point cloud data collected by different radar devices, generate ground fitting parameters corresponding to each radar device in different radar devices;

[0120] Step 2: Based on the ground fitting parameters corresponding to different radar devices, the roll angle and pitch angle in the rotation angle data and the height value in the displacement data are determined.

[0121] In step 1, the ground point cloud data corresponding to each radar device in different radar devices can be fitted respectively to generate ground fitting parameters corresponding to each radar device. There are many methods for fitting ground point cloud data, which are only illustrated here. For example, the ground point cloud data can be fitted using a random sample consensus algorithm (RANSAC) to generate ground fitting parameters corresponding to the ground point cloud data.

[0122] In step 2, in an optional implementation, based on the ground fitting parameters corresponding to different radar devices, respectively, determining the roll angle and pitch angle in the rotation angle data and the height value in the displacement data includes:

[0123] 1. Based on the ground fitting parameters corresponding to different radar devices, determine the normal lines of the fitting planes corresponding to the ground fitting parameters of the different radar devices;

[0124] 2. Generate the roll angle and pitch angle in the rotation angle data based on the normal of the fitting plane corresponding to the ground fitting parameters of different radar devices;

[0125] 3. Based on the roll angle and the pitch angle in the rotation angle data, adjust the ground fitting parameters corresponding to the first radar device among the different radar devices to obtain adjusted ground fitting parameters; wherein the fitting plane corresponding to the adjusted ground fitting parameters is parallel to the fitting plane corresponding to the unadjusted ground fitting parameters corresponding to the different radar devices;

[0126] 4. Determine the height value in the displacement data based on the unadjusted ground fitting parameters and the adjusted ground fitting parameters corresponding to different radar devices.

[0127] The first radar device among the different radar devices may be any radar device. For example, in the application scenario described above, the first radar device may be a main radar device among the different radar devices, or may be an auxiliary radar device.

[0128] Here, the first ground fitting parameters corresponding to the main radar device and the second ground fitting parameters corresponding to the auxiliary radar device can be obtained, and then the first normal of the first fitting plane corresponding to the first ground fitting parameters and the second normal of the second fitting plane corresponding to the second ground fitting parameters can be determined. For example, when the first fitting parameters include A1, B1, C1, and D1, the first fitting equation corresponding to the first fitting plane is: A1x+B1y+C1z+D1=0; when the second fitting parameters include A2, B2, C2, and D2, the first fitting equation corresponding to the second fitting plane is: A2x+B2y+C2z+D2=0; it can be known that the normal vector of the first normal is (A1, B1, C1), and the normal vector of the second normal is (A2, B2, C2).

[0129] Considering that the normal vector of the first normal of the main radar device should be consistent with the normal vector of the second normal of the auxiliary radar device, the roll angle and pitch angle in the rotation angle data can be determined based on the normal vector of the first normal and the normal vector of the second normal.

[0130] Furthermore, based on the determined roll angle and pitch angle, the second ground fitting parameter can be adjusted to obtain the adjusted second ground fitting parameter, wherein the second fitting plane corresponding to the adjusted second ground fitting parameter is parallel to the first fitting plane; then based on the first ground fitting parameter and the adjusted second ground fitting parameter, the height value in the displacement data can be determined, that is, the distance between the second fitting plane corresponding to the adjusted second ground fitting parameter and the first fitting plane can be calculated, and the distance is the determined height value.

[0131] Alternatively, the first ground fitting parameter can be adjusted based on the determined roll angle and pitch angle to obtain the adjusted first ground fitting parameter, wherein the first fitting plane corresponding to the adjusted first ground fitting parameter is parallel to the second fitting plane; and then based on the second ground fitting parameter and the adjusted first ground fitting parameter, the height value in the displacement data can be determined, that is, the distance between the first fitting plane corresponding to the adjusted first ground fitting parameter and the second fitting plane can be calculated, and the distance is the determined height value.

[0132] Since the ground is fixed, the different normals corresponding to the ground should be parallel lines, so the roll angle and pitch angle in the rotation angle data can be generated based on the normals of the fitting planes corresponding to the ground fitting parameters of different radar devices; in addition, since the ground is a fixed plane, that is, the fitting planes corresponding to the ground fitting parameters of different radar devices are planes at the same height, after adjusting the ground fitting parameters corresponding to the first radar device in the different radar devices using the roll angle and the pitch angle, the height value in the displacement data can be determined based on the unadjusted ground fitting parameters and the adjusted ground fitting parameters corresponding to the different radar devices.

[0133] For S302 , illustratively, the yaw angle in the rotation angle data and the length value and width value in the displacement data may be determined based on the first other point cloud data corresponding to the primary radar device and the second other point cloud data corresponding to the secondary radar device.

[0134] In an optional embodiment, the method also includes: adjusting the point cloud data collected by the second radar device in the different radar devices based on the roll angle and pitch angle in the generated rotation angle data, and the height value in the displacement data, to generate adjusted point cloud data; wherein the adjusted point cloud data and the unadjusted point cloud data collected in the different radar devices are located in the same plane.

[0135] Based on other point cloud data except ground point cloud data in point cloud data collected by different radar devices, the yaw angle in the rotation angle data, and the length value and width value in the displacement data are determined, including: based on other point cloud data in point cloud data collected by other radar devices except the second radar device in different radar devices, and other point cloud data in the adjusted point cloud data corresponding to the second radar device, the yaw angle in the rotation angle data, and the length value and width value in the displacement data are determined.

[0136] In specific implementation, the generated roll angle, pitch angle, and height value, and the set initial yaw angle, initial length value, and initial width value can be used to generate an intermediate coordinate system conversion matrix; the generated intermediate coordinate system conversion matrix is ​​used to adjust the point cloud data collected by the second radar device to generate adjusted point cloud data. The second radar device in the different radar devices can be any radar device.

[0137] In the application scenario, the generated roll angle, pitch angle, and height value can be used to adjust the second point cloud data collected by the auxiliary radar device to generate adjusted second point cloud data, so that the adjusted second point cloud data and the unadjusted first point cloud data are located in the same plane; or the first point cloud data collected by the main radar device can be adjusted to generate adjusted first point cloud data, so that the adjusted first point cloud data and the unadjusted second point cloud data are located in the same plane.

[0138] After generating the adjusted second point cloud data, the yaw angle in the rotation angle data and the length value and width value in the displacement data can be determined based on the first other point cloud data in the first point cloud data except the first ground point cloud data, and the second other point cloud data in the adjusted second point cloud data except the second ground point cloud data.

[0139] Alternatively, the generated intermediate coordinate system conversion matrix can be used here to adjust the second other point cloud data in the second point cloud data except the second ground point cloud data to generate adjusted second other point cloud data; and then use the first other point cloud data and the adjusted second other point cloud data to determine the yaw angle in the rotation angle data, and the length value and width value in the displacement data.

[0140] In an optional implementation, based on other point cloud data except ground point cloud data in point cloud data collected by different radar devices, determining the yaw angle in the rotation angle data and the length value and width value in the displacement data includes:

[0141] Step 1: clustering the other point cloud data corresponding to different radar devices based on the length coordinate value and the width coordinate value of each point cloud point indicated by the other point cloud data corresponding to different radar devices, to obtain a plurality of clustered point cloud sets corresponding to the other point cloud data of different radar devices; wherein each point cloud set corresponds to a three-dimensional identification object;

[0142] Step 2: Based on the coordinate information of the point cloud points included in each point cloud set, determine the average coordinate information corresponding to the point cloud set;

[0143] Step 3: Based on the average coordinate information corresponding to the multiple point cloud sets, determine the yaw angle in the rotation angle data, and the length value and width value in the displacement data.

[0144] In step 1, in the application scenario, the first other point cloud data can be clustered based on the length coordinate value and the width coordinate value of each point cloud point indicated by the first other point cloud data corresponding to the main radar device, to obtain at least one first point cloud set after clustering corresponding to the main radar device. In specific implementation, the number of first point cloud sets obtained after clustering is consistent with the number of cone barrels (three-dimensional identification objects) set in the target scene. For example, if the number of cone barrels set in the target scene is 8, then clustering can obtain 8 first point cloud sets.

[0145] At the same time, the second other point cloud data can also be clustered based on the length coordinate value and width coordinate value of each point cloud point indicated by the second other point cloud data to obtain at least one second point cloud point cloud set after clustering corresponding to the auxiliary radar device. Since the auxiliary radar device is set on the side of the target vehicle, the auxiliary radar device can only detect one side of the target vehicle. If there are 4 cone barrels on the left side of the target vehicle and 4 cone barrels on the right side of the target vehicle in the target scene, the first auxiliary radar device is installed on the left side of the target vehicle, and the second auxiliary radar device is installed on the right side of the target vehicle, then after clustering the second other point cloud data collected by the first auxiliary radar device, the 4 second point cloud sets corresponding to the first auxiliary radar device can be obtained; and after clustering the second other point cloud data collected by the second auxiliary radar device, the 4 second point cloud sets corresponding to the second auxiliary radar device can be obtained.

[0146] Furthermore, the eight first point cloud sets clustered by the main radar device can be divided into two categories according to the left position and the right position, the left side being the first category and the right side being the second category, and the yaw angle, length value and width value of the first auxiliary radar device can be determined based on the first point cloud set of the first category and the four second point cloud sets corresponding to the first auxiliary radar device; and the yaw angle, length value and width value of the second auxiliary radar device can be determined based on the first point cloud set of the second category and the four second point cloud sets corresponding to the second auxiliary radar device.

[0147] In specific implementation, there are many methods for clustering other point cloud data, which are not specifically limited here. For example, the RANSAC algorithm can be used to cluster other point cloud data to obtain a point cloud set.

[0148] In step two, for each first point cloud set, the coordinate information of each point cloud point included in the first point cloud set is averaged to determine the first average coordinate information corresponding to the first point cloud set, and then the first average coordinate information of each first point cloud set can be obtained; and for each second point cloud set, the coordinate information of each point cloud point included in the second point cloud set is averaged to determine the second average coordinate information corresponding to the second point cloud set, and then the second average coordinate information of each second point cloud set can be obtained.

[0149] In step three, the yaw angle, the length value, and the width value may be determined based on first average coordinate information corresponding to at least one first point cloud set and second average coordinate information corresponding to at least one second point cloud set.

[0150] When there are multiple auxiliary radar devices, for each auxiliary radar device, a first point cloud set corresponding to the auxiliary radar device is determined from at least one first point cloud set corresponding to the main radar device, and then the yaw angle, length value and width value corresponding to the auxiliary radar device can be determined based on the first average coordinate information of the first point cloud set corresponding to the auxiliary radar device and the second average coordinate information corresponding to at least one second point cloud set corresponding to the auxiliary radar device.

[0151] In specific implementation, the iterative closest point algorithm (ICP) can be used to determine the yaw angle in the rotation angle data and the length and width values ​​in the displacement data based on the first average coordinate information corresponding to at least one first point cloud set and the second average coordinate information corresponding to at least one second point cloud set.

[0152] In the above implementation, each point cloud set after clustering corresponds to a three-dimensional identification object. Since the position of the three-dimensional identification object is fixed, the three-dimensional identification object can be used as a reference point to determine the yaw angle in the rotation angle data and the length and width values ​​in the displacement data.

[0153] For S103:

[0154] After the rotation angle data and the displacement data are determined, a coordinate system conversion matrix between the primary radar device and the secondary radar device may be determined based on the rotation angle data and the displacement data.

[0155] The coordinate system transformation matrix can be determined according to the following formula:

[0156]

[0157] Among them, T 3D is the coordinate system transformation matrix, T is the three-dimensional vector composed of displacement data, and R is the rotation matrix determined by the rotation angle data.

[0158] In an optional implementation, after determining the coordinate system conversion matrix between different radar devices, the method further includes:

[0159] Step 1: Use the generated coordinate system conversion matrix to convert the point cloud data collected by different radar devices into the same coordinate system;

[0160] Step 2: After the conversion, the point cloud data is used to determine the position and posture data of the target object.

[0161] In the application scenario, after generating the coordinate system conversion matrix, preferably, the generated coordinate system conversion matrix can be used to convert the second point cloud data collected by the auxiliary radar device to the coordinate system where the first point cloud data collected by the main radar device is located; then the first point cloud data and the second point cloud data after the coordinate conversion are fused, and the fused point cloud data are used to determine the position and posture data of the target object detected by the target vehicle during the movement. Alternatively, the generated coordinate system conversion matrix can be used to convert the first point cloud data collected by the main radar device to the coordinate system where the second point cloud data collected by the auxiliary radar device is located; then the second point cloud data and the first point cloud data after the coordinate conversion are fused, and the fused point cloud data are used to determine the position and posture data of the target object detected by the target vehicle during the movement.

[0162] Furthermore, the target vehicle can be controlled based on the position data of the target object detected by the target vehicle during its movement. For example, the acceleration, deceleration, steering, braking, etc. of the target vehicle can be controlled, or voice prompt information can be played to prompt the driver to control the acceleration, deceleration, steering, braking, etc. of the target vehicle.

[0163] By adopting the above method, the point cloud data collected by different radar devices can be converted to the same coordinate system using the generated coordinate system conversion matrix. Since the generated coordinate system conversion matrix has a high accuracy, the second point cloud data after the coordinate conversion is more accurate, thereby improving the accuracy of the determined position and posture data of the target object.

[0164] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0165] Based on the same concept, the present disclosure also provides an external parameter calibration device, see Figure 6 As shown, it is a schematic diagram of the architecture of the external parameter calibration device provided by the embodiment of the present disclosure, including an acquisition module 601, a generation module 602, and a determination module 603. Specifically:

[0166] An acquisition module 601 is used to acquire point cloud data obtained by at least two radar devices installed on a target vehicle respectively collecting the same target scene;

[0167] A generating module 602 is used to generate rotation angle data and displacement data based on the point cloud data collected by different radar devices; wherein the rotation angle data is used to characterize the angle deviation of the point cloud data collected by different radar devices in different directions, and the displacement data is used to characterize the displacement deviation of the point cloud data collected by different radar devices in different directions;

[0168] The determination module 603 is used to determine the coordinate system conversion matrix between different radar devices based on the rotation angle data and the displacement data.

[0169] In a possible implementation, the generating module 602, when generating the rotation angle data and the displacement data based on the point cloud data collected by different radar devices, is used to:

[0170] Extracting ground point cloud data belonging to the ground from the point cloud data collected by different radar devices respectively; and generating a roll angle and a pitch angle in the rotation angle data, and a height value in the displacement data based on the ground point cloud data extracted from the point cloud data collected by different radar devices respectively;

[0171] Based on other point cloud data except the ground point cloud data in the point cloud data collected by different radar devices, the yaw angle in the rotation angle data and the length value and the width value in the displacement data are determined.

[0172] In a possible implementation manner, the generating module 602, when extracting ground point cloud data belonging to the ground from point cloud data collected by different radar devices, is used to:

[0173] For each radar device among the different radar devices, based on the direction angle pointing from the position of the radar device to the position of each point cloud point in the point cloud data collected by the radar device, the point cloud points in the point cloud data collected by the radar device are divided into a plurality of groups, wherein the difference between the direction angles respectively corresponding to the point cloud points in the same group is less than a set threshold;

[0174] For each group, based on the height difference between the point cloud points in the group and the point cloud points adjacent to it, determine the point cloud points in the group that belong to the ground;

[0175] Based on the point cloud points belonging to the ground in each group, the ground point cloud data belonging to the ground in the point cloud data collected by the radar device is determined.

[0176] In a possible implementation manner, the generating module 602, when determining, for each group, the point cloud points in the group that belong to the ground based on the height difference between the point cloud points in the group and the point cloud points adjacent to the group, is configured to:

[0177] sorting the point cloud points in the group based on the distance between each point cloud point in the group and the radar device that collected the point cloud point;

[0178] For each sorted point cloud point, determine the height difference between the point cloud point and its adjacent point cloud points;

[0179] When the height difference is less than or equal to a set first height threshold and the height of the point cloud point is less than a second height threshold corresponding to the point cloud point, it is determined that the point cloud point belongs to the ground.

[0180] In a possible implementation manner, the generating module 602 is used to determine the second height threshold corresponding to each point cloud point according to the following steps:

[0181] Based on the coordinate information of the point cloud point, determining the target distance on the horizontal plane between the point cloud point and the radar device that collected the point cloud point;

[0182] The second height threshold corresponding to the point cloud point is determined based on the installation height of the radar device that collects the point cloud point, the target distance, and the set plane angle.

[0183] In a possible implementation manner, the generating module 602, when generating the roll angle and pitch angle in the rotation angle data and the height value in the displacement data based on the ground point cloud data extracted from the point cloud data collected by different radar devices, is used to:

[0184] Based on the ground point cloud data extracted from the point cloud data collected by different radar devices, respectively, generating ground fitting parameters corresponding to each radar device in the different radar devices;

[0185] Based on the ground fitting parameters respectively corresponding to different radar devices, the roll angle and pitch angle in the rotation angle data and the height value in the displacement data are determined.

[0186] In a possible implementation manner, the generating module 602, when determining the roll angle and the pitch angle in the rotation angle data and the height value in the displacement data based on the ground fitting parameters respectively corresponding to different radar devices, is configured to:

[0187] Based on the ground fitting parameters respectively corresponding to the different radar devices, determining the normals of the fitting planes corresponding to the ground fitting parameters of the different radar devices;

[0188] generating a roll angle and a pitch angle in the rotation angle data based on normals of the fitting planes corresponding to the ground fitting parameters of different radar devices;

[0189] Based on the roll angle and the pitch angle in the rotation angle data, the ground fitting parameters corresponding to the first radar device among the different radar devices are adjusted to obtain adjusted ground fitting parameters; wherein the fitting plane corresponding to the adjusted ground fitting parameters is parallel to the fitting plane corresponding to the unadjusted ground fitting parameters corresponding to the different radar devices;

[0190] Based on the unadjusted ground fitting parameters and the adjusted ground fitting parameters respectively corresponding to the different radar devices, a height value in the displacement data is determined.

[0191] In a possible implementation manner, the device further includes: an adjustment module 604, configured to:

[0192] Based on the roll angle and pitch angle in the generated rotation angle data and the height value in the displacement data, adjusting the point cloud data collected by the second radar device in the different radar devices to generate adjusted point cloud data; wherein the adjusted point cloud data and the unadjusted point cloud data collected in the different radar devices are located in the same plane;

[0193] The generating module 602, when determining the yaw angle in the rotation angle data and the length value and the width value in the displacement data based on other point cloud data except the ground point cloud data in the point cloud data collected by different radar devices, is used to:

[0194] Based on the other point cloud data in the point cloud data collected by other radar devices among the different radar devices except the second radar device, and the other point cloud data in the adjusted point cloud data corresponding to the second radar device, the yaw angle in the rotation angle data, and the length value and width value in the displacement data are determined.

[0195] In a possible implementation manner, the target vehicle is parked on a straight road, and the target scene includes a plurality of three-dimensional identification objects placed around the target vehicle;

[0196] The generating module 602, when determining the yaw angle in the rotation angle data and the length value and the width value in the displacement data based on other point cloud data except the ground point cloud data in the point cloud data collected by different radar devices, is used to:

[0197] Based on the length coordinate value and the width coordinate value of each point cloud point indicated by the other point cloud data corresponding to the different radar devices, the other point cloud data corresponding to the different radar devices are clustered to obtain a plurality of clustered point cloud sets corresponding to the other point cloud data of the different radar devices; wherein each point cloud set corresponds to one of the three-dimensional identification objects;

[0198] Based on the coordinate information of the point cloud points included in each point cloud set, determining the average coordinate information corresponding to the point cloud set;

[0199] Based on the average coordinate information respectively corresponding to the plurality of point cloud sets, the yaw angle in the rotation angle data and the length value and the width value in the displacement data are determined.

[0200] In a possible implementation manner, after determining the coordinate system conversion matrix between different radar devices, the apparatus further includes: a conversion module 605, configured to:

[0201] Using the generated coordinate system conversion matrix, the point cloud data collected by the different radar devices are converted into the same coordinate system;

[0202] Based on the converted point cloud data, the pose data of the target object is determined.

[0203] In some embodiments, the functions or templates contained in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0204] Based on the same technical concept, the embodiment of the present disclosure also provides an electronic device. Figure 7 As shown, it is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure, including a processor 701, a memory 702, and a bus 703. Among them, the memory 702 is used to store execution instructions, including a memory 7021 and an external memory 7022; the memory 7021 here is also called an internal memory, which is used to temporarily store the operation data in the processor 701, and the data exchanged with the external memory 7022 such as a hard disk. The processor 701 exchanges data with the external memory 7022 through the memory 7021. When the electronic device 700 is running, the processor 701 communicates with the memory 702 through the bus 703, so that the processor 701 executes the following instructions:

[0205] Acquire point cloud data of the same target scene obtained by respectively collecting at least two radar devices arranged on the target vehicle;

[0206] Generate rotation angle data and displacement data based on point cloud data collected by different radar devices; wherein the rotation angle data is used to characterize the angular deviation of point cloud data collected by different radar devices in different directions, and the displacement data is used to characterize the displacement deviation of point cloud data collected by different radar devices in different directions;

[0207] Based on the rotation angle data and the displacement data, a coordinate system conversion matrix between different radar devices is determined.

[0208] In addition, the embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the external parameter calibration method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0209] The embodiments of the present disclosure also provide a computer program product, which carries a program code. The instructions included in the program code can be used to execute the steps of the external parameter calibration method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0210] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0211] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0212] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0213] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0214] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0215] The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for calibrating an external parameter, characterized in that: include: Acquire point cloud data of the same target scene obtained by respectively collecting at least two radar devices disposed on the target vehicle; Based on the point cloud data collected by different radar devices, rotation angle data and displacement data are generated; wherein the rotation angle data is used to characterize the angular deviation of the point cloud data collected by different radar devices in different directions, and the displacement data is used to characterize the displacement deviation of the point cloud data collected by different radar devices in different directions; the rotation angle data and the displacement data are determined based on the ground point cloud data and other point cloud data other than the ground point cloud data in the point cloud data collected by different radar devices; the ground point cloud data of the radar device is determined according to the following process: based on the point cloud data collected by the radar device pointing from the position of the radar device After dividing the point cloud points in the point cloud data collected by the radar device into a plurality of groups based on the direction angle of the position of each point cloud point in the point cloud data, for each group, sorting the point cloud points in the group based on the distance between each point cloud point in the group and the radar device that collected the point cloud point; for each sorted point cloud point, determining the height difference between the point cloud point and the point cloud point adjacent to it; determining that the point cloud point belongs to the ground when the height difference is less than or equal to a set first height threshold and the height of the point cloud point is less than a second height threshold corresponding to the point cloud point; and determining the ground point cloud data according to the point cloud points belonging to the ground; Based on the rotation angle data and the displacement data, a coordinate system conversion matrix between different radar devices is determined.

2. The method according to claim 1, characterized in that The point cloud data collected based on different radar devices is used to generate rotation angle data and displacement data, including: Extracting ground point cloud data belonging to the ground from the point cloud data collected by different radar devices respectively; and generating a roll angle and a pitch angle in the rotation angle data, and a height value in the displacement data based on the ground point cloud data extracted from the point cloud data collected by different radar devices respectively; Based on other point cloud data except the ground point cloud data in the point cloud data collected by different radar devices, the yaw angle in the rotation angle data and the length value and the width value in the displacement data are determined.

3. The method according to claim 2, characterized in that The extracting of ground point cloud data belonging to the ground from the point cloud data collected by different radar devices respectively includes: For each radar device among the different radar devices, based on the direction angle pointing from the position of the radar device to the position of each point cloud point in the point cloud data collected by the radar device, the point cloud points in the point cloud data collected by the radar device are divided into a plurality of groups, wherein the difference between the direction angles respectively corresponding to the point cloud points in the same group is less than a set threshold; For each group, based on the height difference between the point cloud points in the group and the point cloud points adjacent to it, determine the point cloud points in the group that belong to the ground; Based on the point cloud points belonging to the ground in each group, the ground point cloud data belonging to the ground in the point cloud data collected by the radar device is determined.

4. The method according to claim 1, characterized in that: Determine the second height threshold corresponding to each point cloud point according to the following steps: Based on the coordinate information of the point cloud point, determining the target distance on the horizontal plane between the point cloud point and the radar device that collected the point cloud point; The second height threshold corresponding to the point cloud point is determined based on the installation height of the radar device that collects the point cloud point, the target distance, and the set plane angle.

5. The method according to any one of claims 2 to 4, characterized in that: The generating of the roll angle and the pitch angle in the rotation angle data and the height value in the displacement data based on the ground point cloud data extracted from the point cloud data collected by different radar devices respectively comprises: Based on the ground point cloud data extracted from the point cloud data collected by different radar devices, respectively, generating ground fitting parameters corresponding to each radar device in the different radar devices; Based on the ground fitting parameters respectively corresponding to different radar devices, the roll angle and pitch angle in the rotation angle data and the height value in the displacement data are determined.

6. The method according to claim 5, characterized in that Determining the roll angle and the pitch angle in the rotation angle data and the height value in the displacement data based on the ground fitting parameters respectively corresponding to different radar devices, including: Based on the ground fitting parameters respectively corresponding to the different radar devices, determining the normals of the fitting planes corresponding to the ground fitting parameters of the different radar devices; generating a roll angle and a pitch angle in the rotation angle data based on normals of the fitting planes corresponding to the ground fitting parameters of different radar devices; Based on the roll angle and the pitch angle in the rotation angle data, the ground fitting parameters corresponding to the first radar device among the different radar devices are adjusted to obtain adjusted ground fitting parameters; wherein the fitting plane corresponding to the adjusted ground fitting parameters is parallel to the fitting plane corresponding to the unadjusted ground fitting parameters corresponding to the different radar devices; Based on the unadjusted ground fitting parameters and the adjusted ground fitting parameters respectively corresponding to the different radar devices, a height value in the displacement data is determined.

7. The method according to any one of claims 2 to 4, characterized in that: The method further comprises: Based on the generated roll angle and pitch angle in the rotation angle data and the height value in the displacement data, adjusting the point cloud data collected by the second radar device in the different radar devices to generate adjusted point cloud data; wherein the adjusted point cloud data and the unadjusted point cloud data collected by the different radar devices are located in the same plane; The method of determining the yaw angle in the rotation angle data and the length value and the width value in the displacement data based on other point cloud data except the ground point cloud data in the point cloud data collected by different radar devices comprises: Based on the other point cloud data in the point cloud data collected by other radar devices among the different radar devices except the second radar device, and the other point cloud data in the adjusted point cloud data corresponding to the second radar device, the yaw angle in the rotation angle data, and the length value and width value in the displacement data are determined.

8. The method according to any one of claims 2 to 4, characterized in that: The target vehicle is parked on a straight road, and the target scene includes a plurality of three-dimensional identification objects placed around the target vehicle; Determining the yaw angle in the rotation angle data and the length value and the width value in the displacement data based on other point cloud data except the ground point cloud data in the point cloud data collected by different radar devices, including: Based on the length coordinate value and the width coordinate value of each point cloud point indicated by the other point cloud data corresponding to the different radar devices, the other point cloud data corresponding to the different radar devices are clustered to obtain a plurality of clustered point cloud sets corresponding to the other point cloud data of the different radar devices; wherein each point cloud set corresponds to one of the three-dimensional identification objects; Based on the coordinate information of the point cloud points included in each point cloud set, determining the average coordinate information corresponding to the point cloud set; Based on the average coordinate information respectively corresponding to the plurality of point cloud sets, the yaw angle in the rotation angle data and the length value and the width value in the displacement data are determined.

9. The method according to any one of claims 1 to 4, characterized in that: After determining the coordinate system conversion matrix between different radar devices, the method further includes: Using the generated coordinate system conversion matrix, the point cloud data collected by the different radar devices are converted into the same coordinate system; Based on the converted point cloud data, the pose data of the target object is determined.

10. An external parameter calibration device, characterized in that: include: An acquisition module, used to acquire point cloud data obtained by at least two radar devices installed on the target vehicle respectively collecting the same target scene; A generation module, for generating rotation angle data and displacement data based on point cloud data collected by different radar devices; wherein the rotation angle data is used to characterize the angular deviation of point cloud data collected by different radar devices in different directions, and the displacement data is used to characterize the displacement deviation of point cloud data collected by different radar devices in different directions; the rotation angle data and the displacement data are determined based on ground point cloud data and other point cloud data other than ground point cloud data in the point cloud data collected by different radar devices; the ground point cloud data of the radar device is determined according to the following process: based on the position of the radar device pointing to the ground point cloud data collected by the radar device The direction angle of the position of each point cloud point in the point cloud data, after dividing the point cloud points in the point cloud data collected by the radar device into multiple groups, for each group, based on the distance between each point cloud point in the group and the radar device that collected the point cloud point, sort the point cloud points in the group; for each sorted point cloud point, determine the height difference between the point cloud point and the point cloud point adjacent to it; when the height difference is less than or equal to a set first height threshold and the height of the point cloud point is less than a second height threshold corresponding to the point cloud point, determine that the point cloud point belongs to the ground; determine the ground point cloud data according to the point cloud points belonging to the ground; A determination module is used to determine a coordinate system conversion matrix between different radar devices based on the rotation angle data and the displacement data.

11. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the external parameter calibration method as described in any one of claims 1 to 9 are performed.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the external parameter calibration method as described in any one of claims 1 to 9 are executed.