A method, device and storage medium for stitching point clouds of lidar
Create a point cloud overlapping device list by searching for the visible light color information in the light reflective surface list, mark and send the point cloud data coordinate list, summarize and clear redundant data, realize the efficient splicing of multiple lidar device point clouds, and solve the current problem. There is a problem with the slow processing speed of redundant data in technology, so the calculation speed of 3D model point cloud is improved.
Patent Information
- Application Number
- CN202410020455.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-01-05
AI Technical Summary
The existing LiDAR point cloud splicing method only considers the redundant point cloud data of two devices, which is difficult to run on ordinary hardware, and the scanning results of multiple devices have overlapping areas, which increases the storage and computing burden and affects the splicing operation speed. .
Create a point cloud overlapping device list by finding the visible light color information in the light reflection surface list, mark and send the point cloud data coordinate list, summarize and clear redundant data, and realize the splicing of multiple device point clouds.
It can process point cloud data from multiple devices at the same time, speed up the calculation of 3D model point clouds, and avoid dependence on dedicated hardware.
Smart Images

Figure CN117934270B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of laser radar technology, and in particular to a laser radar point cloud stitching method, device and storage medium. Background Art
[0002] When performing 3D modeling of large indoor or outdoor venues, due to the limitations of the scanning field of view and terrain of a single LiDAR device, multiple different LiDAR devices are usually required to perform multi-angle and multi-position scanning. For example, in a stadium, several ground unmanned vehicles and aerial drones are required to work together to obtain point cloud data of the complete scene through splicing. However, the point cloud data obtained by the LiDARs of multiple devices often have large overlapping areas. Redundant point cloud data in the same area will increase the burden of storage and computing, affecting the speed of splicing operations; and the existing operations on redundant point cloud data often only consider the redundant point cloud data of two devices, which relies heavily on deep learning models and is difficult to run on ordinary hardware. Summary of the invention
[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a laser radar point cloud stitching method that can simultaneously process point cloud data of multiple devices and further speed up the calculation speed of three-dimensional model point clouds.
[0004] The present application also proposes a laser radar device having the above-mentioned laser radar point cloud stitching method.
[0005] The present application also proposes a computer-readable storage medium having the above-mentioned laser radar point cloud stitching method.
[0006] According to the laser radar point cloud stitching method of the first aspect of the present application, the laser radar device is applied to multiple laser radar devices, wherein the laser radar device includes a camera device, a light emitting device and a laser radar. For any of the laser radar devices, the method includes the following steps:
[0007] Acquire light reflection surfaces in the venue space based on the light emitting device and the camera device, and create a light reflection surface list;
[0008] Collecting point cloud data of the site space through the laser radar and creating a point cloud data coordinate list;
[0009] Creating a point cloud overlapping device list by searching for visible light color information in the light reflection surface list;
[0010] By searching for device information in the point cloud overlapping device list, marking the point cloud data coordinate list and sending it to the set laser radar device;
[0011] Summarize the point cloud data coordinate lists, save the point cloud data coordinate lists marked as non-redundant to the point cloud stitching result list, and save the point cloud data coordinate lists marked as redundant to the point cloud temporary list;
[0012] If point cloud data exists in the temporary point cloud list, the redundant point cloud data in the temporary point cloud list is cleared, and the point cloud splicing result list is combined to obtain a spliced point cloud;
[0013] Wherein, the visible light colors emitted by the plurality of light emitting devices are all different.
[0014] According to some embodiments of the present application, acquiring the light reflection surface in the venue space based on the light emitting device and the camera device, and creating a light reflection surface list includes:
[0015] When the light-emitting devices are turned on in sequence to illuminate the venue space, the light reflection surfaces are acquired through the camera device and the light reflection surfaces are numbered;
[0016] Recording the horizontal azimuth angle and the height direction angle of the camera device when the lens center of the camera device is aligned with each vertex of the light reflecting surface;
[0017] The light reflection surface list is created based on the visible light color, the light reflection surface number, the horizontal azimuth angle and the altitude direction angle.
[0018] According to some embodiments of the present application, creating a point cloud overlapping device list by searching for visible light color information in the light reflection surface list includes:
[0019] Querying the visible light color data in the light reflection surface list;
[0020] If the query result indicates that the light reflection surface list includes only one type of visible light color data, the point cloud overlapping device list is set to a null value;
[0021] If the query result indicates that the light reflection surface list includes multiple types of visible light color data, the serial number of the laser radar device corresponding to the visible light color data is recorded in the point cloud overlapping device list;
[0022] Among them, the number recorded in the point cloud overlapping device list does not include the number of its own laser radar device.
[0023] According to some embodiments of the present application, searching for device information in the point cloud overlapping device list, marking the point cloud data coordinate list and sending it to the set laser radar device, includes:
[0024] Searching for serial number data of the laser radar device in the point cloud overlapping device list;
[0025] If the number data is a null value, the point cloud data coordinate list corresponding to the laser radar device itself is marked as non-redundant and sent to the other laser radar devices;
[0026] If the numbered data is not a null value, the point cloud data coordinate list corresponding to the laser radar device itself is marked as redundant, the redundant point cloud data coordinate list is sent to the laser radar device corresponding to the numbered data, and a second point cloud data coordinate list is received;
[0027] Among them, the second point cloud data coordinate list is the point cloud data coordinate list of the laser radar device corresponding to the numbered data.
[0028] According to some embodiments of the present application, if point cloud data exists in the temporary point cloud list, then the redundant point cloud data in the temporary point cloud list is cleared, including:
[0029] Find the visible light color corresponding to the device in the third point cloud overlapping device list, recorded as the third visible light color, the third point cloud overlapping device list corresponds to the third laser radar device, and the third laser radar device corresponds to the device corresponding to the redundant point cloud data in the point cloud temporary list;
[0030] Based on the light reflection surface list corresponding to the third laser radar device, searching for information of all the light reflection surfaces corresponding to the third visible light color, the information including visible light color, light reflection surface number, horizontal azimuth angle and altitude direction angle;
[0031] Calculate a third pyramid based on the horizontal azimuth angle, the altitude direction angle, the maximum scanning distance of the third laser radar device, and the positioning information of the third laser radar device;
[0032] Delete the redundant point cloud data in the temporary point cloud list, the temporary point cloud list corresponds to the own laser radar device, the coordinates of the redundant point cloud data are located in the third pyramid, and the redundant point cloud data does not include the point cloud data corresponding to the third laser radar device.
[0033] According to some embodiments of the present application, the calculating the third pyramid based on the horizontal azimuth angle, the altitude direction angle, the maximum scanning distance of the third laser radar device, and the positioning information of the third laser radar device includes:
[0034] Calculate the extension points of each vertex of the light reflection surface based on the horizontal azimuth angle, the altitude direction angle, the maximum scanning distance of the third laser radar device and the positioning information of the third laser radar device;
[0035] Calculate a polygon formed by the extended points through the extended points;
[0036] The third pyramid is calculated using the positioning position of the third laser radar device and the polygon.
[0037] According to some embodiments of the present application, the calculation of the extension points of each vertex of the light reflection surface based on the horizontal azimuth angle, the altitude direction angle, the maximum scanning distance of the third laser radar device and the positioning information of the third laser radar device includes:
[0038] The extension points of each vertex of the light reflection surface are calculated by the first formula,
[0039] The first formula is expressed as:
[0040] x=x j +r j sinθ;
[0041] y=y j +r j cosθ;
[0042]
[0043] Among them, x, y, and z represent the three-dimensional coordinate values of the extension point. j ,y j 、z j represents the positioning coordinates of the third laser radar device, r j represents the maximum scanning distance of the third laser radar device, θ represents the horizontal azimuth angle, represents the altitude direction angle.
[0044] According to some embodiments of the present application, it further includes:
[0045] If the temporary point cloud list is empty, the point cloud stitching result list is directly output as the stitched point cloud.
[0046] According to a laser radar device of the second aspect embodiment of the present application, the laser radar device includes a camera device, a light-emitting device, a laser radar, a memory and a processor, the memory stores a computer program, and the processor implements the steps of the method of the first aspect embodiment when executing the computer program.
[0047] According to a computer-readable storage medium of the third aspect embodiment of the present application, a computer program is stored thereon, and when the computer program is executed by one or more processors, the steps of the method of the first aspect embodiment can be implemented.
[0048] According to a computer program product of the fourth aspect embodiment of the present application, the above-mentioned computer program product includes a computer program, and when the above-mentioned computer program is executed by one or more processors, it can implement the steps of the method of the above-mentioned first aspect embodiment.
[0049] The laser radar point cloud stitching method according to the embodiment of the present application has at least the following beneficial effects: In order to solve the problem that the existing laser radar point cloud stitching method only considers the redundant point clouds of two devices and relies heavily on the device hardware, the present application makes the following optimizations to the laser radar point cloud stitching method: by searching the visible light color information in the light reflection surface list to create a point cloud overlapping device list; by searching the device information in the point cloud overlapping device list, the point cloud data coordinate list is marked and sent to the set laser radar device; the laser radar device summarizes the point cloud data coordinate lists sent by each device, saves the point cloud data coordinate lists marked as non-redundant to the point cloud stitching result list, and saves the point cloud data coordinate lists marked as redundant to the point cloud temporary list; if there is point cloud data in the point cloud temporary list, the redundant point cloud data in the point cloud temporary list is cleared, and the stitched point cloud is obtained by combining the point cloud stitching result list. The above method can stitch point cloud data of multiple devices at the same time and further speed up the calculation speed of the three-dimensional model point cloud.
[0050] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0051] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0053] Figure 1 A schematic diagram of a method according to an embodiment of the present application;
[0054] Figure 2 A schematic diagram of a module of a device according to an embodiment of the present application;
[0055] Figure 3 This is a schematic block diagram of the hardware structure of the device according to an embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0057] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0058] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0059] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0060] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0061] When performing 3D modeling of large indoor or outdoor venues, due to the limitations of the field of view and terrain of a single device, multiple different devices are usually required to perform multi-angle and multi-position scanning. For example, in a stadium, several ground unmanned vehicles and aerial drones are required to work together to obtain point cloud data of the complete scene through splicing. However, the point cloud data obtained by the laser radars of multiple devices often have overlapping areas. Redundant point cloud data in the same area will increase the burden of storage and computing, affecting the speed of splicing operations.
[0062] When stitching point cloud data, current technical solutions often only consider the redundant point cloud data of two devices, rely heavily on deep learning models, and are difficult to run on ordinary hardware.
[0063] In view of this, the present application proposes a lidar point cloud stitching method, which can simultaneously stitch point cloud data collected by multiple lidar devices without relying on dedicated software and hardware, and can accelerate the calculation of three-dimensional model point clouds for large indoor or outdoor venues.
[0064] The laser radar point cloud stitching method proposed in this application can be applied to multiple laser radar devices, and the laser radar device includes a light emitting device, a laser radar and a camera device. For any laser radar device, refer to Figure 1 , the method of the embodiment of the present application includes:
[0065] Obtaining light reflection surfaces in the venue space based on the light-emitting device and the camera device, and creating a light reflection surface list;
[0066] Based on the laser radar, point cloud data in the site space can be collected and a point cloud data coordinate list can be created;
[0067] Create a point cloud overlapping device list by searching for visible light color information in the light reflection surface list;
[0068] Find the device information in the point cloud overlapping device list, and by finding the device information, mark the point cloud data coordinate list and send the marked point cloud data coordinate list to the set lidar device;
[0069] Summarize the received point cloud data coordinate lists, then copy and save the point cloud data coordinate lists marked as non-redundant to the point cloud stitching result list, and copy and save the point cloud data coordinate lists marked as redundant to the point cloud temporary list;
[0070] If there is point cloud data saved in the temporary point cloud list, then the redundant point cloud data in the temporary point cloud list is deleted, and the point cloud splicing result list is combined to obtain the spliced point cloud;
[0071] Among them, the colors of visible light that can be emitted by the multiple light-emitting devices are different.
[0072] Specifically, in the embodiments provided in the present application, the laser radar device is an electronic device having a color-changing lamp, a camera, and a laser radar. Optionally, the laser radar device may also have a communication function. It should be understood that the lighting distance of the color-changing lamp should not be lower than the scanning distance of the laser radar. The camera included in the laser radar device may be an ordinary optical camera with an omnidirectional pan-tilt, which can shoot objects and environments illuminated within the lighting distance of the color-changing lamp. It should be understood that the omnidirectional pan-tilt can rotate in the horizontal and vertical directions. The specific hardware performance of the multiple laser radar devices in this application may be slightly different, and only needs to meet the above basic functions. In this regard, this application does not limit the specific hardware performance. The laser radar device involved in this application may have an autonomous movement function or be installed in a fixed position. Regardless of the form of movement, it only needs to be able to obtain the positioning information of its own position. Specifically, the laser radar device with an autonomous movement function may have the ability to locate itself, while the laser radar device with a fixed installation method can be located manually. It should be understood that the number of laser radar devices involved in the application of this application may be two or more.
[0073] It should be understood that the venue space involved in the embodiments provided in the present application is a three-dimensional space, and the coordinate system of the three-dimensional space can be represented by an x-axis and a y-axis representing a horizontal plane and a z-axis representing a height.
[0074] The point cloud data acquired by the laser radar in the embodiment of the present application is regarded as an unordered point cloud, wherein each point in the point cloud can be represented by a coordinate value including an x-axis, a y-axis, and a z-axis, and further, can also include the device number of the source of the point. For example, the i-th point acquired by the device numbered j can be represented as (x i ,y i ,z i ,j).
[0075] In the process of acquiring point clouds, multiple laser radar devices can be set, and the number can be set to two or three or more, wherein each device is numbered with a positive integer. For each laser radar device, the light-emitting device in the device can be various lighting devices or lamps, and it is only necessary that the color of the light or visible light emitted by each light-emitting device is different. Optionally, the light emitted by each light-emitting device can be set to a relatively different hue, such as red, green, blue, yellow, etc. Optionally, the saturation of the light color can be set to the highest.
[0076] In some embodiments of the present application, each device (laser radar device) can access the device local area network in the venue, and the present application does not limit the network connection implementation method. If the device can be moved, then the device can move to a suitable position in the venue, and then use the laser radar to locate itself, and send its own positioning results to other devices. If the device cannot be moved and needs to be installed in a fixed position in the venue, then the device should directly use this fixed position as the positioning result during installation, and send its own positioning to other devices. Taking the device numbered j as an example, the positioning position of the device is expressed as (x j ,y j ,z j ).
[0077] In some embodiments of the present application, each device may not be connected to the device local area network. In this case, an intermediate medium is required to transmit the positioning location information and subsequent processing data of each device to each other through the intermediate medium. It should be noted that the representation of the positioning location, the data format and the data processing process should not change due to changes in the communication method of the device.
[0078] In the process of acquiring the point cloud, each device sets the azimuth angle of its own camera gimbal and lidar, with due north as the horizontal angle of 0 degrees, due south as the horizontal angle of 180 degrees, due east as the horizontal angle of 90 degrees, and due west as the horizontal angle of 270 degrees; then turn off all light sources in the venue to ensure that the venue is in a dark state.
[0079] It should be understood that the light reflection surface list, cloud data coordinate list, point cloud overlapping device list, point cloud stitching result list and point cloud temporary list involved in the embodiments of the present application are only information representing data composition, and are not limited to the way in which the data information composition is organized in the form of tables, graphics or text. Any format that can record and organize the information involved in the embodiments of the present application can be included in the scope of the embodiments of the present application.
[0080] In some embodiments of the present application, the light reflection surface in the venue space is obtained based on the light emitting device and the camera device, and a light reflection surface list is created, including:
[0081] When the light-emitting devices are turned on in sequence to illuminate the venue space, the light reflection surface can be obtained based on the camera device, and then the obtained light reflection surfaces are numbered;
[0082] When the center of the camera lens is aligned with each vertex of the light reflection surface, the horizontal azimuth angle and the height direction angle of the camera are recorded;
[0083] A light reflection surface list is created based on visible light color, horizontal azimuth, light reflection surface number and altitude direction angle.
[0084] Specifically, in the lighting stage, each device creates a list of light reflection surfaces, which is initially empty. Among them, each device turns on the light in order of its own number to illuminate the venue space. When a device turns on the light, other devices turn off their own lights, and at the same time all devices use their own ordinary optical cameras to shoot the various light reflection surfaces of the illuminated area that they can observe in the camera. For each light reflection surface of the illuminated area that can be observed by one of the devices in the camera, the device assigns a number to each light reflection surface, and then adjusts the horizontal azimuth angle and height direction angle of the camera gimbal on this device, aligns the center of the lens with each vertex of this light reflection surface, and records the horizontal azimuth angle and height direction angle of the camera gimbal when aligning with each vertex, and enters the data into the light reflection surface list of this device according to the arrangement of visible light color, light reflection surface number, and horizontal azimuth angle and height direction angle of the camera gimbal corresponding to each vertex of the light reflection surface.
[0085] In some embodiments of the present application, the laser radar can collect point cloud data in the site space and create a point cloud data coordinate list, specifically including:
[0086] Each device in the venue space creates a point cloud data coordinate list, which is initially empty. Each device uses its own laser radar to scan the venue; if the laser radars of each device can avoid mutual interference, then each device can use its own laser radar to scan at the same time; otherwise, each device uses its own laser radar to scan in sequence according to the device number.
[0087] The point cloud data obtained by each device includes the distance and angle of each point relative to the device. By referring to the three-dimensional spatial coordinates of the device's position, the three-dimensional spatial coordinates of each point in the point cloud data can be obtained, and the three-dimensional spatial coordinates are saved as point cloud data in the device's point cloud data coordinate list.
[0088] In some embodiments of the present application, a point cloud overlapping device list is established by searching for visible light color information in a light reflection surface list, including:
[0089] Query the data of visible light color in the light reflection surface list of the own device;
[0090] If the query result indicates that there is only one visible light color data in the light reflection surface list created by this device, then the point cloud overlapping device list is set to a null value;
[0091] If the query result indicates that there are multiple visible light color data in the light reflection surface list, then the numbers of the laser radar devices corresponding to these multiple visible light color data are saved in the point cloud overlapping device list;
[0092] The number of the laser radar device saved in the point cloud overlapping device list does not include the number of the device itself.
[0093] Specifically, for each laser radar device, first create a point cloud overlapping device list. At the beginning of creation, the list is empty; in the light reflection surface list of the own device, search for the type of visible light color. If the only visible light color found is the color of the visible light emitted by the light-emitting device of this device, it means that the point cloud obtained by the laser radar on this device does not overlap with other devices, and the point cloud overlapping device list of this device is kept empty. If there are two or more visible light colors found, it means that the point cloud obtained by the laser radar on this device overlaps with other devices. According to the color of visible light found, the number of the device corresponding to the color of visible light different from the color of visible light emitted by the light-emitting device of this device is entered into the point cloud overlapping device list of this device. Therefore, the device numbers recorded in the point cloud overlapping device list of this device can indicate that these devices overlap with the point clouds collected by the laser radar of this device.
[0094] In some embodiments of the present application, by searching for device information in the point cloud overlapping device list, the point cloud data coordinate list can be marked by searching for device information and the marked point cloud data coordinate list can be sent to the set laser radar device, including:
[0095] Find the serial number data of the laser radar device recorded in the point cloud overlapping device list of its own device;
[0096] If the number data is empty, the point cloud data coordinate list corresponding to the laser radar device itself is marked as non-redundant, and then the non-redundant point cloud data coordinate list is sent to other laser radar devices in the venue space;
[0097] If the numbered data is not a null value, the point cloud data coordinate list corresponding to the laser radar device itself is marked as redundant, and then the redundant point cloud data coordinate list is sent to the laser radar device corresponding to the numbered data in the point cloud overlapping device list, and at the same time, wait for receiving the second point cloud data coordinate list;
[0098] Among them, the above-mentioned second point cloud data coordinate list is a point cloud data coordinate list of the laser radar device corresponding to the above-mentioned numbered data.
[0099] Specifically, for each laser radar device, if no numbered data of any other device is found after querying the point cloud overlapping device list of this device, the point cloud data coordinate list of this device is marked as "no redundancy" and sent to other laser radar devices in the site space, wherein the point cloud data coordinate list marked as "no redundancy" indicates that the point cloud data in this list does not contain redundant information overlapping between multiple devices; if the point cloud overlapping device list of this device is queried and the result is that one or more device numbers are recorded, the point cloud data coordinate list of this device is marked as "redundant", and the point cloud data coordinate list marked as "redundant" is sent to the numbered devices recorded in the point cloud overlapping devices; at the same time, these numbered devices are required to send their point cloud data coordinate lists back to their own devices.
[0100] In some embodiments of the present application, the received point cloud data coordinate lists are summarized, and then the point cloud data coordinate lists marked as non-redundant are copied and saved to the point cloud stitching result list, and the point cloud data coordinate lists marked as redundant are copied and saved to the point cloud temporary list.
[0101] Specifically, for each lidar device, a point cloud stitching result list and a point cloud temporary list are first created. At the beginning of creation, both lists are empty.
[0102] Summarize the point cloud data coordinate lists sent by the device and other devices. For the point cloud data coordinate lists marked as "no redundancy" from each device, copy the point cloud data in these lists and save them into the point cloud stitching result list; for the point cloud data coordinate lists marked as "redundant" from each device, copy the point cloud data in these lists and save them into the point cloud temporary list. It can be seen that the point cloud data saved in the point cloud stitching result list is point cloud data without redundant information, while the point cloud data saved in the point cloud temporary list is point cloud data with redundant information and needs further processing.
[0103] In some embodiments of the present application, if point cloud data is stored in the temporary point cloud list, then the redundant point cloud data in the temporary point cloud list is deleted, including:
[0104] Query the color of the visible light corresponding to the device in the third point cloud overlapping device list, and record the color of the visible light as the third visible light color, wherein the third point cloud overlapping device list is a point cloud overlapping device list created by the third laser radar device, and the third laser radar device corresponds to the device corresponding to the redundant point cloud data in the point cloud temporary list created by the laser radar device itself. Exemplarily, if the point cloud temporary list includes point cloud data of three devices, then these three devices can be marked as the third laser radar device in turn;
[0105] Through the light reflection surface list created by the third laser radar device, query the information of all light reflection surfaces that can correspond to the third visible light color, the information includes the color of the visible light, the number of the light reflection surface, the corresponding horizontal azimuth angle and the altitude direction angle;
[0106] The extension points of each vertex of the light reflection surface are calculated based on the horizontal azimuth angle, the maximum scanning distance of the third laser radar device, the height direction angle and the positioning information of the third laser radar device;
[0107] The polygon formed by the extended points can be calculated based on the extended points;
[0108] Calculate a third pyramid based on the positioning position of the third laser radar device and the polygon;
[0109] Delete the redundant point cloud data in the temporary point cloud list of its own device, where the temporary point cloud list is created by its own laser radar device, the coordinates of the redundant point cloud data are located in the third pyramid, and the redundant point cloud data should not include the point cloud data corresponding to the third laser radar device.
[0110] Specifically, if the temporary point cloud list of the device itself is not empty, it means that there are redundant point cloud data between two or more devices that need to be processed. For each device corresponding to the temporary point cloud list, taking the device numbered j as an example, if the point cloud overlapping device list of the device numbered j is not empty, then the device numbers in the point cloud overlapping device list of the device numbered j are recorded as d1,…,d n , find d1,…,d n The color of the lamp corresponding to the device. For each of these colors, find each light reflection surface of this color in the list of light reflection surfaces of the device numbered j. For each of these light reflection surfaces, find the horizontal azimuth angle (denoted as θ) and height angle (denoted as φ) of the camera gimbal corresponding to each vertex of the light reflection surface. For these vertices, if the maximum scanning distance of the laser radar of the device numbered j is r j , with r j The location of the device (x j ,y j ,z j ) calculates the extension points of each vertex. The calculation formulas for the x-axis, y-axis, and z-axis coordinate values (x, y, z) of the extension points are:
[0111] x=x j +r j sinθ;
[0112] y=y j +r j cosθ;
[0113]
[0114] Among them, x, y, and z represent the three-dimensional coordinate values of the extension point. j ,y j 、z j represents the positioning coordinates of the third laser radar device, r j represents the maximum scanning distance of the third laser radar device, θ represents the horizontal azimuth, Indicates the altitude angle.
[0115] Afterwards, for each of these light reflecting surfaces, according to the extension points of each vertex of the light reflecting surface, the polygon formed by these extension points is calculated, and then the positioning position (x j ,y j ,z j ) and the pyramid formed by this polygon. In the temporary list of point clouds of own devices, delete each point whose coordinates are inside this pyramid and whose device number is not j. It should be understood that the device numbered j (the third laser radar device) corresponds to the device corresponding to the redundant point cloud data in the temporary list of point clouds created by the own laser radar device. For example, if the temporary list of point clouds includes point cloud data of three devices, which may also include point cloud data collected by its own laser radar, then these three devices can be marked as devices numbered j in turn; therefore, the device numbered j may also be its own device.
[0116] After processing all the pyramids, there is no redundancy in the current temporary point cloud list of the own device. The own device merges the current temporary point cloud list into the point cloud stitching result list of the own device, and outputs the merged list as the result of point cloud stitching.
[0117] In some embodiments of the present application, it also includes:
[0118] If the temporary point cloud list of the device itself is empty, the point cloud stitching result list is directly output as the stitched point cloud.
[0119] Specifically, if the temporary point cloud list of the own device is currently empty, it means that there is no redundant point cloud data to be processed between all devices, and the own device directly outputs the point cloud stitching result list as the stitched point cloud for output.
[0120] The laser radar point cloud stitching method provided in the embodiment of the present application creates a point cloud overlapping device list by searching for visible light color information in a light reflection surface list; by searching for device information in the point cloud overlapping device list, the point cloud data coordinate list is marked and sent to a set laser radar device; the laser radar device aggregates the point cloud data coordinate lists sent by each device, saves the point cloud data coordinate lists marked as non-redundant to the point cloud stitching result list, and saves the point cloud data coordinate lists marked as redundant to the point cloud temporary list; if the point cloud temporary list is not empty, the redundant point cloud data in the point cloud temporary list is cleared, and a stitched point cloud is obtained in combination with the point cloud stitching result list. The point cloud data of multiple devices can be processed simultaneously and do not depend on the hardware and software conditions of the devices, thereby further accelerating the point cloud calculation speed.
[0121] For the laser radar point cloud stitching method provided above, the embodiment of the present application also provides a laser radar point cloud stitching device for implementing the above method, such as Figure 2 As shown, the laser radar point cloud stitching device includes:
[0122] A light reflection surface list creation module, used to obtain light reflection surfaces in the venue space based on the light emitting device and the camera device, and create a light reflection surface list;
[0123] A point cloud data coordinate list creation module, used to collect point cloud data of the site space through the laser radar and create a point cloud data coordinate list;
[0124] A point cloud overlapping device list creation module, used to create a point cloud overlapping device list by searching for visible light color information in the light reflection surface list;
[0125] A marking and sending module, used for marking the point cloud data coordinate list and sending it to the set laser radar device by searching the device information in the point cloud overlapping device list;
[0126] A summarizing module, used for summarizing the point cloud data coordinate lists, saving the point cloud data coordinate lists marked as non-redundant to the point cloud stitching result list, and saving the point cloud data coordinate lists marked as redundant to the point cloud temporary list;
[0127] A spliced point cloud generation module, used for clearing redundant point cloud data in the temporary point cloud list when point cloud data exists in the temporary point cloud list, and obtaining a spliced point cloud by combining the point cloud splicing result list;
[0128] Wherein, the visible light colors emitted by the plurality of light emitting devices are all different.
[0129] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0130] For the laser radar point cloud stitching method provided above, the embodiment of the present application also provides a laser radar device, such as Figure 3 As shown, the laser radar device includes a camera device, a light emitting device, a laser radar, a memory, and one or more processors ( Figure 3 Only one is shown) and a computer program stored in the memory and executable on the processor. Wherein: the memory is used to store software programs and units, and the processor executes various functional applications and data processing by running the software programs and units stored in the memory to obtain the resources corresponding to the above-mentioned preset events. Specifically, the processor implements the above-mentioned laser radar point cloud stitching method by running the above-mentioned computer program stored in the memory.
[0131] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0132] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned laser radar point cloud stitching method is implemented.
[0133] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0134] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network.
[0135] The embodiments of the present application provide a laser radar point cloud stitching method, device and storage medium, which searches for device information in a point cloud overlapping device list, marks a point cloud data coordinate list and sends it to a set laser radar device; the laser radar device aggregates the point cloud data coordinate lists sent by each device, saves the point cloud data coordinate lists marked as non-redundant to a point cloud stitching result list, and saves the point cloud data coordinate lists marked as redundant to a point cloud temporary list; if the point cloud temporary list is not empty, the redundant point cloud data in the point cloud temporary list is cleared, and a stitched point cloud is obtained in combination with the point cloud stitching result list. The point cloud data of multiple devices can be processed simultaneously without relying on dedicated software and hardware, and the calculation of three-dimensional model point clouds for large indoor or outdoor venues can be accelerated.
[0136] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0137] Although specific embodiments are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are also within the scope of the present disclosure. For example, any of the functions and / or processing capabilities described in conjunction with a particular device or component may be performed by any other device or component. In addition, although various exemplary implementations and architectures have been described according to embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures herein are also within the scope of the present disclosure.
[0138] The above text describes certain aspects of the present disclosure with reference to the block diagram and flow chart of the method, device and / or computer program product according to exemplary embodiments.It should be understood that the combination of one or more blocks in the block diagram and flow chart and the blocks in the block diagram and flow chart can be realized by executing computer executable program instructions respectively.Equally, according to some embodiments, some blocks in the block diagram and flow chart may not need to be executed in the order shown, or may not need to be executed in full.In addition, additional components and / or operations beyond those components and / or operations shown in the blocks in the block diagram and flow chart may be present in certain embodiments.
[0139] Therefore, the blocks in the block diagrams and flow charts support the combination of devices for performing the specified functions, the combination of elements or steps for performing the specified functions, and the program instruction devices for performing the specified functions. It should also be understood that each block in the block diagrams and flow charts and the combination of blocks in the block diagrams and flow charts can be implemented by a special-purpose hardware computer system or a combination of special-purpose hardware and computer instructions that performs a specific function, element or step.
[0140] The program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.
[0141] Software components can be encoded with any of various programming languages. An exemplary programming language can be a low-level programming language, such as an assembly language associated with a specific hardware architecture and / or an operating system platform. The software component comprising assembly language instructions may need to be converted to executable machine code by an assembler before being executed by hardware architecture and / or platform. Another exemplary programming language can be a higher-level programming language, which can be transplanted across multiple architectures. The software component comprising a higher-level programming language may need to be converted to an intermediate representation by an interpreter or a compiler before execution. Other examples of programming languages include but are not limited to macro languages, shells or command languages, job control languages, scripting languages, database queries or search languages or report writing languages. In one or more exemplary embodiments, the software component comprising the instruction of one of the above-mentioned programming language examples can be directly executed by an operating system or other software components, without first being converted into another form.
[0142] Software components may be stored as files or other data storage structures. Software components of similar type or related functions may be stored together, such as in a specific directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).
[0143] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present application.
Claims
1. A laser radar point cloud stitching method, characterized in that: Applied to multiple laser radar devices, the laser radar devices include a camera device, a light emitting device and a laser radar. For any of the laser radar devices, the method includes the following steps: Acquire light reflection surfaces in the venue space based on the light emitting device and the camera device, and create a light reflection surface list; Collecting point cloud data of the site space through the laser radar and creating a point cloud data coordinate list; Creating a point cloud overlapping device list by searching for visible light color information in the light reflection surface list; By searching for device information in the point cloud overlapping device list, marking the point cloud data coordinate list and sending it to the set laser radar device; Summarize the point cloud data coordinate lists, save the point cloud data coordinate lists marked as non-redundant to the point cloud stitching result list, and save the point cloud data coordinate lists marked as redundant to the point cloud temporary list; If point cloud data exists in the temporary point cloud list, the redundant point cloud data in the temporary point cloud list is cleared, and the point cloud splicing result list is combined to obtain a spliced point cloud; Wherein, the visible light colors emitted by the plurality of light emitting devices are all different; The step of acquiring the light reflection surface in the venue space based on the light emitting device and the camera device and creating a light reflection surface list includes: When the light-emitting devices are turned on in sequence to illuminate the venue space, the light reflection surfaces are acquired through the camera device and the light reflection surfaces are numbered; Recording the horizontal azimuth angle and the height direction angle of the camera device when the lens center of the camera device is aligned with each vertex of the light reflecting surface; Creating the light reflection surface list based on the visible light color, the light reflection surface number, the horizontal azimuth angle and the altitude direction angle; The step of creating a point cloud overlapping device list by searching for visible light color information in the light reflection surface list includes: Query the visible light color data in the light reflection surface list; If the query result indicates that the light reflection surface list includes only one type of visible light color data, the point cloud overlapping device list is set to a null value; If the query result indicates that the light reflection surface list includes multiple types of visible light color data, the serial number of the laser radar device corresponding to the visible light color data is recorded in the point cloud overlapping device list; Among them, the number recorded in the point cloud overlapping device list does not include the number of its own laser radar device.
2. The method according to claim 1, characterized in that The step of searching for device information in the point cloud overlapping device list, marking the point cloud data coordinate list and sending the list to the set laser radar device includes: Searching for serial number data of the laser radar device in the point cloud overlapping device list; If the number data is a null value, the point cloud data coordinate list corresponding to the laser radar device itself is marked as non-redundant and sent to the other laser radar devices; If the numbered data is not a null value, the point cloud data coordinate list corresponding to the laser radar device itself is marked as redundant, the redundant point cloud data coordinate list is sent to the laser radar device corresponding to the numbered data, and a second point cloud data coordinate list is received; Among them, the second point cloud data coordinate list is the point cloud data coordinate list of the laser radar device corresponding to the numbered data.
3. The method according to claim 1, characterized in that If the point cloud temporary list contains point cloud data, then the redundant point cloud data in the point cloud temporary list is cleared, including: Find the visible light color corresponding to the device in the third point cloud overlapping device list, recorded as the third visible light color, the third point cloud overlapping device list corresponds to the third laser radar device, and the third laser radar device corresponds to the device corresponding to the redundant point cloud data in the point cloud temporary list; Based on the light reflection surface list corresponding to the third laser radar device, searching for information of all the light reflection surfaces corresponding to the third visible light color, the information including visible light color, light reflection surface number, horizontal azimuth angle and altitude direction angle; Calculate a third pyramid based on the horizontal azimuth angle, the altitude direction angle, the maximum scanning distance of the third laser radar device, and the positioning information of the third laser radar device; Delete the redundant point cloud data in the temporary point cloud list, the temporary point cloud list corresponds to the own laser radar device, the coordinates of the redundant point cloud data are located in the third pyramid, and the redundant point cloud data does not include the point cloud data corresponding to the third laser radar device.
4. The method according to claim 3, characterized in that The calculating the third pyramid based on the horizontal azimuth angle, the altitude direction angle, the maximum scanning distance of the third laser radar device and the positioning information of the third laser radar device includes: Calculate the extension points of each vertex of the light reflection surface based on the horizontal azimuth angle, the altitude direction angle, the maximum scanning distance of the third laser radar device and the positioning information of the third laser radar device; Calculate a polygon formed by the extended points through the extended points; The third pyramid is calculated using the positioning position of the third laser radar device and the polygon.
5. The method according to claim 4, characterized in that The calculating of the extension points of each vertex of the light reflection surface based on the horizontal azimuth angle, the altitude direction angle, the maximum scanning distance of the third laser radar device and the positioning information of the third laser radar device includes: The extension points of each vertex of the light reflection surface are calculated by the first formula, The first formula is expressed as: x=x j +r j sinθ; y=y j +r j cost; Among them, x, y, and z represent the three-dimensional coordinate values of the extension point. j ,y j 、z j represents the positioning coordinates of the third laser radar device, r j represents the maximum scanning distance of the third laser radar device, θ represents the horizontal azimuth angle, represents the altitude direction angle.
6. The method according to claim 1, characterized in that Also includes: If the point cloud temporary list is a null value, the point cloud stitching result list is directly output as the stitched point cloud.
7. A laser radar device, characterized in that: The laser radar device includes a camera, a light emitting device, a laser radar, a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 6 when executing the computer program.
8. A computer-readable storage medium, characterized in that: The computer storage medium includes a stored computer program; when the computer program is run, it controls the device where the computer storage medium is located to execute the method according to any one of claims 1 to 6.
