A scene plane information recognition method and system based on a laser radar sensor
By processing and recognizing the depth and intensity maps of infrared lidar, the problem of 3D lidar's inability to recognize planar information is solved, enabling text and pattern recognition from a single sensor and improving recognition accuracy and applicability.
Patent Information
- Application Number
- CN202410230741.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-29
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-02-29
AI Technical Summary
Existing 3D LiDAR cannot directly and effectively identify information on a plane, such as text or patterns, and requires the assistance of RGB cameras for recognition, which limits its application in scenarios such as intelligent transportation systems.
By acquiring the depth map and active infrared intensity map from the infrared lidar, point cloud data processing is performed, including depth and spatial filtering, intensity value correction, iterative search for planar position and normal vector, vertical projection and thresholding, and then classification and recognition are performed using a point cloud neural network.
It enables the recognition of text and patterns on a plane using a single infrared lidar sensor, avoiding the complex registration process of multi-sensor acquisition, improving the recognition accuracy under different lighting conditions, and is suitable for scenarios such as autonomous driving and drones.
Smart Images

Figure CN118091599B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of information recognition technology, and specifically relates to a method and system for scene planar information recognition based on a lidar sensor. Background Technology
[0002] 3D LiDAR, also known as laser radar, is a modern optical remote sensing technology that uses lasers to achieve 3D perception. Its working principle is similar to echolocation, but it uses laser pulses instead of sound waves as the signal. LiDAR emits laser beams carrying information such as amplitude, frequency, and phase towards the target, and then analyzes and processes information such as the time difference and phase difference of the reflected beams to accurately calculate the target's location. Miniature 3D LiDAR technology has wide applications in scenarios such as drones and autonomous driving.
[0003] A 3D LiDAR system mainly consists of three parts: a ranging system, a scanning system, and a control system. The ranging system, composed of a laser emitter, a photodetector, and optical elements, is responsible for emitting modulated light waves towards the target and processing the reflected light signals into electrical signals. The scanning system controls the direction of the laser lines at different azimuths and vertical angles, thereby capturing millions of dense and precise point cloud data points in space, forming the LiDAR's sensing range. The control system, composed of a main control chip and an information processing unit, is responsible for controlling the photoelectric signals and processing the point cloud data.
[0004] LiDAR offers numerous advantages, such as the ability to perform 3D imaging, enabling high-precision global positioning and depicting surfaces and objects with an accuracy of 2-3 centimeters, even in remote applications. Furthermore, LiDAR mapping is highly accurate and can be used in a wide range of applications, including forest management, wildfire analysis and management, pollution research, solar system planning and optimization, wind farm output enhancement, crop mapping, seed and fertilizer optimization, insect monitoring, plant species classification, cloud, wind, and atmospheric chemical and gas assessment, velocity tracking, crime scene scanning, flood, earthquake, wildfire, and debris flow assessment and management, as well as 3D photo creation of objects and scenes for surveying, 3D modeling, interior / layout design, architecture / renovation, and art and leisure photography.
[0005] A significant drawback of current 3D LiDAR technology is its inability to directly and effectively recognize information on a two-dimensional surface, such as text or symbols displayed on planar signs. This often requires additional assistance from RGB cameras or is not performed at all. However, recognizing such planar information, including text, is a pressing issue in many scenarios where 3D LiDAR is used. Achieving this goal is crucial for the widespread application of 3D LiDAR technology in common scenarios such as Intelligent Transportation Systems (ITS).
[0006] Since the direction and distance of infrared light scattering from the surface of objects in a scene can affect the received intensity of the sensor, the farther away from the center of the field of view and the greater the depth value, the smaller the intensity value when all other conditions are the same. This has an impact and defects on the recognition of content on a plane. However, the depth map can provide information such as the position, depth and tilt of the plane, and then correct the intensity distribution to minimize the influence of position and tilt angle on the intensity of the target plane. Summary of the Invention
[0007] To address the problems existing in the prior art, this invention provides a method and system for scene planar information recognition based on a lidar sensor. This method can recognize text and pattern content of a certain size on a plane with different spatial orientations, such as road signs or license plates.
[0008] The technical solution adopted in this invention is as follows:
[0009] In a first aspect, the present invention provides a method for scene planar information recognition based on a lidar sensor, comprising:
[0010] Acquire registered depth maps and active infrared intensity maps, including the target plane content, from infrared lidar data.
[0011] The depth map is converted into point cloud data format, and the depth values and spatial filtering are determined.
[0012] Perform planar intensity value center-symmetric radiative correction on the active infrared intensity map; use the corrected intensity to assign infrared intensity values to the point cloud.
[0013] Based on the depth value and spatial filtering, the target plane position and normal vector direction are iteratively found as the projection plane of the point cloud pattern, and the plane normal vector is obtained.
[0014] Projecting the point cloud vertically and the point cloud pattern onto the plane; correcting the intensity and depth of the projection results; and performing thresholding or color-based region growing, segmentation, and clustering to obtain point cloud results with independent target content on the plane.
[0015] Based on the point cloud results, a point cloud neural network is used for classification and recognition to obtain the recognition results.
[0016] As a further improvement of the present invention, the acquisition of the registered depth map and active infrared intensity map, including the target plane content, collected by the infrared lidar includes:
[0017] Infrared lidar that utilizes the time-of-flight principle determines the depth value of the collected data by calculating the time it takes for actively emitted infrared light to travel from reflection to reception by the sensor; it also uses active infrared light to acquire the infrared intensity information reflected back.
[0018] The depth map and active infrared intensity map were obtained simultaneously in the same scene.
[0019] As a further improvement of the present invention, the step of converting the depth map into point cloud data format and determining the depth value and spatial filtering includes:
[0020] The depth image acquired by the depth camera uses the gray value of each pixel as the depth position and the planar position of the pixel, reflecting the spatial position information of each point of the acquired target or scene; the gray value or multi-channel color value of the pixel in the depth image reflects the depth information of the corresponding object point.
[0021] By utilizing the camera's intrinsic parameters, the depth map is converted into a point cloud. The image coordinate system of the depth map is transformed into the world coordinate system of the point cloud. The depth map is converted into point cloud data format. After the depth map is converted into a point cloud, the depth value and spatial filtering are determined based on the location of the plane.
[0022] As a further improvement of the present invention, the planar intensity value center-symmetric radiation correction of the active infrared intensity map includes:
[0023] The intensity distribution of the same reflectivity material at different locations at the same depth, and its relationship with the radius r of the location from the center of the active infrared intensity map, can be described by a quadratic power function: ir = ir0 - ar 2 Generally, for complex actual distributions, even functions with respect to radius r, including but not limited to quadratic power functions, can be used to represent the distribution. By fitting the pre-collected experimental intensity data, a more accurate function form and parameter selection result can be obtained, described as ir = ir0 - f(r).
[0024] In the formula, ir0 is the intensity corresponding to the center of the active infrared intensity map being the material with this reflectivity, and ir is the intensity collected at a position with a radius r from the center of the active infrared intensity map;
[0025] For a target planar coating material or a test material of interest, intensity data are collected at different locations within the same depth plane. This data is then fitted using the selected intensity distribution relationship for the material to determine the parameters in the distribution relationship. A correction difference Δir(r) = ir0 - ir is obtained, related to r. The intensity value ir at that location is then corrected to ir', satisfying the correction relationship ir′| r =ir| r +Δir| r Complete the center-symmetric radiation correction of the plane intensity value.
[0026] As a further improvement of the present invention, the step of assigning point cloud infrared intensity values using modified intensity includes:
[0027] For the depth map and active infrared intensity map acquired during acquisition, each point in the processed point cloud also corresponds one-to-one with each pixel in the modified active infrared intensity map. The color of each pixel in the modified active infrared intensity map is used to obtain the infrared intensity corresponding to that point, and then the value is assigned to the color of the corresponding point in the point cloud.
[0028] As a further improvement of the present invention, the iterative search for the target plane position and normal vector direction, as the projection plane of the point cloud pattern, and the acquisition of the plane normal vector, includes:
[0029] In general, find the coordinates of the center point of the layer with the smallest depth in the entire planar point cloud, denoted as (xm1, ym1, zm1); find the coordinates of the center point of the layer with the largest depth in the entire planar point cloud, denoted as (xm2, ym2, zm2); find the coordinates of the center point of the entire planar point cloud, denoted as (xm3, ym3, zm3); using the coordinates of these three points, the target plane can be represented as: Ax + By + Cz + D = 0;
[0030] Where: A = (ym2-ym1)*(zm3-zm1)-(zm2-zm1)*(ym3-ym1);
[0031] B=(xm3-xm1)*(zm2-zm1)-(xm2-xm1)*(zm3-zm1);
[0032] C=(xm2-xm1)*(ym3-ym1)-(xm3-xm1)*(ym2-ym1);
[0033] D = -(A*xm1 + B*ym1 + C*zm1);
[0034] For the special and common case that most planes in real-world scenarios are placed vertically or horizontally, the target plane is described by two points: the center point coordinates (xm1, ym1, zm1) of the lowest depth layer of the entire plane point cloud and the center point coordinates (xm2, ym2, zm2) of the highest depth layer of the entire plane point cloud. This can be expressed as: (x-xm1) / (xm2-xm1)=(z-zm1) / (zm2-zm1).
[0035] After determining the plane expression using the two methods described above, the distance d from the origin of the target plane and the normalized normal vector N can then be determined.
[0036] For each depth layer, the coordinates of n points are extracted. Using the distance d from the origin of the target plane and the normalized normal vector N, the sum of the distances from all extracted points to the target plane, SUM, is calculated. Using the gradient descent method, with the number of iterations i and the learning rate lr selected, the values of the distance d from the origin of the target plane and the normalized normal vector N are iterated. Finally, the plane closest to all selected points is found. The summation of these values gives the plane the final target plane, which is also used as the projection plane for the next step. The plane parameters are output: the distance d from the origin of the target plane and the normalized normal vector N.
[0037] As a further improvement of the present invention, the projection of the point cloud in the vertical direction and the projection of the point cloud pattern in the projection plane direction includes:
[0038] The point cloud after assignment is projected at least twice. In the first projection, the relationship between the image coordinate system of the depth map and the world coordinate system of the point cloud map is used to call the intrinsic parameters of the depth camera to project the point cloud in the vertical direction, that is, to the z=0 plane.
[0039] The point cloud is then projected vertically onto the final target plane, and an outlier removal operation is performed. This is denoted as the projection of the point cloud pattern onto the projection plane. The result is a target plane with tilt angle and spatial position information, as well as the pattern and text content on it.
[0040] As a further improvement of the present invention, the step of performing intensity value depth equidistant correction on the projection result includes:
[0041] For a specific material, a depth-dependent intensity distribution function ir(z) is selected. Intensity data at different depths are collected and fitted to determine the fitted values of each parameter in this functional relationship. A correction difference Δir(z) = ir - ir0 is obtained, where ir0 is the intensity value corresponding to the point with the largest depth in the point cloud. The intensity value ir at depth z is corrected to ir', satisfying the correction relationship ir′| z =ir| z -Δir| z .
[0042] As a further improvement of the present invention, the step of performing threshold processing or color-based region growing, segmentation, and clustering to obtain point cloud results with independent target content on the plane includes:
[0043] For point clouds that have undergone intensity value correction, threshold segmentation or color-based region growing segmentation and clustering methods are used to retain the content on the plane and remove background point clouds that do not contain text or pattern information. For threshold segmentation, if the content information contains only one intensity value color, a single binarization segmentation is used to filter out the background point cloud. If the content information contains multiple intensity values color, multi-value threshold segmentation is used to filter out the background point cloud, or multiple iterative binarization threshold segmentation operations are performed.
[0044] Secondly, the present invention provides a scene planar information recognition system based on a lidar sensor, comprising:
[0045] The acquisition module is used to acquire the registered depth map and active infrared intensity map, which include the target plane content, collected by the infrared lidar.
[0046] The conversion module is used to convert the depth map into point cloud data format and determine the depth value and spatial filtering;
[0047] The correction module is used to perform planar intensity value center-symmetric radiation correction on the active infrared intensity map; and to assign point cloud infrared intensity values using the corrected intensity.
[0048] The iterative search module is used to iteratively search for the target plane position and normal vector direction based on the depth value and spatial filtering, which serves as the projection plane of the point cloud pattern, and to obtain the plane normal vector.
[0049] The point cloud projection module is used to project point clouds vertically and point cloud patterns onto a plane; to perform intensity value and depth isometric correction on the projection results; and to perform thresholding or color-based region growing, segmentation, and clustering to obtain point cloud results with independent target content on the plane.
[0050] The classification and recognition module is used to perform classification and recognition based on point cloud results using a point cloud neural network.
[0051] Thirdly, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the scene planar information recognition method based on a lidar sensor.
[0052] Fourthly, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the scene planar information recognition method based on a lidar sensor.
[0053] Compared with the prior art, the advantages and beneficial effects of the present invention are as follows:
[0054] This invention utilizes a single infrared lidar sensor for scene planar information acquisition, processing, and recognition. This method enables the recognition of text and patterns of a certain size on a plane with different spatial orientations, such as road signs or license plates. By employing a single infrared lidar sensor, represented by a single time-of-flight sensor, it simultaneously acquires active infrared reflection intensity and depth data of the target plane. The fused point cloud data, processed by the algorithm designed in this method, serves as the data basis for information recognition on objects on the scene planar surface. A point cloud neural network is then used for classification and recognition, overcoming the current limitation that relying solely on a single lidar sensor often fails to achieve content recognition on a plane. Attached Figure Description
[0055] Figure 1 Comparison of reflectivity differences between different coatings or constituent materials on the same plane: (a) is the active infrared intensity map of the scene including the target plane. (b) is a schematic diagram of the active infrared intensity difference caused by the difference in reflectivity between the patterned coating and the planar material on the plane;
[0056] Figure 2 These are the main process steps of the method of the present invention;
[0057] Figure 3 For the acquisition of depth-active infrared intensity maps of a scene containing planar information: Figure 3 Example of a depth map (a) and example of an active infrared intensity map (b) are shown in the image.
[0058] Figure 4 A diagram illustrating the conversion of depth maps into point cloud data format: Figure 4 (a) corresponds to Figure 3 (a) The scene point cloud is converted from the depth map in the image, and (b) The scene point cloud is filtered by depth value and spatial filtering.
[0059] Figure 5 for Figure 3 The infrared active infrared intensity map in the image is the result of a planar intensity value centrally symmetric radiation correction based on the assumed quadratic power function intensity distribution relationship of the paper material.
[0060] Figure 6 In response to Figure 3 Example of point cloud infrared intensity assignment using modified intensity: Figure 6 for Figure 3 The example shows the result of assigning infrared intensity values to point clouds using the modified intensity method. (a) is the front view, and (b) is the oblique side view.
[0061] Figure 7 Example diagram of letter point clouds;
[0062] Figure 8The structure diagram for vertical projection of the assigned point cloud is as follows: Figure 8 (a) for Figure 3 The example shows the result of projecting the assigned point cloud vertically. Figure 8 (b) For Figure 3 For example, the result of projecting the point cloud into the projection plane of the point cloud pattern after projecting the point cloud into the vertical direction.
[0063] Figure 9 The result of intensity value after intensity value depth equidistant correction;
[0064] Figure 10 The color distribution on the point cloud represents the depth value distribution;
[0065] Figure 11 This is a schematic diagram of a scene planar information recognition system based on a lidar sensor provided by the present invention. Detailed Implementation
[0066] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.
[0067] Taking the Intel RealSense LiDAR L515 ToF laser radar depth camera as an example, its near-infrared light peak is mainly concentrated around 860nm. The data collected by the ToF sensor using this device can simultaneously include a depth map containing scene depth information and an active infrared intensity map containing active infrared intensity information collected by the sensor. In such an active infrared intensity map, the difference in reflectivity of different coatings or constituent materials on the same plane can be distinguished using active infrared intensity. An example is... Figure 1 As shown. Among them, Figure 1 In the image, (a) shows the active infrared intensity map of the scene containing the target plane. (b) is a schematic diagram of the active infrared intensity difference caused by the difference in reflectivity between the patterned paint and the planar material on the plane. The figures also show that even for materials with the same reflectivity, the intensity value is smaller at locations farther from the center of the field of view and at locations with greater depth, all other things being equal. This illustrates the necessity of adding intensity value correction in this method.
[0068] Since the direction and distance of infrared light scattering from the surface of objects in a scene can affect the received intensity of the sensor, the farther away from the center of the field of view and the greater the depth value, the smaller the intensity value under the same conditions. The depth map, however, can provide information such as the position, depth, and tilt of a plane, thereby correcting the intensity distribution and minimizing the influence of position and tilt angle on the target plane's intensity. In summary, scene plane information containing letters, patterns, etc., can be extracted from the fused data of depth and active infrared intensity, serving as the basis for classification and recognition.
[0069] like Figure 2 As shown, this invention provides a method for scene planar information recognition based on a lidar sensor, the main process of which includes:
[0070] 1. Simultaneously acquire registered depth maps and active infrared intensity maps containing the target plane content using a single infrared lidar.
[0071] 2. Convert the depth map into point cloud data format and determine the depth value and spatial filtering.
[0072] 3. Perform planar intensity value center-symmetric radiation correction on the active infrared intensity map.
[0073] 4. Assign infrared intensity values to point clouds using the modified intensity.
[0074] 5. Iteratively find the target plane position and normal vector direction, use it as the projection plane of the point cloud pattern, and obtain the plane normal vector.
[0075] 6. Project the point cloud vertically and the point cloud pattern onto the plane.
[0076] 7. Perform intensity and depth isometric correction on the projection results.
[0077] 8. Perform thresholding or color-based region growing, segmentation, and clustering to obtain independent point clouds of target content on the plane.
[0078] 9. Use point cloud neural networks for classification and recognition to obtain the recognition results.
[0079] Figure 2 The numbers 1-9 correspond to the nine main steps described in the "Main Process of the Method" section.
[0080] This invention provides a method for scene planar information acquisition, processing, and recognition without the need for an RGB camera, utilizing only a single infrared lidar sensor, such as a single Time-of-Flight (ToF) sensor. This method enables the recognition of text and patterns of a certain size on a plane at different spatial orientations, such as road signs or license plates. The key to this method is the use of a single infrared lidar sensor, such as a Time-of-Flight (ToF) sensor, to simultaneously acquire active infrared reflection intensity and depth (AII-D) data of the target plane. The fused point cloud data, processed by the algorithm designed in this method, serves as the data basis for information recognition on objects on the scene planar surface. A point cloud neural network is then used for classification and recognition, overcoming the current limitation that relying solely on a single lidar sensor often fails to achieve content recognition on a plane.
[0081] Features of the present invention may include:
[0082] (1) By utilizing the fused depth and active infrared reflection intensity information, the acquisition task can be completed using only a single LiDAR sensor. This fused data can not only be well applied to object recognition in 3D scenes, but also avoid the adverse effects or interference caused by ambient lighting conditions. This allows planar content recognition in dark or bright light conditions to achieve almost the same accuracy as under normal lighting conditions. Therefore, compared with the traditional RGB camera acquisition and recognition method, it can be better applied to planar content recognition in darker scenes such as at night.
[0083] (2) The point cloud data that combines depth and active infrared reflection intensity is used as the data basis for recognizing text and pattern content on the plane. The proposed method uses a single sensor for data acquisition, which can avoid the registration process required after multiple sensors acquire images and the complex operation caused by the inconsistent acquisition principles of multiple data sources to a certain extent.
[0084] (3) In the target point cloud processing and acquisition stage, the method obtains the spatial position and tilt angle information of the target plane through iterative fitting. This not only provides the necessary information for the isometric correction of the plane intensity value and depth, but also directly obtains the pose of the target plane. This is relevant information that cannot be directly and accurately obtained when using an RGB camera for planar information recognition.
[0085] (4) The method fully considers the influence of different spatial positions of the target plane and different directions of the surface normal vector on the intensity value acquired by the camera in the scene being collected. It designs two different correction processes: central symmetric radiation correction of the plane intensity value and depth equidistant correction of the intensity value, so as to minimize the interference and adverse effects of spatial position and surface tilt angle on the content intensity value on the target plane.
[0086] (5) The method uses a thresholding process to independently segment the point cloud of the content to be identified, making its content point cloud data independent of the scene point cloud, especially the planar point cloud. The resulting planar information is then used to learn and classify using a point cloud neural network. This operation fully utilizes the shape characteristics of the target content, simulating human visual analysis patterns for content acquisition and recognition. The data information obtained in this way is more intuitive and effective.
[0087] The principle behind this method is that letters and patterns on various planes in common scenes are often displayed in different colors. This facilitates intuitive observation and information acquisition by the human eye, as well as the deployment and implementation of planar information analysis using machine vision technology based on RGB cameras. However, active optical acquisition devices such as LiDAR, commonly used in technologies like autonomous driving and drones, cannot obtain the RGB color information of scene images. However, the paints or materials used for different colors have different reflectivities for specific wavelengths of near-infrared light.
[0088] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. The following is a detailed description of the method flow:
[0089] 1. Simultaneously acquire registered depth maps and active infrared intensity maps containing the target plane content using infrared lidar.
[0090] Infrared lidar utilizing the Time-of-Flight (ToF) principle determines the depth value of the acquired data by calculating the time it takes for actively emitted infrared light to travel from reflection to reception by the sensor. Because it uses active infrared light, it can simultaneously acquire the reflected infrared intensity information. The depth map and active infrared intensity map acquired simultaneously in the same scene are pre-registered, avoiding the complex registration process required in image processing. Using actively emitted infrared light avoids adverse effects or interference from ambient lighting conditions. An example is a depth-active infrared intensity map of a scene containing planar information. Figure 3 As shown, the following processing procedures are all based on this example.
[0091] in, Figure 3 (a) shows an example of the acquired depth map, and (b) shows an example of the acquired active infrared intensity map. In this example, both the depth map and the active infrared intensity map use a resolution of 768*1024, which can be adjusted according to the actual application requirements.
[0092] 2. Convert the depth map into point cloud data format and determine the depth value and spatial filtering.
[0093] Depth images acquired using a depth camera provide depth information for each pixel, reflecting the spatial location of each point in the captured target or scene. Depth images often use grayscale values or multi-channel color values to represent the depth information of corresponding points. Using the camera's intrinsic parameters, a depth map can be converted to a point cloud, transforming the image coordinate system of the depth map into the world coordinate system of the point cloud. The intrinsic parameters used include the focal length fx in the X direction, the focal length fy in the Y direction, the center point cx in the X direction, and the center point cy in the Y direction. An example of converting a depth map to point cloud data format is shown below. Figure 4 As shown in (a). After converting the depth map into a point cloud, it is necessary to determine the depth value and spatial filtering based on the location of the plane, removing as many other scene point clouds and noise unrelated to the plane as possible, and retaining only the point cloud of the plane and its vicinity that cannot be filtered out, as shown in the example. Figure 4 As shown in (b).
[0094] in, Figure 4 (a) corresponds to Figure 3 (a) The scene point cloud is converted from the depth map in the image. (b) The result of the scene point cloud after depth value and spatial filtering.
[0095] 3. Perform planar intensity value center-symmetric radiation correction on the active infrared intensity map.
[0096] As mentioned above: Since the direction and distance of infrared light scattering from the surface of objects in the scene can affect the received intensity of the sensor, the intensity value decreases when the distance from the center of the field of view and the depth value are greater, all other things being equal. For the acquired active infrared intensity map, assuming the target plane is at the same depth (i.e., disregarding the influence of depth on the received infrared intensity value), the infrared intensity values of the same color portion on the target plane are also different. The closer to the center of the active infrared intensity map, the greater the intensity value, and the farther away from the center, the gradually decreasing the intensity value. This intensity distribution pattern is centrally symmetrical about the center of the active infrared intensity map. This step is to reduce the influence of the above-mentioned problem causing the intensity value of the same reflectivity material and color to deviate at different locations, and to correct the intensity value of the active infrared intensity map.
[0097] Regarding the paper and inkjet coating materials in the example images of this method, it is assumed that, at the same depth as described above, the intensity value distribution at different locations of the same reflectivity material can be roughly described by a quadratic power function relationship with respect to the radius r of that location from the center of the active infrared intensity map; that is, the intensity value decreases inversely with the square of r. This can be expressed by the formula ir = ir0 - ar. 2Generally, depending on the specific circumstances, even functions with respect to radius r, including but not limited to quadratic power functions, can be used to represent the function. Fitting the pre-collected experimental intensity data yields a more accurate function form and parameter selection result. This general relationship is described as ir = ir0 - f(r).
[0098] In the formula, ir0 represents the intensity corresponding to the center of the active infrared intensity map being the reflectivity material, and ir represents the intensity acquired at a position with a radius r from the center of the active infrared intensity map. The parameters in the formula are determined by collecting intensity data of the target planar coating material or the test material of interest at different positions within the same depth plane. This data is then fitted using the intensity distribution relationship selected for the material to determine the parameters in the distribution relationship. Thus, a correction difference Δir(r) = ir0 - ir related to r can be obtained. The intensity value ir at that position is then corrected to ir', satisfying the correction relationship ir'| r =ir| r +Δir| r This process is called the centrosymmetric radiation correction for plane intensity values.
[0099] against Figure 3 The example shows the planar intensity values of the active infrared intensity map after central symmetric radiative correction, as shown below. Figure 5 As shown.
[0100] in, Figure 5 for Figure 3 The infrared active infrared intensity map is the result of a planar intensity value centrally symmetric radiation correction based on the assumed quadratic power function intensity distribution relationship of the paper material.
[0101] It is worth noting that this quadratic power function relationship is only an approximate assumption. In general, the most suitable functional relationship to describe the intensity distribution of different target materials will also differ. If computational resources are sufficient, other complex polynomial forms, including but not limited to quadratic power functions, can be used to fit the collected experimental intensity data to obtain a more accurate functional form and parameter selection results. The methods for parameter determination and intensity value correction are consistent with and universally applicable as described above.
[0102] 4. Assign infrared intensity values to point clouds using the modified intensity.
[0103] Since the depth map and the active infrared intensity map were registered during acquisition, each point in the processed point cloud corresponds one-to-one with each pixel in the corrected active infrared intensity map. This step involves assigning the color of each pixel in the corrected active infrared intensity map, representing the infrared intensity at that point, to the color of the corresponding point in the point cloud. Because irrelevant point clouds are filtered out during the above filtering process, this operation is not performed on the filtered-out parts; that is, the active infrared intensity map corresponding to these parts is not assigned a value or is assigned a null value. For... Figure 3 The example is the result of assigning infrared intensity values to point clouds using modified intensity. Figure 6 As shown.
[0104] in, Figure 6 for Figure 3 The example shows the result of assigning infrared intensity values to point clouds using the modified intensity method. (a) is the front view, and (b) is the oblique side view.
[0105] 5. Iteratively find the target plane position and normal vector direction, use it as the projection plane of the point cloud pattern, and obtain the plane normal vector.
[0106] Because the depth values in the depth map are discrete rather than continuous, the resulting point cloud plane is not a plane with a tilt angle, but rather composed of multiple planar layers of different depths. This step aims to find the true tilt angle of the target plane and its representation in the real-world coordinate system of the scene space. This step first utilizes the principle of three points determining the plane. The process is as follows: find the center point coordinates of the layer with the smallest depth in the entire planar point cloud, denoted as (xm1, ym1, zm1); find the center point coordinates of the layer with the largest depth in the entire planar point cloud, denoted as (xm2, ym2, zm2); find the center point coordinates of the entire planar point cloud, denoted as (xm3, ym3, zm3). Using these three coordinates, the target plane can be represented as: Ax + By + Cz + D = 0.
[0107] Where: A = (ym2-ym1)*(zm3-zm1)-(zm2-zm1)*(ym3-ym1);
[0108] B=(xm3-xm1)*(zm2-zm1)-(xm2-xm1)*(zm3-zm1);
[0109] C=(xm2-xm1)*(ym3-ym1)-(xm3-xm1)*(ym2-ym1);
[0110] D = -(A*xm1+B*ym1+C*zm1).
[0111] In real-world scenarios, planes are often placed perpendicular to the horizontal plane. Therefore, the above method can be simplified. The target plane can be described using only two points: the center coordinates (xm1, ym1, zm1) of the lowest depth layer of the point cloud and the center coordinates (xm2, ym2, zm2) of the highest depth layer. This can be expressed as: (x-xm1) / (xm2-xm1) = (z-zm1) / (zm2-zm1). This allows us to determine the distance d from the origin and the normalized normal vector N of the target plane.
[0112] The selection of three points is somewhat random, resulting in a plane that deviates somewhat from the actual situation, thus requiring further iterative optimization. The method employed is to extract the coordinates of n points at each depth layer (if the total number of points m in a depth layer is less than n, then the coordinates of all points are extracted). Using the distance d from the origin to the target plane and the normalized normal vector N, the sum of distances SUM from all extracted points to the target plane is calculated. Gradient descent is then used, with an appropriate number of iterations i and a learning rate lr, to iterate over the values of the distance d from the origin and the normalized normal vector N. Finally, the plane closest to all selected points is found, i.e., the minimum value of SUM is obtained. If computational resources are limited and the accuracy requirement for the target plane fitting is not high, smaller values of n and i can be chosen; otherwise, these values should be appropriately increased depending on the specific situation. This plane is then the final determined target plane and serves as the projection plane for the next step, outputting the plane parameters: the distance d from the origin to the target plane and the normalized normal vector N.
[0113] 6. Project the point cloud vertically and project the point cloud pattern onto the plane.
[0114] This step involves two projections of the assigned point cloud. The first projection utilizes the relationship between the image coordinate system of the depth map and the world coordinate system of the point cloud map, calling the depth camera intrinsics used in step 2 to project the point cloud vertically, i.e., onto the z=0 plane. The purpose of this projection process is to eliminate the tearing and compression effects that occur when only projecting the point cloud pattern onto the projection plane. Examples of tearing and compression caused by the above-mentioned unreasonable point cloud projection process are shown below. Figure 7 The letter content point cloud is shown in the image.
[0115] in, Figure 7 The example of letter point clouds shows a comparison between the possible compression and tearing situations and the normal situation when an unreasonable projection method is used, that is, when a vertical projection is not performed in advance, but a direct projection of the target plane is performed.
[0116] against Figure 3The example shows the result of projecting the assigned point cloud vertically. Figure 8 As shown in (a).
[0117] in, Figure 8 (a) for Figure 3 The example shows the result of projecting the assigned point cloud vertically. Figure 8 (b) For Figure 3 The example shows the result of projecting the point cloud into the projection plane of the point cloud pattern after projecting it vertically.
[0118] Next, the point cloud, after being vertically projected, is projected onto the target plane finally obtained in step 5, and an outlier removal operation is performed, denoted as the projection of the point cloud pattern onto the projection plane. This yields a target plane with tilt angle and spatial location information, along with the pattern and text content on it. For... Figure 3 For example, the result of projecting the point cloud vertically onto the point cloud and then onto the projection plane of the point cloud pattern is as follows: Figure 8 As shown in (b).
[0119] 7. Perform intensity and depth isometric correction on the projection results.
[0120] As can be seen from the analysis in step 3, the intensity values of the same reflective material vary at different depths due to different depth values. Step 3 only corrected the intensity value deviation at different positions on the plane at the same depth. This step aims to correct the deviation in infrared intensity values caused by different depth values, i.e., the values in the z-direction of the point cloud coordinates. Similar to step 3, it is still necessary to select the form of the intensity distribution function ir(z) related to the depth value for a specific material, and determine the fitted values of each parameter in this functional relationship by collecting intensity data at different depths and fitting the data. In this way, a correction difference Δir(z) = ir - ir0 related to z can be obtained. ir0 is the intensity value corresponding to the point with the largest depth value in the point cloud. Then, the intensity value ir at the depth position z is corrected to ir', satisfying the correction relationship ir'| z =ir| z -Δir| z This process is called intensity value depth isochronous correction.
[0121] against Figure 3 Example of a projected point cloud Figure 8 (b) The intensity value at each point above, after being corrected for depth equidistant intensity value, is as follows: Figure 9 As shown.
[0122] in, Figure 9 In response to Figure 3 Example of a projected point cloud Figure 8(b) The result of the intensity value of each point after intensity value depth isochronous correction.
[0123] 8. Thresholding or color-based region growing, segmentation, and clustering are used to obtain independent point clouds of target content on a plane.
[0124] For the point cloud after intensity value correction in step 7, threshold segmentation or color-based region growing segmentation and clustering methods are used to retain the content on the plane while removing background point clouds that do not contain text or pattern information. If threshold segmentation is used, for content information containing only one intensity value color, a single binarization segmentation is used to filter out the background point cloud. For content information containing multiple intensity values color, multi-value threshold segmentation is used to filter out the background point cloud, or multiple iterative binarization threshold segmentation operations are performed. The thresholds determined by these two methods are different, and the method with better segmentation effect is selected based on the specific intensity value distribution. All of the above threshold segmentation methods can employ adaptive global or local threshold segmentation methods, including but not limited to the OTSU method. Figure 3 Example, point cloud with intensity value correction ( Figure 9 The independent point cloud results of the target content after processing using the OTSU multi-value thresholding method are as follows: Figure 10 As shown.
[0125] in, Figure 10 In response to Figure 3 Example: Point cloud with intensity value correction Figure 9 The result is the extracted independent point cloud of the target content after processing using the OTSU multi-value thresholding method. The color distribution on the point cloud represents the depth value distribution.
[0126] 9. Use point cloud neural networks for classification and recognition to obtain the recognition results.
[0127] The point cloud results obtained through steps 1-8 are then used to perform classification and recognition using trained point cloud neural networks, including but not limited to DGCNN, Pointnet, Pointconv, and Pointnet++, to obtain the recognition results. A point cloud neural network with better classification performance is selected for different application scenarios. Training data needs to be collected, processed, and input into the neural network using the same method as steps 1-8. This invention does not specifically limit the point cloud neural network used; any point cloud neural network capable of classification and recognition can be used.
[0128] The classification and recognition results of ten types of planar content (a total of 3000 sets of point cloud data) collected and tested using common paper materials to print letter patterns in the experiment show that Pointnet++ achieved good classification results, reaching a recognition accuracy of 98.3% on a 300-sample test set.
[0129] like Figure 11 As shown, a third objective of this invention is to provide a scene planar information recognition system based on a lidar sensor, comprising:
[0130] The acquisition module is used to acquire the registered depth map and active infrared intensity map, which include the target plane content, collected by the infrared lidar.
[0131] The conversion module is used to convert the depth map into point cloud data format and determine the depth value and spatial filtering;
[0132] The correction module is used to perform planar intensity value center-symmetric radiation correction on the active infrared intensity map; and to assign point cloud infrared intensity values using the corrected intensity.
[0133] The iterative search module is used to iteratively search for the target plane position and normal vector direction based on the depth value and spatial filtering, which serves as the projection plane of the point cloud pattern, and to obtain the plane normal vector.
[0134] The point cloud projection module is used to project point clouds vertically and point cloud patterns onto a plane; to perform intensity value and depth isometric correction on the projection results; and to perform thresholding or color-based region growing, segmentation, and clustering to obtain point cloud results with independent target content on the plane.
[0135] The classification and recognition module is used to perform classification and recognition based on point cloud results using a point cloud neural network.
[0136] A third objective of this invention is to provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the scene planar information recognition method based on a lidar sensor.
[0137] A fourth objective of this invention is to provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the scene planar information recognition method based on a lidar sensor.
[0138] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0139] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0140] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0141] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0142] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention. Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, systems, or computer program products.
Claims
1. A method for scene planar information recognition based on a lidar sensor, characterized in that, include: Acquire the registered depth map and active infrared intensity map, which include the target plane content, collected by the infrared lidar; The depth map is converted into point cloud data format, and the depth values and spatial filtering are determined. Perform planar intensity value center-symmetric radiative correction on the active infrared intensity map; use the corrected intensity to assign infrared intensity values to the point cloud. Based on the depth value and spatial filtering, the target plane position and normal vector direction are iteratively found as the projection plane of the point cloud pattern, and the plane normal vector is obtained. Projecting the point cloud vertically and the point cloud pattern onto the plane; correcting the intensity and depth of the projection results; and performing thresholding or color-based region growing, segmentation, and clustering to obtain point cloud results with independent target content on the plane. Based on the point cloud results, a point cloud neural network is used for classification and recognition to obtain the recognition results.
2. The method for scene planar information recognition based on a lidar sensor according to claim 1, characterized in that, The acquisition of the registered depth map and active infrared intensity map, including the target plane content, collected by the infrared lidar includes: Infrared lidar that utilizes the time-of-flight principle determines the depth value of the collected data by calculating the time it takes for actively emitted infrared light to travel from reflection to reception by the sensor; it also uses active infrared light to acquire the infrared intensity information reflected back. The depth map and active infrared intensity map were obtained simultaneously in the same scene.
3. The method for scene planar information recognition based on a lidar sensor according to claim 1, characterized in that, The process of converting the depth map into point cloud data format and determining the depth value and spatial filtering includes: The depth image acquired by the depth camera uses the gray value of each pixel as the depth position and the planar position of the pixel, reflecting the spatial position information of each point of the acquired target or scene; the gray value or multi-channel color value of the pixel in the depth image reflects the depth information of the corresponding object point. By utilizing the camera's intrinsic parameters, the depth map is converted into a point cloud. The image coordinate system of the depth map is transformed into the world coordinate system of the point cloud. The depth map is converted into point cloud data format. After the depth map is converted into a point cloud, the depth value and spatial filtering are determined based on the location of the plane.
4. The method for scene planar information recognition based on a lidar sensor according to claim 1, characterized in that, The planar intensity value center-symmetric radiation correction of the active infrared intensity map includes: The intensity distribution of the same reflectivity material at different locations at the same depth, and its relationship with the radius r of the location from the center of the active infrared intensity map, can be described by a quadratic power function. ; In the formula, ir0 is the intensity corresponding to the center of the active infrared intensity map being the material with this reflectivity, and ir is the intensity collected at a position with a radius r from the center of the active infrared intensity map; For the target planar coating material, intensity data are collected at the same depth and different positions within the plane. This data is then fitted using the selected intensity distribution relationship for the material to determine the parameters within the distribution relationship; a correction difference related to r is then calculated. The intensity value ir at this location is corrected to ir', satisfying the correction relation. Complete the center-symmetric radiation correction of the plane intensity value.
5. The method for scene planar information recognition based on a lidar sensor according to claim 1, characterized in that, The method of assigning infrared intensity values to point clouds using modified intensity includes: For the depth map and active infrared intensity map acquired during acquisition, each point in the processed point cloud also corresponds one-to-one with each pixel in the modified active infrared intensity map. The color of each pixel in the modified active infrared intensity map is used to obtain the infrared intensity corresponding to that point, and then the value is assigned to the color of the corresponding point in the point cloud.
6. The method for scene planar information recognition based on a lidar sensor according to claim 1, characterized in that, The iterative search for the target plane position and normal vector direction, as the projection plane of the point cloud pattern, and the acquisition of the plane normal vector, includes: Find the center point coordinates of the layer with the smallest depth in the entire planar point cloud, denoted as (xm1, ym1, zm1); find the center point coordinates of the layer with the largest depth in the entire planar point cloud, denoted as (xm2, ym2, zm2); find the center point coordinates of the entire planar point cloud, denoted as (xm3, ym3, zm3); using the coordinates of these three points, represent the target plane as: Ax + By + Cz + D = 0; Where: A = (ym2 - ym1) (zm3-zm1)-(zm2-zm1) (ym3-ym1); B=(xm3-xm1) (zm2-zm1)-(xm2-xm1) (zm3-zm1); C=(xm2-xm1) (ym3-ym1)-(xm3-xm1) (ym2-ym1); D=-(A xm1+B ym1+C zm1); The target plane is described by two points: the center point coordinates (xm1, ym1, zm1) of the lowest depth layer of the entire plane point cloud and the center point coordinates (xm2, ym2, zm2) of the highest depth layer of the entire plane point cloud. This is expressed as: (x-xm1) / (xm2-xm1)=(z-zm1) / (zm2-zm1). This allows us to determine the distance d from the origin of the target plane and the normalized normal vector N. For each depth layer, the coordinates of n points are extracted. Using the distance d from the origin of the target plane and the normalized normal vector N, the sum of the distances from all extracted points to the target plane, SUM, is calculated. Using the gradient descent method, with the number of iterations i and the learning rate lr selected, the values of the distance d from the origin of the target plane and the normalized normal vector N are iterated. Finally, the plane closest to all selected points is found. The summation of these values gives the plane the final target plane, which is also used as the projection plane for the next step. The plane parameters are output: the distance d from the origin of the target plane and the normalized normal vector N.
7. The method for scene planar information recognition based on a lidar sensor according to claim 1, characterized in that, The projection of the point cloud in the vertical direction and the projection of the point cloud pattern in the plane direction include: The point cloud after assignment is projected at least twice. In the first projection, the relationship between the image coordinate system of the depth map and the world coordinate system of the point cloud map is used to call the intrinsic parameters of the depth camera to project the point cloud in the vertical direction, that is, to the z=0 plane. The point cloud is then projected vertically onto the final target plane, and an outlier removal operation is performed. This is denoted as the projection of the point cloud pattern onto the projection plane. The result is a target plane with tilt angle and spatial position information, as well as the pattern and text content on it.
8. The method for scene planar information recognition based on a lidar sensor according to claim 1, characterized in that, The step of performing intensity value depth isochronous correction on the projection results includes: For the target planar coating material, a depth-dependent intensity distribution function ir(z) is selected. Intensity data at different depths are collected and fitted to determine the fitted values of each parameter in this functional relationship; a correction difference related to z is then obtained. ir1 is the intensity value corresponding to the point with the largest depth value in the point cloud; the intensity value ir at the depth position z is corrected to ir', satisfying the correction relationship. .
9. A method for scene planar information recognition based on a lidar sensor according to claim 1, characterized in that, The process of obtaining point cloud results with independent target content on the plane by performing threshold processing or color-based region growing, segmentation, and clustering includes: For point clouds corrected by intensity values, threshold segmentation is used to retain the target content on the plane and remove background point clouds that do not contain text or pattern information. For content information containing only one intensity value color, a single binarization segmentation is used to filter out background point clouds. For content information containing multiple intensity values color, multi-value threshold segmentation is used to filter out background point clouds, or multiple iterative binarization threshold segmentation operations are performed. Alternatively... For point clouds that have undergone intensity value correction, a color-based region growing segmentation and clustering method is adopted, and a merging algorithm is used to merge or separate adjacent clusters to achieve over-segmentation and under-segmentation control; thereby retaining the target content on the plane and deleting the background point cloud that does not contain text or pattern information from the planar point cloud.
10. A scene planar information recognition system based on a lidar sensor, characterized in that, include: The acquisition module is used to acquire the registered depth map and active infrared intensity map, which include the target plane content, collected by the infrared lidar. The conversion module is used to convert the depth map into point cloud data format and determine the depth value and spatial filtering; The correction module is used to perform planar intensity value center-symmetric radiation correction on the active infrared intensity map; and to assign point cloud infrared intensity values using the corrected intensity. The iterative search module is used to iteratively search for the target plane position and normal vector direction based on the depth value and spatial filtering, which serves as the projection plane of the point cloud pattern, and to obtain the plane normal vector. The point cloud projection module is used to project point clouds vertically and point cloud patterns onto a plane; to perform intensity value and depth isometric correction on the projection results; and to perform thresholding or color-based region growing, segmentation, and clustering to obtain point cloud results with independent target content on the plane. The classification and recognition module is used to perform classification and recognition based on point cloud results using a point cloud neural network.
