Point cloud data processing method, device, computer equipment and storage medium
By quantizing the coordinate values of point cloud data into fixed-point representations of target quantization bits in the low-bit model and processing them in groups, the problem of accuracy loss during quantification of the low-bit model is solved and the accuracy of the detection results is improved.
Patent Information
- Application Number
- CN202110349370.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-31
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-03-31
AI Technical Summary
Low-bit models suffer from high accuracy losses when converting floating-point calculations into low-bit specific points, especially in extremely low-bit and binary networks, resulting in increased accuracy challenges.
By obtaining the point cloud data collected by the radar and the preset quantization accuracy, it is determined that the target number of quantization bits is N times the number of initial quantization bits, and the coordinate values in the point cloud data are quantified into a fixed number of target quantization bits. representation, and then group processing to improve quantization accuracy and reduce accuracy loss.
It effectively improves the quantification accuracy of point cloud data, enhances the detection result accuracy of low-bit models, reduces accuracy loss, and is suitable for the processing capabilities of low-bit models.
Smart Images

Figure CN112991549B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a point cloud data processing method, device, computer equipment and storage medium. Background Art
[0002] The low-bit model effectively reduces the computational intensity, parameter size, and memory consumption of the low-bit model by virtue of the high performance of low-bit (less than or equal to 8 bits) fixed-point operations, greatly speeding up the operation of the low-bit model. However, due to the limited numerical expression capabilities, the low-bit model often results in a high loss of precision. This is especially true when quantizing extremely low bits (less than or equal to 4 bits), binary networks (1 bit), and gradients, which brings greater precision challenges. Summary of the invention
[0003] The embodiments of the present disclosure at least provide a point cloud data processing method, apparatus, computer device and storage medium, which solve the technical defect of high precision loss when converting floating point calculations into low-ratio specific points.
[0004] In a first aspect, an embodiment of the present disclosure provides a point cloud data processing method, comprising:
[0005] Obtaining point cloud data collected by the radar, preset quantization accuracy, and initial quantization bit number;
[0006] Determine a target quantization bit number based on the quantization accuracy and the initial quantization bit number; the target quantization bit number is N times the initial quantization bit number, where N is a positive integer;
[0007] Based on the target quantization bit number, quantizing the coordinate value of each point cloud point in the point cloud data into a coordinate value represented by a fixed-point number of the target quantization bit number;
[0008] The quantized coordinate values are grouped to obtain N groups of data, and based on the N groups of data, the detection result of the point cloud data is determined.
[0009] In the disclosed embodiment, the initial quantization bit number is the bit number of data that can be processed by the low-bit model for detecting the point cloud data, and the coordinate value of the point cloud point is quantized into a fixed-point number whose bit number is N times the initial quantization bit number. In this way, due to the increase in the quantization bit number, the quantization accuracy of the point cloud point coordinate value is effectively improved; further, since the above-mentioned low-bit model can only process data with the initial quantization bit number, after obtaining the quantized coordinate value (the coordinate value includes a fixed-point number whose bit number is N times the initial quantization bit number), it is necessary to divide the coordinate value into N groups, each group of data includes a fixed-point number of the initial quantization bit number. In this way, the above-mentioned low-bit model can not only process each group of data after the division, but also due to the improvement in quantization accuracy, the accuracy of the detection result obtained by the low-bit model detection is also effectively improved.
[0010] In an optional implementation manner, determining a target number of quantization bits based on the quantization accuracy and the initial number of quantization bits includes:
[0011] Obtaining a detection range of the radar;
[0012] A target quantization bit number is determined based on the quantization accuracy, the initial quantization bit number and the detection range.
[0013] This implementation method, combining the three factors of the radar's detection range, the initial quantization bit number and the quantization accuracy, can determine the target quantization bit number for improving the quantization accuracy, and the fixed-point number of the target quantization bit number after quantization can be applied to a low-bit model for detecting point cloud data through grouping.
[0014] In an optional implementation, the coordinate value of each point cloud point includes a first coordinate value of the point cloud point in the direction of the vertical coordinate axis in the radar coordinate system;
[0015] The step of quantizing the coordinate value of each point cloud point in the point cloud data into a coordinate value represented by a fixed-point number of the target quantization bit number based on the target quantization bit number includes:
[0016] Based on the target quantization bit number, the first coordinate value is quantized into a first quantized coordinate value represented by a fixed-point number of the target quantization bit number.
[0017] This implementation utilizes a fixed-point number of the target quantization bit number, i.e., a fixed-point number of N groups of initial quantization bit numbers, to represent the first coordinate value of a point cloud point, thereby improving the quantization accuracy and thereby retaining the accuracy of the first coordinate value of the point cloud point to the maximum extent.
[0018] In an optional implementation manner, the coordinate value of each point cloud point includes a horizontal coordinate value of the point cloud point in the direction of the horizontal coordinate axis in the radar coordinate system and a vertical coordinate value of the point cloud point in the direction of the vertical coordinate axis in the radar coordinate system; the plane formed by the horizontal coordinate axis and the vertical coordinate axis is parallel to the horizontal plane and perpendicular to each other;
[0019] The step of quantizing the coordinate value of each point cloud point in the point cloud data into a coordinate value represented by a fixed-point number of the target quantization bit number based on the target quantization bit number includes:
[0020] Dividing the detection range of the radar into a plurality of first sub-areas;
[0021] For each point cloud point in the point cloud data, based on the second coordinate value of the point cloud point, a first sub-region where the point cloud point is located is determined as a first target sub-region, and a first offset coordinate of the point cloud point relative to a first preset point in the first target sub-region is determined; the second coordinate value of a point cloud point is a horizontal coordinate value of the point cloud point or a vertical coordinate value of the point cloud point;
[0022] Based on the target number of quantization bits, quantize the first offset coordinate to a second quantized coordinate value represented by a fixed-point number of the target number of quantization bits;
[0023] Based on the first quantized coordinate value, the second quantized coordinate value and the position information of the first target sub-region, the quantized coordinate value of the point cloud point is determined.
[0024] In this implementation, the second coordinate value of the point cloud point, that is, the horizontal coordinate value or the vertical coordinate value, is represented by the first target sub-region in which the point cloud point is located and the first offset coordinate relative to the first target sub-region, thereby realizing the representation of the second coordinate value of the point cloud point by data of more dimensions, which can improve the subsequent quantization accuracy; in addition, quantizing the first offset coordinate to a second quantized coordinate value represented by a fixed-point number of the target quantization bit number, that is, a second quantized coordinate value represented by a fixed-point number of N groups of initial quantization bit numbers, can improve the quantization accuracy, thereby maximizing the retention of the accuracy of the coordinate values of each point cloud point and reducing the loss of accuracy.
[0025] In an optional implementation, determining the quantized coordinate value of the point cloud point based on the first quantized coordinate value, the second quantized coordinate value and the position information of the first target sub-region includes:
[0026] Determine a first position sequence identifier of the first target sub-region in the plurality of first sub-regions;
[0027] quantizing the first position sequence identifier into a third quantized coordinate value;
[0028] The first quantized coordinate value, the second quantized coordinate value and the third quantized coordinate value are used as the quantized coordinate values of the point cloud point.
[0029] This implementation method utilizes the first position sequence identifier and the first offset coordinate to realize the multi-dimensional data representation of the second coordinate value of the point cloud point, which is beneficial to improving the quantization accuracy; further, the quantized first quantized coordinate value, the second quantized coordinate value and the third quantized coordinate value are utilized as the quantized coordinate value of the point cloud point, thereby effectively improving the quantization accuracy of the coordinate value of the point cloud point.
[0030] In an optional implementation, the method further includes:
[0031] For each point cloud point in the point cloud data, based on the detection range of the radar and the initial quantization bit number, the reflectivity of the point cloud point is quantized into a fixed-point number of the initial quantization bit number.
[0032] In this implementation, since the detection range of the emissivity is small, the reflectivity is quantized based on the initial quantization bit number, which can ensure the quantization accuracy of the reflectivity.
[0033] In an optional implementation manner, the detection result includes N groups of fixed-point numbers; the number of data bits of each group of fixed-point numbers is equal to the number of initial quantization bits;
[0034] After obtaining the detection result, the method further includes:
[0035] Concatenate the N groups of fixed-point numbers to obtain first target data;
[0036] The first target data is dequantized into a floating point number.
[0037] In this implementation, since N groups of fixed-point numbers represent data corresponding to a physical quantity, in order to perform inverse quantization processing on the detection results, it is first necessary to splice the N groups of fixed-point numbers to obtain the first target data; then, the spliced first target data is inverse quantized, which can improve the accuracy of the first target data during the inverse quantization process and reduce the loss of accuracy.
[0038] In an optional implementation, the detection result of the point cloud data includes a center point coordinate value of the detection frame; the center point coordinate value includes N groups of fixed-point numbers; the number of data bits of each group of fixed-point numbers is equal to the number of initial quantization bits;
[0039] After obtaining the detection result, the method further includes:
[0040] Dividing the detection range of the radar into a plurality of second sub-areas;
[0041] From the multiple second sub-regions, determine a second sub-region where the center point of the detection frame is located as a second target sub-region, and determine a second offset coordinate of the center point of the detection frame relative to a second preset point in the second target sub-region;
[0042] splicing N groups of fixed-point numbers corresponding to the second offset coordinates to obtain second target data;
[0043] The second target data is dequantized into a floating point number.
[0044] In this implementation, the coordinate value of the center point of the detection frame is represented by the second target sub-region where the center point is located and the second offset coordinates of the center point relative to the second preset point in the second target sub-region, thereby realizing multi-dimensional data representation of the coordinate value of the center point of the detection frame and improving the subsequent inverse quantization accuracy. In addition, inverse quantization processing is performed on the spliced second target data, which can improve the accuracy of the second target data during the inverse quantization process and reduce accuracy loss.
[0045] In an optional implementation manner, after determining the second target sub-region, the method further includes:
[0046] Determine a second position sequence identifier of the second target sub-region in the plurality of second sub-regions;
[0047] Dequantizing the second position sequence identifier into a floating point number;
[0048] The floating point number obtained by dequantizing the second target data and the second position sequence identifier is used as the coordinate value of the center point of the detection frame.
[0049] This implementation method uses the second position sequence identifier and the second offset coordinate to achieve multi-dimensional data representation of the center point coordinate value, which is beneficial to improving the inverse quantization accuracy.
[0050] In an optional implementation, the detection result of the point cloud data includes a confidence level of the detection box; the confidence level is a fixed-point number;
[0051] The method further comprises:
[0052] The confidence is dequantized into a floating point number.
[0053] In this implementation, regarding the confidence of the detection frame, since only the relative size of the confidence is considered during the application process, the confidence can be directly dequantized into a floating point number without reducing the precision loss in the dequantization process.
[0054] In an optional implementation, the detection result of the point cloud data includes size data of the detection box;
[0055] The method further comprises:
[0056] Determining a dequantization ratio based on the number of initial quantization bits and size information of the target object corresponding to the detection frame;
[0057] Based on the dequantization ratio, the size data of the detection frame is dequantized into a floating point number.
[0058] This implementation can accurately determine the actual size information of the target object corresponding to the detection frame through the inverse quantization ratio, that is, it can improve the accuracy of the floating-point number obtained by inverse quantization of the size data of the detection frame.
[0059] In an optional implementation manner, the size data includes at least one of the following:
[0060] The length value of the detection frame; the width value of the detection frame; the height value of the detection frame; the radian value of the angle between the long side of the detection frame and the positive direction of the horizontal axis in the radar coordinate system.
[0061] In a second aspect, an embodiment of the present disclosure further provides a point cloud data processing device, comprising:
[0062] An acquisition module is used to acquire point cloud data collected by the radar, a preset quantization accuracy, and an initial quantization bit number;
[0063] A first determination module is used to determine a target quantization bit number based on the quantization accuracy and the initial quantization bit number; the target quantization bit number is N times the initial quantization bit number, where N is a positive integer;
[0064] A first quantization module, configured to quantize the coordinate value of each point cloud point in the point cloud data into a coordinate value represented by a fixed-point number of the target quantization bit number based on the target quantization bit number;
[0065] The second determination module is used to group the quantized coordinate values to obtain N groups of data, and determine the detection result of the point cloud data based on the N groups of data.
[0066] In a third aspect, an embodiment of the present disclosure further provides a computer device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer 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 above-mentioned first aspect, or any possible implementation of the first aspect are performed.
[0067] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect or any possible implementation of the first aspect are executed.
[0068] For a description of the effects of the above-mentioned point cloud data processing device, computer equipment and storage medium, please refer to the description of the above-mentioned point cloud data processing method, which will not be repeated here.
[0069] 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
[0070] 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.
[0071] Figure 1 A flow chart of a point cloud data processing method provided by an embodiment of the present disclosure is shown;
[0072] Figure 2 A schematic diagram showing a detection range of point cloud data in a radar coordinate system provided by an embodiment of the present disclosure;
[0073] Figure 3 A flow chart of quantizing the second coordinate value of a point cloud point in point cloud data provided by an embodiment of the present disclosure is shown;
[0074] Figure 4 A flow chart of quantizing the coordinate values of the center point of a detection frame provided by an embodiment of the present disclosure is shown;
[0075] Figure 5 A schematic diagram of a point cloud data processing device provided by an embodiment of the present disclosure is shown;
[0076] Figure 6 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0077] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme 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.
[0078] In addition, the terms "first", "second", etc. in the description and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein.
[0079] The "multiple or several" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0080] Research has found that low-bit models effectively reduce the computational intensity, parameter size, and memory consumption of low-bit models by virtue of the high performance of low-bit (less than or equal to 8-bit) fixed-point operations, greatly speeding up the operation of low-bit models. However, low-bit models often bring about a high loss of precision due to their limited numerical expression capabilities. This is especially true when quantizing extremely low bits (less than or equal to 4 bits), binary networks (1 bit), and gradients, which brings greater precision challenges.
[0081] 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.
[0082] 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.
[0083] To facilitate understanding of this embodiment, the application scenario of a point cloud data processing method disclosed in the embodiment of the present disclosure is first introduced. The embodiment of the present disclosure is a process for quantizing point cloud data detected by radar, wherein the quantization can be quantized according to the number of low bits, that is, quantization with a bit number less than or equal to 8 bits. After quantization processing is performed on the point cloud data detected by the radar (such as a 32-bit floating point number), a low-bit fixed point number can be determined and used as input data for a low-bit model; for the perception result output by the low-bit model, that is, at least one detection frame, an inverse quantization processing is performed to determine a floating point number corresponding to the value range that can be expressed by the fixed point number.
[0084] The disclosed embodiment provides a quantization processing method for optimizing the coordinate values and reflectivity of each point cloud point in each point cloud data detected by the radar, thereby improving the accuracy of each variable value in the quantization process in a personalized manner and solving the problem of large loss of accuracy during quantization.
[0085] To facilitate understanding of the present embodiment, a point cloud data processing method disclosed in the present embodiment is first introduced in detail. The execution subject of the point cloud data processing method provided in the present embodiment is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device. 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 point cloud data processing method may be implemented by a processor calling a computer-readable instruction stored in a memory.
[0086] The point cloud data processing method provided by the embodiment of the present disclosure is described below by taking a computer device as an example of an execution subject.
[0087] See also Figure 1 FIG. 1 is a flowchart of a point cloud data processing method provided by an embodiment of the present disclosure, wherein the method comprises steps S101 to S104, wherein:
[0088] S101: Obtaining point cloud data collected by a radar, a preset quantization accuracy, and an initial quantization bit number.
[0089] In this step, the point cloud data collected by the radar has a certain detection range, that is, the radar has a certain detection range, and the specific collection range is not limited here. For example, a rectangular parallelepiped can be used to represent the detection range, with the center of the rectangular parallelepiped as the coordinate origin, and the length, width, and height of the rectangular parallelepiped as the three coordinate axes to establish a Cartesian rectangular coordinate system. In specific implementation, the radar coordinate system can be composed of mutually perpendicular horizontal axis, vertical axis, and vertical axis. The plane formed by the horizontal axis and the vertical axis is parallel to the horizontal plane and perpendicular to each other, see Figure 2 As shown, it is a schematic diagram of the detection range corresponding to the point cloud data in the radar coordinate system, where x represents the horizontal axis, y represents the vertical axis, and z represents the vertical axis. Figure 2 In the direction represented by , the forward direction along the x-axis represents the positive direction of the horizontal coordinate axis, the rightward direction along the y-axis represents the positive direction of the vertical coordinate axis, and the upward direction along the z-axis represents the positive direction of the vertical coordinate axis.
[0090] The point cloud data collected by the radar includes the coordinate value of each point cloud point. Here, the point cloud data collected by the radar corresponds to a certain detection range, which is represented by the above-mentioned rectangular parallelepiped. For example, the length, width, and height of the rectangular parallelepiped are represented by L, W, and H respectively. Then the coordinate value (x, y, z) of the point cloud point in the point cloud data has a certain value range, that is, -L / 2 <x<L / 2,-W / 2<x<W / 2,-H / 2<x<H / 2。
[0091] The preset quantization accuracy can be defined according to the target object that needs to be detected in the application process. For example, for the autonomous driving detection scenario, the target object detected by the radar is a vehicle. If the detected vehicle position needs to be accurate to the centimeter level, and then the radar's detection accuracy is comprehensively considered, the preset quantization accuracy can be obtained. At this time, the preset quantization accuracy generally does not exceed the radar's detection accuracy.
[0092] Quantization may include quantization according to 8 bits, quantization according to 4 bits, quantization according to 2 bits, quantization according to 1 bit, and quantization according to mixed bits. Different bit quantizations use different basic numerical representations, and their corresponding numerical representations are 8-bit fixed-point numbers, 4-bit fixed-point numbers, 2-bit fixed-point numbers, 1-bit fixed-point numbers, and mixed fixed-point numbers of different bits. For example, a 1-bit fixed-point number can represent two values, 0 and 1.
[0093] In addition, quantization according to n bits can represent 2^n values, and the fixed-point value range is -2^(n-1) to 2^(n-1)-1, where n represents the initial quantization bit number.
[0094] S102: Determine a target number of quantization bits based on the quantization accuracy and the initial number of quantization bits.
[0095] The target quantization bit number is N times the initial quantization bit number, where N is a positive integer.
[0096] In this step, the target quantization bit number is determined by the initial quantization bit number and the quantization accuracy of the target object to be detected in the application process.
[0097] In the specific implementation, the detection range of the radar is obtained; based on the quantization accuracy, the initial quantization bit number and the detection range, the target quantization bit number is determined. For example, the detection range corresponding to the point cloud data collected by the radar can be obtained first, which is recorded as
[0098] (min_x,min_y,min_z)~(max_x,max_y,max_z)
[0099] Among them, the coordinate values of the point cloud points are (x, y, z), min_x and max_x represent the minimum and maximum values of the coordinate value x, min_y and max_y represent the minimum and maximum values of the coordinate value y, and min_z and max_z represent the minimum and maximum values of the coordinate value z.
[0100] When the preset quantization accuracy P, the detection range corresponding to each coordinate value of the point cloud point in the point cloud data, and the initial quantization bit number n are known, the multiples of the initial quantization bit number can be determined according to the preset conversion relationship, denoted by P = (max_α-min_β) / (2^(n×N)). At this time, if the obtained multiple is not an integer, the obtained multiple is rounded. The rounding rule can be rounding up or rounding down, which is not limited here. After determining the integer multiple N of the initial quantization bit number, the target quantization bit number n×N is determined.
[0101] Among them, max_α can represent the maximum value of each coordinate value of each point cloud point in the point cloud data, and min_β can represent the minimum value of each coordinate value of each point cloud point in the point cloud data.
[0102] S103: Based on the target quantization bit number, quantize the coordinate value of each point cloud point in the point cloud data into a coordinate value represented by a fixed-point number of the target quantization bit number.
[0103] In this step, the coordinate values of each point cloud point in the point cloud data may include a first coordinate value z in the vertical coordinate axis direction of the radar coordinate system, a horizontal coordinate value x in the horizontal coordinate axis direction of the radar coordinate system, and a longitudinal coordinate value y in the longitudinal coordinate axis direction of the radar coordinate system.
[0104] In a possible implementation, for the first coordinate value of each point cloud point in the point cloud data, a preset mapping relationship may be used, that is,
[0105] f(z)=(z-min_α) / (max_α-min_β)×(2^(n×N))+(-2^(n×N-1))
[0106] Quantize the first coordinate value of each point cloud point to the first quantized coordinate value represented by a fixed-point number of the target quantization bit number, that is, f(z). Among them, z in f(z) represents the first coordinate value, n×N represents the target quantization bit number, and max_α and min_β represent the maximum and minimum values of the first coordinate value.
[0107] For example, for the vertical axis direction in the radar coordinate system, a detection range of the radar can be 16 meters high; if quantized according to 4 bits, 2^4=16 values can be represented, that is, the range of fixed-point numbers is -8 to 8. When the preset quantization accuracy P is at the centimeter level, P can be set to 0.01 to 0.09. Under the condition of rounding N, the target quantization bit number is 8 according to P=(max_α-min_β) / (2^(n×N)), recorded as 4×2, which can represent 2^(4×2)=256 values, that is, the range of values is -128 to 127. For the first coordinate value z of each point cloud point in the point cloud data, its detection range is -8 to 8. In the span of the 16-meter detection range, it is represented by 256 values, and its accuracy can be expressed as 16 / 256=0.0625, which meets the centimeter-level accuracy requirements. For example, when z=2, according to the pre-set mapping relationship, the first quantized coordinate value f(2) can be quantized, that is, f(2)=(2-(-8)) / (8-(-8))×(2^(4×2))+(-2^(4×2-1))=32, and an 8-bit fixed-point number 32 representing the floating-point number z=2 can be obtained.
[0108] S104: Grouping the quantized coordinate values to obtain N groups of data, and determining the detection result of the point cloud data based on the N groups of data.
[0109] Continuing with the above example, the quantized coordinate values, i.e., the first quantized coordinate values, are grouped, and f(2)=32 can be represented by two 4-bit numbers, i.e., k 1 :0010 and k 2 :0000. Here, k 1 In front, k 2 After that, we can form an 8-bit fixed-point number 00100000. 1 and k 2 They are respectively input into the low-bit model to obtain the detection result of the point cloud data output by the low-bit model, that is, the detection box.
[0110] In a possible implementation, the second coordinate value of each point cloud point in the point cloud data may be quantized by the following implementation: Here, the second coordinate value of a point cloud point is the horizontal coordinate value of the point cloud point or the vertical coordinate value of the point cloud point.
[0111] See also Figure 3 As shown, it is a flow chart for quantizing the second coordinate value of the point cloud point in the point cloud data, which may include steps S301 to S306, wherein:
[0112] S301: Divide the detection range of the radar into multiple first sub-areas.
[0113] In this step, the segmentation method can customize the size of the first sub-region according to the quantization accuracy, which is not specifically limited here.
[0114] In the specific implementation, based on the detection range (min_x, min_y, min_z) ~ (max_x, max_y, max_z) corresponding to the point cloud data collected by the radar, the detection range is evenly divided into a number of grid cells, and then L×W×H grid cells can be determined, where the size of each grid cell is ((max_x-min_x) / L, (max_y-min_y) / W, (max_z-min_z) / H).
[0115] S302: For each point cloud point in the point cloud data, based on the second coordinate value of the point cloud point, determine the first sub-region where the point cloud point is located as the first target sub-region, and determine the first offset coordinate of the point cloud point relative to the first preset point in the first target sub-region.
[0116] In this step, the first preset point can be any position point in the first target sub-region, and usually the center point of the first target sub-region can be selected. At this time, the first offset coordinate is the relative coordinate from the point cloud point to the center point of the first target sub-region.
[0117] In a specific implementation, for each point cloud point in the point cloud data, based on the second coordinate value and the first coordinate value of the point cloud point, the coordinate value (x, y, z) of the point cloud point is determined, and then the first sub-region where the point cloud point is located is determined to be the (X, Y, Z)th region, and the (X, Y, Z)th region is determined to be the first target sub-region where the point cloud point is located, wherein X = (x-min_x) / ((max_x-min_x) / L), Y = (y-min_y) / ((max_y-min_y) / W), and Z = (z-min_z) / ((max_z-min_z) / H). When the first target sub-region (X, Y, Z) where the point cloud point in the point cloud data is located is known, and the coordinate value (x, y, z) of the point cloud point in the radar coordinate system is known, the relative coordinates of the point cloud point to the center point of the first target sub-region can be determined, that is, the first offset coordinates, recorded as (dx, dy, dz).
[0118] S303: Based on the target quantization bit number, quantize the first offset coordinate into a second quantization coordinate value represented by a fixed-point number of the target quantization bit number.
[0119] One implementation is to quantize the first offset coordinate to a second quantized coordinate value represented by a fixed-point number of the target quantization bit number based on the target quantization bit number. In specific implementation, quantization processing is performed on dx and dy in the first offset coordinate, and the specific processing process can be described in the description of step S103 above, which will not be repeated here.
[0120] Another implementation is to quantize the first offset coordinate to a second quantized coordinate value represented by a fixed-point number of the initial quantization bit number based on the initial quantization bit number. In the specific implementation, quantization processing is performed on dx and dy in the first offset coordinate respectively, and the mapping relationship can be set according to a preset mapping relationship, that is,
[0121]
[0122] Quantize dx and dy to the second quantized coordinate value represented by the fixed-point number of the initial quantization bit number, that is, in, In It can represent any variable between dx and dy.
[0123] S304: Determine a first position sequence identifier of the first target sub-region in the plurality of first sub-regions.
[0124] In this step, the first position sequence identifier is the position identifier of the first target sub-region in the multiple first sub-regions. For example, the coordinate value of the point cloud point in the point cloud data is (x, y, z), and the first position sequence identifier of the first target sub-region where it is located is (X, Y, Z).
[0125] S305: quantize the first position sequence identifier into a third quantized coordinate value.
[0126] In specific implementation, X, Y and Z can be quantized into third quantized coordinate values, namely f(υ), according to a preset mapping relationship, namely f(υ)=υ. υ in f(υ) can represent any variable among X, Y and Z.
[0127] S306: Using the first quantized coordinate value, the second quantized coordinate value, and the third quantized coordinate value as quantized coordinate values of the point cloud point.
[0128] In a specific implementation, the first quantized coordinate value after z quantization, the second quantized coordinate value after dx quantization, the second quantized coordinate value after dy quantization and the third quantized coordinate value after quantization of the first position sequence identifier (X, Y, Z) are used as the quantized coordinate values of the point cloud point.
[0129] For example, for the lateral coordinate axis direction in the radar coordinate system, a detection range of the radar can be 250m in front, back, left and right; if quantized according to 2 bits, 2^2=4 values can be represented, that is, the range of fixed-point numbers is -2 to 2. When the preset quantization accuracy P is at the centimeter level, P can be set to 0.01 to 0.09. Under the condition of rounding N, the target quantization bit number is 14 according to P=(max_α-min_β) / (2^(n×N)), recorded as 2×7, which can represent 2^(2×7)=16384 values, that is, the range of values is -8192 to 8191. For the lateral coordinate value of each point cloud point in the point cloud data, the detection range is -250 to 250. In the span of 500 meters of detection range, 16384 values are used to represent it, and its accuracy can be expressed as 500 / 16384=0.0305, which meets the centimeter-level accuracy requirements. Based on the first offset coordinate (dx, dy, dz) obtained in the above step S302, and the target quantization bit number 14, for example, in the case of dx=0, according to the preset mapping relationship, the second quantized coordinate value f(0) can be quantized, that is, f(0)=(0-(-250)) / (250-(-250))×(2^(2×7))+(-2^(2×7-1))=0, and the 14-bit fixed-point number 0 representing the horizontal coordinate value dx=0 can be obtained. Afterwards, based on the first position sequence identifier (X, Y, Z) obtained in the above step S305, for example, in the case of X=0, according to the preset mapping relationship, the third quantized coordinate value f(0) can be quantized, that is, f(0)=0, and the 14-bit fixed-point number 0 representing the first position sequence identifier X=0 can be obtained. Based on this, for the quantization process of Y and Z, the above-mentioned quantization process of X can be referred to, and the repeated parts will not be repeated here.
[0130] In a possible implementation, for each point cloud point in the point cloud data, based on the detection range of the radar and the number of initial quantization bits, the reflectivity of the point cloud point is quantized to a fixed-point number of the initial quantization bit number. In a specific implementation, the reflectivity i of each point cloud point in the point cloud data can be quantized to a fixed-point number of the initial quantization bit number according to a pre-set mapping relationship, i.e., f(i) = (i-min_β) / (max_α-min_β)×(2^n)+(-2^(n-1)). Among them, max_α can represent the maximum value of the reflectivity of each point cloud point in the point cloud data, and min_β can represent the minimum value of the reflectivity of each point cloud point in the point cloud data.
[0131] Exemplarily, in a detection range of a radar, the value range of the reflectivity i can be 0 to 1. If quantized according to 1 bit, it can represent 2^1=2 values, 0 and 1, and the fixed-point number range is -1 to 1. For example, when i=1, according to a pre-set mapping relationship, the fixed-point number f(1) of the initial quantization bit number can be quantized, that is, f(1)=(1-0) / (1-0)×(2^1)+(-2^(1-1))=1, and the 1-bit fixed-point number 1 representing the reflectivity i=1 can be obtained.
[0132] Based on the above step S104, the detection result can also be dequantized. In some embodiments, the detection result includes N groups of fixed-point numbers; the number of data bits of each group of fixed-point numbers is equal to the number of initial quantization bits; after obtaining the detection result, the N groups of fixed-point numbers can be spliced to obtain first target data; and the first target data can be dequantized into floating-point numbers.
[0133] Here, the detection result may include at least one detection box, wherein an 8-dimensional vector may be used to represent the size, position, and confidence information of the detection box. For example, the detection box may be represented by an 8-dimensional vector (qx, qy, qz, qhteta, ql, qw, qh, qscore), wherein (qx, qy, qz) represent the coordinate values of the center point of the detection box, ql, qw, and qh represent the length, width, and height of the detection box, respectively, qtheta represents the radian value of the angle between the long side of the detection box and the positive direction of the horizontal axis of the radar coordinate system, and qscore represents the confidence of the detection box.
[0134] The center point coordinate value includes the coordinate value qx of the center point of the detection frame on the horizontal coordinate axis in the radar coordinate system, the coordinate value qy of the center point on the longitudinal coordinate axis in the radar coordinate system, and the coordinate value qz of the center point on the vertical coordinate axis.
[0135] The detection range corresponding to the coordinate value of the center point of the detection box is the same as the detection range corresponding to the point cloud point in the point cloud data, that is, (min_qx, min_qy, min_qz) ~ (max_qx, max_qy, max_qz). Among them, the coordinate value of the center point is (qx, qy, qz), min_qx and max_qx represent the minimum and maximum values of the coordinate value qx, min_qy and max_qy represent the minimum and maximum values of the coordinate value qy, and min_qz and max_qz represent the minimum and maximum values of the coordinate value qz.
[0136] Specifically, see Figure 4 As shown, it is a flow chart for quantizing the coordinate value of the center point of the detection frame, which may include steps S401 to S407, wherein:
[0137] S401: Divide the detection range of the radar into a plurality of second sub-areas.
[0138] This step may be based on the specific segmentation method of step S301, which will not be described in detail here.
[0139] S402: From the plurality of second sub-regions, determine a second sub-region where the center point of the detection frame is located as a second target sub-region, and determine a second offset coordinate of the center point of the detection frame relative to a second preset point in the second target sub-region.
[0140] Here, the detection result of the point cloud data includes the center point coordinate value of the detection frame; the center point coordinate value includes N groups of fixed point numbers.
[0141] In this step, the second preset point can be any position point in the second target sub-region, and usually the center point of the second target sub-region can be selected. At this time, the second offset coordinate can be the relative coordinate from the center point of the detection frame to the center point of the second target sub-region.
[0142] In specific implementation, the determination of the second target sub-region and the determination of the second offset coordinates may refer to the specific description of the process of determining the first target sub-region and the first offset coordinates in step S302, which will not be repeated here.
[0143] S403: Connect the N groups of fixed-point numbers corresponding to the second offset coordinates to obtain second target data.
[0144] In this step, dx', dy' and dz' in the second offset coordinates (dx', dy', dz') correspond to N groups of fixed-point numbers respectively. Each group of fixed-point numbers is spliced together. For example, the two groups of 4-bit fixed-point numbers 0010 and 0000 corresponding to dx' are spliced together to obtain the second target data, that is, the 8-bit fixed-point number 00100000.
[0145] S404: Dequantize the second target data into floating point numbers.
[0146] One implementation method is to dequantize the second offset coordinate into a floating point number based on the initial quantization bit number. In the specific implementation, dequantization is performed on the N groups of fixed-point numbers after dx', dy' and dz' are concatenated, that is, the second target data. Here, the mapping relationship can be set according to a preset relationship, that is,
[0147]
[0148] Dequantize dx', dy', and dz' to floating point numbers, where In It can represent any variable among dx', dy' and dz'.
[0149] max_α' and min_β' can represent the coordinate values of the center point (qx, qy, qz) The corresponding maximum and minimum coordinate values.
[0150] Another implementation method is to dequantize the second offset coordinate into a floating point number based on the target quantization bit number. In the specific implementation, the N groups of fixed-point numbers after dx', dy' and dz' are concatenated, that is, the second target data are dequantized. Here, the mapping relationship can be set according to the preset mapping relationship, that is,
[0151]
[0152] Quantize dx', dy', and dz' to floating point numbers, where In It can represent any variable among dx', dy' and dz'.
[0153] S405: Determine a second position sequence identifier of the second target sub-region in the plurality of second sub-regions.
[0154] In this step, the second position sequence identifier can be recorded as (qX, qY, qZ). The determination of the second position sequence identifier can refer to the specific description of the determination process of the first position sequence identifier in step S304, which will not be repeated here.
[0155] S406: Dequantize the second position sequence identifier into a floating point number.
[0156] In specific implementation, qX, qY and qZ can be dequantized into floating point numbers according to a preset mapping relationship, ie, f(υ')=υ', and υ' in f(υ') can represent any variable among qX, qY and qZ.
[0157] S407: Dequantize the second target data and the second position sequence identifier to obtain a floating point number as the center point coordinate value of the detection frame.
[0158] In a specific implementation, the dequantized floating point numbers of dx', dy', dz' and the second position sequence identifier (qX, qY, qZ) are used as the coordinate values of the center point of the detection frame.
[0159] In a possible implementation, the detection result of the point cloud data includes the confidence of the detection box. Here, the confidence is a fixed-point number. Since the confidence of the detection box only refers to the relative size and not the specific value during the application process, the confidence is dequantized into a floating point number. According to the pre-set mapping relationship, that is, the identity mapping score=qscore, the qscore is dequantized into score.
[0160] In a possible implementation, the detection result of the point cloud data includes dimensional data of the detection frame, where the dimensional data includes at least one of the following: a length value ql of the detection frame; a width value qw of the detection frame; a height value qh of the detection frame; and a radian value qtheta of the angle between the long side of the detection frame and the positive direction of the horizontal axis in the radar coordinate system.
[0161] The size data is dequantized, and the dequantization ratio can be determined based on the initial quantization bit number and the size information of the target object corresponding to the detection frame; based on the dequantization ratio, the size data of the detection frame is dequantized into a floating point number. In specific implementation, the dequantization ratio Q of each size data of the detection frame when dequantizing can be determined based on the predicted size information of the target object, that is, the length value l', the width value w', the height value h', and the radian value qtheta'. The dequantization ratio Q can be customized as the ratio of any size data of the target object to a variety of numerical values that can be represented by the initial quantization bit number.
[0162] Q=l' / (2^n)=w' / (2^n)=h' / (2^n)=qtheta' / (2^n)
[0163] Based on the inverse quantization ratio Q, the size data of the detection box can be inversely quantized into a floating point number f(qη) according to a preset mapping relationship, i.e., f(qη)=Q×qη, where qη in f(qη) can represent any size data of the detection box.
[0164] The following describes how to dequantize the length value ql, width value qw, height value qh, and radian value qtheta of the detection box into floating point numbers:
[0165] The length value of the detection frame is dequantized, and based on Q=l' / (2^n), it can be determined that the dequantized floating point number is f(ql)=l' / (2^n)×ql.
[0166] The width value of the detection frame is dequantized, and based on Q=w' / (2^n), it can be determined that the dequantized floating point number is f(qw)=w' / (2^n)×qw.
[0167] The height value of the detection frame is dequantized, and based on Q=h' / (2^n), it can be determined that the dequantized floating point number is f(qh)=h' / (2^n)×qh.
[0168] The arc value of the detection frame is dequantized, and based on Q=qtheta' / (2^n), it can be determined that the dequantized floating point number is f(qtheta)=qtheta' / (2^n)×qtheta.
[0169] For example, the target object is selected as a car, and the length value of the car is customized to be predicted to be up to 6 meters. If quantization is performed according to 8 bits, an 8-bit integer is output, which can represent up to 256 values. Therefore, the inverse quantization ratio Q=6 / 256 can be customized. For the length value ql of the detection box, the pre-set mapping relationship, i.e., f(ql)=6 / 256×ql, is used to determine the floating point number f(ql) after inverse quantization of the length value ql. Here, the precision of inverse quantization is 6 / 256.
[0170] Through the above steps S101 to S103, the initial quantization bit number is the bit number of data that can be processed by the low-bit model for detecting the point cloud data, and the coordinate value of the point cloud point is quantized into a fixed-point number whose bit number is N times the initial quantization bit number. In this way, due to the increase in the quantization bit number, the quantization accuracy of the point cloud point coordinate value is effectively improved; further, since the above low-bit model can only process data with the initial quantization bit number, after obtaining the quantized coordinate value (the coordinate value includes a fixed-point number whose bit number is N times the initial quantization bit number), it is necessary to divide the coordinate value into N groups, and each group of data includes a fixed-point number of the initial quantization bit number. In this way, the above low-bit model can not only process each group of data after the division, but also due to the improvement of quantization accuracy, the accuracy of the detection result obtained by the low-bit model detection is also effectively improved.
[0171] 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.
[0172] Based on the same inventive concept, a point cloud data processing device corresponding to the point cloud data processing method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned point cloud data processing method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0173] Reference Figure 5 FIG. 5 is a schematic diagram of a point cloud data processing device provided by an embodiment of the present disclosure, wherein the device comprises: an acquisition module 501, a first determination module 502, a first quantization module 503, and a second determination module 504; wherein:
[0174] The acquisition module 501 is used to acquire the point cloud data collected by the radar, the preset quantization accuracy and the initial quantization bit number;
[0175] A first determination module 502 is configured to determine a target number of quantization bits based on the quantization accuracy and the initial number of quantization bits; the target number of quantization bits is N times the initial number of quantization bits, where N is a positive integer;
[0176] A first quantization module 503 is used to quantize the coordinate value of each point cloud point in the point cloud data into a coordinate value represented by a fixed-point number of the target quantization bit number based on the target quantization bit number;
[0177] The second determination module 504 is used to group the quantized coordinate values to obtain N groups of data, and determine the detection result of the point cloud data based on the N groups of data.
[0178] In an optional implementation, the first determination module 502 is used to obtain the detection range of the radar; and determine the target quantization bit number based on the quantization accuracy, the initial quantization bit number and the detection range.
[0179] In an optional implementation, the coordinate value of each point cloud point includes a first coordinate value of the point cloud point in the direction of the vertical coordinate axis in the radar coordinate system; the first quantization module 503 is used to quantize the first coordinate value into a first quantized coordinate value represented by a fixed-point number of the target quantization bit number based on the target quantization bit number.
[0180] In an optional implementation, the coordinate value of each point cloud point includes a transverse coordinate value of the point cloud point in the direction of the transverse axis in the radar coordinate system and a longitudinal coordinate value of the point cloud point in the direction of the longitudinal axis in the radar coordinate system; the plane formed by the transverse axis and the longitudinal axis is parallel to the horizontal plane and perpendicular to each other; the first quantization module 502 is used to divide the detection range of the radar into multiple first sub-areas; for each point cloud point in the point cloud data, based on the second coordinate value of the point cloud point, the first sub-area in which the point cloud point is located is determined as a first target sub-area, and the first offset coordinate of the point cloud point relative to the first preset point in the first target sub-area is determined; the second coordinate value of a point cloud point is the transverse coordinate value of the point cloud point or the longitudinal coordinate value of the point cloud point; based on the target quantization bit number, the first offset coordinate is quantized to a second quantized coordinate value represented by a fixed-point number of the target quantization bit number; based on the first quantized coordinate value, the second quantized coordinate value and the position information of the first target sub-area, the quantized coordinate value of the point cloud point is determined.
[0181] In an optional embodiment, the first quantization module 502 is used to determine the first position sequence identifier of the first target sub-region among the multiple first sub-regions; quantize the first position sequence identifier into a third quantized coordinate value; and use the first quantized coordinate value, the second quantized coordinate value and the third quantized coordinate value as the quantized coordinate value of the point cloud point.
[0182] In an optional embodiment, the point cloud data processing device also includes a second quantization module 505, which is used to quantize the reflectivity of each point cloud point in the point cloud data into a fixed-point number of the initial quantization bit number based on the detection range of the radar and the initial quantization bit number.
[0183] In an optional implementation, the detection result includes N groups of fixed-point numbers; the number of data bits of each group of fixed-point numbers is equal to the number of initial quantization bits; the point cloud data processing device also includes a first dequantization module 506, which is used to splice the N groups of fixed-point numbers after obtaining the detection result to obtain first target data; and dequantize the first target data into floating-point numbers.
[0184] In an optional embodiment, the detection result of the point cloud data includes the coordinate value of the center point of the detection frame; the coordinate value of the center point includes N groups of fixed-point numbers; the number of data bits of each group of fixed-point numbers is equal to the number of initial quantization bits; the first dequantization module 506 is also used to divide the detection range of the radar into multiple second sub-areas; from the multiple second sub-areas, the second sub-area where the center point of the detection frame is located is determined as the second target sub-area, and the second offset coordinates of the center point of the detection frame relative to the second preset point in the second target sub-area are determined; the N groups of fixed-point numbers corresponding to the second offset coordinates are spliced to obtain second target data; and the second target data is dequantized into a floating point number.
[0185] In an optional embodiment, the first dequantization module 506 is also used to determine the second position sequence identifier of the second target sub-region in the multiple second sub-regions after determining the second target sub-region; dequantize the second position sequence identifier into a floating point number; and use the floating point number obtained by dequantizing the second target data and the second position sequence identifier as the coordinate value of the center point of the detection frame.
[0186] In an optional implementation, the detection result of the point cloud data includes the confidence of the detection box; the confidence is a fixed-point number; the point cloud data processing device also includes a second dequantization module 507, which is used to dequantize the confidence into a floating-point number.
[0187] In an optional embodiment, the detection result of the point cloud data includes size data of the detection box; the point cloud data processing device also includes a third dequantization module 508, which is used to determine the dequantization ratio based on the number of initial quantization bits and the size information of the target object corresponding to the detection box; based on the dequantization ratio, the size data of the detection box is dequantized into a floating point number.
[0188] In an optional implementation manner, the size data includes at least one of the following:
[0189] The length value of the detection frame; the width value of the detection frame; the height value of the detection frame; the radian value of the angle between the long side of the detection frame and the positive direction of the horizontal axis in the radar coordinate system.
[0190] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0191] Based on the same technical concept, the embodiment of the present application also provides a computer device. Figure 6 FIG. 1 is a schematic diagram of a computer device provided in an embodiment of the present application, including:
[0192] Processor 61, memory 62 and bus 63. The memory 62 stores machine-readable instructions executable by the processor 61, and the processor 61 is used to execute the machine-readable instructions stored in the memory 62. When the machine-readable instructions are executed by the processor 61, the processor 61 performs the following steps: S101: acquiring point cloud data collected by the radar, a preset quantization accuracy and an initial quantization bit number; S102: determining a target quantization bit number based on the quantization accuracy and the initial quantization bit number; S103: quantizing the coordinate values of each point cloud point in the point cloud data into coordinate values represented by fixed-point numbers of the target quantization bit number based on the target quantization bit number; S104: grouping the quantized coordinate values to obtain N groups of data, and determining the detection result of the point cloud data based on the N groups of data.
[0193] The above-mentioned memory 62 includes a memory 621 and an external memory 622; the memory 621 here is also called an internal memory, which is used to temporarily store the calculation data in the processor 61, as well as the data exchanged with the external memory 622 such as a hard disk. The processor 61 exchanges data with the external memory 622 through the memory 621. When the computer device is running, the processor 61 and the memory 62 communicate through the bus 63, so that the processor 61 executes the execution instructions mentioned in the above method embodiment.
[0194] The present disclosure also 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 point cloud data processing method described in the above method embodiment are executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.
[0195] 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 point cloud data processing method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0196] 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).
[0197] 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 modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules 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, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0198] 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.
[0199] In addition, each functional module in each embodiment of the present disclosure may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0200] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that can be executed 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.
[0201] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and 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 point cloud data processing method, characterized in that: include: Obtaining point cloud data collected by the radar, preset quantization accuracy, and initial quantization bit number; Determining a target number of quantization bits based on the quantization accuracy and the initial number of quantization bits; The target quantization bit number is N times the initial quantization bit number, where N is a positive integer; Based on the target quantization bit number, quantizing the coordinate value of each point cloud point in the point cloud data into a coordinate value represented by a fixed-point number of the target quantization bit number; Grouping the quantized coordinate values to obtain N groups of data, and determining a detection result of the point cloud data based on the N groups of data; The step of quantizing the coordinate values of each point cloud point in the point cloud data into coordinate values represented by fixed-point numbers of the target quantization bit number based on the target quantization bit number includes: Based on the target quantization bit number, the first coordinate value is quantized into a first quantized coordinate value represented by a fixed-point number of the target quantization bit number; the coordinate value of each point cloud point includes a first coordinate value of the point cloud point in the direction of the vertical coordinate axis in the radar coordinate system; The detection range of the radar is divided into multiple first sub-areas; for each point cloud point in the point cloud data, based on the second coordinate value of the point cloud point, the first sub-area in which the point cloud point is located is determined as the first target sub-area, and the first offset coordinate of the point cloud point relative to the first preset point in the first target sub-area is determined; the second coordinate value of a point cloud point is the horizontal coordinate value of the point cloud point or the vertical coordinate value of the point cloud point; based on the target quantization bit number, the first offset coordinate is quantized to a second quantized coordinate value represented by a fixed-point number of the target quantization bit number; based on the first quantized coordinate value, the second quantized coordinate value and the position information of the first target sub-area, the quantized coordinate value of the point cloud point is determined.
2. The method according to claim 1, characterized in that The determining of a target number of quantization bits based on the quantization accuracy and the initial number of quantization bits includes: Obtaining a detection range of the radar; A target quantization bit number is determined based on the quantization accuracy, the initial quantization bit number and the detection range.
3. The method according to claim 1 or 2, characterized in that: The coordinate value of each point cloud point includes a horizontal coordinate value of the point cloud point in the direction of the horizontal axis in the radar coordinate system and a vertical coordinate value of the point cloud point in the direction of the vertical axis in the radar coordinate system; the plane formed by the horizontal axis and the vertical axis is parallel to the horizontal plane and perpendicular to each other.
4. The method according to claim 3, characterized in that The determining, based on the first quantized coordinate value, the second quantized coordinate value and the position information of the first target sub-region, the quantized coordinate value of the point cloud point includes: Determine a first position sequence identifier of the first target sub-region in the plurality of first sub-regions; quantizing the first position sequence identifier into a third quantized coordinate value; The first quantized coordinate value, the second quantized coordinate value and the third quantized coordinate value are used as the quantized coordinate values of the point cloud point.
5. The method according to claim 1 or 2, characterized in that: Also includes: For each point cloud point in the point cloud data, based on the detection range of the radar and the initial quantization bit number, the reflectivity of the point cloud point is quantized into a fixed-point number of the initial quantization bit number.
6. The method according to claim 1 or 2, characterized in that: The detection result includes N groups of fixed-point numbers; The number of data bits of each group of fixed-point numbers is equal to the number of initial quantization bits; After obtaining the detection result, the method further includes: Connect the N groups of fixed-point numbers to obtain first target data; The first target data is dequantized into a floating point number.
7. The method according to claim 1 or 2, characterized in that: The detection result of the point cloud data includes the coordinate value of the center point of the detection frame; The center point coordinate values include N groups of fixed point numbers; The number of data bits of each group of fixed-point numbers is equal to the number of initial quantization bits; After obtaining the detection result, the method further includes: Dividing the detection range of the radar into a plurality of second sub-areas; From the multiple second sub-regions, determine a second sub-region where the center point of the detection frame is located as a second target sub-region, and determine a second offset coordinate of the center point of the detection frame relative to a second preset point in the second target sub-region; splicing N groups of fixed-point numbers corresponding to the second offset coordinates to obtain second target data; The second target data is dequantized into a floating point number.
8. The method according to claim 7, characterized in that After determining the second target sub-area, the method further includes: Determine a second position sequence identifier of the second target sub-region in the plurality of second sub-regions; Dequantizing the second position sequence identifier into a floating point number; The floating point number obtained by dequantizing the second target data and the second position sequence identifier is used as the coordinate value of the center point of the detection frame.
9. The method according to claim 1 or 2, characterized in that: The detection result of the point cloud data includes the confidence of the detection box; the confidence is a fixed-point number; The method further comprises: The confidence is dequantized into a floating point number.
10. The method according to claim 1 or 2, characterized in that: The detection result of the point cloud data includes size data of the detection frame; The method further comprises: Determining a dequantization ratio based on the number of initial quantization bits and size information of the target object corresponding to the detection frame; Based on the dequantization ratio, the size data of the detection frame is dequantized into a floating point number.
11. The method according to claim 10, characterized in that The dimension data includes at least one of the following: The length value of the detection frame; the width value of the detection frame; the height value of the detection frame; the radian value of the angle between the long side of the detection frame and the positive direction of the horizontal axis in the radar coordinate system.
12. A point cloud data processing device, characterized in that: include: An acquisition module is used to acquire point cloud data collected by the radar, a preset quantization accuracy, and an initial quantization bit number; A first determination module, configured to determine a target number of quantization bits based on the quantization accuracy and the initial number of quantization bits; The target quantization bit number is N times the initial quantization bit number, where N is a positive integer; A first quantization module, configured to quantize the coordinate value of each point cloud point in the point cloud data into a coordinate value represented by a fixed-point number of the target quantization bit number based on the target quantization bit number; A second determination module is used to group the quantized coordinate values to obtain N groups of data, and determine the detection result of the point cloud data based on the N groups of data; Wherein, when the first quantization module quantizes the coordinate value of each point cloud point in the point cloud data into a coordinate value represented by a fixed-point number of the target quantization bit number based on the target quantization bit number, it is used to: Based on the target quantization bit number, the first coordinate value is quantized into a first quantized coordinate value represented by a fixed-point number of the target quantization bit number; the coordinate value of each point cloud point includes a first coordinate value of the point cloud point in the direction of the vertical coordinate axis in the radar coordinate system; The detection range of the radar is divided into a plurality of first sub-areas; for each point cloud point in the point cloud data, based on the second coordinate value of the point cloud point, the first sub-area where the point cloud point is located is determined as a first target sub-area, and a first offset coordinate of the point cloud point relative to a first preset point in the first target sub-area is determined; the second coordinate value of a point cloud point is the horizontal coordinate value of the point cloud point or the vertical coordinate value of the point cloud point; Based on the target quantization bit number, the first offset coordinate is quantized into a second quantized coordinate value represented by a fixed-point number of the target quantization bit number; based on the first quantized coordinate value, the second quantized coordinate value and the position information of the first target sub-area, the quantized coordinate value of the point cloud point is determined.
13. A computer 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 computer 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 point cloud data processing method according to any one of claims 1 to 11 are performed.
14. 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 point cloud data processing method according to any one of claims 1 to 11 are executed.
