Laser ranging method and laser ranging equipment

By calculating the detection amplitude change rate and calibration distance of the pixels in the laser ranging equipment, the problem of low measurement accuracy of the reflected main light irradiation on the pixel spacing is solved, higher-precision laser ranging is achieved, and the measurement of the equipment is improved. accuracy and computational efficiency.

CN118625331APending Publication Date: 2024-09-10SHENZHEN HUAYIFENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310255585.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

When the existing laser ranging equipment reflects the main light and illuminates the pixel spacing, the measurement accuracy is poor and cannot meet the high-precision requirements.

Method used

By obtaining the detection amplitude of the main pixel, the first pixel and the second pixel, the amplitude change rate is calculated, combined with the calibrated distance value of each pixel, the actual distance value is determined, and the amplitude reference preprocessing and normalization are used processing to improve computational accuracy and efficiency.

Benefits of technology

It achieves higher-precision measurement when the reflected main light shines on the pixel spacing, improves the measurement accuracy of laser ranging equipment, and improves the efficiency of distance calculation through specific distance calculation formulas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625331A
    Figure CN118625331A
Patent Text Reader

Abstract

The invention discloses a laser ranging method and laser ranging equipment. In the method, the change rate of the detection amplitudes of the two pixel points adjacent to the main photographing pixel point with the highest detection amplitude is determined, and the actual distance of the measured object is determined by combining the change rate and the distance value corresponding to the main photographing pixel point, so that the actual distance with higher precision can be obtained when the reflected main light irradiates the pixel pitch, and the accuracy of the measured object is improved. Therefore, the measurement precision of the laser ranging device is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of laser ranging, and in particular to a laser ranging method and a laser ranging device. Background Art

[0002] In some areas of fine processing, the exact distance of an object needs to be measured, and the distance error needs to be controlled on a millimeter scale. Therefore, laser ranging is widely used due to its high precision.

[0003] When using laser to measure the distance of an object, the principle of triangulation can be used: the laser beam emitted by the laser ranging device is projected onto the detected surface of the object, and the reflected light beam is received by the receiving sensor in the laser ranging device.

[0004] However, the various receiving sensors in the laser ranging equipment are composed of pixels, and there is a pixel pitch between each pixel. When the reflected main light shines on the pixel pitch instead of the pixel, currently only the calibrated distance corresponding to the pixel with the highest detection amplitude is used as the distance of the detected surface of the object. The distance accuracy obtained in this way is poor and cannot meet the distance measurement requirements of some scenes with high precision requirements. Summary of the invention

[0005] The present application provides a laser ranging method and a laser ranging device, which are used to obtain a higher-precision actual distance when the reflected main light is irradiated on the pixel spacing, thereby improving the measurement accuracy of the laser ranging device.

[0006] In a first aspect, the present application provides a laser ranging method, comprising: in a process of measuring the distance of a first object, obtaining a main illumination amplitude of a main illumination pixel point, a first detection amplitude of a first pixel point, and a second detection amplitude of a second pixel point; when the first detection amplitude is greater than the second detection amplitude, determining an amplitude change rate based on the main illumination amplitude, the first detection amplitude, and the second detection amplitude; the amplitude change rate is used to reflect the position where the reflected main light irradiates between the first pixel point and the pixel spacing of the main illumination pixel point, and the reflected main light is the main reflected light of the laser emitted when measuring the distance of the first object; based on the amplitude change rate, the main calibration distance value corresponding to the main illumination pixel point, and the first calibration distance value corresponding to the first pixel point, determining the actual distance value of the first object; wherein the main illumination pixel point is the pixel point with the highest amplitude detected on the receiving sensor, the first pixel point is the pixel point on the receiving sensor that is adjacent to the main illumination pixel point in the direction of increasing the calibration distance, and the second pixel point is the pixel point on the receiving sensor that is adjacent to the main illumination pixel point in the direction of decreasing the calibration distance.

[0007] In combination with some embodiments of the first aspect, in some embodiments, in the process of measuring the distance of the first object, the main illumination amplitude of the main illumination pixel point, the first detection amplitude of the first pixel point and the second detection amplitude of the second pixel point are obtained, specifically including: in the process of measuring the distance of the first object, the initial detection amplitude of N pixel points with detection values ​​on the receiving sensor is obtained, where N is a positive integer; the initial detection amplitude is subjected to amplitude benchmark preprocessing to obtain N benchmark detection amplitudes, so that the benchmark detection amplitudes generated by different detected surfaces at the same distance at the same pixel point are the same and the amplitude greater than the preprocessing center line is locked as the preset main illumination amplitude; the preset main illumination amplitude is determined to be the main illumination amplitude of the main illumination pixel point, the benchmark detection amplitude of the first pixel point is the first detection amplitude of the first pixel point, and the benchmark detection amplitude of the second pixel point is the second detection amplitude of the second pixel point.

[0008] In combination with some embodiments of the first aspect, in some embodiments, when the first detection amplitude is greater than the second detection amplitude, the amplitude change rate is determined based on the main illumination amplitude, the first detection amplitude and the second detection amplitude, specifically including: when the first benchmark detection amplitude is not less than the preset adjacent illumination amplitude, mapping the preset main illumination amplitude to the maximum value 1, mapping the second benchmark detection amplitude to the minimum value 0, and normalizing and mapping the first benchmark detection amplitude to between 0 and 1; determining the amplitude change rate based on the normalized first benchmark detection amplitude.

[0009] In combination with some embodiments of the first aspect, in some embodiments, the determining the amplitude change rate based on the normalized first reference detection amplitude specifically includes: calculating the amplitude change rate using the following formula 1 according to the normalized first reference detection amplitude and the normalized second reference detection amplitude; wherein formula 1 is: Wherein, K is the amplitude change rate, a is the normalized first reference detection amplitude, and b is the normalized second reference detection amplitude.

[0010] In combination with some embodiments of the first aspect, in some embodiments, the actual distance value of the first object is determined based on the amplitude change rate, the main calibration distance value corresponding to the main illumination pixel point, and the first calibration distance value corresponding to the first pixel point, specifically including: according to the amplitude change rate, the main calibration distance value corresponding to the main illumination pixel point, and the first calibration distance value corresponding to the first pixel point, using the following formula 2 to calculate the actual distance value of the first object; wherein Formula 2 is: Wherein, A is the main calibration distance value corresponding to the main illumination pixel, B is the first calibration distance value corresponding to the first pixel, and K is the amplitude change rate.

[0011] In combination with some embodiments of the first aspect, in some embodiments, the method also includes: when the second benchmark detection amplitude is not less than the preset adjacent illumination amplitude, mapping the preset main illumination amplitude to a maximum value of 1, mapping the first benchmark detection amplitude to a minimum value of 0, and normalizing and mapping the second benchmark detection amplitude to between 0 and 1; determining the amplitude change rate based on the normalized second benchmark detection amplitude; determining the actual distance value of the first object based on the second calibration distance value corresponding to the second pixel point, the main calibration distance value corresponding to the main illumination pixel point, and the amplitude change rate.

[0012] In combination with some embodiments of the first aspect, in some embodiments, the determining the amplitude change rate based on the normalized second reference detection amplitude specifically includes: calculating the amplitude change rate using the following formula 3 according to the normalized second reference detection amplitude and the normalized first reference detection amplitude; wherein formula 3 is: Wherein, K is the amplitude change rate, a is the normalized first reference detection amplitude, and b is the normalized second reference detection amplitude.

[0013] In combination with some embodiments of the first aspect, in some embodiments, the actual distance value of the first object is determined based on the second calibrated distance value corresponding to the second pixel, the main calibrated distance value corresponding to the main illumination pixel, and the amplitude change rate, specifically including: according to the amplitude change rate, the main calibrated distance value corresponding to the main illumination pixel, and the second calibrated distance value corresponding to the second pixel, the actual distance value of the first object is calculated using the following formula 4; wherein formula 4 is: Among them, B is the main calibration distance value corresponding to the main pixel point, A is the first calibration distance value corresponding to the second pixel point, and K is the amplitude change rate.

[0014] In a second aspect, an embodiment of the present application provides a laser ranging device, comprising: a laser transceiver, one or more processors and a memory; the laser transceiver comprises a laser for emitting laser light and a receiving sensor for receiving reflected light; the memory is coupled to the one or more processors, the memory is used to store a computer program code, the computer program code comprises computer instructions, the one or more processors call the computer instructions so that the laser ranging device performs the method described in the first aspect and any possible implementation manner of the first aspect.

[0015] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions. When the instructions are executed on a laser ranging device, the laser ranging device executes the method described in the first aspect and any possible implementation manner of the first aspect.

[0016] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. Due to the use of the main illumination amplitude, the first detection amplitude and the second detection amplitude, the amplitude change rate that can represent the position where the reflected main light irradiates between the first pixel point and the pixel pitch of the main illumination pixel point is determined, and then the actual distance value of the first object is determined based on the amplitude change rate and the calibrated distance value of each pixel point. Therefore, the calculated actual distance value is more consistent with the real distance of the first object, which effectively solves the problem of inaccurate distance measurement when the reflected main light irradiates in the pixel pitch, realizes higher-precision measurement of the actual distance when the reflected main light irradiates on the pixel pitch, and improves the measurement accuracy of the laser ranging equipment.

[0017] 2. The initial detection amplitude is first subjected to amplitude reference preprocessing and then normalized to represent the position of the reflected main light in the pixel spacing through the relationship between the left shoulder and the right shoulder of the main waveform. This greatly improves the accuracy and efficiency of calculating the position of the reflected main light, thereby improving the accuracy and efficiency of calculating the actual distance to the first object.

[0018] 3. Since a specific distance calculation formula that can be used directly is provided, the distance calculation formula has good general applicability. When the amplitude change rate is determined by the amplitude of the left shoulder and the right shoulder, as long as the distance between the two pixel points at both ends of the pixel spacing where the reflected main light is located is calibrated, the actual distance value of the first object when the reflected main light is irradiated at any position between the two pixel points can be calculated through the distance calculation formula. While improving the accuracy of the actual distance calculation, the efficiency of the distance calculation is further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is an exemplary structural diagram of a laser ranging system applied to the laser ranging method in an embodiment of the present application; Figure 2 is a schematic diagram of an exemplary scenario of laser ranging using the relevant technology; Figure 3 is a schematic diagram of an exemplary scenario using the laser ranging method in an embodiment of the present application; Figure 4 is a schematic diagram of an exemplary structure of a laser ranging device 100 provided in an embodiment of the present application; Figure 5 It is a schematic diagram of a flow chart of the laser ranging method in an embodiment of the present application; Figure 6 This is an exemplary schematic diagram for understanding that the reflected light caused by the movement of the measured object in the embodiment of the present application is irradiated to different pixels on the receiving sensor; Figure 7is another flow chart of the laser ranging method in the embodiment of the present application; Figure 8 is an exemplary schematic diagram of an actual waveform output by a receiving sensor in an embodiment of the present application; Fig. 9 is an exemplary schematic diagram of a waveform after amplitude reference preprocessing in an embodiment of the present application; Fig.10 is another exemplary schematic diagram of a waveform after amplitude reference preprocessing in an embodiment of the present application; Fig.11 It is a schematic diagram of the waveform change during the entire process of the irradiation position of the reflected main light moving from pixel point A to pixel point B after the waveform after amplitude reference preprocessing is normalized in the embodiment of the present application. DETAILED DESCRIPTION

[0020] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more listed items.

[0021] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0022] Figure 1 It is an exemplary structural diagram of a laser ranging system applied to the laser ranging method in the embodiment of the present application.

[0023] See also Figure 1 The laser ranging system includes a laser transceiver, a signal processor and a computing device. The laser transceiver includes a laser for emitting laser light, a lens for refracting reflected light and a receiving sensor for receiving reflected light.

[0024] The receiving sensor is composed of a series of pixel points arranged in sequence. For example, the receiving sensor can be a complementary metal oxide semiconductor (CMOS), or a charge coupled device (CCD) or other photosensitive device, which is not limited here.

[0025] The signal received by the receiving sensor can be processed by the signal processor into a voltage or current signal and then output to the computing device. The computing device can calculate the distance of the measured object based on the received signal.

[0026] For example, when the object to be detected is at the near end, the light emitted by the laser is reflected by the detected surface of the object to be detected, and then refracted by the lens, and the main reflected light irradiates the A pixel of the receiving sensor. The computing device can calculate the distance of the detected object corresponding to the A pixel as L1 based on the detected signal.

[0027] For another example, when the object to be detected moves to the far end, the light emitted by the laser is reflected by the detected surface of the object to be detected, and then refracted by the lens, and the main reflected light irradiates the B pixel point of the receiving sensor. The computing device can calculate the distance of the object to be detected corresponding to the B pixel point as L2 based on the detected signal.

[0028] In the related art, although the distance of the measured object can be measured by a laser distance measuring device, when the main reflected light is irradiated within the pixel pitch of the receiving sensor, the distance accuracy obtained is poor.

[0029] Figure 2 The figure is a schematic diagram of an exemplary scenario of laser ranging using related technologies.

[0030] See also Figure 2 When the main reflected light is irradiated in the pixel spacing between pixel point 83 and pixel point 84 of the receiving sensor, the related technology will determine which pixel point 83 and pixel point 84 has a higher detection amplitude, and then determine the distance of the object to be measured as the distance value corresponding to the pixel point with the higher detection amplitude.

[0031] However, this processing cannot determine the actual distance of the object, resulting in poor ranging accuracy and cannot meet the needs of some high-precision scenarios.

[0032] By using the laser ranging method in the embodiment of the present application, the change rate of the detection amplitude of two pixel points adjacent to the main illumination pixel point with the highest detection amplitude is determined, and then the actual distance of the measured object is determined by combining the change rate and the distance value corresponding to the main illumination pixel point. When the reflected main light is irradiated on the pixel spacing, a higher-precision actual distance can be obtained, thereby improving the measurement accuracy of the laser ranging equipment.

[0033] Figure 3 This is a schematic diagram of an exemplary scenario using the laser ranging method in an embodiment of the present application.

[0034] See also Figure 3 , assuming that the receiving sensor uses a CMOS receiving device with 512 pixels and a pixel pitch of 12.5 microns. When the main reflected light is irradiated on the pixel pitch between pixel 83 and pixel 84 and is close to pixel 83, the laser ranging will not only determine the detection amplitude of pixel 83, but also determine the detection amplitudes of adjacent pixel 82 and pixel 84, and then calculate the amplitude change rate of the detection amplitude of pixel 84 and the detection amplitude of pixel 82 relative to the amplitude of pixel 83, as a basis for determining the distance between the main irradiation light and the pixel 83 in the pixel pitch. Combined with the amplitude change rate and the calibrated distance values ​​corresponding to pixel 83 and pixel 84, the actual distance L3 of the object being measured can be determined.

[0035] Since the detection amplitude of two adjacent pixels is introduced to determine the distance of the reflected main light from the main illumination pixel in the pixel spacing, the actual distance measured is more accurate.

[0036] In actual tests, for a distance measurement system with a measurement range of 30 mm ± 5 mm, the laser distance measurement method in the embodiment of the present application can achieve a measurement accuracy of less than 10 microns.

[0037] To facilitate understanding of the laser ranging method in the embodiment of the present application, the exemplary laser ranging device 100 provided in the embodiment of the present application is first introduced below.

[0038] Figure 4 It is a schematic diagram of an exemplary structure of the laser ranging device 100 provided in an embodiment of the present application.

[0039] In some embodiments, the laser ranging device 100 includes a processor, a memory, a laser transceiver, and a network interface connected via a system bus.

[0040] The laser transceiver is used to use a laser to emit laser light, use a receiving sensor to receive reflected light, and transmit the signal output by the receiving sensor to the processor; The processor of the laser ranging device 100 is used to provide computing and control capabilities.

[0041] The memory of the laser ranging device 100 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the laser ranging device 100 is used to store data. The network interface of the laser ranging device 100 is used to communicate with other external devices through a network connection. When the computer program is executed by the processor, the laser ranging method in the embodiment of the present application is implemented.

[0042] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the laser ranging device to which the solution of the present application is applied. The specific laser ranging device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0043] In some embodiments of the present application, a computer-readable storage medium is also provided, comprising instructions, which, when executed on the laser ranging device, can enable the laser ranging device to execute the laser ranging method in the embodiments of the present application.

[0044] The following is a hardware structure diagram of the exemplary laser ranging device 100 and Figure 3 The schematic diagram of the scene using the laser ranging method shown in the embodiment of the present application is used to describe the laser ranging method: See also Figure 5 , is a flow chart of the laser ranging method in an embodiment of the present application.

[0045] S501, in a process of measuring the distance of a first object, obtaining a main illumination amplitude of a main illumination pixel point, a first detection amplitude of a first pixel point, and a second detection amplitude of a second pixel point; Among them, the main illumination pixel point is the pixel point with the highest amplitude detected on the receiving sensor, the first pixel point is the pixel point on the receiving sensor that is adjacent to the main illumination pixel point in the direction of increasing the calibrated distance, and the second pixel point is the pixel point on the receiving sensor that is adjacent to the main illumination pixel point in the direction of decreasing the calibrated distance.

[0046] like Figure 6 The figure is an exemplary schematic diagram for understanding that the movement of the measured object causes the reflected light to illuminate different pixels on the receiving sensor.

[0047] like Figure 6 As shown in (a), the object under test moves from a distance of L1 from the exciter to a distance of L2 from the laser, and passes through a position at a distance of L3 from the laser.

[0048] like Figure 6As shown in (b) to (d) in the figure, when the object moves from distance L1 to distance L2, the reflected main light will also move from directly irradiating pixel A to directly irradiating pixel B. It can be considered that the calibrated distance L1 corresponding to pixel A on the receiving sensor is smaller than the calibrated distance L2 corresponding to pixel B.

[0049] like Figure 6 As shown in (b), the main reflected light shines on pixel A of the receiving sensor, and some weak reflected light shines on other pixels, and the farther away from pixel A, the lower the light intensity. At this time, pixel A is the pixel directly illuminated by the main reflected light and is also the pixel with the highest detection amplitude, so it can be called the main illumination pixel.

[0050] The pixels adjacent to the main pixel A are pixel B and pixel A-1. Pixel B is the adjacent pixel of the main pixel A on the receiving sensor in the direction of increasing the calibration distance, and can be called the first pixel. Pixel A-1 is the adjacent pixel of the main pixel A on the receiving sensor in the direction of decreasing the calibration distance, and can be called the second pixel.

[0051] Since the distances from the main pixel point are equal, the detection amplitudes of the first pixel point B and the second pixel point A-1 are also equal.

[0052] like Figure 6 As shown in (c) in FIG. 1 , the main reflected light is irradiated on the pixel pitch between pixel A and pixel B of the receiving sensor. Assuming that the irradiation point of the main reflected light is closer to pixel A in the pixel pitch, the detection amplitude of pixel A is still the highest among all the pixels on the receiving sensor. Therefore, pixel A can still be called the main irradiated pixel A.

[0053] Since the first pixel point B is closer to the irradiation point of the main reflected light than the second pixel point A-1, the detection amplitude of the first pixel point B is greater than the detection amplitude of the second pixel point A-1.

[0054] After the main reflected light moves toward pixel B and exceeds the midpoint of pixel A and pixel B, the illumination point of the main reflected light is closer to pixel B in the pixel spacing, and the detection amplitude of pixel B becomes the highest among all the pixels on the receiving sensor. Therefore, pixel A is no longer the main illumination pixel, and the main illumination pixel is changed to pixel B.

[0055] At this time, on the receiving sensor, the pixel point adjacent to the main pixel point B in the direction of increasing the calibration distance is changed to the first pixel point B-1. The pixel point adjacent to the main pixel point B in the direction of decreasing the calibration distance is changed to the second pixel point A. At this time, the detection amplitude of the second pixel point A is greater than the detection amplitude of the first pixel point B-1.

[0056] like Figure 6 As shown in (d) in FIG. 1 , when the object to be measured moves to a distance L2, the main reflected light is irradiated on the pixel point B of the receiving sensor. At this time, the detection amplitude of the first pixel point B-1 and the detection amplitude of the second pixel point A are substantially equal.

[0057] S502, when the first detection amplitude is greater than the second detection amplitude, determining the amplitude change rate based on the main irradiation amplitude, the first detection amplitude and the second detection amplitude; The amplitude change rate is related to the size of the first detection amplitude and the second detection amplitude relative to the main illumination amplitude respectively. The amplitude change rate is used to reflect the position of the reflected main light irradiated between the pixel spacing of the first pixel point and the main illumination pixel point. The reflected main light is the main reflected light of the laser emitted when measuring the distance to the first object.

[0058] It can be understood that the first detection amplitude is greater than the second detection amplitude, that is, the main reflected light illuminates the pixel spacing between the main illumination pixel and the first pixel, and is closer to the main illumination pixel.

[0059] There are many specific ways to determine the amplitude change rate reflecting the position between the pixel spacing of the reflected main light irradiating the first pixel point and the main illumination pixel point, such as using the ratio of the second detection amplitude to the first detection amplitude, or using the ratio of the second detection amplitude and the first detection amplitude respectively to the main illumination amplitude, etc., which are not limited here.

[0060] S503: Determine an actual distance value of the first object based on the amplitude change rate, the main calibration distance value corresponding to the main illumination pixel, and the first calibration distance value corresponding to the first pixel.

[0061] Since the amplitude change rate can represent the position where the reflected main light irradiates the first pixel point and the pixel spacing between the main illumination pixel point, combined with the main calibration distance value corresponding to the main illumination pixel point and the first calibration distance value corresponding to the first pixel point, the actual distance value of the first object being measured can be determined more accurately.

[0062] It can be understood that, when the first detection amplitude is greater than the second detection amplitude, the actual distance value is greater than the main calibration distance value and less than the average value of the sum of the main calibration distance value and the first calibration distance value.

[0063] In the embodiment of the present application, due to the use of the main illumination amplitude, the first detection amplitude and the second detection amplitude, the amplitude change rate that can represent the position where the reflected main light is irradiated between the first pixel point and the pixel pitch of the main illumination pixel point is determined, and then the actual distance value of the first object is determined based on the amplitude change rate and the calibrated distance value of each pixel point. Therefore, the calculated actual distance value is more consistent with the real distance of the first object, and the problem of inaccurate distance measurement when the reflected main light is irradiated in the pixel pitch is effectively solved, and a higher-precision measurement of the actual distance is achieved when the reflected main light is irradiated on the pixel pitch, thereby improving the measurement accuracy of the laser ranging equipment.

[0064] In practical applications, when executing the above laser ranging method, the detected amplitude may be pre-processed with a benchmark and / or normalized to improve the accuracy of the amplitude change rate calculation and the measurement efficiency of the actual distance value.

[0065] Figure 7 This is another flow chart of the laser ranging method in the embodiment of the present application. The laser ranging method in the embodiment of the present application is described in detail below: S701, in the process of measuring the distance of the first object, obtaining the initial detection amplitudes of N pixels having detection values ​​on the receiving sensor; like Figure 8 The figure is an exemplary schematic diagram of the actual waveform output by the receiving sensor. In the process of measuring the distance of the first object, when the laser emitted by the laser in the laser ranging device is reflected on the receiving sensor, in addition to the pixel point irradiated by the main reflected light, there will be a relatively large detection value, and other surrounding pixel points will also have a gradually decreasing detection value as the distance from the main reflected light irradiation point increases.

[0066] S702, performing amplitude benchmark preprocessing on the initial detection amplitude to obtain N benchmark detection amplitudes, so that the benchmark detection amplitudes generated at the same pixel point on different detected surfaces at the same distance are the same and the amplitude greater than the preprocessing center line is locked as the preset main illumination amplitude; Among them, the amplitude of the pre-processing centerline is the average of the preset main illumination amplitude and the preset adjacent illumination amplitude; the preset main illumination amplitude represents the benchmark detection amplitude of a pixel point when the illumination position of the reflected main light is located above a pixel point; the preset adjacent illumination amplitude represents the benchmark detection amplitude of the pixel points adjacent to the pixel point when the illumination position of the reflected main light is located above a pixel point.

[0067] It can be understood that in the embodiment of the present application, there are two main tasks in performing amplitude reference preprocessing: 1. Make the reference detection amplitudes generated at the same pixel points of different detected surfaces at the same distance the same.

[0068] Fig. 9 FIG. 1 is an exemplary schematic diagram of a waveform after amplitude reference preprocessing in an embodiment of the present application. Fig. 9 As shown, when measuring the distance of the first object, the reflected main light is directly incident on pixel point A. At this time, the reference detection amplitude of pixel point A is the preset main illumination amplitude, and the reference detection amplitudes of pixel point B and pixel point A-1 adjacent to pixel point A are both the preset adjacent illumination amplitude.

[0069] If the distance of another object (such as the second object) is being measured, the material of the surface of the object is different from that of the first object. If the reflected main light is also directly incident on pixel A, the actual initial detection amplitude of pixel A may be larger than the initial detection amplitude when measuring the first object. However, after the amplitude reference preprocessing, the reference detection amplitude of pixel A in this case is also the preset main illumination amplitude, which is the same as when measuring the first object. This makes it easier to eliminate the influence of the material of the object itself on the distance measurement, and can improve the accuracy of the distance measurement calculation.

[0070] Second, the amplitude greater than the pre-processing center line is locked as the preset main irradiation amplitude.

[0071] Fig.10 FIG. 1 is another exemplary schematic diagram of a waveform after amplitude reference preprocessing in an embodiment of the present application. Fig.10 As shown in (a) in FIG. 1 , the main reflected light is irradiated between pixel A and pixel B and is closer to pixel A. At this time, the reference detection amplitude of each pixel may be as follows: Fig.10 In order to make the distance calculation more accurate, the amplitude greater than the pre-processing center line can be locked as the preset main irradiation amplitude: Fig.10 As shown in (b), the detection amplitude of pixel point A after amplitude benchmark preprocessing exceeds the amplitude of the preprocessing centerline, so its benchmark detection amplitude can be directly locked as the preset main illumination amplitude.

[0072] In some embodiments, in order to further improve the accuracy of ranging, filtering may be performed before executing step S702: that is, according to a preset sampling frequency, multiple groups of initial detection amplitudes of N pixel points with detection values ​​may be collected when the first object is at the same distance; and then the average value of these multiple groups of initial detection amplitudes is used as the initial detection amplitude of the N pixel points with detection values.

[0073] S703, determining a first reference detection amplitude of a first pixel and a second reference detection amplitude of a second pixel; The first pixel point is a pixel point adjacent to the main illumination pixel point in the direction of increasing the calibration distance, the second pixel point is a pixel point adjacent to the main illumination pixel point in the direction of decreasing the calibration distance, and the main illumination pixel point is a pixel point whose benchmark detection amplitude is the preset main illumination amplitude.

[0074] For example, Fig. 9 As shown in (c), pixel A is the primary pixel, and the calibration distance of pixel B is greater than that of pixel A, so it is the first pixel. The calibration distance of pixel A-1 is less than that of pixel A, so it is the second pixel.

[0075] It can be understood that the main illumination pixel point, the first pixel point, and the second pixel point are also the pixel points corresponding to the top three reference detection amplitudes among the N reference detection amplitudes.

[0076] After the first reference detection amplitude and the second reference detection amplitude are determined, the amplitude change rate can be determined based on the first reference detection amplitude, the second reference detection amplitude and the main irradiation amplitude, and then the actual distance of the first object can be determined.

[0077] Specifically, whether to execute the branch of step S704 or the branch of step S707 may be determined based on the magnitude of the first reference detection amplitude and the second reference detection amplitude relative to the preset adjacent irradiation amplitude: S704, when the first reference detection amplitude is not less than the preset adjacent illumination amplitude, mapping the preset main illumination amplitude to a maximum value of 1, mapping the second reference detection amplitude to a minimum value of 0, and normalizing and mapping the first reference detection amplitude to between 0 and 1; For example, Fig.11 As shown in (1) to (9) in FIG. 1 , a schematic diagram of the normalized waveform change is shown in the process of the main illumination light moving from the direct pixel point A to the direct pixel point B.

[0078] like Fig.11 As shown in (a) of FIG. 1 , when the first reference detection amplitude of the first pixel point B is not less than the preset adjacent illumination amplitude, it means that the main illumination light is irradiated between the main illumination pixel point A and the first pixel point B, and is closer to the main illumination pixel point A. At this time, the preset main illumination amplitude can be mapped to the maximum value 1, the second reference detection amplitude can be mapped to the minimum value 0, and then the first reference detection amplitude can be normalized and mapped to between 0 and 1, and the following is obtained: Fig.11 (2) in FIG. 1 is a schematic diagram of the normalized waveform under this state.

[0079] like Fig.11As shown in (b) of FIG. 1 , the reflected main light moves from pixel A to pixel B, the first reference detection amplitude of pixel B increases, and the second reference detection amplitude of pixel A+1 continues to decrease. The first reference detection amplitude is normalized to obtain Fig.11 In the waveform diagram shown in (3), the amplitude of pixel point B increases relative to pixel point A and pixel point A-1, which clearly shows that the reflected main light is moving toward pixel point B.

[0080] S705, determining the amplitude change rate based on the normalized first reference detection amplitude; The amplitude change rate is used to reflect the position where the reflected main light irradiates the first pixel point and the main illumination pixel point between the pixel spacings.

[0081] After normalization, since the preset main illumination amplitude is 1 and the smaller second reference detection amplitude of the right shoulder of the main waveform is 0, the normalized first reference detection amplitude on the left shoulder can indicate the distance to pixel point B. The larger the normalized first reference detection amplitude is, the closer it is to pixel point B, but it will not exceed the midpoint between pixel point A and pixel point B. Because if it exceeds the midpoint, pixel point A is no longer the main illumination pixel point, and the main illumination pixel point will be changed to pixel point B. By calculating the amplitude change between the amplitude of the first pixel point (left shoulder of the main waveform) and the amplitude of the second pixel point (right shoulder of the main waveform), the actual distance between the illumination point of the main reflected light and the two pixels can be obtained, thereby determining the actual distance of the first object.

[0082] In some embodiments, the normalized first reference detection amplitude can be directly used as the amplitude change rate.

[0083] In some embodiments, the amplitude change rate at this time can be calculated by the normalized first reference detection amplitude and the normalized second reference detection amplitude. The calculation formula can be as shown in the following formula 1: Wherein, K is the amplitude change rate, a is the normalized first reference detection amplitude, and b is the normalized second reference detection amplitude.

[0084] S706: Determine the actual distance value of the first object based on the first calibration distance value corresponding to the first pixel, the main calibration distance value corresponding to the main illumination pixel, and the amplitude change rate; After determining the amplitude change rate representing the position of the main reflected light in the pixel spacing, the actual distance value of the first object can be determined based on the first calibration distance value corresponding to the first pixel point, the main calibration distance value corresponding to the main illumination pixel point and the amplitude change rate.

[0085] There may be many specific calculation formulas. For example, in step S706, the following formula 2 may be used to calculate the actual distance value of the first object: Wherein, A is the main calibration distance value corresponding to the main illumination pixel, B is the first calibration distance value corresponding to the first pixel, and K is the amplitude change rate.

[0086] By adopting this formula, the calculation of the actual distance value can be made more accurate.

[0087] For example, it is assumed that the main calibration distance value calibrated by the main pixel point A is 1.254 mm, and the first calibration distance value calibrated by the first pixel point B is 1.296 mm.

[0088] If the normalized waveform corresponding to the current distance of the first object is as follows Fig.10 As shown in (2), the amplitude change rate K = (1-0.25) / (1-0) = 0.75.

[0089] Actual distance S = 1.254 + [(1.296-1.254) / 2] × (1–0.75) =1.254+0.021×0.25 =1.25925mm This means that the measured surface of the first object has moved from 1.254 mm to 1.25925 mm, a movement of 0.00525 mm. Alternatively, it means that the measured side of the first object has moved from 1.296 mm to 1.25925 mm, a movement of 0.03675 mm.

[0090] S707, when the second reference detection amplitude is not less than the preset adjacent illumination amplitude, mapping the preset main illumination amplitude to a maximum value of 1, mapping the first reference detection amplitude to a minimum value of 0, and normalizing and mapping the second reference detection amplitude to between 0 and 1; like Fig.11 As shown in (c) in the figure, when the second reference detection amplitude of the second pixel point A is not less than the preset adjacent illumination amplitude, it means that the main illumination light is irradiated between the main illumination pixel point A and the first pixel point B, and is closer to the main illumination pixel point B. If it moves from A to B, it has moved beyond the midpoint of the pixel spacing. At this time, the preset main illumination amplitude can be mapped to the maximum value 1, the first reference detection amplitude can be mapped to the minimum value 0, and then the second reference detection amplitude can be normalized and mapped to between 0 and 1, and the following is obtained: Fig.11 (6) in FIG. 1 is a schematic diagram of the normalized waveform under this state.

[0091] like Fig.11As shown in (d) in FIG. 1 , the reflected main light continues to move from pixel A to pixel B, the first reference detection amplitude of pixel B+1 increases, and the second reference detection amplitude of pixel A continues to decrease. The second reference detection amplitude is normalized to obtain Fig.11 In the waveform diagram shown in (7), the amplitude of pixel A decreases relative to pixel B+1 and pixel B, which clearly shows that the reflected main light continues to move away from pixel A and toward pixel B.

[0092] It can be understood that in some embodiments, in step S704 and step S707, the first benchmark detection amplitude, the second benchmark detection amplitude and the preset main illumination amplitude may not be normalized to between 0 and 1, but between other values, such as 0 to 10, 0 to 100, etc., which are not limited here.

[0093] S708, determining the amplitude change rate based on the normalized second reference detection amplitude; After normalization, since the preset main illumination amplitude is 1 and the smaller first reference detection amplitude of the left shoulder of the main waveform is 0, the normalized second reference detection amplitude on the right shoulder can indicate the distance to pixel point B. The smaller the normalized second reference detection amplitude is, the closer it is to pixel point B. When it becomes 0, it indicates that the reflected main light directly hits pixel point B. By calculating the amplitude change between the amplitude of the first pixel point (left shoulder of the main waveform) and the amplitude of the second pixel point (right shoulder of the main waveform), the actual distance between the illumination point of the main reflected light and the two pixels can be obtained, thereby determining the actual distance of the first object.

[0094] In some embodiments, the normalized second reference detection amplitude can be directly used as the amplitude change rate.

[0095] In some embodiments, the amplitude change rate at this time can be calculated by the first reference detection amplitude and the second reference detection amplitude. The calculation formula can be as shown in the following formula 3: Wherein, K is the amplitude change rate, a is the normalized first reference detection amplitude, and b is the normalized second reference detection amplitude.

[0096] S709: Determine the actual distance value of the first object based on the second calibration distance value corresponding to the second pixel, the main calibration distance value corresponding to the main illumination pixel, and the amplitude change rate.

[0097] After determining the amplitude change rate representing the position of the main reflected light in the pixel spacing, the actual distance value of the first object can be determined based on the second calibration distance value corresponding to the second pixel point, the main calibration distance value corresponding to the main illumination pixel point and the amplitude change rate.

[0098] There may be many specific calculation formulas. For example, in step S709, the following formula 4 may be used to calculate the actual distance value of the first object: Among them, B is the main calibration distance value corresponding to the main pixel point, A is the second calibration distance value corresponding to the second pixel point, and K is the amplitude change rate.

[0099] By adopting this formula, the calculation of the actual distance value can be made more accurate.

[0100] For example, it is assumed that the primary calibration distance value calibrated by the primary pixel point B is 1.296 mm, and the secondary calibration distance value calibrated by the secondary pixel point A is 1.254 mm.

[0101] If the normalized waveform corresponding to the current distance of the first object is as follows Fig.10 As shown in (6), the amplitude change rate K = (1-0.75) / (1-0) = 0.25.

[0102] Actual distance S = 1.296-[(1.296-1.254) / 2]×(1–0.25) =1.296-0.021×0.75 =1.28025mm This means that the measured surface of the first object has moved from 1.254 mm to 1.28025 mm, a movement of 0.02625 mm. Alternatively, it means that the measured side of the first object has moved from 1.296 mm to 1.28025 mm, a movement of 0.01575 mm.

[0103] In the embodiment of the present application, the initial detection amplitude is first subjected to amplitude reference preprocessing and then normalized to represent the position of the reflected main light in the pixel spacing through the relationship between the left shoulder and the right shoulder of the main waveform. This greatly improves the accuracy and efficiency of calculating the position of the reflected main light, thereby improving the accuracy and efficiency of calculating the actual distance to the first object.

[0104] A specific distance calculation formula that can be directly used in some embodiments is provided, and the distance calculation formula has good general applicability. When the amplitude change rate is determined by the amplitude of the left shoulder and the right shoulder, as long as the distance between the two pixel points at both ends of the pixel spacing where the reflected main light is located is calibrated, the actual distance value of the first object when the reflected main light is irradiated at any position between the two pixel points can be calculated by the distance calculation formula. While improving the accuracy of the actual distance calculation, the efficiency of the distance calculation is further improved.

[0105] As described above, the above 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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0106] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0107] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0108] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A laser ranging method, characterized in that: include: In the process of measuring the distance of the first object, a main illumination amplitude of the main illumination pixel point, a first detection amplitude of the first pixel point, and a second detection amplitude of the second pixel point are obtained; In a case where the first detection amplitude is greater than the second detection amplitude, determining an amplitude change rate based on the main illumination amplitude, the first detection amplitude, and the second detection amplitude; The amplitude change rate is used to reflect the position of the reflected main light irradiated on the first pixel point and the pixel pitch of the main illumination pixel point, and the reflected main light is the main reflected light of the laser emitted when measuring the distance of the first object; Determine an actual distance value of the first object based on the amplitude change rate, the main calibration distance value corresponding to the main illumination pixel point, and the first calibration distance value corresponding to the first pixel point; Among them, the main illumination pixel point is the pixel point with the highest amplitude detected on the receiving sensor, the first pixel point is the pixel point on the receiving sensor that is adjacent to the main illumination pixel point in the direction of increasing the calibrated distance, and the second pixel point is the pixel point on the receiving sensor that is adjacent to the main illumination pixel point in the direction of decreasing the calibrated distance.

2. The method according to claim 1, characterized in that In the process of measuring the distance of the first object, obtaining the main illumination amplitude of the main illumination pixel point, the first detection amplitude of the first pixel point, and the second detection amplitude of the second pixel point specifically includes: In the process of measuring the distance of the first object, obtaining the initial detection amplitude of N pixel points with detection values ​​on the receiving sensor, where N is a positive integer; Performing amplitude benchmark preprocessing on the initial detection amplitude to obtain N benchmark detection amplitudes, so that the benchmark detection amplitudes generated at the same pixel point on different detected surfaces at the same distance are the same and the amplitude greater than the preprocessing center line is locked as the preset main irradiation amplitude; The preset main illumination amplitude is determined as the main illumination amplitude of the main illumination pixel, the reference detection amplitude of the first pixel is the first detection amplitude of the first pixel, and the reference detection amplitude of the second pixel is the second detection amplitude of the second pixel.

3. The method according to claim 2, characterized in that The determining, when the first detection amplitude is greater than the second detection amplitude, the amplitude change rate based on the main illumination amplitude, the first detection amplitude and the second detection amplitude, specifically includes: When the first reference detection amplitude is not less than the preset adjacent irradiation amplitude, the preset main irradiation amplitude is mapped to a maximum value of 1, the second reference detection amplitude is mapped to a minimum value of 0, and the first reference detection amplitude is normalized and mapped to between 0 and 1; The amplitude change rate is determined based on the normalized first reference detection amplitude.

4. The method according to claim 3, characterized in that The determining the amplitude change rate based on the normalized first reference detection amplitude specifically includes: According to the normalized first reference detection amplitude and the normalized second reference detection amplitude, the amplitude change rate is calculated using the following formula 1; wherein formula 1 is: Wherein, K is the amplitude change rate, a is the normalized first reference detection amplitude, and b is the normalized second reference detection amplitude.

5. The method according to claim 4, characterized in that The determining the actual distance value of the first object based on the amplitude change rate, the main calibration distance value corresponding to the main illumination pixel point, and the first calibration distance value corresponding to the first pixel point specifically includes: According to the amplitude change rate, the main calibration distance value corresponding to the main illumination pixel point and the first calibration distance value corresponding to the first pixel point, the actual distance value of the first object is calculated using the following formula 2; wherein formula 2 is: Wherein, A is the main calibration distance value corresponding to the main illumination pixel, B is the first calibration distance value corresponding to the first pixel, and K is the amplitude change rate.

6. The method according to claim 2, characterized in that The method further comprises: When the second reference detection amplitude is not less than the preset adjacent irradiation amplitude, the preset main irradiation amplitude is mapped to a maximum value of 1, the first reference detection amplitude is mapped to a minimum value of 0, and the second reference detection amplitude is normalized and mapped to between 0 and 1; determining an amplitude change rate based on the normalized second reference detection amplitude; An actual distance value of the first object is determined based on a second calibrated distance value corresponding to the second pixel, a main calibrated distance value corresponding to the main illumination pixel, and the amplitude change rate.

7. The method according to claim 6, characterized in that The determining the amplitude change rate based on the normalized second reference detection amplitude specifically includes: According to the normalized second reference detection amplitude and the normalized first reference detection amplitude, the amplitude change rate is calculated using the following formula 3; wherein formula 3 is: Wherein, K is the amplitude change rate, a is the normalized first reference detection amplitude, and b is the normalized second reference detection amplitude.

8. The method according to claim 7, characterized in that The determining the actual distance value of the first object based on the second calibration distance value corresponding to the second pixel, the main calibration distance value corresponding to the main illumination pixel, and the amplitude change rate specifically includes: According to the amplitude change rate, the main calibration distance value corresponding to the main illumination pixel point and the second calibration distance value corresponding to the second pixel point, the actual distance value of the first object is calculated using the following formula 4; wherein formula 4 is: Among them, B is the main calibration distance value corresponding to the main pixel point, A is the first calibration distance value corresponding to the second pixel point, and K is the amplitude change rate.

9. A laser ranging device, characterized in that: comprising: a laser transceiver, one or more processors and a memory; The laser transceiver includes a laser for emitting laser light and a receiving sensor for receiving reflected light; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the laser ranging device to perform the method according to any one of claims 1 to 8.

10. A computer-readable storage medium comprising instructions, characterized in that: When the instruction is executed on a laser distance measuring device, the laser distance measuring device is caused to execute the method according to any one of claims 1 to 8.