Point cloud data processing method, device, electronic device and storage medium

By downsampling and partitioning rendering of point cloud data, the problem of insufficient processing capacity of existing rendering equipment is solved, global visualization of point cloud data is achieved, and the efficiency and experience of collection operations are improved.

CN118314265BActive Publication Date: 2024-09-03深圳飞马机器人股份有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410738380.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-03
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

Due to limitations in processing capabilities, existing rendering equipment cannot render a large amount of point cloud data at the same time, resulting in the inability to observe the global model structure of the collection. Repeated collections or missed collections are prone to occur, affecting the efficiency and experience of collection operations.

Method used

By downsampling the received point cloud data, generating at least two copies of the data, and rendering and caching them to temporary and global storage areas respectively, triggering rendering updates, achieving global visualization of point cloud data, and reducing the time required for rendering. processing power.

Benefits of technology

With the same processing power, the global model of the point cloud can be visualized online, avoiding repeated collection or omissions, and improving the efficiency and experience of collection operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314265B
    Figure CN118314265B
Patent Text Reader

Abstract

The present invention discloses a point cloud data processing method, device, electronic device and storage medium. The point cloud data processing method comprises: when receiving point cloud data, downsampling the point cloud data to obtain first data; obtaining at least two copies of the first data by copying; rendering the first copy of the first data, and caching the second copy of the first data in a temporary storage area, triggering a rendering update of the temporary storage area; when an update instruction is detected, downsampling the point cloud data in the temporary storage area to obtain second data; inserting the second data into a global storage area, triggering a rendering update of the global storage area. The technical solution of the present invention improves the acquisition operation efficiency and acquisition experience of point cloud acquisition equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of point cloud data processing, and in particular to a point cloud data processing method, device, electronic device and storage medium. Background Art

[0002] As an advanced surveying and mapping tool, handheld laser scanning equipment is widely used in surveying and mapping science and technology, civil engineering, water conservancy engineering and other fields, greatly speeding up the speed of engineering operations. The rendering device receives the point cloud data collected by the point cloud acquisition device (such as the handheld laser scanning device), renders the point cloud data, and provides visualization function for the collected point cloud data. The existing rendering device usually processes the point cloud data by directly rendering the received point cloud package to visualize the point cloud collected by the point cloud acquisition device. However, due to the limitation of the processing power of the rendering device, the existing rendering device can only render the point cloud data of a certain number of point cloud packages at the same time (such as 100 frames of point cloud data). Therefore, the rendering device usually only renders a certain number of point cloud packages received recently, that is, it can only display the model structure within a certain range that has been recently collected. The operator cannot observe the global model structure of the collection, and it is easy to repeat the collection of some areas, or miss the collection of some areas, which affects the collection efficiency and collection experience. Summary of the invention

[0003] The present invention provides a point cloud data processing method, aiming to improve the acquisition operation efficiency and acquisition experience of a point cloud acquisition device.

[0004] To achieve the above purpose, the point cloud data processing method proposed in the present invention includes:

[0005] When receiving the point cloud data, downsampling the point cloud data to obtain first data;

[0006] Obtain at least two copies of the first data by copying;

[0007] Rendering a first copy of the first data, and caching a second copy of the first data into a temporary storage area, triggering a rendering update of the temporary storage area;

[0008] When an update instruction is detected, downsampling the point cloud data in the temporary storage area to obtain second data;

[0009] Inserting the second data into a global storage area triggers a rendering update of the global storage area.

[0010] In some embodiments, the update instruction is generated when it is detected that the point cloud data in the temporary storage area reaches a preset amount, or the update instruction is generated once every preset time period;

[0011] After the step of downsampling the point cloud data in the temporary storage area to obtain the second data, the point cloud data processing method further includes:

[0012] Clear the point cloud data in the temporary storage area.

[0013] In some embodiments, the step of rendering the first copy of the first data includes:

[0014] Rendering the first copy of the first data in one of the preset colors;

[0015] And / or, the point cloud data processing method further includes:

[0016] When the point cloud data is received, the position and posture data of the point cloud data is stored in a position storage area.

[0017] In some embodiments, the step of downsampling the point cloud data in the temporary storage area to obtain the second data includes:

[0018] Downsampling the point cloud data in the temporary storage area to obtain third data;

[0019] Downsampling the third data at least once to obtain the second data;

[0020] Alternatively, the step of downsampling the point cloud data in the temporary storage area to obtain the second data comprises:

[0021] The point cloud data in the temporary storage area are respectively subjected to a first downsampling and a second downsampling to obtain the second data and the third data correspondingly, wherein the number of point clouds included in the second data is greater than the number of point clouds included in the third data.

[0022] In some embodiments, the point cloud data processing method further includes:

[0023] The third data is stored in the search storage area.

[0024] In some embodiments, the point cloud data processing method further includes:

[0025] When the browsing position is detected to be updated, the visual range corresponding to the current browsing position is determined;

[0026] The point cloud data located within the visible range is searched in the search storage area, and the searched point cloud data is rendered.

[0027] In some embodiments, the step of determining the visible range corresponding to the current browsing position includes:

[0028] Calculate the visible range in the world coordinate system according to the projection model and the preset visible window size;

[0029] And / or, the search storage area organizes the storage structure in the form of multiple octrees; the step of searching the search storage area for point cloud data within the visible range includes:

[0030] Divide the visible range into cells of a preset size, and perform multi-threaded parallel point cloud search in combination with an octree set for each cell range;

[0031] Summarize the point cloud data searched within each cell range;

[0032] And / or, the browsing position is a position of a point cloud acquisition device or a position input externally.

[0033] The present invention also provides a point cloud data processing device, comprising:

[0034] A first downsampling module is used to downsample the point cloud data to obtain first data when the point cloud data is received;

[0035] A copy module, used for obtaining at least two copies of the first data by copying;

[0036] A first rendering module, used for rendering a first copy of the first data, and caching a second copy of the first data into a temporary storage area and triggering a rendering update of the temporary storage area;

[0037] A second downsampling module is used to downsample the point cloud data in the temporary storage area to obtain second data when an update instruction is detected;

[0038] The second rendering module is used to insert the second data into the global storage area and trigger the rendering update of the global storage area.

[0039] The present invention also proposes an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above-mentioned point cloud data processing method when executed by the processor.

[0040] The present invention further proposes a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned point cloud data processing method are implemented.

[0041] The technical solution of the present invention downsamples the received point cloud data and then copies them to obtain at least two copies of the first data, renders the first copy of the first data to represent the point cloud data of the current package, so that the user can observe the real-time position and point cloud situation collected by the point cloud acquisition device online, and caches the second copy of the first data to a temporary storage area, triggers the rendering update of the temporary storage area to display the point cloud in the temporary storage area, so that the user can observe the point cloud near the current acquisition position of the point cloud acquisition device and can clearly see the model structure around the current position; in addition, the point cloud data in the temporary storage area is downsampled to obtain the second data, the second data is inserted into the global storage area and the global storage area is rendered and updated to display the latest point cloud global model, so that the user can see the contour structure of the global model of the point cloud collected by the point cloud acquisition device. Since the temporary storage area caches the first data after downsampling of the point cloud data received by the electronic device, and the second data is the data after downsampling of the point cloud data in the temporary storage area, the total number of points in the first data is much smaller than that in the point cloud data received by the electronic device, and the total number of points in the second data is further reduced compared to the point cloud data received by the electronic device; therefore, compared with the point cloud rendering method of the existing rendering device, the technical scheme of this embodiment reduces the processing power required for rendering the point cloud data in the temporary storage area, and the processing power required for rendering the point cloud in the global storage area is also very small. Therefore, under the condition of the same processing power, the technical scheme realizes the online visualization of the global model of the point cloud, so that the operator can observe the collected global model structure and clearly see the collection status of each area, which can avoid repeated collection of some areas or missing collection of some areas, effectively improving the collection efficiency and collection experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flowchart of the first embodiment of the point cloud data processing method of the present invention;

[0043] Figure 2 It is a flowchart of a second embodiment of a point cloud data processing method of the present invention;

[0044] Figure 3 It is a flowchart of a third embodiment of a point cloud data processing method of the present invention;

[0045] Figure 4 It is a flowchart of a fourth embodiment of a point cloud data processing method of the present invention;

[0046] Figure 5 It is a flowchart of a fifth embodiment of a point cloud data processing method of the present invention;

[0047] Figure 6 It is a flowchart of a sixth embodiment of a point cloud data processing method of the present invention;

[0048] Figure 7 It is a module schematic diagram of an embodiment of a point cloud data processing device of the present invention;

[0049] Figure 8 It is a schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] The present invention provides a point cloud data processing method. The implementation terminal of the point cloud data processing method can be an electronic device, which can be a computing device such as an intelligent terminal (such as a smart phone, a tablet computer), a handheld laser scanning device, a desktop computer, a laptop computer, a server, etc.

[0052] like Figure 1 As shown, Figure 1 It is a flow chart of the first embodiment of the point cloud data processing method of the present invention.

[0053] In this embodiment, the point cloud data processing method includes:

[0054] Step S10, when receiving the point cloud data, downsampling the point cloud data to obtain first data;

[0055] The point cloud data received by the electronic device may be the point cloud data sent by the point cloud acquisition device. For example, the point cloud acquisition device sends the collected point cloud data to the electronic device in real time (for example, the point cloud acquisition device sends the frame of point cloud data to the electronic device in real time every time it collects a frame of point cloud data); in other embodiments, the point cloud data received by the electronic device may also be the point cloud data sent by the storage device or other devices. For example, the storage device stores all the point cloud data of the entire surveying and mapping area collected by the point cloud acquisition device, and the storage device sends the stored point cloud data to the electronic device frame by frame. When the electronic device receives the point cloud data, it performs downsampling processing on the point cloud data to obtain the first data (also point cloud data) with a smaller number of point clouds. Among them, the downsampling processing of the received point cloud data by the electronic device may include an adaptive downsampling according to the number of points in the point cloud data, and may also include downsampling in other ways. Among them, a current storage area may be set in the memory of the electronic device, and the current storage area is used to store the latest received point cloud data (such as the latest frame of point cloud data) to facilitate the downsampling processing of the latest received point cloud data by the electronic device.

[0056] Step S20, obtaining at least two copies of the first data by copying;

[0057] After obtaining the first data, the electronic device copies the first data at least once, thereby obtaining at least two copies of the first data.

[0058] Step S30, rendering the first copy of the first data, and caching the second copy of the first data into a temporary storage area, triggering a rendering update of the temporary storage area;

[0059] The first copy of the first data and the second copy of the first data are any two copies of the first data among the at least two copies of the first data obtained by the electronic device through copying. If the electronic device obtains the two copies of the first data only through copying, the two copies of the first data are the first copy of the first data and the second copy of the first data. The electronic device renders the first copy of the first data to represent the current package point cloud data, so that the user can observe the real-time point cloud collected by the point cloud collection device online. A temporary storage area is provided in the memory of the electronic device, and the temporary storage area is used to store the downsampled point cloud data within a recent period of time (such as 10 seconds) or a certain number of recent packets (such as 50 packets). The electronic device caches the second first data in the temporary storage area and triggers the rendering update of the temporary storage area, that is, the point cloud data in the temporary storage area is rendered to display the point cloud in the temporary storage area, that is, the point cloud near the current acquisition position of the point cloud acquisition device, so as to display the model structure around the current position in more detail; since the temporary storage area caches the first data after the point cloud data received by the electronic device is downsampled, the total number of points in the first data is much smaller than that of the corresponding point cloud data received by the electronic device, so that the processing power required for rendering the point cloud data in the temporary storage area is less. Among them, the order of caching the second first data in the temporary storage area and triggering the rendering update of the temporary storage area is not limited, and it can be that the second first data is cached in the temporary storage area first, and then the rendering update of the temporary storage area is triggered, or the rendering update of the temporary storage area is triggered first, and then the second first data is cached in the temporary storage area, or the two actions are performed simultaneously.

[0060] Step S40, when an update instruction is detected, downsampling the point cloud data in the temporary storage area to obtain second data;

[0061] Step S50: insert the second data into the global storage area, triggering rendering update of the global storage area.

[0062] After receiving a certain amount of point cloud data, the electronic device needs to update the global model of the point cloud to display the latest point cloud global model. At this time, the electronic device will generate an update instruction. When the update instruction is detected, the point cloud data in the temporary storage area will be downsampled to obtain second data containing fewer points.

[0063] A global storage area is provided in the memory of the electronic device, and the global storage area is used to store the second data. After the point cloud data in the temporary storage area is downsampled to obtain the second data, the electronic device inserts the second data into the global storage area, that is, the point cloud data in the global storage area increases, and then triggers the rendering update of the global storage area, thereby updating the global model of the displayed point cloud. Since the temporary storage area caches the first data after the point cloud data received by the electronic device is downsampled, and the second data is the data after the point cloud data in the temporary storage area is downsampled, therefore, the second data has a much smaller total number of points than the corresponding point cloud data received by the electronic device, and the number of points stored in the global storage area is much smaller than the total number of points of all the point cloud data received by the electronic device, therefore, the processing power required for the point cloud rendering of the global storage area is relatively small. Among them, the rendering update of the global storage area can be to re-render all the points in the global storage area; or it can be that there are many storage units in the global storage area, and the latest second data is inserted into the latest established storage unit, and the rendering update of the global storage area is to re-render the storage unit into which the second data is inserted.

[0064] The technical solution of the point cloud data processing method of this embodiment is to obtain at least two copies of the first data by downsampling the received point cloud data and then copying it, and render the first copy of the first data to represent the point cloud data of the current package, so that the user can observe the real-time position and point cloud situation collected by the point cloud acquisition device online, and cache the second copy of the first data to a temporary storage area, trigger the rendering update of the temporary storage area to display the point cloud in the temporary storage area, so that the user can observe the point cloud near the current acquisition position of the point cloud acquisition device and clearly see the model structure around the current position; in addition, the point cloud data in the temporary storage area is downsampled to obtain the second data, the second data is inserted into the global storage area and the global storage area is rendered and updated to display the latest point cloud global model, so that the user can see the contour structure of the global model of the point cloud collected by the point cloud acquisition device.

[0065] Since the temporary storage area caches the first data after downsampling of the point cloud data received by the electronic device, and the second data is the data after downsampling of the point cloud data in the temporary storage area, the total number of points in the first data is much smaller than that in the point cloud data received by the electronic device, and the total number of points in the second data is further reduced compared to the point cloud data received by the electronic device; therefore, compared with the point cloud rendering method of the existing rendering device, the technical scheme of this embodiment reduces the processing power required for rendering the point cloud data in the temporary storage area, and the processing power required for rendering the point cloud in the global storage area is also very small. Therefore, the technical scheme of this embodiment realizes the online visualization of the global model of the point cloud under the same processing power, so that the operator can observe the collected global model structure and clearly see the collection status of each area, which can avoid repeated collection of some areas or missing collection of some areas, effectively improving the collection operation efficiency and collection experience.

[0066] Therefore, the total number of points in the second data is much smaller than the corresponding point cloud data received by the electronic device, and the number of points stored in the global storage area is much smaller than the total number of points of all point cloud data received by the electronic device. Therefore, the processing power required for point cloud rendering in the global storage area is smaller.

[0067] In some embodiments, an update instruction may be generated when it is detected that the point cloud data in the temporary storage area reaches a preset amount (for example, the number of points reaches 300,000), that is, when the point cloud in the temporary storage area reaches the preset amount, the electronic device will downsample the point cloud data in the temporary storage area and insert it into the global storage area, and trigger the rendering update of the global storage area to update the global model of the displayed point cloud. Alternatively, in some embodiments, an update instruction may also be generated once every preset time period, for example, an update instruction is generated once every 10 seconds, that is, the electronic device updates the global model of the point cloud once every preset time period. In addition, in some other embodiments, an update instruction may also be generated when the number of frames of the received point cloud data exceeds a preset value (for example, 50), or the update instruction is generated based on the user's active trigger operation, etc.

[0068] like Figure 2 As shown, Figure 2 It is a flow chart of the second embodiment of the point cloud data processing method of the present invention.

[0069] In this embodiment, the point cloud data processing method further includes, after step S40:

[0070] Step S60, clearing the point cloud data in the temporary storage area.

[0071] After the point cloud data in the temporary storage area is inserted into the global storage area after downsampling, that is, the point cloud data in the temporary storage area is archived, the point cloud data in the temporary storage area is cleared to release storage space for caching new first data.

[0072] In some embodiments, step S40 may be to downsample a specific portion of the point cloud data in the temporary storage area to obtain the second data, wherein the specific portion of the point cloud data may be a segment of point cloud data with the earliest cache time, for example, the point cloud data cached in the temporary storage area includes the point cloud data cached between the current time and the previous 60 seconds, and the specific portion of the point cloud data is the point cloud data cached between the previous 30 seconds and 60 seconds. In this case, step S60 may be replaced by clearing the characteristic portion of the point cloud data in the temporary storage area.

[0073] In some embodiments, the step of rendering the first copy of the first data in the above step S30 includes: rendering the first copy of the first data in one of the preset colors. The electronic device is provided with at least one preset color (e.g., white, yellow, red), which is used as the rendering color of the first data, and the preset color is set to be different from the rendering color of the point cloud data in the temporary storage area, and different from the rendering color of the point cloud data in the global storage area, so that the user can more clearly see the scanning and collection status of the current point cloud in the model structure of the point cloud.

[0074] In some embodiments, the point cloud data processing method further includes: when receiving the point cloud data, storing the pose data of the point cloud data in a position storage area. The electronic device memory is provided with a position storage area, which is used to store the pose data in the point cloud data, and the position movement of the point cloud acquisition device can be determined from the stored pose data.

[0075] like Figure 3 As shown, Figure 3 It is a flow chart of the third embodiment of the point cloud data processing method of the present invention.

[0076] In this embodiment, in the above step S40, the step of downsampling the point cloud data in the temporary storage area to obtain the second data includes:

[0077] Step S41, downsampling the point cloud data in the temporary storage area to obtain third data;

[0078] Step S42, downsampling the third data at least once to obtain second data.

[0079] Among them, the parameters of the downsampling in step S41 and the downsampling in step S42 may be different. The third data is obtained by first downsampling the point cloud data in the temporary storage area, and then the third data is downsampled at least once to obtain the second data, so that the number of points in the second data is greatly different from the point cloud data in the temporary storage area, so that the total number of points in the global storage area is small, and the processing power required for rendering the global storage area is smaller, which reduces the processing power requirements of the electronic device. In addition, by downsampling multiple times to obtain the second data, the amount of downsampling processing data is smaller and the processing speed is faster.

[0080] In some embodiments, in the above step S40, the step of downsampling the point cloud data in the temporary storage area to obtain the second data may also include: performing first downsampling and second downsampling on the point cloud data in the temporary storage area, respectively, to obtain the second data and the third data correspondingly; wherein the number of point clouds contained in the second data is greater than the number of point clouds contained in the third data. For example, the point cloud data in the temporary storage area is subjected to a first downsampling process to obtain the second data, and the point cloud data in the temporary storage area is subjected to a second downsampling process to obtain the third data; wherein the first downsampling process may include one downsampling or multiple downsamplings, and the second downsampling process may also include one downsampling or multiple downsamplings.

[0081] like Figure 4 As shown, Figure 4 It is a flow chart of the fourth embodiment of the point cloud data processing method of the present invention.

[0082] In this embodiment, the point cloud data processing method further includes:

[0083] Step S70: storing the third data in the search storage area.

[0084] A search storage area is provided in the memory of the electronic device, and the search storage area is used to store the third data obtained after downsampling the point cloud data in the temporary storage area. Since the point cloud data stored in the global storage area is the point cloud data (i.e., the second data) after multiple downsamplings, the number of points in the second data is relatively small, and only the outline of the global model can be observed through the point cloud data display in the global storage area, and further details of each area cannot be displayed. Compared with the second data, the third data has been downsampled at least once less, so the number of points in the third data is much larger than the number of points in the second data. Therefore, in this embodiment, by storing the third data in the search storage area, the electronic device can search for the third data within a certain range near the browsing position for rendering to display a more detailed model structure.

[0085] like Figure 5 As shown, Figure 5 It is a flowchart of the fifth embodiment of the point cloud data processing method of the present invention.

[0086] In this embodiment, the point cloud data processing method further includes:

[0087] Step S80, when it is detected that the browsing position is updated, determining the visible range corresponding to the current browsing position;

[0088] The browsing position may be the position of the point cloud acquisition device or the position of an external input (such as the position information input by the operator through the input interface). When the point cloud acquisition device moves to collect, the position of the point cloud acquisition device moves, and the electronic device can determine that the position of the point cloud acquisition device has changed according to the posture data of the point cloud data, that is, the browsing position is detected to be updated, and the electronic device then determines the visible range corresponding to the current browsing position. When the operator inputs the position information through the input structure, for example, the operator moves the cursor to a certain position of the point cloud model to perform a click operation, and the electronic device detects that the browsing position is updated, and the cursor position is the current browsing position. At this time, the electronic device determines the visible range corresponding to the current browsing position according to the input position information (that is, the coordinates of the cursor). In some embodiments, determining the visible range corresponding to the current browsing position may include: calculating the visible range in the world coordinate system according to the projection model and the preset visible window size, and determining the calculated visible range as the visible range corresponding to the current browsing position. The visible window size may be a preset size, for example, the length and width of the visible window are preset in the electronic device, or the visible window is a circular window, and the radius of the visible window is preset in the electronic device.

[0089] Step S90: searching the search storage area for point cloud data within the visible range, and rendering the searched point cloud data.

[0090] After determining the visible range, the electronic device searches the search storage area to find all points stored in the search storage area that are within the visible range, and renders the searched points, thereby displaying third data within the visible range corresponding to the current browsing position, even if a certain range near the current browsing position displays a point cloud model in relatively more detail.

[0091] The technical solution of this embodiment detects the update of the browsing position, determines the corresponding visible range of the current browsing position, searches for the third data within the visible range, and renders and displays it, so that the operator can view more detailed point cloud conditions of each area in the global model of the point cloud at any time by inputting position information.

[0092] like Figure 6 As shown, Figure 6 It is a flow chart of the sixth embodiment of the point cloud data processing method of the present invention.

[0093] In some embodiments, the search storage area organizes the storage structure in the form of multiple octrees; the third data is stored in the memory bound to an octree and triggers the reconstruction of the octree. When the number of points corresponding to the octree exceeds a certain number, a new octree unit is created to facilitate the subsequent insertion of the third data. The search storage area organizes the storage structure in the form of multiple octrees, so that the subsequent indexing of point cloud data within the visible range will be faster.

[0094] In this embodiment, in the above step S90, the step of searching the search storage area for point cloud data within the visible range includes:

[0095] Step S91, dividing the visible range into cells of a preset size, and performing multi-threaded parallel point cloud search for each cell range in combination with an octree set;

[0096] The size of the cell is pre-set in the electronic device, and the visual range is divided into many cells according to the cells of the preset size. For each cell range obtained by the division, the point cloud search is performed in combination with the octree set (i.e., each octree structure in the search storage area), and the thread pool technology is used to realize the parallelization of the search, i.e., multi-threaded parallel point cloud search. By combining the multi-threaded parallel point cloud search of the octree set, all point cloud data within the visible range can be searched more quickly, greatly shortening the search time. Among them, the number of parallel threads can be dynamically adjusted according to the remaining processing power of the electronic device. When the processing power of the electronic device is large, the number of parallel threads can be relatively increased, and when the processing power of the electronic device is small, the number of parallel threads can be relatively reduced.

[0097] Step S92, summarizing the point cloud data searched within each cell range.

[0098] After searching for the point cloud data within each cell range, the electronic device aggregates the point cloud data within all cell ranges to obtain a point cloud data set within the visible range, that is, the third data within the visible range.

[0099] This technical solution is implemented by organizing the storage structure of the search storage area in the form of multiple octrees. After dividing the visible range into cells, the octree set is used to perform multi-threaded parallel point cloud search, thereby achieving faster completion of the search for the third data within the visible range, so that the detailed viewing of the point cloud in each area of ​​the point cloud global model can be responded to more quickly.

[0100] It should be noted that, in the case where there are no contradictions or conflicts between the solutions of all the above embodiments of the present application, the above embodiments can be arbitrarily combined or combined to form new embodiments.

[0101] like Figure 7 As shown, the present invention also proposes a point cloud data processing device, comprising:

[0102] A first downsampling module 10 is used to downsample the point cloud data to obtain first data when the point cloud data is received;

[0103] A copy module 20, configured to obtain at least two copies of the first data by copying;

[0104] A first rendering module 30, configured to render a first copy of the first data, and cache a second copy of the first data to a temporary storage area and trigger a rendering update of the temporary storage area;

[0105] A second downsampling module 40 is used to downsample the point cloud data in the temporary storage area to obtain second data when an update instruction is detected;

[0106] The second rendering module 50 is used to insert the second data into the global storage area and trigger rendering update of the global storage area.

[0107] The present invention also provides an electronic device, referring to Figure 8 , Figure 8 It is a schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention.

[0108] The electronic device of the embodiment of the present invention can be a laser scanning device, a desktop computer, a notebook, a palm computer, a server or other computing device. Figure 8 As shown, the electronic device may include: a processor 1001 (such as a CPU), a network interface 1004, a user interface 1003, a memory 1005 and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit, such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0109] Those skilled in the art will understand that Figure 8 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0110] like Figure 8 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a computer program.

[0111] exist Figure 8 In the electronic device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the computer program stored in the memory 1005. When the computer program is called and executed by the processor 1001, the steps of the above-mentioned point cloud data processing method are implemented.

[0112] Based on the computer program proposed in the aforementioned embodiment, the present invention further proposes a storage medium, which stores the computer program. When the computer program is executed by a controller, the point cloud data processing method recorded in the aforementioned embodiment is implemented.

[0113] The point cloud data processing device, electronic device and storage medium of the present invention can implement the steps of the above-mentioned point cloud data processing method, and therefore have at least all the beneficial effects brought about by the technical solutions of the above-mentioned point cloud data processing method embodiments, which will not be described one by one here.

[0114] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0115] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0116] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.

[0117] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0118] The above description is only a partial or preferred embodiment of the present invention. Neither the text nor the drawings can limit the scope of protection of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the overall concept of the present invention, or direct / indirect application in other related technical fields are included in the scope of protection of the present invention.

Claims

1. A point cloud data processing method, characterized in that: include: When receiving the point cloud data, downsampling the point cloud data to obtain first data, wherein the downsampling process is to adaptively downsample the number of points in the point cloud data; Obtain at least two copies of the first data by copying; Rendering the first copy of the first data to represent the first copy of the first data as current package point cloud data, and caching the second copy of the first data to a temporary storage area, triggering a rendering update of the temporary storage area; When an update instruction is detected, downsampling the point cloud data in the temporary storage area to obtain second data; Inserting the second data into a global storage area triggers a rendering update of the global storage area.

2. The point cloud data processing method according to claim 1, characterized in that: The update instruction is generated when it is detected that the point cloud data in the temporary storage area reaches a preset amount, or the update instruction is generated once every preset time period; After the step of downsampling the point cloud data in the temporary storage area to obtain the second data, the point cloud data processing method further includes: Clear the point cloud data in the temporary storage area.

3. The point cloud data processing method according to claim 1, characterized in that: The step of rendering the first copy of the first data includes: The first copy of the first data is rendered in one of the preset colors.

4. The point cloud data processing method according to claim 3, characterized in that: After the step of rendering the first copy of the first data in one of the preset colors, the point cloud data processing method further includes: When the point cloud data is received, the position and posture data of the point cloud data is stored in a position storage area.

5. The point cloud data processing method according to any one of claims 1 to 4, characterized in that: The step of downsampling the point cloud data in the temporary storage area to obtain second data comprises: Downsampling the point cloud data in the temporary storage area to obtain third data; Downsampling the third data at least once to obtain the second data; Alternatively, the step of downsampling the point cloud data in the temporary storage area to obtain the second data comprises: The point cloud data in the temporary storage area are respectively subjected to a first downsampling and a second downsampling to obtain the second data and the third data correspondingly, wherein the number of point clouds included in the second data is greater than the number of point clouds included in the third data.

6. The point cloud data processing method according to claim 5, characterized in that: The point cloud data processing method further includes: The third data is stored in the search storage area.

7. The point cloud data processing method according to claim 6, characterized in that: The point cloud data processing method further includes: When the browsing position is detected to be updated, the visual range corresponding to the current browsing position is determined; The point cloud data located within the visible range is searched in the search storage area, and the searched point cloud data is rendered.

8. The point cloud data processing method according to claim 7, characterized in that: The step of determining the visible range corresponding to the current browsing position includes: According to the projection model and the preset visible window size, the visible range in the world coordinate system is calculated.

9. The point cloud data processing method according to claim 8, characterized in that: The search storage area organizes a storage structure in the form of multiple octrees; the step of searching the search storage area for point cloud data within the visible range includes: Divide the visible range into cells of a preset size, and perform multi-threaded parallel point cloud search in combination with an octree set for each cell range; Summarize the point cloud data searched within each cell range.

10. The point cloud data processing method according to claim 9, characterized in that: The browsing position is the position of the point cloud acquisition device or the position input externally.

11. A point cloud data processing device, characterized in that: include: A first downsampling module is used to downsample the point cloud data to obtain first data when receiving the point cloud data, wherein the downsampling process is to adaptively downsample the number of points in the point cloud data; A copy module, used for obtaining at least two copies of the first data by copying; A first rendering module, used for rendering a first copy of the first data to represent the first copy of the first data as current package point cloud data, and caching a second copy of the first data to a temporary storage area and triggering a rendering update of the temporary storage area; A second downsampling module is used to downsample the point cloud data in the temporary storage area to obtain second data when an update instruction is detected; The second rendering module is used to insert the second data into the global storage area and trigger the rendering update of the global storage area.

12. An electronic device, characterized in that: The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the point cloud data processing method according to any one of claims 1 to 7 are implemented.

13. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the point cloud data processing method according to any one of claims 1 to 7 are implemented.