WO2023279225A1 - Point cloud processing method and apparatus for laser radar, and storage medium and terminal device - Google Patents

Point cloud processing method and apparatus for laser radar, and storage medium and terminal device Download PDF

Info

Publication number
WO2023279225A1
WO2023279225A1 PCT/CN2021/104432 CN2021104432W WO2023279225A1 WO 2023279225 A1 WO2023279225 A1 WO 2023279225A1 CN 2021104432 W CN2021104432 W CN 2021104432W WO 2023279225 A1 WO2023279225 A1 WO 2023279225A1
Authority
WO
WIPO (PCT)
Prior art keywords
point
value
distance
target scanning
reflectance
Prior art date
Application number
PCT/CN2021/104432
Other languages
French (fr)
Chinese (zh)
Inventor
皮兴俊
Original Assignee
深圳市速腾聚创科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市速腾聚创科技有限公司 filed Critical 深圳市速腾聚创科技有限公司
Priority to PCT/CN2021/104432 priority Critical patent/WO2023279225A1/en
Priority to CN202180100001.1A priority patent/CN117616307A/en
Publication of WO2023279225A1 publication Critical patent/WO2023279225A1/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Definitions

  • the present application relates to the technical field of laser sensing, and in particular to a laser radar point cloud processing method, device, computer-readable storage medium and terminal equipment.
  • lidar R&D and manufacturing With the development of science and technology, the cost of lidar R&D and manufacturing is getting lower and lower, and the penetration rate is getting higher and higher.
  • lidars mounted on vehicles There are more and more lidars mounted on vehicles to assist in automatic driving.
  • traffic signs There are generally many traffic signs on the road, indicating the intersection direction, road name, speed limit size, warning information, etc. These traffic signs are generally of the high-reflection type, that is, they have a high reflectivity, which is convenient for lidar to identify .
  • the phenomenon of high anti-expansion often occurs, that is, a circle of point clouds with low reflectivity will be attached around the high-inversion card, resulting in misjudgment of perception.
  • One of the purposes of the embodiments of the present application is to provide a laser radar point cloud processing method, device, computer-readable storage medium, and terminal equipment, aiming to solve the high anti-expansion phenomenon that occurs when the laser radar recognizes high-reflective cards.
  • the first aspect of the embodiments of the present application provides a point cloud processing method for lidar, which may include:
  • each scan point in the point cloud data includes a distance measurement value and a reflectivity measurement value
  • the target scanning point Judging whether the target scanning point is an expansion point according to the distance measurement value and the reflectance measurement value between the target scanning point and the adjacent point; the target scanning point is any scanning point in the point cloud data; the adjacent The point is a scanning point whose distance from the target scanning point in the horizontal direction and in the vertical direction is smaller than a preset threshold;
  • the target scan point is an expansion point, then remove the target scan point from the point cloud data.
  • the judging whether the target scanning point is an expansion point according to the distance measurement value and reflectance measurement value between the target scanning point and adjacent points may include:
  • the target scanning point Judging whether the target scanning point is a horizontal expansion point according to the distance measurement value and reflectance measurement value between the target scanning point and the horizontal adjacent point; the horizontal adjacent point is on the same horizontal line as the target scanning point adjacent points;
  • the vertical adjacent point is at the same location as the target scanning point Adjacent points on a vertical line;
  • the target scanning point is a horizontal expansion point or a vertical expansion point, then determine that the target scanning point is an expansion point.
  • the judging whether the target scanning point is a horizontal expansion point according to the distance measurement value and reflectance measurement value between the target scanning point and horizontal adjacent points may include:
  • the left reflectance value is the reflectance value of the leftmost horizontal adjacent point
  • the middle reflectance value is set
  • the reflectance measurement value of the target scanning point, the reflectance value on the right side is the reflectance value of the rightmost horizontal adjacent point
  • the target scanning point is a horizontal expansion point.
  • the calculating the distance difference on the left side and the distance difference on the right side respectively according to the measured distance values between the target scanning point and the horizontal adjacent point may include:
  • the second absolute value with the largest value is determined as the right distance difference.
  • the first condition may be the intersection of the following conditions:
  • the left distance difference is greater than or equal to a preset distance upper limit threshold
  • the right distance difference is less than or equal to a preset distance lower limit threshold
  • the intermediate reflectivity value is less than or equal to a preset reflectivity lower limit threshold
  • the right reflectivity value is greater than or equal to a preset reflectivity upper threshold.
  • the second condition may be the intersection of the following conditions:
  • the right distance difference is greater than or equal to a preset distance upper limit threshold
  • the left distance difference is less than or equal to a preset distance lower limit threshold
  • the intermediate reflectivity value is less than or equal to a preset reflectivity lower limit threshold
  • the left reflectivity value is greater than or equal to a preset reflectivity upper threshold.
  • the judging whether the target scanning point is a vertical expansion point according to the distance measurement value and the reflectance measurement value between the target scanning point and a vertical adjacent point may include:
  • the upper side reflectance value is the reflectance value of the uppermost vertically adjacent point, and the intermediate reflectance value is set
  • the reflectance measurement value of the target scanning point, the reflectance value of the lower side is the reflectance value of the vertical adjacent point on the lowermost side;
  • the target scanning point is a vertical expansion point.
  • the calculating the upper side distance difference and the lower side distance difference respectively according to the distance measurement values between the target scanning point and the vertical adjacent point may include:
  • the fourth absolute value with the largest value is determined as the lower distance difference.
  • the third condition may be the intersection of the following conditions:
  • the upper distance difference is greater than or equal to a preset distance upper limit threshold
  • the lower distance difference is less than or equal to a preset distance lower limit threshold
  • the intermediate reflectivity value is less than or equal to a preset reflectivity lower limit threshold
  • the lower side reflectance value is greater than or equal to a preset upper reflectance threshold.
  • the fourth condition may be the intersection of the following conditions:
  • the lower distance difference is greater than or equal to a preset distance upper threshold
  • the upper distance difference is less than or equal to a preset distance lower limit threshold
  • the intermediate reflectivity value is less than or equal to a preset reflectivity lower limit threshold
  • the upper side reflectivity value is greater than or equal to a preset upper reflectivity threshold.
  • the second aspect of the embodiments of the present application provides a laser radar point cloud processing device, which may include a functional module that implements the steps of any one of the above laser radar point cloud processing methods.
  • the third aspect of the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the point cloud processing of any one of the above-mentioned laser radars is realized. method steps.
  • the fourth aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program Steps for realizing any one of the above-mentioned laser radar point cloud processing methods.
  • a fifth aspect of the embodiments of the present application provides a computer program product, which, when the computer program product is run on a terminal device, causes the terminal device to execute the steps of any one of the above methods for processing a laser radar point cloud.
  • the beneficial effect of the embodiment of the present application is that the embodiment of the present application makes full use of the characteristics of the expansion point in the distance measurement value and the reflectance measurement value.
  • Figure 1 is a schematic diagram of a laser radar
  • Figure 2 is a schematic diagram of a point cloud of a high-reverse card in an ideal state
  • Fig. 3 is the schematic diagram of light beam spatial distribution
  • Figure 4 is a schematic diagram of high anti-expansion
  • Figure 5 is a schematic diagram of the point cloud after high de-expansion
  • FIG. 6 is a flow chart of an embodiment of a method for processing a laser radar point cloud in an embodiment of the present application
  • Fig. 7 is a logical block diagram of the expansion point identification process
  • Figure 8 is a schematic diagram of the point cloud effect before removing the expansion point
  • Figure 9 is a schematic diagram of the point cloud effect after removing the expansion point
  • FIG. 10 is a structural diagram of an embodiment of a laser radar point cloud processing device in the embodiment of the present application.
  • FIG. 11 is a schematic block diagram of a terminal device in an embodiment of the present application.
  • the distance and reflectivity of the target object can be measured based on laser radar.
  • Lidar is an instrument that uses laser sending and receiving to measure distance. Different lasers emit laser beams at different vertical angles in the air.
  • the photoelectric sensor receives the echo returned by the target object and converts it into a weak electrical signal.
  • the distance and reflectivity of the target are calculated in the digital domain to form a vertical scanning field of view.
  • the motor rotates to the next angle, the entire transmitting and receiving unit repeats the same action again.
  • the target distance at adjacent angles is obtained, and the distance and reflectivity of all target objects at different horizontal angles are collected to form a horizontal scanning field of view.
  • the scanning in the horizontal direction and the vertical direction cooperate with each other to form the three-dimensional distance information of the space target, and then further perceptual processing is performed to determine the shape, size and type of the target object.
  • Figure 1 shows a schematic diagram of a typical laser radar, in which the control and processing unit is used to control the system to work according to a certain sequence of transmission and reception, and at the same time process the received data to obtain the distance and reflectivity results of the target object.
  • the unit is usually a plurality of semiconductor laser arrays, which emit laser light according to a certain timing under the drive of voltage.
  • the returned echo passes through the receiving lens to the receiving photoelectric sensor, and is converted into an electrical signal, which is amplified in the receiving unit. It is converted into a digital quantity, and after subsequent digital processing, the distance and reflectance results are formed.
  • Reflectance is a physical quantity that characterizes the optical reflection ability of an object. After any object in nature is exposed to light, it will absorb and reflect the incident light. Different types of objects have different properties of electromagnetic waves, so their properties of reflecting incident light are also different. That is to say, when the incident light is constant, the intensity of the reflected light is different when it hits different substances.
  • the signs on the road are high-reflective objects, which have a strong ability to reflect incident light. If they emit light with a little weak energy, when they hit the high-reflective signs, they can almost all be reflected back from the original path. In the receiving unit, there is no detected easily.
  • the reflectivity of the target object can be calculated according to the ratio of the received echo energy reflected back by the target to the transmitted energy.
  • the reflectivity of the high-reflection card is extremely high, and it is usually an isolated target.
  • the emission beam is in an ideal state, assuming that the emission is a straight line, the emission beam enters the high-reverse card from the open target during the rotation process, without excessive state, and directly enters the high-reverse card.
  • Figure 2 is a schematic diagram of the point cloud formed by scanning at this time. Since the beam is an ideal straight line, there is no transition when scanning the high-reverse board, so the result of the point cloud represents the actual width of the high-reversal board.
  • the actual emitted light beam is non-ideal, as shown in Figure 3, there is energy distribution on the vertical plane along the emission direction, the farther away from the center of the vertical plane, the smaller the light energy.
  • the edge of the beam passes through the high-reflection card first, because the reflection ability of the high-reflection card is quite strong, and the small energy at the edge of the beam is reflected back to the radar for reception, and is detected, with low reflection rate form.
  • the echo energy gradually increases until all the beams enter the high-reflection board and appear in the form of high reflectivity.
  • the formed point cloud is higher than the actual The width should be wide.
  • the point cloud outside the actual width of the high-definition board presents a form of low reflectivity due to the small beam edge energy
  • the point cloud within the actual width of the high-definition board presents a form of high reflectivity due to the large energy of the main beam, which is called High anti-expansion.
  • this application makes full use of the characteristics of the expansion point in the distance measurement value and reflectivity measurement value.
  • Figure 6 is a flow chart of an embodiment of a point cloud processing method of a laser radar in the embodiment of the present application, and the specific processing process may include the following steps:
  • Step S601 acquiring point cloud data collected by lidar.
  • each scanning point in the point cloud data includes a distance measurement value and a reflectivity measurement value.
  • its distance measurement value can be recorded as Dis(m,n)
  • its reflectance measurement value can be recorded as Reflect(m,n).
  • the typical value of the interval between adjacent horizontal scanning serial numbers is 1/18000 seconds.
  • the typical frame rate is 10 frames
  • the horizontal angle difference between adjacent dot frequencies is 0.2 degrees
  • the typical angular interval between adjacent vertical scanning serial numbers is 0.1 degrees. .
  • Step S602 judging whether the target scanning point is an expansion point according to the distance measurement value and reflectance measurement value between the target scanning point and adjacent points.
  • the target scanning point may be any scanning point in the point cloud data; the adjacent point may be a scanning point whose distance from the target scanning point in the horizontal direction and in the vertical direction is smaller than a preset threshold.
  • whether the target scanning point is a horizontal expansion point can be judged according to the distance measurement value and the reflectance measurement value between the target scanning point and horizontal adjacent points.
  • the horizontal adjacent point is an adjacent point on the same horizontal line as the target scanning point.
  • the data of k scanning points can be stored in total.
  • the specific number of k can be set according to the actual situation.
  • the typical value of k can be set to 9.
  • the left distance difference and the right distance difference can be calculated respectively according to the distance measurement values between the target scanning point and the horizontal adjacent points.
  • the absolute value of the difference between the distance measurement value of the leftmost horizontal adjacent point and the distance measurement value of the target scanning point can be determined as the left distance difference, that is :
  • DisDifL abs(Dis(m-(k-1)/2,n)-Dis(m,n))
  • the absolute value of the difference between the distance measurement value of the rightmost horizontal adjacent point and the distance measurement value of the target scanning point is determined as the right distance difference, namely:
  • DisDifR abs(Dis(m+(k-1)/2,n)-Dis(m,n))
  • abs is the absolute value function
  • DisDifL is the distance difference on the left side
  • DisDifR is the distance difference on the right side.
  • the first absolute value of the difference between the distance measurement value of the leftmost s horizontal adjacent points and the distance measurement value of the target scanning point can be calculated respectively, and the value The largest first absolute value is determined as the left distance difference.
  • s is a positive integer, and its specific value can be set according to the actual situation.
  • s can be set to 2
  • the left distance difference can be calculated according to the following formula:
  • DisDifL max(abs(Dis(m-(k-1)/2,n)-Dis(m,n)),abs(Dis(m-(k-1)/2+1,n)-Dis(m, n)))
  • max is the maximum value function.
  • the second absolute value of the difference between the distance measurement values of the rightmost s horizontal adjacent points and the distance measurement value of the target scanning point can be calculated respectively, and will be taken as The second absolute value with the largest value is determined as the right distance difference.
  • the right distance difference can be calculated according to the following formula:
  • DisDifR max(abs(Dis(m+(k-1)/2-1,n)-Dis(m,n)),abs(Dis(m+(k-1)/2,n)-Dis(m, n))).
  • left, middle, and right reflectance values may be determined, respectively.
  • the left reflectance value is the reflectance value of the leftmost horizontal adjacent point
  • the middle reflectance value is the reflectance measurement value of the target scanning point
  • the right reflectance value is the reflectance of the rightmost horizontal adjacent point value, namely:
  • ReflectL is the left reflectance value
  • ReflectC is the middle reflectance value
  • ReflectR is the right reflectance value.
  • the target scanning point is determined to be the horizontal expansion point.
  • the first condition can be the intersection of the following four conditions, that is, the following four conditions need to be met at the same time:
  • the distance difference on the left side is greater than or equal to the preset distance upper limit threshold, that is, DisDifL ⁇ ThreDisB, ThreDisB is the distance upper limit threshold, and its specific value can be set according to the actual situation.
  • its typical value can be set to 1 meter;
  • the distance difference on the right side is less than or equal to the preset distance lower limit threshold, that is, DisDifR ⁇ ThreDisS, ThreDisS is the distance lower limit threshold, and its specific value can be set according to the actual situation.
  • its typical value can be set to 0.1 meters;
  • the intermediate reflectance value is less than or equal to the preset reflectivity lower limit threshold, that is, ReflectC ⁇ ThreReflectS, ThreReflectS is the reflectivity lower limit threshold, and its specific value can be set according to the actual situation.
  • its typical value can be set to 15;
  • the reflectance value on the right is greater than or equal to the preset reflectance upper limit threshold, that is, ReflectR ⁇ ThreReflectB, ThreReflectB is the reflectance upper limit threshold, and its specific value can be set according to the actual situation.
  • its typical value can be set to 200.
  • the target scanning point is the expansion point on the left side of the high-reversed card.
  • the second condition can be the intersection of the following four conditions, that is, the following four conditions need to be met at the same time:
  • the distance difference on the right is greater than or equal to the preset distance upper limit threshold, that is, DisDifR ⁇ ThreDisB;
  • the left distance difference is less than or equal to the preset distance lower limit threshold, that is, DisDifL ⁇ ThreDisS;
  • the intermediate reflectance value is less than or equal to the preset reflectance lower limit threshold, that is, ReflectC ⁇ ThreReflectS;
  • the left reflectance value is greater than or equal to the preset reflectance upper threshold, that is, ReflectL ⁇ ThreReflectB.
  • the target scanning point is the expansion point on the right side of the high-reversed card.
  • the vertical adjacent point is the adjacent point on the same vertical line as the target scanning point.
  • the data of k scanning points can be stored in total. For example, if the scanning point whose horizontal scanning number is m and vertical scanning number is n is taken as the target scanning point, it is necessary to store the values from Dis(m,n-(k-1)/2) to Dis(m,n+(k- 1)/2) for k distance measurements, and k reflectance measurements from Reflect(m,n-(k-1)/2) to Reflect(m,n+(k-1)/2).
  • the upper distance difference and the lower distance difference may be calculated respectively according to the distance measurement values between the target scanning point and the vertical adjacent point.
  • the absolute value of the difference between the distance measurement value of the uppermost vertical adjacent point and the distance measurement value of the target scanning point can be determined as the upper side distance difference, that is :
  • DisDifU abs(Dis(m,n-(k-1)/2)-Dis(m,n))
  • the absolute value of the difference between the distance measurement value of the vertically adjacent point on the lowermost side and the distance measurement value of the target scanning point is determined as the lower side distance difference, that is:
  • DisDifD abs(Dis(m,n+(k-1)/2)-Dis(m,n))
  • DisDifL is the distance difference on the upper side
  • DisDifR is the distance difference on the lower side.
  • the calculation of the distance difference on the upper side is taken as an example.
  • the third absolute value of the difference between the distance measurement values of the uppermost s vertical adjacent points and the distance measurement value of the target scanning point can be calculated respectively, and the maximum value The third absolute value of is determined as the upper side distance difference.
  • the upper side distance difference can be calculated according to the following formula:
  • DisDifU max(abs(Dis(m,n-(k-1)/2)-Dis(m,n)), abs(Dis(m,n-(k-1)/2+1)-Dis(m, n))).
  • the fourth absolute value of the difference between the distance measurement values of the lowermost s vertical adjacent points and the distance measurement value of the target scanning point can be calculated respectively, and The fourth absolute value with the largest value is determined as the lower distance difference.
  • the lower side distance difference can be calculated according to the following formula:
  • DisDifD max(abs(Dis(m,n+(k-1)/2-1)-Dis(m,n)),abs(Dis(m,n+(k-1)/2)-Dis(m, n))).
  • upper side reflectance values, intermediate reflectance values and lower side reflectance values may be determined respectively.
  • the upper side reflectance value is the reflectance value of the uppermost vertical adjacent point
  • the middle reflectance value is the reflectance measurement value of the target scanning point
  • the lower side reflectance value is the reflection of the lowermost vertical adjacent point Rate value, that is:
  • ReflectU is the reflectance value of the upper side
  • ReflectC is the reflectance value of the middle side
  • ReflectD is the reflectance value of the lower side.
  • the target scanning point is determined to be the vertical expansion point.
  • the third condition can be the intersection of the following four conditions, that is, the following four conditions need to be met at the same time:
  • the upper distance difference is greater than or equal to the preset distance upper limit threshold, that is, DisDifU ⁇ ThreDisB;
  • the lower distance difference is less than or equal to the preset distance lower limit threshold, that is, DisDifD ⁇ ThreDisS;
  • the intermediate reflectance value is less than or equal to the preset reflectance lower limit threshold, that is, ReflectC ⁇ ThreReflectS;
  • the lower reflectivity value is greater than or equal to the preset upper reflectivity threshold, that is, ReflectD ⁇ ThreReflectB.
  • the target scanning point is the expansion point on the upper side of the high-reversed card.
  • the fourth condition can be the intersection of the following four conditions, that is, the following four conditions need to be met at the same time:
  • the lower distance difference is greater than or equal to the preset distance upper threshold, that is, DisDifD ⁇ ThreDisB;
  • the upper distance difference is less than or equal to the preset distance lower limit threshold, that is, DisDifU ⁇ ThreDisS;
  • the intermediate reflectance value is less than or equal to the preset reflectance lower limit threshold, that is, ReflectC ⁇ ThreReflectS;
  • the upper reflectance value is greater than or equal to the preset reflectance upper threshold, that is, ReflectU ⁇ ThreReflectB.
  • the target scanning point is the expansion point on the lower side of the high-reversed card.
  • the target scanning point is a horizontal expansion point or a vertical expansion point, it may be determined that the target scanning point is the expansion point.
  • Fig. 7 is a logic block diagram of the identification process of the expansion point in the horizontal direction. As shown in the figure, its specific implementation process may include:
  • the reflectance measurement value is read from the cache, and written into the shift register corresponding to the reflectance measurement value, here a total of k shift registers are set for the reflectance measurement value, and the reflectance measurement value stored therein In turn, it is recorded as: Reflect(m-k,n), Reflect(m-k+1,n),..., Reflect(m-(k+1)/2,n),..., Reflect(m-2,n ), Reflect(m-1,n), and set:
  • Sub00, Sub01, Sub02, and Sub03 are the calculation results of the four subtractors respectively.
  • the scanning point corresponding to the shift register in the middle is a horizontal expansion point, and if Spread is 0, the scanning point corresponding to the shift register in the middle is not a horizontal expansion point.
  • the identification process of the expansion point in the vertical direction is similar to the identification process of the expansion point in the horizontal direction, which can be referred to above, and will not be repeated here.
  • Step S603 if the target scanning point is an expansion point, remove the target scanning point from the point cloud data.
  • Figure 8 is a schematic diagram of the point cloud effect before the expansion point is removed. It can be seen that there will be a circle of point clouds with very low reflectivity around the high-reverse card.
  • Figure 9 is a schematic diagram of the point cloud effect after removing the expansion points, from which it can be seen that the expansion points around the high-reversed cards have been eliminated.
  • this application makes full use of the characteristics of the expansion point in the distance measurement value and reflectivity measurement value.
  • the distance between the target scanning point and the adjacent point is measured Value and reflectance measurement value to judge whether the target scanning point is an expansion point, and remove the identified expansion point from the point cloud data, thereby avoiding the occurrence of high anti-expansion phenomenon and ensuring the accuracy of lidar recognition.
  • FIG. 10 shows a structural diagram of an embodiment of a point cloud processing device for lidar provided in the embodiment of the present application.
  • a laser radar point cloud processing device may include:
  • the point cloud data acquisition module 1001 is used to obtain the point cloud data collected by the lidar; each scanning point in the point cloud data includes a distance measurement value and a reflectance measurement value;
  • An expansion point judging module 1002 configured to determine whether the target scanning point is an expansion point according to the distance measurement value and reflectance measurement value between the target scanning point and adjacent points; the target scanning point is any point in the point cloud data.
  • a scanning point; the adjacent point is a scanning point whose distance from the target scanning point in the horizontal direction and in the vertical direction is smaller than a preset threshold;
  • the expansion point removal module 1003 is configured to remove the target scanning point from the point cloud data if the target scanning point is an expansion point.
  • FIG. 11 shows a schematic block diagram of a terminal device provided by an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
  • the terminal device 11 of this embodiment includes: a processor 110 , a memory 111 , and a computer program 112 stored in the memory 111 and operable on the processor 110 .
  • the processor 110 executes the computer program 112
  • the steps in the above-mentioned embodiments of the point cloud processing method of each laser radar are realized.
  • the processor 110 executes the computer program 112
  • functions of the modules/units in the foregoing device embodiments are implemented.
  • the computer program 112 can be divided into one or more modules/units, and the one or more modules/units are stored in the memory 111 and executed by the processor 110 to complete this application.
  • the one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program 112 in the terminal device 11 .
  • FIG. 11 is only an example of the terminal device 11, and does not constitute a limitation on the terminal device 11. It may include more or less components than those shown in the figure, or combine some components, or different components.
  • the terminal device 11 may also include an input and output device, a network access device, a bus, and the like.
  • the processor 110 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the storage 111 may be an internal storage unit of the terminal device 11 , for example, a hard disk or a memory of the terminal device 11 .
  • the memory 111 may also be an external storage device of the terminal device 11, such as a plug-in hard disk equipped on the terminal device 11, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc. Further, the memory 111 may also include both an internal storage unit of the terminal device 11 and an external storage device.
  • the memory 111 is used to store the computer program and other programs and data required by the terminal device 11 .
  • the memory 111 can also be used to temporarily store data that has been output or will be output.
  • the disclosed apparatus/terminal device and method may be implemented in other ways.
  • the device/terminal device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • 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 may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated module/unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments in the present application can also be completed by instructing related hardware through computer programs.
  • the computer programs can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form.
  • the computer-readable storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory ), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electric carrier signal telecommunication signal and software distribution medium, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Electromagnetism (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

Disclosed in the present application are a point cloud processing method and apparatus for a laser radar, and a computer-readable storage medium and a terminal device. The point cloud processing method for a laser radar comprises: acquiring point cloud data which is collected by a laser radar, wherein each scanning point in the point cloud data comprises a distance measurement value and a reflectivity measurement value; according to distance measurement values and reflectivity measurement values of a target scanning point and an adjacent point, determining whether the target scanning point is an expansion point; and if the target scanning point is an expansion point, removing the target scanning point from the point cloud data. By means of the present application, the occurrence of the phenomenon of high reflectivity expansion is prevented, thereby ensuring the accuracy of laser radar recognition.

Description

激光雷达的点云处理方法、装置、存储介质及终端设备Laser radar point cloud processing method, device, storage medium and terminal equipment 技术领域technical field
本申请涉及激光传感技术领域,具体涉及一种激光雷达的点云处理方法、装置、计算机可读存储介质及终端设备。The present application relates to the technical field of laser sensing, and in particular to a laser radar point cloud processing method, device, computer-readable storage medium and terminal equipment.
背景技术Background technique
随着科技的发展,激光雷达研发制造的成本越来越低,普及率越来越高,装载在车辆上辅助进行自动驾驶的激光雷达也越来越多。道路上一般会有较多的交通指示牌,指明路口方向、道路名称、限速大小、警示信息等,这些交通指示牌一般为高反类型,即具有较高的反射率,便于激光雷达进行识别。但在实际应用中,常常会出现高反膨胀现象,即在高反牌四周会附着一圈反射率较低的点云,从而造成感知误判。With the development of science and technology, the cost of lidar R&D and manufacturing is getting lower and lower, and the penetration rate is getting higher and higher. There are more and more lidars mounted on vehicles to assist in automatic driving. There are generally many traffic signs on the road, indicating the intersection direction, road name, speed limit size, warning information, etc. These traffic signs are generally of the high-reflection type, that is, they have a high reflectivity, which is convenient for lidar to identify . However, in practical applications, the phenomenon of high anti-expansion often occurs, that is, a circle of point clouds with low reflectivity will be attached around the high-inversion card, resulting in misjudgment of perception.
技术问题technical problem
本申请实施例的目的之一在于:提供一种激光雷达的点云处理方法、装置、计算机可读存储介质及终端设备,旨在解决激光雷达在识别高反牌时出现的高反膨胀现象。One of the purposes of the embodiments of the present application is to provide a laser radar point cloud processing method, device, computer-readable storage medium, and terminal equipment, aiming to solve the high anti-expansion phenomenon that occurs when the laser radar recognizes high-reflective cards.
技术解决方案technical solution
本申请实施例的第一方面提供了一种激光雷达的点云处理方法,可以包括:The first aspect of the embodiments of the present application provides a point cloud processing method for lidar, which may include:
获取激光雷达采集的点云数据;所述点云数据中的每个扫描点均包括距离测量值和反射率测量值;Obtain the point cloud data collected by the laser radar; each scan point in the point cloud data includes a distance measurement value and a reflectivity measurement value;
根据目标扫描点与相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为膨胀点;所述目标扫描点为所述点云数据中的任意一个扫描点;所述相邻点为与所述目标扫描点在水平方向上及在竖直方向上的间隔均小于预设阈值的扫描点;Judging whether the target scanning point is an expansion point according to the distance measurement value and the reflectance measurement value between the target scanning point and the adjacent point; the target scanning point is any scanning point in the point cloud data; the adjacent The point is a scanning point whose distance from the target scanning point in the horizontal direction and in the vertical direction is smaller than a preset threshold;
若所述目标扫描点为膨胀点,则从所述点云数据中去除所述目标扫描点。If the target scan point is an expansion point, then remove the target scan point from the point cloud data.
在第一方面的一种具体实现中,所述根据目标扫描点与相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为膨胀点,可以包括:In a specific implementation of the first aspect, the judging whether the target scanning point is an expansion point according to the distance measurement value and reflectance measurement value between the target scanning point and adjacent points may include:
根据所述目标扫描点与水平相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为水平膨胀点;所述水平相邻点为与所述目标扫描点处于同一水平线上的相邻点;Judging whether the target scanning point is a horizontal expansion point according to the distance measurement value and reflectance measurement value between the target scanning point and the horizontal adjacent point; the horizontal adjacent point is on the same horizontal line as the target scanning point adjacent points;
根据所述目标扫描点与竖直相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为竖直膨胀点;所述竖直相邻点为与所述目标扫描点处于同一竖直线上的相邻点;According to the distance measurement value and the reflectance measurement value of the target scanning point and the vertical adjacent point, it is judged whether the target scanning point is a vertical expansion point; the vertical adjacent point is at the same location as the target scanning point Adjacent points on a vertical line;
若所述目标扫描点为水平膨胀点或竖直膨胀点,则确定所述目标扫描点为膨胀点。If the target scanning point is a horizontal expansion point or a vertical expansion point, then determine that the target scanning point is an expansion point.
在第一方面的一种具体实现中,所述根据所述目标扫描点与水平相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为水平膨胀点,可以包括:In a specific implementation of the first aspect, the judging whether the target scanning point is a horizontal expansion point according to the distance measurement value and reflectance measurement value between the target scanning point and horizontal adjacent points may include:
根据所述目标扫描点与所述水平相邻点的距离测量值分别计算左侧距离差和右侧距离差;Calculate the distance difference on the left side and the distance difference on the right side respectively according to the distance measurement value between the target scanning point and the horizontal adjacent point;
判断所述左侧距离差、所述右侧距离差、中间反射率值和右侧反射率值是否满足预设的第一条件或所述左侧距离差、所述右侧距离差、左侧反射率值和所述中间反射率值是否满足预设的第二条件;所述左侧反射率值为最左侧的所述水平相邻点的反射率值,所述中间反射率值为所述目标扫描点的反射率测量值,所述右侧反射率值为最右侧的所述水平相邻点的反射率值;Judging whether the left distance difference, the right distance difference, the middle reflectance value and the right reflectance value meet a preset first condition or whether the left distance difference, the right distance difference, the left Whether the reflectance value and the middle reflectance value meet the preset second condition; the left reflectance value is the reflectance value of the leftmost horizontal adjacent point, and the middle reflectance value is set The reflectance measurement value of the target scanning point, the reflectance value on the right side is the reflectance value of the rightmost horizontal adjacent point;
若满足所述第一条件或所述第二条件,则确定所述目标扫描点为水平膨胀点。If the first condition or the second condition is met, it is determined that the target scanning point is a horizontal expansion point.
在第一方面的一种具体实现中,所述根据所述目标扫描点与所述水平相邻点的距离测量值分别计算左侧距离差和右侧距离差,可以包括:In a specific implementation of the first aspect, the calculating the distance difference on the left side and the distance difference on the right side respectively according to the measured distance values between the target scanning point and the horizontal adjacent point may include:
分别计算最左侧的若干个所述水平相邻点的距离测量值与所述目标扫描点的距离测量值之间的差值的第一绝对值;respectively calculating the first absolute value of the difference between the distance measurement values of the leftmost several horizontal adjacent points and the distance measurement value of the target scanning point;
将取值最大的第一绝对值确定为所述左侧距离差;determining the first absolute value with the largest value as the left distance difference;
分别计算最右侧的若干个所述水平相邻点的距离测量值与所述目标扫描点的距离测量值之间的差值的第二绝对值;Respectively calculating the second absolute value of the difference between the distance measurement values of the rightmost several horizontal adjacent points and the distance measurement value of the target scanning point;
将取值最大的第二绝对值确定为所述右侧距离差。The second absolute value with the largest value is determined as the right distance difference.
在第一方面的一种具体实现中,所述第一条件可以为以下条件的交集:In a specific implementation of the first aspect, the first condition may be the intersection of the following conditions:
所述左侧距离差大于或等于预设的距离上限阈值;The left distance difference is greater than or equal to a preset distance upper limit threshold;
所述右侧距离差小于或等于预设的距离下限阈值;The right distance difference is less than or equal to a preset distance lower limit threshold;
所述中间反射率值小于或等于预设的反射率下限阈值;The intermediate reflectivity value is less than or equal to a preset reflectivity lower limit threshold;
所述右侧反射率值大于或等于预设的反射率上限阈值。The right reflectivity value is greater than or equal to a preset reflectivity upper threshold.
在第一方面的一种具体实现中,所述第二条件可以为以下条件的交集:In a specific implementation of the first aspect, the second condition may be the intersection of the following conditions:
所述右侧距离差大于或等于预设的距离上限阈值;The right distance difference is greater than or equal to a preset distance upper limit threshold;
所述左侧距离差小于或等于预设的距离下限阈值;The left distance difference is less than or equal to a preset distance lower limit threshold;
所述中间反射率值小于或等于预设的反射率下限阈值;The intermediate reflectivity value is less than or equal to a preset reflectivity lower limit threshold;
所述左侧反射率值大于或等于预设的反射率上限阈值。The left reflectivity value is greater than or equal to a preset reflectivity upper threshold.
在第一方面的一种具体实现中,所述根据所述目标扫描点与竖直相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为竖直膨胀点,可以包括:In a specific implementation of the first aspect, the judging whether the target scanning point is a vertical expansion point according to the distance measurement value and the reflectance measurement value between the target scanning point and a vertical adjacent point may include:
根据所述目标扫描点与所述竖直相邻点的距离测量值分别计算上侧距离差和下侧距离差;calculating the upper side distance difference and the lower side distance difference respectively according to the distance measurement values between the target scanning point and the vertical adjacent point;
判断所述上侧距离差、所述下侧距离差、中间反射率值和下侧反射率值是否满足预设的第三条件或所述上侧距离差、所述下侧距离差、上侧反射率值和所述中间反射率值是否满足预设的第四条件;所述上侧反射率值为最上侧的所述竖直相邻点的反射率值,所述中间反射率值为所述目标扫描点的反射率测量值,所述下侧反射率值为最下侧的所述竖直相邻点的反射率值;judging whether the upper distance difference, the lower distance difference, the middle reflectance value, and the lower reflectance value meet a preset third condition or whether the upper distance difference, the lower distance difference, the upper Whether the reflectance value and the intermediate reflectance value meet the preset fourth condition; the upper side reflectance value is the reflectance value of the uppermost vertically adjacent point, and the intermediate reflectance value is set The reflectance measurement value of the target scanning point, the reflectance value of the lower side is the reflectance value of the vertical adjacent point on the lowermost side;
若满足所述第三条件或所述第四条件,则确定所述目标扫描点为竖直膨胀点。If the third condition or the fourth condition is met, it is determined that the target scanning point is a vertical expansion point.
在第一方面的一种具体实现中,所述根据所述目标扫描点与所述竖直相邻点的距离测量值分别计算上侧距离差和下侧距离差,可以包括:In a specific implementation of the first aspect, the calculating the upper side distance difference and the lower side distance difference respectively according to the distance measurement values between the target scanning point and the vertical adjacent point may include:
分别计算最上侧的若干个所述竖直相邻点的距离测量值与所述目标扫描点的距离测量值之间的差值的第三绝对值;Calculating the third absolute value of the difference between the distance measurement values of the several vertical adjacent points on the uppermost side and the distance measurement values of the target scanning point respectively;
将取值最大的第三绝对值确定为所述上侧距离差;determining the third absolute value with the largest value as the upper distance difference;
分别计算最下侧的若干个所述竖直相邻点的距离测量值与所述目标扫描点的距离测量值之间的差值的第四绝对值;Calculating the fourth absolute value of the difference between the measured distance values of several vertical adjacent points on the lowermost side and the measured distance values of the target scanning point;
将取值最大的第四绝对值确定为所述下侧距离差。The fourth absolute value with the largest value is determined as the lower distance difference.
在第一方面的一种具体实现中,所述第三条件可以为以下条件的交集:In a specific implementation of the first aspect, the third condition may be the intersection of the following conditions:
所述上侧距离差大于或等于预设的距离上限阈值;The upper distance difference is greater than or equal to a preset distance upper limit threshold;
所述下侧距离差小于或等于预设的距离下限阈值;The lower distance difference is less than or equal to a preset distance lower limit threshold;
所述中间反射率值小于或等于预设的反射率下限阈值;The intermediate reflectivity value is less than or equal to a preset reflectivity lower limit threshold;
所述下侧反射率值大于或等于预设的反射率上限阈值。The lower side reflectance value is greater than or equal to a preset upper reflectance threshold.
在第一方面的一种具体实现中,所述第四条件可以为以下条件的交集:In a specific implementation of the first aspect, the fourth condition may be the intersection of the following conditions:
所述下侧距离差大于或等于预设的距离上限阈值;The lower distance difference is greater than or equal to a preset distance upper threshold;
所述上侧距离差小于或等于预设的距离下限阈值;The upper distance difference is less than or equal to a preset distance lower limit threshold;
所述中间反射率值小于或等于预设的反射率下限阈值;The intermediate reflectivity value is less than or equal to a preset reflectivity lower limit threshold;
所述上侧反射率值大于或等于预设的反射率上限阈值。The upper side reflectivity value is greater than or equal to a preset upper reflectivity threshold.
本申请实施例的第二方面提供了一种激光雷达的点云处理装置,可以包括实现上述任一种激光雷达的点云处理方法的步骤的功能模块。The second aspect of the embodiments of the present application provides a laser radar point cloud processing device, which may include a functional module that implements the steps of any one of the above laser radar point cloud processing methods.
本申请实施例的第三方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述任一种激光雷达的点云处理方法的步骤。The third aspect of the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the point cloud processing of any one of the above-mentioned laser radars is realized. method steps.
本申请实施例的第四方面提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任一种激光雷达的点云处理方法的步骤。The fourth aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program Steps for realizing any one of the above-mentioned laser radar point cloud processing methods.
本申请实施例的第五方面提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述任一种激光雷达的点云处理方法的步骤。A fifth aspect of the embodiments of the present application provides a computer program product, which, when the computer program product is run on a terminal device, causes the terminal device to execute the steps of any one of the above methods for processing a laser radar point cloud.
有益效果Beneficial effect
本申请实施例有益效果在于:本申请实施例充分利用了膨胀点在距离测量值和反射率测量值上具有的特性,在获取到激光雷达采集到的点云数据后,根据目标扫描点与相邻点的距离测量值和反射率测量值判断目标扫描点是否为膨胀点,并从点云数据中去除掉识别出的膨胀点,从而避免了高反膨胀现象的发生,保证了激光雷达识别的准确性。The beneficial effect of the embodiment of the present application is that the embodiment of the present application makes full use of the characteristics of the expansion point in the distance measurement value and the reflectance measurement value. After obtaining the point cloud data collected by the laser radar, according to the target scanning point and relative The distance measurement value and the reflectance measurement value of the adjacent points determine whether the target scanning point is an expansion point, and remove the identified expansion point from the point cloud data, thereby avoiding the occurrence of high anti-expansion phenomenon and ensuring the accuracy of lidar recognition. accuracy.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或示范性技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the embodiments or exemplary technical descriptions. Obviously, the accompanying drawings in the following descriptions are only for this application. For some embodiments, those skilled in the art can also obtain other drawings based on these drawings without creative efforts.
图1为激光雷达的示意图;Figure 1 is a schematic diagram of a laser radar;
图2为理想状态下高反牌的点云示意图;Figure 2 is a schematic diagram of a point cloud of a high-reverse card in an ideal state;
图3为光束空间分布的示意图;Fig. 3 is the schematic diagram of light beam spatial distribution;
图4为高反膨胀的示意图;Figure 4 is a schematic diagram of high anti-expansion;
图5为高反膨胀后的点云示意图;Figure 5 is a schematic diagram of the point cloud after high de-expansion;
图6为本申请实施例中一种激光雷达的点云处理方法的一个实施例流程图;FIG. 6 is a flow chart of an embodiment of a method for processing a laser radar point cloud in an embodiment of the present application;
图7为膨胀点识别过程的逻辑框图;Fig. 7 is a logical block diagram of the expansion point identification process;
图8为去除膨胀点之前的点云效果示意图;Figure 8 is a schematic diagram of the point cloud effect before removing the expansion point;
图9为去除膨胀点之后的点云效果示意图;Figure 9 is a schematic diagram of the point cloud effect after removing the expansion point;
图10为本申请实施例中一种激光雷达的点云处理装置的一个实施例结构图;FIG. 10 is a structural diagram of an embodiment of a laser radar point cloud processing device in the embodiment of the present application;
图11为本申请实施例中一种终端设备的示意框图。FIG. 11 is a schematic block diagram of a terminal device in an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
为使得本申请的发明目的、特征、优点能够更加的明显和易懂,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本申请一部分实施例,而非全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the purpose, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the following The described embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other features. , whole, step, operation, element, component and/or the presence or addition of a collection thereof.
另外,在本申请的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the present application, the terms "first", "second", "third" and so on are only used to distinguish descriptions, and should not be understood as indicating or implying relative importance.
在本申请实施例中,可以基于激光雷达来对目标物体的距离和反射率进行测量。激光雷达是一种利用激光发收来测距的仪器,其不同的激光器在空中发射不同垂直角度的激光束,同时光电传感器接收到目标物体返回来的回波,转化为微弱的电信号,放大后,经模数变换,在数字域计算目标的距离及反射率,形成垂直方向的扫描视场。当电机旋转到下一角度,整个发射接收单元再次同样的重复动作,处理后得到相邻角度的目标距离,收集所有不同水平角度的目标物体的距离及反射率,形成水平方向的扫描视场。水平方向和垂直方向的扫描相互配合,形成空间目标的三维距离信息,后续经过进一步的感知处理来确定目标物体的形状、大小和类型等信息。In the embodiment of the present application, the distance and reflectivity of the target object can be measured based on laser radar. Lidar is an instrument that uses laser sending and receiving to measure distance. Different lasers emit laser beams at different vertical angles in the air. At the same time, the photoelectric sensor receives the echo returned by the target object and converts it into a weak electrical signal. Afterwards, through analog-to-digital conversion, the distance and reflectivity of the target are calculated in the digital domain to form a vertical scanning field of view. When the motor rotates to the next angle, the entire transmitting and receiving unit repeats the same action again. After processing, the target distance at adjacent angles is obtained, and the distance and reflectivity of all target objects at different horizontal angles are collected to form a horizontal scanning field of view. The scanning in the horizontal direction and the vertical direction cooperate with each other to form the three-dimensional distance information of the space target, and then further perceptual processing is performed to determine the shape, size and type of the target object.
图1所示为典型的激光雷达的示意图,其中,控制及处理单元用于控制系统按照一定的发射接收时序来工作,同时对接收的数据进行处理,得到目标物体的距离及反射率结果,发射单元通常是多个半导体激光器阵列,在电压的驱动下按照一定的时序发射激光,当发射方向有目标物体时,返回的回波经接收镜头到接收光电传感器,转化为电信号,在接收单元放大转化为数字量,经过后续的数字化处理后形成距离及反射率结果。Figure 1 shows a schematic diagram of a typical laser radar, in which the control and processing unit is used to control the system to work according to a certain sequence of transmission and reception, and at the same time process the received data to obtain the distance and reflectivity results of the target object. The unit is usually a plurality of semiconductor laser arrays, which emit laser light according to a certain timing under the drive of voltage. When there is a target object in the emission direction, the returned echo passes through the receiving lens to the receiving photoelectric sensor, and is converted into an electrical signal, which is amplified in the receiving unit. It is converted into a digital quantity, and after subsequent digital processing, the distance and reflectance results are formed.
反射率为表征物体的光学反射能力的物理量。自然界中任何物体经受光的照射之后,都会对入射光具有吸收和反射的现象。不同类型的物体所特有的电磁波性质也不相同,因而它们的反射入射光的性质也不相同。也就是说当入射光一定的情况下,打到不同的物质其反射光的强度也不相同。例如道路上的指示牌为高反物体,对入射光的反射能力极强,发射稍微一点弱能量的光,打在高反牌上面,几乎都可以全部原路反射回来,在接收单元中能毫不费力的检测出来。Reflectance is a physical quantity that characterizes the optical reflection ability of an object. After any object in nature is exposed to light, it will absorb and reflect the incident light. Different types of objects have different properties of electromagnetic waves, so their properties of reflecting incident light are also different. That is to say, when the incident light is constant, the intensity of the reflected light is different when it hits different substances. For example, the signs on the road are high-reflective objects, which have a strong ability to reflect incident light. If they emit light with a little weak energy, when they hit the high-reflective signs, they can almost all be reflected back from the original path. In the receiving unit, there is no detected easily.
一般可以根据目标反射回来的接收回波能量和发射能量的比值,来计算目标物体的反射率,高反牌的反射率极高,通常为孤立的目标。当发射光束为理想状态时,假设发射为一根直线,发射光束在旋转过程中,从空旷的目标进入到高反牌,没有过度状态,直接全部进入到高反牌。图2所示即为此时扫描形成的点云示意图,由于光束为理想直线型,扫过高反牌时,没有过渡,因此点云的结果代表高反牌的实际宽度。Generally, the reflectivity of the target object can be calculated according to the ratio of the received echo energy reflected back by the target to the transmitted energy. The reflectivity of the high-reflection card is extremely high, and it is usually an isolated target. When the emission beam is in an ideal state, assuming that the emission is a straight line, the emission beam enters the high-reverse card from the open target during the rotation process, without excessive state, and directly enters the high-reverse card. Figure 2 is a schematic diagram of the point cloud formed by scanning at this time. Since the beam is an ideal straight line, there is no transition when scanning the high-reverse board, so the result of the point cloud represents the actual width of the high-reversal board.
实际发射光束为非理想型,如图3所示,在沿发射方向的垂直面上有能量分布,离垂直面中心越远,光能量越小。当光束从左到右扫过高反牌时,光束边缘先经过高反牌,因为高反牌的反射能力相当强,光束边缘的小能量被反射回雷达接收,并被检测出来,以低反射率的形态呈现。如图4所示,随着光束进入高反牌的越多,回波能量逐渐变大,直到光束全部进入高反牌,以高反射率的形态呈现,形成的点云比高反牌的实际宽度要宽,高反牌实际宽度之外的点云因光束边缘能量小呈现低反射率的形态,高反牌实际宽度之内的点云因主光束能量大呈现高反射率的形态,称为高反膨胀。The actual emitted light beam is non-ideal, as shown in Figure 3, there is energy distribution on the vertical plane along the emission direction, the farther away from the center of the vertical plane, the smaller the light energy. When the light beam sweeps the high-reflection card from left to right, the edge of the beam passes through the high-reflection card first, because the reflection ability of the high-reflection card is quite strong, and the small energy at the edge of the beam is reflected back to the radar for reception, and is detected, with low reflection rate form. As shown in Figure 4, as the beam enters more of the high-reflection board, the echo energy gradually increases until all the beams enter the high-reflection board and appear in the form of high reflectivity. The formed point cloud is higher than the actual The width should be wide. The point cloud outside the actual width of the high-definition board presents a form of low reflectivity due to the small beam edge energy, and the point cloud within the actual width of the high-definition board presents a form of high reflectivity due to the large energy of the main beam, which is called High anti-expansion.
如图5所示,高反膨胀现象出现时,在高反四周附着一圈反射率非常低的点云,随后过渡到内部高反射率的点云。在实际的自动驾驶感知运算中,造成感知运算的疑惑或误判断,会认为是高反牌四周附加有一环形低反牌。As shown in Figure 5, when the phenomenon of high anti-expansion occurs, a point cloud with very low reflectivity is attached around the high anti-expansion, and then transitions to a point cloud with high internal reflectivity. In the actual automatic driving perception calculation, if there is confusion or misjudgment in the perception calculation, it will be regarded as a ring-shaped low-reverse card surrounded by a high-reverse card.
为了去除高反点云四周的低反膨胀点云,本申请充分利用了膨胀点在距离测量值和反射率测量值上具有的特性,在获取到激光雷达采集到的点云数据后,根据目标扫描点与相邻点的距离测量值和反射率测量值判断目标扫描点是否为膨胀点,并从点云数据中去除掉识别出的膨胀点,从而避免了高反膨胀现象的发生,保证了激光雷达识别的准确性。In order to remove the low inverse expansion point cloud around the high inverse point cloud, this application makes full use of the characteristics of the expansion point in the distance measurement value and reflectivity measurement value. After obtaining the point cloud data collected by the lidar, according to the target The distance measurement value and reflectance measurement value between the scanning point and the adjacent point judge whether the target scanning point is an expansion point, and remove the identified expansion point from the point cloud data, thereby avoiding the occurrence of high anti-expansion phenomenon and ensuring Accuracy of lidar recognition.
图6所示即为本申请实施例中一种激光雷达的点云处理方法的一个实施例流程图,具体的处理过程可以包括如下步骤:Figure 6 is a flow chart of an embodiment of a point cloud processing method of a laser radar in the embodiment of the present application, and the specific processing process may include the following steps:
步骤S601、获取激光雷达采集的点云数据。Step S601 , acquiring point cloud data collected by lidar.
其中,点云数据中的每个扫描点均包括距离测量值和反射率测量值。以水平扫描序号为m,垂直扫描序号为n的扫描点为例,可以将其距离测量值记为Dis(m,n),将其反射率测量值记为Reflect(m,n)。Wherein, each scanning point in the point cloud data includes a distance measurement value and a reflectivity measurement value. Taking the scanning point whose horizontal scanning sequence number is m and vertical scanning sequence number is n as an example, its distance measurement value can be recorded as Dis(m,n), and its reflectance measurement value can be recorded as Reflect(m,n).
相邻水平扫描序号的间隔的典型值为1/18000秒,典型帧率为10帧的情况下,相邻点频的水平角度差为0.2度,相邻垂直扫描序号的典型角度间隔为0.1度。The typical value of the interval between adjacent horizontal scanning serial numbers is 1/18000 seconds. When the typical frame rate is 10 frames, the horizontal angle difference between adjacent dot frequencies is 0.2 degrees, and the typical angular interval between adjacent vertical scanning serial numbers is 0.1 degrees. .
步骤S602、根据目标扫描点与相邻点的距离测量值和反射率测量值判断目标扫描点是否为膨胀点。Step S602 , judging whether the target scanning point is an expansion point according to the distance measurement value and reflectance measurement value between the target scanning point and adjacent points.
其中,目标扫描点可以为点云数据中的任意一个扫描点;相邻点可以为与目标扫描点在水平方向上及在竖直方向上的间隔均小于预设阈值的扫描点。Wherein, the target scanning point may be any scanning point in the point cloud data; the adjacent point may be a scanning point whose distance from the target scanning point in the horizontal direction and in the vertical direction is smaller than a preset threshold.
以水平方向为例,可以根据目标扫描点与水平相邻点的距离测量值和反射率测量值判断目标扫描点是否为水平膨胀点。Taking the horizontal direction as an example, whether the target scanning point is a horizontal expansion point can be judged according to the distance measurement value and the reflectance measurement value between the target scanning point and horizontal adjacent points.
其中,水平相邻点为与目标扫描点处于同一水平线上的相邻点。以目标扫描点为中心,加上两边的水平相邻点,可以共计存储k个扫描点的数据,k的具体数目可以根据实际情况进行设置,优选地,可以设置k的典型值为9。Wherein, the horizontal adjacent point is an adjacent point on the same horizontal line as the target scanning point. With the target scanning point as the center and the horizontal adjacent points on both sides, the data of k scanning points can be stored in total. The specific number of k can be set according to the actual situation. Preferably, the typical value of k can be set to 9.
例如,若将水平扫描序号为m,垂直扫描序号为n的扫描点作为目标扫描点,则需存储从Dis(m-(k-1)/2,n)到Dis(m+(k-1)/2,n)的k个距离测量值,以及从Reflect(m-(k-1)/2,n)到Reflect(m+(k-1)/2,n)的k个反射率测量值。For example, if the scanning point whose horizontal scanning number is m and vertical scanning number is n is taken as the target scanning point, it is necessary to store the data from Dis(m-(k-1)/2,n) to Dis(m+(k-1) /2,n), and k distance measurements from Reflect(m-(k-1)/2,n) to Reflect(m+(k-1)/2,n).
首先,可以根据目标扫描点与水平相邻点的距离测量值分别计算左侧距离差和右侧距离差。Firstly, the left distance difference and the right distance difference can be calculated respectively according to the distance measurement values between the target scanning point and the horizontal adjacent points.
在本申请实施例的一种具体实现中,可以将最左侧的水平相邻点的距离测量值与目标扫描点的距离测量值之间的差值的绝对值确定为左侧距离差,即:In a specific implementation of the embodiment of the present application, the absolute value of the difference between the distance measurement value of the leftmost horizontal adjacent point and the distance measurement value of the target scanning point can be determined as the left distance difference, that is :
DisDifL=abs(Dis(m-(k-1)/2,n)-Dis(m,n))DisDifL=abs(Dis(m-(k-1)/2,n)-Dis(m,n))
将最右侧的水平相邻点的距离测量值与目标扫描点的距离测量值之间的差值的绝对值确定为右侧距离差,即:The absolute value of the difference between the distance measurement value of the rightmost horizontal adjacent point and the distance measurement value of the target scanning point is determined as the right distance difference, namely:
DisDifR=abs(Dis(m+(k-1)/2,n)-Dis(m,n))DisDifR=abs(Dis(m+(k-1)/2,n)-Dis(m,n))
其中,abs为求绝对值函数,DisDifL为左侧距离差,DisDifR为右侧距离差。Among them, abs is the absolute value function, DisDifL is the distance difference on the left side, and DisDifR is the distance difference on the right side.
需要注意的是,在实际应用场景中,距离测量值可能会存在较大的误差,如果仅依靠最左侧及最右侧的水平相邻点进行计算,可能会影响最终的膨胀点识别结果的准确率。因此,在本申请实施例的另一种具体实现中,可以对最左侧的若干个水平相邻点及最右侧的若干个水平相邻点进行综合考虑,从而提高最终的膨胀点识别结果的准确率。It should be noted that in actual application scenarios, there may be a large error in the distance measurement value. If only the leftmost and rightmost horizontal adjacent points are used for calculation, it may affect the final recognition result of the expansion point. Accuracy. Therefore, in another specific implementation of the embodiment of the present application, several horizontal adjacent points on the leftmost side and several horizontal adjacent points on the rightmost side can be considered comprehensively, so as to improve the final identification result of the expansion point the accuracy rate.
以左侧距离差的计算为例,可以分别计算最左侧的s个水平相邻点的距离测量值与目标扫描点的距离测量值之间的差值的第一绝对值,并将取值最大的第一绝对值确定为左侧距离差。其中,s为正整数,其具体取值可以根据实际情况进行设置,优选地,可以设置s为2,则可以根据下式计算左侧距离差:Taking the calculation of the distance difference on the left as an example, the first absolute value of the difference between the distance measurement value of the leftmost s horizontal adjacent points and the distance measurement value of the target scanning point can be calculated respectively, and the value The largest first absolute value is determined as the left distance difference. Wherein, s is a positive integer, and its specific value can be set according to the actual situation. Preferably, s can be set to 2, and the left distance difference can be calculated according to the following formula:
DisDifL=max(abs(Dis(m-(k-1)/2,n)-Dis(m,n)),abs(Dis(m-(k-1)/2+1,n)-Dis(m,n)))DisDifL=max(abs(Dis(m-(k-1)/2,n)-Dis(m,n)),abs(Dis(m-(k-1)/2+1,n)-Dis(m, n)))
其中,max为求最大值函数。Among them, max is the maximum value function.
类似地,对于右侧距离差的计算,可以分别计算最右侧的s个水平相邻点的距离测量值与目标扫描点的距离测量值之间的差值的第二绝对值,并将取值最大的第二绝对值确定为右侧距离差。当s为2时,则可以根据下式计算右侧距离差:Similarly, for the calculation of the distance difference on the right side, the second absolute value of the difference between the distance measurement values of the rightmost s horizontal adjacent points and the distance measurement value of the target scanning point can be calculated respectively, and will be taken as The second absolute value with the largest value is determined as the right distance difference. When s is 2, the right distance difference can be calculated according to the following formula:
DisDifR=max(abs(Dis(m+(k-1)/2-1,n)-Dis(m,n)),abs(Dis(m+(k-1)/2,n)-Dis(m,n)))。DisDifR=max(abs(Dis(m+(k-1)/2-1,n)-Dis(m,n)),abs(Dis(m+(k-1)/2,n)-Dis(m, n))).
然后,可以分别确定左侧反射率值、中间反射率值和右侧反射率值。Then, left, middle, and right reflectance values may be determined, respectively.
左侧反射率值为最左侧的水平相邻点的反射率值,中间反射率值为目标扫描点的反射率测量值,右侧反射率值为最右侧的水平相邻点的反射率值,即:The left reflectance value is the reflectance value of the leftmost horizontal adjacent point, the middle reflectance value is the reflectance measurement value of the target scanning point, and the right reflectance value is the reflectance of the rightmost horizontal adjacent point value, namely:
ReflectL=Reflect(m-(k-1)/2,n)ReflectL=Reflect(m-(k-1)/2,n)
ReflectC=Reflect(m,n)ReflectC = Reflect(m,n)
ReflectR=Reflect(m+(k-1)/2,n)ReflectR=Reflect(m+(k-1)/2,n)
其中,ReflectL为左侧反射率值,ReflectC为中间反射率值,ReflectR为右侧反射率值。Among them, ReflectL is the left reflectance value, ReflectC is the middle reflectance value, and ReflectR is the right reflectance value.
在得到左侧距离差、右侧距离差、左侧反射率值、中间反射率值和右侧反射率值之后,则可以判断这些值是否满足预设的第一条件或第二条件。若满足第一条件或第二条件,则确定目标扫描点为水平膨胀点。After obtaining the left distance difference, the right distance difference, the left reflectivity value, the middle reflectivity value and the right reflectivity value, it can be judged whether these values satisfy the preset first condition or the second condition. If the first condition or the second condition is satisfied, the target scanning point is determined to be the horizontal expansion point.
其中,第一条件可以为以下4个条件的交集,即需要同时满足以下4个条件:Among them, the first condition can be the intersection of the following four conditions, that is, the following four conditions need to be met at the same time:
左侧距离差大于或等于预设的距离上限阈值,即DisDifL≥ThreDisB,ThreDisB为距离上限阈值,其具体取值可以根据实际情况进行设置,优选地,可以设置其典型值为1米;The distance difference on the left side is greater than or equal to the preset distance upper limit threshold, that is, DisDifL≥ThreDisB, ThreDisB is the distance upper limit threshold, and its specific value can be set according to the actual situation. Preferably, its typical value can be set to 1 meter;
右侧距离差小于或等于预设的距离下限阈值,即DisDifR≤ThreDisS,ThreDisS为距离下限阈值,其具体取值可以根据实际情况进行设置,优选地,可以设置其典型值为0.1米;The distance difference on the right side is less than or equal to the preset distance lower limit threshold, that is, DisDifR≤ThreDisS, ThreDisS is the distance lower limit threshold, and its specific value can be set according to the actual situation. Preferably, its typical value can be set to 0.1 meters;
中间反射率值小于或等于预设的反射率下限阈值,即ReflectC≤ThreReflectS,ThreReflectS为反射率下限阈值,其具体取值可以根据实际情况进行设置,优选地,可以设置其典型值为15;The intermediate reflectance value is less than or equal to the preset reflectivity lower limit threshold, that is, ReflectC≤ThreReflectS, ThreReflectS is the reflectivity lower limit threshold, and its specific value can be set according to the actual situation. Preferably, its typical value can be set to 15;
右侧反射率值大于或等于预设的反射率上限阈值,即ReflectR≥ThreReflectB,ThreReflectB为反射率上限阈值,其具体取值可以根据实际情况进行设置,优选地,可以设置其典型值为200。The reflectance value on the right is greater than or equal to the preset reflectance upper limit threshold, that is, ReflectR≥ThreReflectB, ThreReflectB is the reflectance upper limit threshold, and its specific value can be set according to the actual situation. Preferably, its typical value can be set to 200.
满足第一条件时,则可以认为目标扫描点为高反牌左侧的膨胀点。When the first condition is met, it can be considered that the target scanning point is the expansion point on the left side of the high-reversed card.
第二条件可以为以下4个条件的交集,即需要同时满足以下4个条件:The second condition can be the intersection of the following four conditions, that is, the following four conditions need to be met at the same time:
右侧距离差大于或等于预设的距离上限阈值,即DisDifR≥ThreDisB;The distance difference on the right is greater than or equal to the preset distance upper limit threshold, that is, DisDifR≥ThreDisB;
左侧距离差小于或等于预设的距离下限阈值,即DisDifL≤ThreDisS;The left distance difference is less than or equal to the preset distance lower limit threshold, that is, DisDifL≤ThreDisS;
中间反射率值小于或等于预设的反射率下限阈值,即ReflectC≤ThreReflectS;The intermediate reflectance value is less than or equal to the preset reflectance lower limit threshold, that is, ReflectC≤ThreReflectS;
左侧反射率值大于或等于预设的反射率上限阈值,即ReflectL≥ThreReflectB。The left reflectance value is greater than or equal to the preset reflectance upper threshold, that is, ReflectL≥ThreReflectB.
满足第二条件时,则可以认为目标扫描点为高反牌右侧的膨胀点。When the second condition is met, it can be considered that the target scanning point is the expansion point on the right side of the high-reversed card.
与水平方向类似,在竖直方向上,可以根据目标扫描点与竖直相邻点的距离测量值和反射率测量值判断目标扫描点是否为竖直膨胀点。Similar to the horizontal direction, in the vertical direction, whether the target scanning point is a vertical expansion point can be judged according to the distance measurement value and reflectivity measurement value between the target scanning point and the vertical adjacent point.
其中,竖直相邻点为与目标扫描点处于同一竖直线上的相邻点。以目标扫描点为中心,加上其上下方的竖直相邻点,可以共计存储k个扫描点的数据。例如,若将水平扫描序号为m,垂直扫描序号为n的扫描点作为目标扫描点,则需存储从Dis(m,n-(k-1)/2)到Dis(m,n+(k-1)/2)的k个距离测量值,以及从Reflect(m,n-(k-1)/2)到Reflect(m,n+(k-1)/2)的k个反射率测量值。Wherein, the vertical adjacent point is the adjacent point on the same vertical line as the target scanning point. With the target scanning point as the center and the vertical adjacent points above and below it, the data of k scanning points can be stored in total. For example, if the scanning point whose horizontal scanning number is m and vertical scanning number is n is taken as the target scanning point, it is necessary to store the values from Dis(m,n-(k-1)/2) to Dis(m,n+(k- 1)/2) for k distance measurements, and k reflectance measurements from Reflect(m,n-(k-1)/2) to Reflect(m,n+(k-1)/2).
首先,可以根据目标扫描点与竖直相邻点的距离测量值分别计算上侧距离差和下侧距离差。First, the upper distance difference and the lower distance difference may be calculated respectively according to the distance measurement values between the target scanning point and the vertical adjacent point.
在本申请实施例的一种具体实现中,可以将最上侧的竖直相邻点的距离测量值与目标扫描点的距离测量值之间的差值的绝对值确定为上侧距离差,即:In a specific implementation of the embodiment of the present application, the absolute value of the difference between the distance measurement value of the uppermost vertical adjacent point and the distance measurement value of the target scanning point can be determined as the upper side distance difference, that is :
DisDifU=abs(Dis(m,n-(k-1)/2)-Dis(m,n))DisDifU=abs(Dis(m,n-(k-1)/2)-Dis(m,n))
将最下侧的竖直相邻点的距离测量值与目标扫描点的距离测量值之间的差值的绝对值确定为下侧距离差,即:The absolute value of the difference between the distance measurement value of the vertically adjacent point on the lowermost side and the distance measurement value of the target scanning point is determined as the lower side distance difference, that is:
DisDifD=abs(Dis(m,n+(k-1)/2)-Dis(m,n))DisDifD=abs(Dis(m,n+(k-1)/2)-Dis(m,n))
其中,DisDifL为上侧距离差,DisDifR为下侧距离差。Among them, DisDifL is the distance difference on the upper side, and DisDifR is the distance difference on the lower side.
需要注意的是,在实际应用场景中,距离测量值可能会存在较大的误差,如果仅依靠最上侧及最下侧的竖直相邻点进行计算,可能会影响最终的膨胀点识别结果的准确率。因此,在本申请实施例的另一种具体实现中,可以对最上侧的若干个竖直相邻点及最下侧的若干个竖直相邻点进行综合考虑,从而提高最终的膨胀点识别结果的准确率。It should be noted that in actual application scenarios, there may be a large error in the distance measurement value. If only the uppermost and lowermost vertical adjacent points are used for calculation, it may affect the final recognition result of the expansion point. Accuracy. Therefore, in another specific implementation of the embodiment of the present application, several vertical adjacent points on the uppermost side and several vertical adjacent points on the lowermost side can be considered comprehensively, thereby improving the final identification of expansion points The accuracy of the result.
以上侧距离差的计算为例,可以分别计算最上侧的s个竖直相邻点的距离测量值与目标扫描点的距离测量值之间的差值的第三绝对值,并将取值最大的第三绝对值确定为上侧距离差。当s为2时,则可以根据下式计算上侧距离差:The calculation of the distance difference on the upper side is taken as an example. The third absolute value of the difference between the distance measurement values of the uppermost s vertical adjacent points and the distance measurement value of the target scanning point can be calculated respectively, and the maximum value The third absolute value of is determined as the upper side distance difference. When s is 2, the upper side distance difference can be calculated according to the following formula:
DisDifU=max(abs(Dis(m,n-(k-1)/2)-Dis(m,n)),abs(Dis(m,n-(k-1)/2+1)-Dis(m,n)))。DisDifU=max(abs(Dis(m,n-(k-1)/2)-Dis(m,n)), abs(Dis(m,n-(k-1)/2+1)-Dis(m, n))).
类似地,对于下侧距离差的计算,可以分别计算最下侧的s个竖直相邻点的距离测量值与目标扫描点的距离测量值之间的差值的第四绝对值,并将取值最大的第四绝对值确定为下侧距离差。当s为2时,则可以根据下式计算下侧距离差:Similarly, for the calculation of the distance difference on the lower side, the fourth absolute value of the difference between the distance measurement values of the lowermost s vertical adjacent points and the distance measurement value of the target scanning point can be calculated respectively, and The fourth absolute value with the largest value is determined as the lower distance difference. When s is 2, the lower side distance difference can be calculated according to the following formula:
DisDifD=max(abs(Dis(m,n+(k-1)/2-1)-Dis(m,n)),abs(Dis(m,n+(k-1)/2)-Dis(m,n)))。DisDifD=max(abs(Dis(m,n+(k-1)/2-1)-Dis(m,n)),abs(Dis(m,n+(k-1)/2)-Dis(m, n))).
然后,可以分别确定上侧反射率值、中间反射率值和下侧反射率值。Then, upper side reflectance values, intermediate reflectance values and lower side reflectance values may be determined respectively.
上侧反射率值为最上侧的竖直相邻点的反射率值,中间反射率值为目标扫描点的反射率测量值,下侧反射率值为最下侧的竖直相邻点的反射率值,即:The upper side reflectance value is the reflectance value of the uppermost vertical adjacent point, the middle reflectance value is the reflectance measurement value of the target scanning point, and the lower side reflectance value is the reflection of the lowermost vertical adjacent point Rate value, that is:
ReflectU=Reflect(m,n-(k-1)/2)ReflectU=Reflect(m,n-(k-1)/2)
ReflectC=Reflect(m,n)ReflectC = Reflect(m,n)
ReflectD=Reflect(m,n+(k-1)/2)ReflectD=Reflect(m,n+(k-1)/2)
其中,ReflectU为上侧反射率值,ReflectC为中间反射率值,ReflectD为下侧反射率值。Among them, ReflectU is the reflectance value of the upper side, ReflectC is the reflectance value of the middle side, and ReflectD is the reflectance value of the lower side.
在得到上侧距离差、下侧距离差、上侧反射率值、中间反射率值和下侧反射率值之后,则可以判断这些值是否满足预设的第三条件或第四条件。若满足第三条件或第四条件,则确定目标扫描点为竖直膨胀点。After obtaining the upper distance difference, the lower distance difference, the upper reflectivity value, the middle reflectivity value and the lower reflectivity value, it can be judged whether these values satisfy the preset third condition or the fourth condition. If the third condition or the fourth condition is satisfied, then the target scanning point is determined to be the vertical expansion point.
其中,第三条件可以为以下4个条件的交集,即需要同时满足以下4个条件:Among them, the third condition can be the intersection of the following four conditions, that is, the following four conditions need to be met at the same time:
上侧距离差大于或等于预设的距离上限阈值,即DisDifU≥ThreDisB;The upper distance difference is greater than or equal to the preset distance upper limit threshold, that is, DisDifU≥ThreDisB;
下侧距离差小于或等于预设的距离下限阈值,即DisDifD≤ThreDisS;The lower distance difference is less than or equal to the preset distance lower limit threshold, that is, DisDifD≤ThreDisS;
中间反射率值小于或等于预设的反射率下限阈值,即ReflectC≤ThreReflectS;The intermediate reflectance value is less than or equal to the preset reflectance lower limit threshold, that is, ReflectC≤ThreReflectS;
下侧反射率值大于或等于预设的反射率上限阈值,即ReflectD≥ThreReflectB。The lower reflectivity value is greater than or equal to the preset upper reflectivity threshold, that is, ReflectD≥ThreReflectB.
满足第三条件时,则可以认为目标扫描点为高反牌上侧的膨胀点。When the third condition is met, it can be considered that the target scanning point is the expansion point on the upper side of the high-reversed card.
第四条件可以为以下4个条件的交集,即需要同时满足以下4个条件:The fourth condition can be the intersection of the following four conditions, that is, the following four conditions need to be met at the same time:
下侧距离差大于或等于预设的距离上限阈值,即DisDifD≥ThreDisB;The lower distance difference is greater than or equal to the preset distance upper threshold, that is, DisDifD≥ThreDisB;
上侧距离差小于或等于预设的距离下限阈值,即DisDifU≤ThreDisS;The upper distance difference is less than or equal to the preset distance lower limit threshold, that is, DisDifU≤ThreDisS;
中间反射率值小于或等于预设的反射率下限阈值,即ReflectC≤ThreReflectS;The intermediate reflectance value is less than or equal to the preset reflectance lower limit threshold, that is, ReflectC≤ThreReflectS;
上侧反射率值大于或等于预设的反射率上限阈值,即ReflectU≥ThreReflectB。The upper reflectance value is greater than or equal to the preset reflectance upper threshold, that is, ReflectU≥ThreReflectB.
满足第四条件时,则可以认为目标扫描点为高反牌下侧的膨胀点。When the fourth condition is met, it can be considered that the target scanning point is the expansion point on the lower side of the high-reversed card.
无论目标扫描点为水平膨胀点或是竖直膨胀点,则可以确定目标扫描点为膨胀点。Regardless of whether the target scanning point is a horizontal expansion point or a vertical expansion point, it may be determined that the target scanning point is the expansion point.
需要注意的是,以上过程中仅是以一个扫描点为例,来说明膨胀点的识别过程,按照这一处理方式遍历点云数据中的所有扫描点,即可识别出其中所有的膨胀点。It should be noted that the above process only takes one scan point as an example to illustrate the identification process of the expansion point. According to this processing method, all the scan points in the point cloud data can be traversed to identify all the expansion points.
图7所示为水平方向上的膨胀点识别过程的逻辑框图。如图所示,其具体执行过程可以包括:Fig. 7 is a logic block diagram of the identification process of the expansion point in the horizontal direction. As shown in the figure, its specific implementation process may include:
1、将当前扫描点的距离测量值Dis(m,n)和反射率测量值Reflect(m,n)写入缓存,写地址由当前水平扫描序号m确定,读地址由水平扫描序号m-1确定。1. Write the distance measurement value Dis(m,n) and the reflectivity measurement value Reflect(m,n) of the current scanning point into the cache, the write address is determined by the current horizontal scanning number m, and the read address is determined by the horizontal scanning number m-1 Sure.
2、从缓存中读取距离测量值,并写入与距离测量值对应的移位寄存器,此处共为距离测量值设置了k个移位寄存器,其存储的距离测量值依次记为:Dis(m-k,n)、Dis(m-k+1,n)、...、Dis(m-(k+1)/2,n)、...、Dis(m-2,n)、Dis(m-1,n)。类似地,从缓存中读取反射率测量值,并写入与反射率测量值对应的移位寄存器,此处共为反射率测量值设置了k个移位寄存器,其存储的反射率测量值依次记为:Reflect(m-k,n)、Reflect(m-k+1,n)、...、Reflect(m-(k+1)/2,n)、...、Reflect(m-2,n)、Reflect(m-1,n),并设置:2. Read the distance measurement value from the cache, and write it into the shift register corresponding to the distance measurement value. Here, a total of k shift registers are set for the distance measurement value, and the stored distance measurement values are sequentially recorded as: Dis (m-k,n), Dis(m-k+1,n),..., Dis(m-(k+1)/2,n),..., Dis(m-2,n), Dis(m -1,n). Similarly, the reflectance measurement value is read from the cache, and written into the shift register corresponding to the reflectance measurement value, here a total of k shift registers are set for the reflectance measurement value, and the reflectance measurement value stored therein In turn, it is recorded as: Reflect(m-k,n), Reflect(m-k+1,n),..., Reflect(m-(k+1)/2,n),..., Reflect(m-2,n ), Reflect(m-1,n), and set:
ReflectL=Reflect(m-k,n)ReflectL=Reflect(m-k,n)
ReflectC=Reflect(m-(k+1)/2,n)ReflectC=Reflect(m-(k+1)/2,n)
ReflectR=Reflect(m-1,n)ReflectR=Reflect(m-1,n)
3、在第1个反射率判别器中,按照下列条件进行判决:3. In the first reflectance discriminator, judge according to the following conditions:
若ReflectC≤ThreReflectS且ReflectR≥ThreReflectB,则设置判决结果ReflectLDeter=1,否则,设置判决结果ReflectLDeter=0。If ReflectC≤ThreReflectS and ReflectR≥ThreReflectB, set the decision result ReflectLDeter=1, otherwise, set the decision result ReflectLDeter=0.
在第2个反射率判别器中,按照下列条件进行判决:In the second reflectance discriminator, the judgment is made according to the following conditions:
若ReflectC≤ThreReflectS且ReflectL≥ThreReflectB,则设置判决结果ReflectRDeter=1,否则,设置判决结果ReflectRDeter=0。If ReflectC≤ThreReflectS and ReflectL≥ThreReflectB, set the decision result ReflectRDeter=1, otherwise, set the decision result ReflectRDeter=0.
4、在4个减法器中分别进行以下计算:4. Perform the following calculations in the four subtractors:
Sub00=Dis(m-k,n)-Dis(m-(k+1)/2,n)Sub00=Dis(m-k,n)-Dis(m-(k+1)/2,n)
Sub01=Dis(m-k+1,n)-Dis(m-(k+1)/2,n)Sub01=Dis(m-k+1,n)-Dis(m-(k+1)/2,n)
Sub02=Dis(m-2,n)-Dis(m-(k+1)/2,n)Sub02=Dis(m-2,n)-Dis(m-(k+1)/2,n)
Sub03=Dis(m-1,n)-Dis(m-(k      +1)/2,n)Sub03=Dis(m-1,n)-Dis(m-(k +1)/2,n)
其中,Sub00、Sub01、Sub02、Sub03分别为4个减法器的计算结果。Among them, Sub00, Sub01, Sub02, and Sub03 are the calculation results of the four subtractors respectively.
5、在4个绝对值计算器中,分别计算4个减法器的计算结果的绝对值。5. In the four absolute value calculators, calculate the absolute values of the calculation results of the four subtractors respectively.
具体地,在第1个绝对值计算器中,若Sub00≥0,则设置其输出Abs00=Sub00,否则,设置Abs00=-Sub00;Specifically, in the first absolute value calculator, if Sub00≥0, set its output Abs00=Sub00, otherwise, set Abs00=-Sub00;
在第2个绝对值计算器中,若Sub01≥0,则设置其输出Abs01=Sub01,否则,设置Abs01=-Sub01;In the second absolute value calculator, if Sub01≥0, set its output Abs01=Sub01, otherwise, set Abs01=-Sub01;
在第3个绝对值计算器中,若Sub02≥0,则设置其输出Abs02=Sub02,否则,设置Abs02=-Sub02;In the third absolute value calculator, if Sub02≥0, set its output Abs02=Sub02, otherwise, set Abs02=-Sub02;
在第4个绝对值计算器中,若Sub03≥0,则设置其输出Abs03=Sub03,否则,设置Abs03=-Sub03。In the fourth absolute value calculator, if Sub03≥0, then set its output Abs03=Sub03, otherwise, set Abs03=-Sub03.
6、在两个比较器中,分别两两求出绝对值的最大值。6. In the two comparators, find the maximum value of the absolute value in pairs.
具体地,在第1个比较器中,若Abs00≥Abs01,则设置其输出DisDifL=Abs00,否则,设置DisDifL=Abs01;Specifically, in the first comparator, if Abs00≥Abs01, set its output DisDifL=Abs00, otherwise, set DisDifL=Abs01;
在第2个比较器中,若Abs02≥Abs03,则设置其输出DisDifR=Abs02,否则,设置DisDifR=Abs03。In the second comparator, if Abs02≥Abs03, set its output DisDifR=Abs02, otherwise, set DisDifR=Abs03.
7、在第1个距离判别器中,按照下列条件进行判决:7. In the first distance discriminator, judge according to the following conditions:
若DisDifL≥ThreDisB且DisDifR≤ThreDisS,则设置判决结果DisLDeter=1,否则,设置判决结果DisLDeter=0。If DisDifL≥ThreDisB and DisDifR≤ThreDisS, set the decision result DisLDeter=1, otherwise, set the decision result DisLDeter=0.
在第2个距离判别器中,按照下列条件进行判决:In the second distance discriminator, the judgment is made according to the following conditions:
若DisDifR≥ThreDisB且DisDifL≤ThreDisS,则设置判决结果DisRDeter=1,否则,设置判决结果DisRDeter=0。If DisDifR≥ThreDisB and DisDifL≤ThreDisS, set the decision result DisRDeter=1, otherwise, set the decision result DisRDeter=0.
8、第1个距离判别器输出的结果和第1个反射率判别器输出的结果输入到左边膨胀判决器中,按照下式进行逻辑与运算:8. The output result of the first distance discriminator and the output result of the first reflectance discriminator are input to the expansion discriminator on the left, and the logical AND operation is performed according to the following formula:
SpreadL=DisLDeter & ReflectLDeterSpreadL=DisLDeter & ReflectLDeter
第2个距离判别器输出的结果和第2个反射率判别器输出的结果输入到右边膨胀判决器中,按照下式进行逻辑与运算:The output result of the second distance discriminator and the output result of the second reflectance discriminator are input to the expansion discriminator on the right, and the logical AND operation is performed according to the following formula:
SpreadR=DisRDeter & ReflectRDeterSpreadR=DisRDeter & ReflectRDeter
左边膨胀判决器输出的结果SpreadL和右边膨胀判决器输出的结果SpreadR输入到膨胀判决器中,按照下式进行逻辑或运算:The result SpreadL output by the left expansion decision unit and the result SpreadR output by the right expansion decision unit are input into the expansion decision unit, and the logical OR operation is performed according to the following formula:
Spread=SpreadL∣SpreadRSpread=SpreadL∣SpreadR
若Spread为1,则中间的移位寄存器所对应的扫描点为水平膨胀点,若Spread为0,则中间的移位寄存器所对应的扫描点不是水平膨胀点。If Spread is 1, the scanning point corresponding to the shift register in the middle is a horizontal expansion point, and if Spread is 0, the scanning point corresponding to the shift register in the middle is not a horizontal expansion point.
竖直方向上的膨胀点识别过程与水平方向上的膨胀点识别过程类似,可参照上述内容,此处不再赘述。The identification process of the expansion point in the vertical direction is similar to the identification process of the expansion point in the horizontal direction, which can be referred to above, and will not be repeated here.
步骤S603、若目标扫描点为膨胀点,则从点云数据中去除目标扫描点。Step S603, if the target scanning point is an expansion point, remove the target scanning point from the point cloud data.
图8所示为去除膨胀点之前的点云效果示意图,从中可以看出,在高反牌的四周会附着一圈反射率非常低的点云。图9所示为去除膨胀点之后的点云效果示意图,从中可以看出,在高反牌四周的膨胀点已被消除。Figure 8 is a schematic diagram of the point cloud effect before the expansion point is removed. It can be seen that there will be a circle of point clouds with very low reflectivity around the high-reverse card. Figure 9 is a schematic diagram of the point cloud effect after removing the expansion points, from which it can be seen that the expansion points around the high-reversed cards have been eliminated.
综上所述,本申请充分利用了膨胀点在距离测量值和反射率测量值上具有的特性,在获取到激光雷达采集到的点云数据后,根据目标扫描点与相邻点的距离测量值和反射率测量值判断目标扫描点是否为膨胀点,并从点云数据中去除掉识别出的膨胀点,从而避免了高反膨胀现象的发生,保证了激光雷达识别的准确性。To sum up, this application makes full use of the characteristics of the expansion point in the distance measurement value and reflectivity measurement value. After obtaining the point cloud data collected by the laser radar, the distance between the target scanning point and the adjacent point is measured Value and reflectance measurement value to judge whether the target scanning point is an expansion point, and remove the identified expansion point from the point cloud data, thereby avoiding the occurrence of high anti-expansion phenomenon and ensuring the accuracy of lidar recognition.
对应于上文实施例所述的一种激光雷达的点云处理方法,图10示出了本申请实施例提供的一种激光雷达的点云处理装置的一个实施例结构图。Corresponding to the point cloud processing method for lidar described in the above embodiments, FIG. 10 shows a structural diagram of an embodiment of a point cloud processing device for lidar provided in the embodiment of the present application.
本实施例中,一种激光雷达的点云处理装置可以包括:In this embodiment, a laser radar point cloud processing device may include:
点云数据获取模块1001,用于获取激光雷达采集的点云数据;所述点云数据中的每个扫描点均包括距离测量值和反射率测量值;The point cloud data acquisition module 1001 is used to obtain the point cloud data collected by the lidar; each scanning point in the point cloud data includes a distance measurement value and a reflectance measurement value;
膨胀点判断模块1002,用于根据目标扫描点与相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为膨胀点;所述目标扫描点为所述点云数据中的任意一个扫描点;所述相邻点为与所述目标扫描点在水平方向上及在竖直方向上的间隔均小于预设阈值的扫描点;An expansion point judging module 1002, configured to determine whether the target scanning point is an expansion point according to the distance measurement value and reflectance measurement value between the target scanning point and adjacent points; the target scanning point is any point in the point cloud data. A scanning point; the adjacent point is a scanning point whose distance from the target scanning point in the horizontal direction and in the vertical direction is smaller than a preset threshold;
膨胀点去除模块1003,用于若所述目标扫描点为膨胀点,则从所述点云数据中去除所述目标扫描点。The expansion point removal module 1003 is configured to remove the target scanning point from the point cloud data if the target scanning point is an expansion point.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described devices and modules can refer to the corresponding process in the foregoing method embodiments, and details are not repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
图11示出了本申请实施例提供的一种终端设备的示意框图,为了便于说明,仅示出了与本申请实施例相关的部分。FIG. 11 shows a schematic block diagram of a terminal device provided by an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
如图11所示,该实施例的终端设备11包括:处理器110、存储器111以及存储在所述存储器111中并可在所述处理器110上运行的计算机程序112。所述处理器110执行所述计算机程序112时实现上述各个激光雷达的点云处理方法实施例中的步骤。或者,所述处理器110执行所述计算机程序112时实现上述各装置实施例中各模块/单元的功能。As shown in FIG. 11 , the terminal device 11 of this embodiment includes: a processor 110 , a memory 111 , and a computer program 112 stored in the memory 111 and operable on the processor 110 . When the processor 110 executes the computer program 112, the steps in the above-mentioned embodiments of the point cloud processing method of each laser radar are realized. Alternatively, when the processor 110 executes the computer program 112, functions of the modules/units in the foregoing device embodiments are implemented.
示例性的,所述计算机程序112可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器111中,并由所述处理器110执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序112在所述终端设备11中的执行过程。Exemplarily, the computer program 112 can be divided into one or more modules/units, and the one or more modules/units are stored in the memory 111 and executed by the processor 110 to complete this application. The one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program 112 in the terminal device 11 .
本领域技术人员可以理解,图11仅仅是终端设备11的示例,并不构成对终端设备11的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备11还可以包括输入输出设备、网络接入设备、总线等。Those skilled in the art can understand that FIG. 11 is only an example of the terminal device 11, and does not constitute a limitation on the terminal device 11. It may include more or less components than those shown in the figure, or combine some components, or different components. For example, the terminal device 11 may also include an input and output device, a network access device, a bus, and the like.
所述处理器110可以是中央处理单元(Central Processing Unit,CPU),还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 110 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
所述存储器111可以是所述终端设备11的内部存储单元,例如终端设备11的硬盘或内存。所述存储器111也可以是所述终端设备11的外部存储设备,例如所述终端设备11上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器111还可以既包括所述终端设备11的内部存储单元也包括外部存储设备。所述存储器111用于存储所述计算机程序以及所述终端设备11所需的其它程序和数据。所述存储器111还可以用于暂时地存储已经输出或者将要输出的数据。The storage 111 may be an internal storage unit of the terminal device 11 , for example, a hard disk or a memory of the terminal device 11 . The memory 111 may also be an external storage device of the terminal device 11, such as a plug-in hard disk equipped on the terminal device 11, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc. Further, the memory 111 may also include both an internal storage unit of the terminal device 11 and an external storage device. The memory 111 is used to store the computer program and other programs and data required by the terminal device 11 . The memory 111 can also be used to temporarily store data that has been output or will be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the device/terminal device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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 may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不包括电载波信号和电信信号。If the integrated module/unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments in the present application can also be completed by instructing related hardware through computer programs. The computer programs can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory ), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable Storage media excludes electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still implement the foregoing Modifications to the technical solutions described in the examples, or equivalent replacement of some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application, and should be included in the Within the protection scope of this application.

Claims (13)

  1. 一种激光雷达的点云处理方法,其特征在于,包括: A point cloud processing method of lidar, is characterized in that, comprises:
    获取激光雷达采集的点云数据;所述点云数据中的每个扫描点均包括距离测量值和反射率测量值;Obtain the point cloud data collected by the laser radar; each scan point in the point cloud data includes a distance measurement value and a reflectivity measurement value;
    根据目标扫描点与相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为膨胀点;所述目标扫描点为所述点云数据中的任意一个扫描点;所述相邻点为与所述目标扫描点在水平方向上及在竖直方向上的间隔均小于预设阈值的扫描点;Judging whether the target scanning point is an expansion point according to the distance measurement value and the reflectance measurement value between the target scanning point and the adjacent point; the target scanning point is any scanning point in the point cloud data; the adjacent The point is a scanning point whose distance from the target scanning point in the horizontal direction and in the vertical direction is smaller than a preset threshold;
    若所述目标扫描点为膨胀点,则从所述点云数据中去除所述目标扫描点。If the target scan point is an expansion point, then remove the target scan point from the point cloud data.
  2. 根据权利要求1所述的激光雷达的点云处理方法,其特征在于,所述根据目标扫描点与相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为膨胀点,包括: The point cloud processing method of lidar according to claim 1, characterized in that, judging whether the target scanning point is an expansion point according to the distance measurement value and the reflectance measurement value between the target scanning point and the adjacent point, comprises :
    根据所述目标扫描点与水平相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为水平膨胀点;所述水平相邻点为与所述目标扫描点处于同一水平线上的相邻点;Judging whether the target scanning point is a horizontal expansion point according to the distance measurement value and reflectance measurement value between the target scanning point and the horizontal adjacent point; the horizontal adjacent point is on the same horizontal line as the target scanning point adjacent points;
    根据所述目标扫描点与竖直相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为竖直膨胀点;所述竖直相邻点为与所述目标扫描点处于同一竖直线上的相邻点;According to the distance measurement value and the reflectance measurement value of the target scanning point and the vertical adjacent point, it is judged whether the target scanning point is a vertical expansion point; the vertical adjacent point is at the same location as the target scanning point Adjacent points on a vertical line;
    若所述目标扫描点为水平膨胀点或竖直膨胀点,则确定所述目标扫描点为膨胀点。If the target scanning point is a horizontal expansion point or a vertical expansion point, then determine that the target scanning point is an expansion point.
  3. 根据权利要求2所述的激光雷达的点云处理方法,其特征在于,所述根据所述目标扫描点与水平相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为水平膨胀点,包括: The point cloud processing method of laser radar according to claim 2, characterized in that, it is judged whether the target scanning point is horizontal according to the distance measurement value and reflectivity measurement value between the target scanning point and the horizontal adjacent point Expansion points, including:
    根据所述目标扫描点与所述水平相邻点的距离测量值分别计算左侧距离差和右侧距离差;Calculate the distance difference on the left side and the distance difference on the right side respectively according to the distance measurement value between the target scanning point and the horizontal adjacent point;
    判断所述左侧距离差、所述右侧距离差、中间反射率值和右侧反射率值是否满足预设的第一条件或所述左侧距离差、所述右侧距离差、左侧反射率值和所述中间反射率值是否满足预设的第二条件;所述左侧反射率值为最左侧的所述水平相邻点的反射率值,所述中间反射率值为所述目标扫描点的反射率测量值,所述右侧反射率值为最右侧的所述水平相邻点的反射率值;Judging whether the left distance difference, the right distance difference, the middle reflectance value and the right reflectance value meet a preset first condition or whether the left distance difference, the right distance difference, the left Whether the reflectance value and the middle reflectance value meet the preset second condition; the left reflectance value is the reflectance value of the leftmost horizontal adjacent point, and the middle reflectance value is set The reflectance measurement value of the target scanning point, the reflectance value on the right side is the reflectance value of the rightmost horizontal adjacent point;
    若满足所述第一条件或所述第二条件,则确定所述目标扫描点为水平膨胀点。If the first condition or the second condition is met, it is determined that the target scanning point is a horizontal expansion point.
  4. 根据权利要求3所述的激光雷达的点云处理方法,其特征在于,所述根据所述目标扫描点与所述水平相邻点的距离测量值分别计算左侧距离差和右侧距离差,包括: The point cloud processing method of lidar according to claim 3, characterized in that, the left distance difference and the right distance difference are respectively calculated according to the distance measurement value of the target scanning point and the horizontal adjacent point, include:
    分别计算最左侧的若干个所述水平相邻点的距离测量值与所述目标扫描点的距离测量值之间的差值的第一绝对值;respectively calculating the first absolute value of the difference between the distance measurement values of the leftmost several horizontal adjacent points and the distance measurement value of the target scanning point;
    将取值最大的第一绝对值确定为所述左侧距离差;determining the first absolute value with the largest value as the left distance difference;
    分别计算最右侧的若干个所述水平相邻点的距离测量值与所述目标扫描点的距离测量值之间的差值的第二绝对值;Respectively calculating the second absolute value of the difference between the distance measurement values of the rightmost several horizontal adjacent points and the distance measurement value of the target scanning point;
    将取值最大的第二绝对值确定为所述右侧距离差。The second absolute value with the largest value is determined as the right distance difference.
  5. 根据权利要求3所述的激光雷达的点云处理方法,其特征在于,所述第一条件为以下条件的交集: The point cloud processing method of lidar according to claim 3, is characterized in that, described first condition is the intersection of following conditions:
    所述左侧距离差大于或等于预设的距离上限阈值;The left distance difference is greater than or equal to a preset distance upper limit threshold;
    所述右侧距离差小于或等于预设的距离下限阈值;The right distance difference is less than or equal to a preset distance lower limit threshold;
    所述中间反射率值小于或等于预设的反射率下限阈值;The intermediate reflectivity value is less than or equal to a preset reflectivity lower limit threshold;
    所述右侧反射率值大于或等于预设的反射率上限阈值。The right reflectivity value is greater than or equal to a preset reflectivity upper threshold.
  6. 根据权利要求3所述的激光雷达的点云处理方法,其特征在于,所述第二条件为以下条件的交集: The point cloud processing method of lidar according to claim 3, is characterized in that, described second condition is the intersection of following conditions:
    所述右侧距离差大于或等于预设的距离上限阈值;The right distance difference is greater than or equal to a preset distance upper limit threshold;
    所述左侧距离差小于或等于预设的距离下限阈值;The left distance difference is less than or equal to a preset distance lower limit threshold;
    所述中间反射率值小于或等于预设的反射率下限阈值;The intermediate reflectivity value is less than or equal to a preset reflectivity lower limit threshold;
    所述左侧反射率值大于或等于预设的反射率上限阈值。The left reflectivity value is greater than or equal to a preset reflectivity upper threshold.
  7. 根据权利要求2所述的激光雷达的点云处理方法,其特征在于,所述根据所述目标扫描点与竖直相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为竖直膨胀点,包括: The point cloud processing method of laser radar according to claim 2, characterized in that, it is judged whether the target scanning point is Vertical expansion points, including:
    根据所述目标扫描点与所述竖直相邻点的距离测量值分别计算上侧距离差和下侧距离差;calculating the upper side distance difference and the lower side distance difference respectively according to the distance measurement values between the target scanning point and the vertical adjacent point;
    判断所述上侧距离差、所述下侧距离差、中间反射率值和下侧反射率值是否满足预设的第三条件或所述上侧距离差、所述下侧距离差、上侧反射率值和所述中间反射率值是否满足预设的第四条件;所述上侧反射率值为最上侧的所述竖直相邻点的反射率值,所述中间反射率值为所述目标扫描点的反射率测量值,所述下侧反射率值为最下侧的所述竖直相邻点的反射率值;judging whether the upper distance difference, the lower distance difference, the middle reflectance value, and the lower reflectance value meet a preset third condition or whether the upper distance difference, the lower distance difference, the upper Whether the reflectance value and the intermediate reflectance value meet the preset fourth condition; the upper side reflectance value is the reflectance value of the uppermost vertically adjacent point, and the intermediate reflectance value is set The reflectance measurement value of the target scanning point, the reflectance value of the lower side is the reflectance value of the vertical adjacent point on the lowermost side;
    若满足所述第三条件或所述第四条件,则确定所述目标扫描点为竖直膨胀点。If the third condition or the fourth condition is met, it is determined that the target scanning point is a vertical expansion point.
  8. 根据权利要求7所述的激光雷达的点云处理方法,其特征在于,所述根据所述目标扫描点与所述竖直相邻点的距离测量值分别计算上侧距离差和下侧距离差,包括: The point cloud processing method of lidar according to claim 7, characterized in that, the upper side distance difference and the lower side distance difference are respectively calculated according to the distance measurement value between the target scanning point and the vertical adjacent point ,include:
    分别计算最上侧的若干个所述竖直相邻点的距离测量值与所述目标扫描点的距离测量值之间的差值的第三绝对值;Calculating the third absolute value of the difference between the distance measurement values of the several vertical adjacent points on the uppermost side and the distance measurement values of the target scanning point respectively;
    将取值最大的第三绝对值确定为所述上侧距离差;determining the third absolute value with the largest value as the upper distance difference;
    分别计算最下侧的若干个所述竖直相邻点的距离测量值与所述目标扫描点的距离测量值之间的差值的第四绝对值;Calculating the fourth absolute value of the difference between the measured distance values of several vertical adjacent points on the lowermost side and the measured distance values of the target scanning point;
    将取值最大的第四绝对值确定为所述下侧距离差。The fourth absolute value with the largest value is determined as the lower distance difference.
  9. 根据权利要求7所述的激光雷达的点云处理方法,其特征在于,所述第三条件为以下条件的交集: The point cloud processing method of lidar according to claim 7, is characterized in that, described third condition is the intersection of following conditions:
    所述上侧距离差大于或等于预设的距离上限阈值;The upper distance difference is greater than or equal to a preset distance upper limit threshold;
    所述下侧距离差小于或等于预设的距离下限阈值;The lower distance difference is less than or equal to a preset distance lower limit threshold;
    所述中间反射率值小于或等于预设的反射率下限阈值;The intermediate reflectivity value is less than or equal to a preset reflectivity lower limit threshold;
    所述下侧反射率值大于或等于预设的反射率上限阈值。The lower side reflectance value is greater than or equal to a preset upper reflectance threshold.
  10. 根据权利要求7所述的激光雷达的点云处理方法,其特征在于,所述第四条件为以下条件的交集: The point cloud processing method of lidar according to claim 7, is characterized in that, described fourth condition is the intersection of following conditions:
    所述下侧距离差大于或等于预设的距离上限阈值;The lower distance difference is greater than or equal to a preset distance upper threshold;
    所述上侧距离差小于或等于预设的距离下限阈值;The upper distance difference is less than or equal to a preset distance lower limit threshold;
    所述中间反射率值小于或等于预设的反射率下限阈值;The intermediate reflectivity value is less than or equal to a preset reflectivity lower limit threshold;
    所述上侧反射率值大于或等于预设的反射率上限阈值。The upper side reflectivity value is greater than or equal to a preset upper reflectivity threshold.
  11. 一种激光雷达的点云处理装置,其特征在于,包括: A point cloud processing device for laser radar, characterized in that it comprises:
    点云数据获取模块,用于获取激光雷达采集的点云数据;所述点云数据中的每个扫描点均包括距离测量值和反射率测量值;The point cloud data acquisition module is used to obtain the point cloud data collected by the laser radar; each scanning point in the point cloud data includes a distance measurement value and a reflectivity measurement value;
    膨胀点判断模块,用于根据目标扫描点与相邻点的距离测量值和反射率测量值判断所述目标扫描点是否为膨胀点;所述目标扫描点为所述点云数据中的任意一个扫描点;所述相邻点为与所述目标扫描点在水平方向上及在竖直方向上的间隔均小于预设阈值的扫描点;An expansion point judging module, used to judge whether the target scanning point is an expansion point according to the distance measurement value and the reflectance measurement value between the target scanning point and the adjacent point; the target scanning point is any one of the point cloud data A scanning point; the adjacent point is a scanning point whose distance from the target scanning point in the horizontal direction and in the vertical direction is smaller than a preset threshold;
    膨胀点去除模块,用于若所述目标扫描点为膨胀点,则从所述点云数据中去除所述目标扫描点。An expansion point removal module, configured to remove the target scanning point from the point cloud data if the target scanning point is an expansion point.
  12. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至10中任一项所述的激光雷达的点云处理方法的步骤。 A computer-readable storage medium, the computer-readable storage medium stores a computer program, characterized in that, when the computer program is executed by a processor, the laser radar according to any one of claims 1 to 10 is realized. Steps of the point cloud processing method.
  13. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至10中任一项所述的激光雷达的点云处理方法的步骤。 A terminal device, comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, characterized in that, when the processor executes the computer program, the computer program according to claims 1 to 1 is implemented. The step of the point cloud processing method of lidar described in any one in 10.
PCT/CN2021/104432 2021-07-05 2021-07-05 Point cloud processing method and apparatus for laser radar, and storage medium and terminal device WO2023279225A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/104432 WO2023279225A1 (en) 2021-07-05 2021-07-05 Point cloud processing method and apparatus for laser radar, and storage medium and terminal device
CN202180100001.1A CN117616307A (en) 2021-07-05 2021-07-05 Point cloud processing method and device of laser radar, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/104432 WO2023279225A1 (en) 2021-07-05 2021-07-05 Point cloud processing method and apparatus for laser radar, and storage medium and terminal device

Publications (1)

Publication Number Publication Date
WO2023279225A1 true WO2023279225A1 (en) 2023-01-12

Family

ID=84801132

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/104432 WO2023279225A1 (en) 2021-07-05 2021-07-05 Point cloud processing method and apparatus for laser radar, and storage medium and terminal device

Country Status (2)

Country Link
CN (1) CN117616307A (en)
WO (1) WO2023279225A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116501070A (en) * 2023-06-30 2023-07-28 深圳市欢创科技有限公司 Recharging method, robot and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110031823A (en) * 2019-04-22 2019-07-19 上海禾赛光电科技有限公司 It can be used for noise recognition methods and the laser radar system of laser radar
CN110515054A (en) * 2019-08-23 2019-11-29 斯坦德机器人(深圳)有限公司 Filtering method and device, electronic equipment, computer storage medium
US20200249326A1 (en) * 2019-02-01 2020-08-06 Panosense Inc. Identifying and/or removing ghost detections from lidar sensor output
CN112912756A (en) * 2019-09-17 2021-06-04 深圳市大疆创新科技有限公司 Point cloud noise filtering method, distance measuring device, system, storage medium and mobile platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200249326A1 (en) * 2019-02-01 2020-08-06 Panosense Inc. Identifying and/or removing ghost detections from lidar sensor output
CN110031823A (en) * 2019-04-22 2019-07-19 上海禾赛光电科技有限公司 It can be used for noise recognition methods and the laser radar system of laser radar
CN110515054A (en) * 2019-08-23 2019-11-29 斯坦德机器人(深圳)有限公司 Filtering method and device, electronic equipment, computer storage medium
CN112912756A (en) * 2019-09-17 2021-06-04 深圳市大疆创新科技有限公司 Point cloud noise filtering method, distance measuring device, system, storage medium and mobile platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116501070A (en) * 2023-06-30 2023-07-28 深圳市欢创科技有限公司 Recharging method, robot and storage medium
CN116501070B (en) * 2023-06-30 2023-09-19 深圳市欢创科技有限公司 Recharging method, robot and storage medium

Also Published As

Publication number Publication date
CN117616307A (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN112513679B (en) Target identification method and device
CN112213725B (en) Multipath false alarm suppression method and device for vehicle-mounted radar and terminal equipment
JP5305985B2 (en) Artifact detection device, artifact detection method, and artifact detection program
CN112255636A (en) Distance measuring method, system and equipment
CN113009442B (en) Method and device for identifying multipath target of radar static reflecting surface
WO2023004628A1 (en) Reflectivity correction method and apparatus, computer readable storage medium, and terminal device
CN110471075A (en) Radar range finding method, apparatus and terminal device
WO2022198637A1 (en) Point cloud noise filtering method and system, and movable platform
WO2023024087A1 (en) Method, apparatus and device for processing laser radar point cloud, and storage medium
CN113325388A (en) Method and device for filtering floodlight noise of laser radar in automatic driving
WO2023279225A1 (en) Point cloud processing method and apparatus for laser radar, and storage medium and terminal device
US20220113171A1 (en) Sensor diagnosis device and computer readable medium
WO2019188509A1 (en) Radar image processing device, radar image processing method, and storage medium
CN112689842B (en) Target detection method and device
CN111679262B (en) Laser point cloud intensity calibration method, device, equipment and storage medium
WO2021056348A1 (en) Signal processing method of point cloud detection system, and point cloud detection system
CN115755078A (en) Laser radar ranging method, laser radar and storage medium
EP4194885A1 (en) Method for determining the mobility status of a target object
CN111880156B (en) Road dough fog detection method, system and radar
CN116413683A (en) Laser radar, scanning method thereof and readable storage medium
JP2018180669A (en) Vehicle detection device and vehicle detection program
CN116068503A (en) Combined calibration method and device for millimeter wave radar and laser radar and terminal equipment
WO2023004629A1 (en) Laser radar anti-interference method and apparatus, readable storage medium, and terminal device
WO2023015407A1 (en) Method for identifying artifact point, terminal device, and computer-readable storage medium
CN116047442A (en) Method and device for detecting target angle and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21948726

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202180100001.1

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE