Horizontal correction method, device and equipment for three-dimensional point cloud of inclined road surface and medium

Through the acquisition of depth binocular cameras and the translation and rotation transformation of the three-dimensional point cloud model, the inclination problem of the three-dimensional point cloud model is solved, more accurate road condition evaluation is achieved, and the adaptability of the detection technology is enhanced.

CN118887121APending Publication Date: 2024-11-01JIANGSU JINGXING WUYUAN TECH CO LTD

Patent Information

Application Number
CN202410908012.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

During image acquisition, it is impossible to ensure that the camera baseline is completely parallel to the acquisition surface, resulting in an inclination of the three-dimensional point cloud model, affecting the accuracy of the calculation results. This problem cannot be effectively solved through macro-level adjustment in the prior art.

Method used

Use a depth binocular camera to take depth images of the inclined road surface, preprocess, build a three-dimensional point cloud model, calculate the center of mass coordinates, perform translation and rotation transformation, correct the inclination angle between the plane and the point cloud model, and use the rotation matrix to target points. Clouds perform horizontal correction.

Benefits of technology

Eliminate the impact of point cloud inclination on calculation accuracy, provide more accurate road surface condition assessment, improve the adaptability of detection technology, especially in slopes or complex terrain, where the camera baseline is parallel to the acquisition surface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887121A_ABST
    Figure CN118887121A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of highway engineering detection, in particular to an inclined pavement three-dimensional point cloud horizontal correction method, device and equipment and a medium, and the method comprises the steps: employing a depth binocular camera to shoot an inclined pavement depth image; performing coordinate value extraction, edge cutting and filtering processing on all pixels in the depth image; constructing a three-dimensional point cloud model, and calculating the three-dimensional coordinates of the mass center of the three-dimensional point cloud model; performing point cloud coordinate translation transformation to enable the mass center of the three-dimensional point cloud model to coincide with the original point of the three-dimensional coordinate; performing plane fitting on the translated three-dimensional point cloud model, wherein the fitting plane and the three-dimensional point cloud model have the same inclination angle; and carrying out rotation transformation on the fitting plane to obtain a rotation matrix, and carrying out horizontal correction on the three-dimensional point cloud model through the rotation matrix. According to the invention, the problem that the camera baseline and the acquisition surface cannot be ensured to be parallel when image acquisition is carried out on an inclined road surface or a complex terrain is solved, so that the detection technology is more adaptive.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of highway engineering detection, and in particular to a method, device, equipment and medium for horizontal correction of three-dimensional point cloud of inclined road surface. Background Art

[0002] With the development of imaging equipment and 3D model building technology, digital image processing technology has been more widely used in road and bridge entity inspection. For example, the road surface depth map is converted into a point cloud to evaluate the road surface's skid resistance and wear; image recognition technology is used to detect the uniformity of asphalt mixture paving to determine the degree of road surface segregation. The widespread application of digital image processing technology in highway engineering entity quality inspection has improved the inspection efficiency and the visualization of the inspection process principle, and promoted the intelligent development of highway engineering inspection technology.

[0003] Different from traditional detection, the key difficulty of image detection technology lies in formulating reasonable image acquisition schemes and data processing methods. The image acquisition scheme determines the image quality, and how to accurately output the required results through algorithms is the key to image data processing. Especially when collecting images on bridge decks or roads with a certain tilt angle, since it is impossible to ensure that the camera baseline is completely parallel to the acquisition surface, the three-dimensional point cloud converted from the acquired depth map will also have a certain tilt, which will have a significant impact on the calculation results.

[0004] In the existing technology, the camera is mainly adjusted at a macro level during image acquisition. However, this adjustment cannot accurately solve the problem of tilt of the three-dimensional point cloud model. There is little research on horizontal correction of point clouds in the data processing link.

[0005] The information disclosed in this background technology section is only intended to deepen the understanding of the overall background technology of the present invention, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art already known to those skilled in the art. Summary of the invention

[0006] The present invention provides a method, device, equipment and medium for horizontal correction of three-dimensional point cloud of inclined road surface, thereby effectively solving the problems in the background technology.

[0007] In order to achieve the above object, the technical solution adopted by the present invention is: a method for level correction of three-dimensional point cloud of inclined road surface, comprising the following steps:

[0008] Use a deep binocular camera to capture the depth image of the inclined road surface;

[0009] Preprocessing the depth image;

[0010] Constructing a three-dimensional point cloud model and calculating the three-dimensional coordinates of the centroid of the three-dimensional point cloud model;

[0011] Performing a point cloud coordinate translation transformation so that the centroid of the three-dimensional point cloud model coincides with the origin of the three-dimensional coordinates;

[0012] Performing plane fitting on the translated three-dimensional point cloud model, wherein the fitting plane has a consistent inclination angle with the three-dimensional point cloud model;

[0013] The fitting plane is rotated to obtain a rotation matrix, and the three-dimensional point cloud model is horizontally corrected by the rotation matrix.

[0014] Furthermore, the depth image preprocessing includes:

[0015] Extracting coordinate values ​​of pixel points in the depth image;

[0016] Using the center point of the depth image as the center of the cropping area, cropping the image edges;

[0017] Bidirectional standard deviation filtering and nonlinear morphological filtering are performed on the cropped image.

[0018] Furthermore, the nonlinear morphological filtering includes: first performing an opening operation on the image, and then performing a dilation operation.

[0019] Further, calculating the three-dimensional coordinates of the centroid of the three-dimensional point cloud model includes:

[0020]

[0021] In the formula, (x j ,y j ,z j ) is the three-dimensional coordinate of the point cloud in the three-dimensional point cloud model; (x c ,y c ,z c ) is the 3D coordinate of the point cloud centroid.

[0022] Furthermore, the point cloud coordinate translation transformation is performed so that the centroid of the three-dimensional point cloud model coincides with the origin of the three-dimensional coordinates, including:

[0023] T x =|x c |;

[0024] T y =|y c |;

[0025] T z =|z c |;

[0026]

[0027] Where, Tx , T y , T z are the translation distances from the center of mass to the origin in the three axes; M1 is the translation matrix, (x j ,y j ,z j ) is the three-dimensional coordinate of the point cloud in the three-dimensional point cloud model; (x k ,y k ,z k ) is the point cloud coordinate after translation processing.

[0028] Furthermore, the plane fitting of the translated three-dimensional point cloud model includes: i (i=1,2,3,…,n) The fitting plane is obtained by random parameter estimation algorithm.

[0029] Furthermore, the step of performing a rotation transformation on the fitting plane to obtain a rotation matrix comprises the following steps:

[0030] Assume that the fitting plane S is ax+by+cz+d=0, calculate the rotation matrix as follows and perform rotation transformation on the point cloud coordinates to complete the horizontal correction of the tilted 3D point cloud model:

[0031]

[0032] In the formula, is the normal vector of the fitted plane S passing through the origin, is the unit vector of the z-axis, and θ is and The angle between the two, M2 is the rotation matrix, (x k ,y k ,z k ) is the point cloud coordinate after translation processing, (x, y, z) is the point cloud coordinate after rotation processing;

[0033] The horizontal correction of the three-dimensional point cloud model by using the rotation matrix comprises:

[0034]

[0035] The present invention also includes a device for leveling a three-dimensional point cloud of an inclined road surface, using the method described above, comprising:

[0036] A collection unit, used for capturing depth images of inclined road surfaces;

[0037] A preprocessing unit, used for preprocessing the depth image;

[0038] A three-dimensional point cloud model construction unit, used to construct a three-dimensional point cloud model and calculate the three-dimensional coordinates of the centroid of the three-dimensional point cloud model;

[0039] A translation transformation unit, used for performing translation transformation of point cloud coordinates so that the centroid of the three-dimensional point cloud model coincides with the origin of the three-dimensional coordinates;

[0040] A plane fitting unit, used for performing plane fitting on the translated three-dimensional point cloud model, wherein the fitting plane has a consistent inclination angle with the three-dimensional point cloud model;

[0041] The rotation transformation unit is used to perform rotation transformation on the fitting plane to obtain a rotation matrix, and to perform horizontal correction on the three-dimensional point cloud model through the rotation matrix.

[0042] The present invention also includes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described above is implemented.

[0043] The present invention also includes a storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described above is implemented.

[0044] The beneficial effects of the present invention are as follows: the present invention is based on the depth map of the inclined road surface collected by the deep binocular camera, after coordinate value extraction, edge clipping and filtering preprocessing, and then converted into a three-dimensional point cloud for translation and rotation transformation, and the inclined point cloud is horizontally corrected to eliminate the influence of the point cloud inclination on the calculation accuracy, providing a new idea for the image detection and processing of inclined point clouds. The corrected three-dimensional point cloud model more accurately reflects the real condition of the road surface, which is helpful for the intuitive evaluation of the road surface condition, and solves the problem of not being able to ensure that the camera baseline is parallel to the acquisition surface when collecting images on slopes or complex terrain, making the detection technology more adaptable. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 is a flow chart of the method of the present invention;

[0047] Figure 2 It is a structural schematic diagram of the device of the present invention;

[0048] Figure 3 It is a structural schematic diagram of the computer device of the present invention. DETAILED DESCRIPTION

[0049] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0050] like Figure 1 As shown: A road surface three-dimensional point cloud horizontal correction method based on image detection includes the following steps:

[0051] Use a deep binocular camera to capture the depth image of the inclined road surface;

[0052] Preprocess all pixels in the depth image;

[0053] Construct a 3D point cloud model and calculate the 3D coordinates of the centroid of the 3D point cloud model;

[0054] Perform a translation transformation of the point cloud coordinates to make the centroid of the 3D point cloud model coincide with the origin of the 3D coordinates;

[0055] Perform plane fitting on the three-dimensional point cloud model after the translation transformation, and the fitting plane has a consistent tilt angle with the three-dimensional point cloud model;

[0056] The fitting plane is rotated to obtain a rotation matrix, and the three-dimensional point cloud model is horizontally corrected through the rotation matrix.

[0057] The depth map collected by the depth binocular camera is pre-processed by coordinate value extraction, cropping and filtering, and then converted into a three-dimensional point cloud for translation and rotation transformation. The inclined point cloud is horizontally corrected to eliminate the influence of the point cloud inclination on the calculation accuracy, providing new ideas for image detection and processing of inclined point clouds. The corrected three-dimensional point cloud model more accurately reflects the real condition of the road surface, which is helpful for intuitive evaluation of the road surface condition. It solves the problem of not being able to ensure that the camera baseline is parallel to the acquisition surface when collecting images on slopes or complex terrains, making the detection technology more adaptable.

[0058] In this embodiment, after the depth image of the road slope is taken by the depth binocular camera, the following steps are also included:

[0059] Extract the coordinate values ​​of the pixels in the depth image;

[0060] The center point of the slope depth image is used as the center of the cropping area to perform edge cropping on the image;

[0061] Bidirectional standard deviation filtering and nonlinear morphological filtering are performed on the cropped image.

[0062] The image is cropped with the center point of the slope depth image as the center of the cropping area. The cropped image can remove invalid data from the edge part, retain the core area, reduce the amount of calculation, and improve processing efficiency; the cropped image is subjected to bidirectional standard deviation filtering, which can effectively remove noise from the image, smooth the image, improve image quality, and retain important edge features; the image after bidirectional standard deviation filtering is subjected to nonlinear morphological filtering. Morphological filtering can enhance the structural characteristics of the image by processing the image morphology, further remove noise, and improve image quality.

[0063] As a preferred embodiment of the above embodiment, the nonlinear morphological filtering includes: first performing an opening operation on the image, and then performing a dilation operation on the image.

[0064] The opening operation can remove small noise and details, and the dilation operation can enhance the objects in the image, reduce noise interference, and improve the image quality. The image data processed by nonlinear morphological filtering provides clearer and more accurate input data for the construction of three-dimensional point clouds, thereby enhancing the accuracy and reliability of the point cloud model.

[0065] In this embodiment, calculating the three-dimensional coordinates of the centroid of the three-dimensional point cloud model includes:

[0066]

[0067] In the formula, (x j ,y j ,z j ) is the three-dimensional coordinate of the point cloud in the three-dimensional point cloud model; (x c ,y c ,z c ) is the 3D coordinate of the point cloud centroid.

[0068] Among them, the point cloud coordinate translation transformation is performed to make the centroid of the three-dimensional point cloud model coincide with the origin of the three-dimensional coordinates, including:

[0069] T x =|x c |;

[0070] T y =|y c |;

[0071] T z =|z c |;

[0072]

[0073] Where, T x , T y , T zare the translation distances from the center of mass to the origin in the three axes; M1 is the translation matrix, (x j ,y j ,z j ) is the three-dimensional coordinate of the point cloud in the three-dimensional point cloud model; (x k ,y k ,z k ) is the point cloud coordinate after translation processing.

[0074] By calculating the centroid coordinates and constructing the translation matrix, the centroid of the 3D point cloud model is accurately translated to the origin of the 3D coordinate system. The precise translation transformation ensures the correct position of the 3D point cloud model in the coordinate system, provides a good foundation for subsequent plane fitting and rotation transformation, and improves the accuracy and reliability of the point cloud model.

[0075] In this embodiment, plane fitting is performed on the translated three-dimensional point cloud model, including: i (i=1,2,3,…,n) The fitting plane is obtained by random parameter estimation algorithm.

[0076] The depth values ​​of all point clouds are processed, and a random parameter estimation algorithm is used to fit the plane. The fitting plane S has a tilt angle consistent with the point cloud as a whole. Fitting the plane using a random parameter estimation algorithm can accurately reflect the overall tilt of the point cloud and provide a reliable normal vector for subsequent rotation transformation.

[0077] Rotate the fitting plane to obtain a rotation matrix, including the following steps:

[0078] Assume that the fitting plane S is ax+by+cz+d=0, calculate the rotation matrix as follows and perform rotation transformation on the point cloud coordinates to complete the horizontal correction of the tilted 3D point cloud model:

[0079]

[0080]

[0081] In the formula, is the normal vector of the fitted plane S passing through the origin, is the unit vector of the z-axis, and θ is and The angle between the two, M2 is the rotation matrix, (x k ,y k ,z k ) is the point cloud coordinate after translation processing, (x, y, z) is the point cloud coordinate after rotation processing;

[0082] By calculating the angle between the normal vector and the unit vector and constructing a rotation matrix, the point cloud model can be accurately horizontally corrected to eliminate tilt errors. By combining translation and rotation transformations, the point cloud can be corrected in one go, improving computational efficiency and reducing computational complexity. This method can adapt to roads and bridge decks with various inclination angles, ensuring accurate correction results in different environments, and enhancing the robustness and adaptability of the detection method.

[0083] like Figure 2 As shown, this embodiment also includes a device for leveling a three-dimensional point cloud of an inclined road surface, using the method as described above, including:

[0084] A collection unit, used for capturing depth images of inclined road surfaces;

[0085] A preprocessing unit, used for preprocessing the depth image;

[0086] A three-dimensional point cloud model building unit, used to build a three-dimensional point cloud model and calculate the three-dimensional coordinates of the centroid of the three-dimensional point cloud model;

[0087] A translation transformation unit, used for performing translation transformation of point cloud coordinates so that the centroid of the three-dimensional point cloud model coincides with the origin of the three-dimensional coordinates;

[0088] A plane fitting unit is used to perform plane fitting on the translated three-dimensional point cloud model, and the fitting plane has a consistent inclination angle with the three-dimensional point cloud model;

[0089] The rotation transformation unit is used to rotate the fitting plane to obtain a rotation matrix, and to perform horizontal correction on the three-dimensional point cloud model through the rotation matrix.

[0090] Embodiment 2:

[0091] The technical solution in this embodiment is as follows:

[0092] First, a depth binocular camera is used to capture images of the road surface or bridge slope to obtain a depth image. The internal and external parameters of the above-mentioned depth binocular camera are known and have been calibrated, so it can be directly used for object distance measurement. The height of the binocular camera is 35 cm. The above-mentioned depth image is a rectangle and contains the three-dimensional coordinate information of the acquisition area. The origin of the three-dimensional coordinate system is the midpoint of the baseline of the depth binocular camera.

[0093] Next, the depth map is preprocessed, and the implementation steps are coordinate value extraction, edge clipping and filtering.

[0094] The above coordinate value extraction is based on Python language code implementation, and the pixel coordinates are marked as (x i ,y i , z i ), which is convenient for subsequent clipping calculations.

[0095] The edge clipping method uses the center point of the depth map as the center of the clipping area and controls the area of ​​the clipping area to be 50% of the area of ​​the original depth map, in order to remove invalid points on the edge of the depth map.

[0096] The above filtering steps are bidirectional standard deviation filtering and nonlinear morphological filtering, the purpose of which is to eliminate the depth value error caused by abnormal points such as isolated points and bad points caused by factors such as road texture characteristics and changes in ambient light intensity. The above nonlinear morphological filtering process performs an opening operation and a dilation operation in succession. The pixel coordinates of the depth map after filtering are marked as (x j ,y j , z j ).

[0097] Then, the preprocessed depth map is subjected to a three-dimensional point cloud model construction and point cloud coordinate translation transformation.

[0098] Open CV software is used to transform the coordinates of all pixels in the depth map to construct a 3D point cloud model. The 3D coordinates of the centroid of the above 3D point cloud model are calculated as shown in the following formula:

[0099]

[0100] In the formula, (x j ,y j ,z j )——Three-dimensional coordinates after filtering; (x c ,y c ,z c )——Three-dimensional coordinates of the centroid of the point cloud.

[0101] The above point cloud coordinate translation transformation method is to use the point cloud centroid (x c ,y c ,z c ) is translated to the origin of the spatial coordinate system (0,0,0) to calculate the translation matrix, and all point clouds are translated according to the translation matrix. The purpose of the above point cloud translation processing is to make the point cloud centroid coincide with the origin, so that it can be rotated around the z-axis unit vector in the subsequent rotation transformation to reduce the amount of calculation. The translation transformation calculation of the point cloud coordinates is performed according to the following formula:

[0102] T x =|x c |;

[0103] T y =|y c |;

[0104] T z =|z c |;

[0105]

[0106] Where, T x , T y , T z ——Translation distance from the center of mass to the origin; M1——Translation matrix; (x k ,y k ,z k )——The point cloud coordinates after translation.

[0107] Finally, the point cloud that has undergone the translation transformation is rotated around the z-axis to achieve horizontal correction, and the implementation steps are point cloud plane fitting and rotation transformation.

[0108] The above point cloud plane fitting is based on Python language algorithm, which converts all point cloud depth values ​​z i (i=1,2,3,…,n) is obtained by a random parameter estimation algorithm (RANSAC), denoted as S. The fitting plane S has a tilt angle consistent with the entire point cloud.

[0109] In order to eliminate the influence of the tilt angle on the point cloud computing results, the fitting plane S can be rotated to make it parallel to the plane formed by the x-axis and the y-axis, that is, the fitting plane S is perpendicular to the z-axis. The above problem can be converted into a mathematical problem: the normal vector of the fitting plane S is Unit vector parallel to the z-axis of the spatial coordinate system

[0110] Assume that the fitting plane S is ax+by+cz+d=0, calculate the rotation matrix as follows and perform rotation transformation on the point cloud coordinates to complete the horizontal correction of the tilted 3D point cloud model:

[0111]

[0112]

[0113] In the formula, ——the normal vector of the fitting plane S passing through the origin, ——The unit vector of the z-axis, θ—— and The angle between the two, M2——rotation matrix, (x k ,y k ,z k )——the point cloud coordinates after translation processing, (x, y, z)——the point cloud coordinates after rotation processing.

[0114] See also Figure 3A computer device 400 provided in an embodiment of the present application includes: a processor 410 and a memory 420, wherein the memory 420 stores a computer program executable by the processor 410, and when the computer program is executed by the processor 410, the above method is executed.

[0115] The embodiment of the present application further provides a storage medium 430 on which a computer program is stored. When the computer program is run by the processor 410, the above method is executed.

[0116] Among them, the storage medium 430 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.

[0117] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. "Multiple" means two or more, unless otherwise clearly and specifically defined.

[0118] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0119] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0120] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0121] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0122] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0123] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0124] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A method for level correction of three-dimensional point cloud of inclined road surface, characterized in that: The steps include: Use a deep binocular camera to capture depth images of inclined roads; Preprocessing the depth image; Constructing a three-dimensional point cloud model and calculating the three-dimensional coordinates of the centroid of the three-dimensional point cloud model; Performing a point cloud coordinate translation transformation so that the centroid of the three-dimensional point cloud model coincides with the origin of the three-dimensional coordinates; Performing plane fitting on the three-dimensional point cloud model after the translation transformation, wherein the fitting plane has a consistent inclination angle with the three-dimensional point cloud model; The fitting plane is rotated to obtain a rotation matrix, and the three-dimensional point cloud model is horizontally corrected by the rotation matrix.

2. The method for level correction of three-dimensional point cloud of inclined road surface according to claim 1, characterized in that: The preprocessing of the depth image includes: Extracting coordinate values ​​of pixel points in the depth image; Taking the center point of the depth image as the center of the cropping area, performing edge cropping on the image; Bidirectional standard deviation filtering and nonlinear morphological filtering are performed on the cropped image.

3. The method for level correction of three-dimensional point cloud of inclined road surface according to claim 2, characterized in that: The nonlinear morphological filtering includes: firstly performing an opening operation on the image, and then performing a dilation operation on the image.

4. The method for level correction of three-dimensional point cloud of inclined road surface according to claim 1, characterized in that: Calculating the three-dimensional coordinates of the centroid of the three-dimensional point cloud model includes: In the formula, (x j ,y j ,z j ) is the three-dimensional coordinate of the point cloud in the three-dimensional point cloud model; (x c ,y c ,z c ) is the 3D coordinate of the point cloud centroid.

5. The method for level correction of three-dimensional point cloud of inclined road surface according to claim 1, characterized in that: The performing of the point cloud coordinate translation transformation so that the centroid of the three-dimensional point cloud model coincides with the origin of the three-dimensional coordinates includes: T x =|x c |; T y =|y c |; T z =|z c |; Where, T x , T y , T z are the translation distances from the center of mass to the origin in the three axes; M1 is the translation matrix, (x j ,y j ,z j ) is the three-dimensional coordinate of the point cloud in the three-dimensional point cloud model; (x k ,y k ,z k ) is the point cloud coordinate after translation processing.

6. The method for level correction of three-dimensional point cloud of inclined road surface according to claim 1, characterized in that: The plane fitting of the translated three-dimensional point cloud model includes: i (i=1,2,3,…,n) The fitting plane is obtained by random parameter estimation algorithm.

7. The method for level correction of three-dimensional point cloud of inclined road surface according to claim 5, characterized in that: The step of performing a rotation transformation on the fitting plane to obtain a rotation matrix comprises the following steps: Assume that the fitting plane S is ax+by+cz+d=0, calculate the rotation matrix as follows and perform rotation transformation on the point cloud coordinates to complete the horizontal correction of the tilted 3D point cloud model: In the formula, is the normal vector of the fitted plane S passing through the origin, is the unit vector of the z-axis, and θ is and The angle between the two, M2 is the rotation matrix, (x k ,y k ,z k ) is the point cloud coordinate after translation processing, (x, y, z) is the point cloud coordinate after rotation processing; The horizontal correction of the three-dimensional point cloud model by using the rotation matrix comprises:

8. A device for leveling a three-dimensional point cloud of an inclined road surface, characterized in that: Use of the method according to any one of claims 1 to 7, comprising: A collection unit, used for capturing depth images of inclined road surfaces; A preprocessing unit, used for preprocessing the depth image; A three-dimensional point cloud model construction unit, used to construct a three-dimensional point cloud model and calculate the three-dimensional coordinates of the centroid of the three-dimensional point cloud model; A translation transformation unit, used for performing translation transformation of point cloud coordinates so that the centroid of the three-dimensional point cloud model coincides with the origin of the three-dimensional coordinates; A plane fitting unit, used for performing plane fitting on the translated three-dimensional point cloud model, wherein the fitting plane has a consistent inclination angle with the three-dimensional point cloud model; The rotation transformation unit is used to perform rotation transformation on the fitting plane to obtain a rotation matrix, and to perform horizontal correction on the three-dimensional point cloud model through the rotation matrix.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Three-dimensional image generating method based on depth map

    CN106412560A

  • Depth image distortion correction method and device, electronic equipment and storage medium

    CN110570368A

  • Depth image restoration method and device and computer readable storage medium

    CN112991193A

  • Depth map attitude correction method and system, computer equipment and storage medium

    CN115861129A

  • Method and apparatus for correcting distortion of depth image, and electronic device and storage medium

    WO2021032172A1

Cited By

  • Electron beam inclination angle quantification method, electronic equipment and product

    CN120471879A

  • Chip measurement method and device based on depth map, medium and program product

    CN120953079A