Point cloud processing method and apparatus, device, and storage medium
By acquiring and processing point cloud data in 3D scanning, and using ray casting to determine and delete noise points, the problem of the influence of noise data in 3D scanning is solved and high-accuracy data cleaning is achieved.
Patent Information
- Application Number
- PCT/CN2024/078036
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2024-02-22
- Publication Date
- 2024-09-06
AI Technical Summary
During the three-dimensional scanning process, invalid debris other than the target object may be scanned in, forming miscellaneous data, which affects subsequent processing and needs to be deleted.
By obtaining the current frame point cloud and global model collected by the point cloud acquisition device, ray casting is used to determine the weight of the target three-dimensional point, and these noise points are deleted when specific conditions are met to ensure the accuracy of the data.
It achieves accurate deletion of miscellaneous data under multiple verifications, improves the accuracy of deletion results, avoids accidental deletion, and has strong industrial practicability.
Smart Images

Figure CN2024078036_06092024_PF_FP
Abstract
Description
Point cloud processing method, device, equipment and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on February 28, 2023, with application number 202310208654.2 and invention name “Point cloud processing method, device, equipment and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of point cloud technology, and in particular to a point cloud processing method, device, electronic device, and computer-readable storage medium. Background Art
[0004] 3D scanning is primarily used to scan the spatial shape, structure, and color of an object to obtain the spatial coordinates of the object's surface, such as point cloud data. Its significance lies in its ability to convert the object's three-dimensional information into digital signals that can be directly processed by computers, providing a convenient and fast means for digitizing physical objects. However, during the 3D scanning process, invalid debris outside the target object may be scanned, forming noise data (or points in the point cloud). This invalid noise data may affect subsequent processing, so it is necessary to delete the scanned noise data.
[0005] Summary of the Invention
[0006] In view of this, the present application provides a point cloud processing method, device, electronic device and computer-readable storage medium.
[0007] Specifically, this application is implemented through the following technical solutions:
[0008] According to a first aspect of an embodiment of the present application, a point cloud processing method is provided, comprising:
[0009] Obtaining a current frame point cloud collected by a point cloud acquisition device and a global model; wherein the global model is obtained by fusing historical frame point clouds collected by the point cloud acquisition device; each 3D point in the global model carries a weight, wherein the weight represents the likelihood that the 3D point is a clutter point or a target object;
[0010] After projecting the current frame point cloud into the global model, projecting a plurality of rays between the projected current frame point cloud and the point cloud acquisition device to determine target three-dimensional points in the global model passed through by the rays;
[0011] reducing the weight of the target three-dimensional point;
[0012] If the reduced weight of the target three-dimensional point satisfies a condition for removing a foreign point, the target three-dimensional point is removed.
[0013] Optionally, the method further includes: determining initial weights of the three-dimensional points in the point cloud of the current frame;
[0014] After projecting the current frame point cloud into the global model, the method further includes:
[0015] The weights of the three-dimensional points in the current frame point cloud are updated within the projection area of the global model using the initial weights of the three-dimensional points in the current frame point cloud.
[0016] Optionally, in the current frame point cloud, determining the initial weights of the three-dimensional points in the current frame point cloud includes:
[0017] For each 3D point in the current frame point cloud, obtaining a first adjustment coefficient according to acquisition information of the 3D point;
[0018] The reference weight is adjusted using the first adjustment coefficient to obtain the initial weight of the three-dimensional point; wherein the first adjustment coefficient is positively correlated with the initial weight.
[0019] Optionally, the acquisition information of each 3D point includes at least one of the following: a distance between the 3D point and an optimal depth of field of a point cloud acquisition device, a distance between the 3D point and a center of a field of view of the point cloud acquisition device, a distance between the 3D point and a ray projected by the point cloud acquisition device that interpolates the 3D point, or a difference between normal information of the 3D point and normal information of its adjacent 3D points;
[0020] The first adjustment coefficient of the three-dimensional point is negatively correlated with the collected information of the three-dimensional point.
[0021] Optionally, determining the initial weights of the three-dimensional points in the point cloud of the current frame includes:
[0022] For each three-dimensional point in the current frame point cloud, obtaining a first adjustment coefficient according to the acquisition information of the three-dimensional point;
[0023] and, after performing object recognition processing on the point cloud of the current frame, obtaining a second adjustment coefficient according to the object recognition result corresponding to the three-dimensional point;
[0024] The reference weight is adjusted according to the first adjustment coefficient and the second adjustment coefficient to obtain the initial weight of the three-dimensional point; wherein the second adjustment coefficient is positively correlated with the initial weight, and the second adjustment coefficient of the three-dimensional point whose object recognition result is a target object is greater than the second adjustment coefficient of the three-dimensional point whose object recognition result is a noise point.
[0025] Optionally, the starting point of the light is one of the first position and the second position, and the ending point of the light is the other of the first position and the second position;
[0026] The first position includes one of the following: the position of the projected current frame point cloud, or the result of combining the projected current frame point cloud position with a preset error distance;
[0027] The second position includes one of the following: the position of the lens of the point cloud acquisition device when acquiring the current frame point cloud, or the position of the projected current frame point cloud combined with a preset distance; the preset distance is determined according to the depth of field of the point cloud acquisition device when acquiring the current frame point cloud.
[0028] Optionally, the plurality of rays correspond one-to-one to a plurality of three-dimensional points in the point cloud of the current frame;
[0029] The reducing the weight of the target three-dimensional point includes:
[0030] A 3D point in the current frame point cloud corresponding to a ray passing through the target 3D point is determined, and a weight of the target 3D point is reduced using a weight of the 3D point in the global model.
[0031] Optionally, the space where the global model is located is divided into a number of voxels;
[0032] Determining the target three-dimensional point passed by the light in the updated global model includes:
[0033] Detecting a target voxel passed by the light ray and determining a target three-dimensional point in the target voxel intersecting the light ray.
[0034] Optionally, also include:
[0035] If at least one frame of point cloud subsequently acquired by the point cloud acquisition device contains the deleted target three-dimensional point, weight accumulation is performed based on the initial weight of the deleted target three-dimensional point in each frame of point cloud;
[0036] When the accumulated weight of the deleted target three-dimensional point meets a preset reconstruction condition, the target three-dimensional point is reconstructed in the global model.
[0037] Optionally, the three-dimensional points in the global model are displayed in a color gradient manner in order of weight from large to small or from small to large; the display colors of three-dimensional points indicated by different weights are different.
[0038] Optionally, the noise removal condition indicates that the reduced weight of the target three-dimensional point is less than a weight threshold;
[0039] The method further comprises:
[0040] Get the weight threshold value entered by the user in the interactive interface; or
[0041] In response to a scanning scene instruction input by a user, obtaining multiple recommended values of the weight threshold from pre-stored data according to the scanning scene indicated by the scanning scene instruction; wherein the pre-stored data includes multiple recommended values of the weight threshold under different scanning scenes;
[0042] Display multiple recommended values of weight thresholds in the interactive interface;
[0043] In response to a selection operation by the user, a selected value is determined from a plurality of recommended values of the weight threshold.
[0044] According to a second aspect of an embodiment of the present application, a point cloud processing method is provided, comprising:
[0045] Acquire a global model collected by a point cloud collection device; wherein any three-dimensional point in the global model carries a weight, and the weight of any three-dimensional point represents the possibility that the three-dimensional point is a debris point or a target object;
[0046] If there is a target three-dimensional point in the global model whose weight satisfies the noise deletion condition, the target three-dimensional point is deleted.
[0047] According to a third aspect of an embodiment of the present application, a point cloud processing device is provided, comprising:
[0048] an acquisition module configured to acquire a current frame point cloud acquired by a point cloud acquisition device and a global model; wherein the global model is obtained by fusing point clouds from historical frames acquired by the point cloud acquisition device; and each 3D point in the global model carries a weight, wherein the weight of each 3D point represents the likelihood that the 3D point is a debris point or a target object;
[0049] a target three-dimensional point determination module, configured to, after projecting the current frame point cloud into the global model, project a plurality of rays between the projected current frame point cloud and the point cloud acquisition device to determine target three-dimensional points in the global model passed by the rays;
[0050] A weight reduction module, configured to reduce the weight of the target three-dimensional point;
[0051] The target three-dimensional point deletion module is configured to delete the target three-dimensional point if the reduced weight of the target three-dimensional point satisfies a noise point deletion condition.
[0052] According to a fourth aspect of an embodiment of the present application, there is provided an electronic device, comprising a memory, a processor, and executable instructions stored in the memory and executable on the processor;
[0053] Wherein, when the processor executes the executable instructions, it implements the steps in any one of the methods described in the first aspect.
[0054] According to a fifth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the steps of any one of the methods described in the first aspect are implemented.
[0055] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0057] FIG1A is a schematic diagram showing the projection result of a frame of point cloud collected at time T by a point cloud collection device on a global model, shown in an exemplary embodiment of the present application.
[0058] FIG1B is a diagram showing the scanning range of the point cloud acquisition device in the oral cavity at time T, according to an exemplary embodiment of the present application.
[0059] FIG2A is a schematic diagram showing the projection result of a frame of point cloud collected by a point cloud collection device at time T+n on a global model, shown in an exemplary embodiment of the present application.
[0060] FIG2B is a diagram showing the scanning range of the point cloud acquisition device in the oral cavity at time T+n according to an exemplary embodiment of the present application.
[0061] FIG3 is a flow chart of a point cloud processing method shown in an exemplary embodiment of the present application.
[0062] FIG. 4 is an exemplary schematic diagram of an electronic device according to an exemplary embodiment of the present application.
[0063] FIG5 is a schematic structural diagram of a point cloud processing device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0064] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0065] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. As used in this application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0066] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0067] 3D scanning is primarily used to scan the spatial shape, structure, and color of an object to obtain the spatial coordinates of the object's surface, such as point cloud data. Its significance lies in its ability to convert the object's three-dimensional information into digital signals that can be directly processed by computers, providing a very convenient and fast means for digitizing physical objects. However, during the 3D scanning process, invalid debris outside the target object may be scanned, forming noise data (or noise points in the point cloud data). This invalid noise data may affect subsequent processing, so it needs to be deleted before subsequent processing.
[0068] For example, in the field of oral scanning, a 3D scanner can be used to scan the user's teeth to construct a 3D tooth model, which can be used for occlusion detection, undercut treatment, etc. However, in the process of scanning the user's teeth with a 3D scanner, in addition to valid data such as the teeth and gums, invalid data such as the tongue, labial, buccal sides, and intraoral medical devices may also be scanned. This invalid data may affect the subsequent dental treatment process, so it needs to be deleted.
[0069] In response to the problems in the related art, an embodiment of the present application provides a point cloud processing method, which can obtain the current frame point cloud collected by a point cloud acquisition device and a global model; wherein, the global model is obtained by fusing the historical frame point clouds collected by the point cloud acquisition device; any three-dimensional point in the global model carries a weight, and the weight of any three-dimensional point represents the possibility that the three-dimensional point is a debris point or a target object. In other words, the weight represents the confidence of the three-dimensional point; the higher the weight, the higher the confidence, and the greater the possibility that the three-dimensional point is a target object; the lower the weight, the lower the confidence, and the greater the possibility that the three-dimensional point is a debris point.
[0070] When the point cloud acquisition device acquires the current frame point cloud, it can be assumed that all the acquired current frame point cloud is valid data and that no other point cloud data exists between the current frame point cloud and the point cloud acquisition device. In other words, theoretically, no other objects exist between the point cloud acquisition device and the measured object (i.e., the current frame point cloud). Based on this assumption, the current frame point cloud can be used to delete noise data in the global model. The current frame point cloud can be projected onto the global model, and then a number of rays are cast between the projected current frame point cloud and the point cloud acquisition device to determine target 3D points in the global model that are traversed by the rays. The target 3D points may be noise points between the current frame point cloud and the point cloud acquisition device that were mistakenly acquired at a historical moment. To avoid accidental deletion, this embodiment reduces the weight of the target 3D points. If the reduced weight of the target 3D points satisfies a noise deletion condition, the target 3D points are deleted. If the reduced weight of the target 3D points does not satisfy the noise deletion condition, the target 3D points are not deleted, and the point cloud acquisition device acquires the next frame point cloud and continues the above-described processing. This allows accurate deletion of noise data after multiple verifications, thereby improving the accuracy of the deletion results.
[0071] The point cloud processing method provided in the embodiments of the present application can be executed by electronic devices, including but not limited to smart phones / mobile phones, tablet computers, personal digital assistants (PDAs), laptop computers, desktop computers, media content players, video game stations / systems, virtual reality systems, augmented reality systems, wearable devices (e.g., watches, glasses, gloves, headwear (e.g., hats, helmets, virtual reality headsets, augmented reality headsets, head-mounted devices (HMDs), headbands), pendants, armbands, leg bands, shoes, vests), remote controls, or any other device with computing capabilities.
[0072] Exemplarily, the electronic device includes a processor and a memory, the memory storing executable instructions that can be run on the processor, and the processor implementing the point cloud processing method provided in the embodiments of the present application when executing the executable instructions. Exemplarily, the electronic device integrates a computer program product, and the electronic device implementing the point cloud processing method provided in the embodiments of the present application when executing the computer program product.
[0073] Illustratively, the electronic device may be provided with a point cloud acquisition device; or the electronic device and the point cloud acquisition device may be independent of each other and communicatively connected.
[0074] Among them, the point cloud acquisition device includes but is not limited to laser radar, millimeter wave radar, binocular vision sensor or structured light depth camera.
[0075] The laser radar is used to transmit a sequence of laser pulses to the target scene, then receive the sequence of laser pulses reflected from the target, and generate a three-dimensional point cloud based on the sequence of laser pulses reflected. In one example, the laser radar can determine the reception time of the reflected laser pulse sequence, for example, by detecting the rising edge time and / or falling edge time of the electrical signal pulse to determine the reception time of the laser pulse sequence. In this way, the laser radar can calculate TOF (Time of flight) using the reception time information and the emission time of the laser pulse sequence, thereby determining the distance from the detected object to the laser radar. The laser radar is an autonomous luminous sensor that does not rely on light source illumination and is less affected by ambient light. It can work normally even in a lightless closed environment, so as to subsequently generate a high-precision three-dimensional model, and has wide applicability. The point cloud acquisition principle of the millimeter wave radar is similar to that of the laser radar and will not be repeated here.
[0076] Binocular vision sensors use the principle of parallax to capture two images of a target scene from different locations. By calculating the positional deviation between corresponding points in the two images, they obtain 3D geometric information and generate a 3D point cloud. Binocular vision sensors have low hardware requirements, which in turn reduces costs. They only require a standard CMOS (Complementary Metal Oxide Semiconductor) camera and can be used in both indoor and outdoor environments as long as the lighting is suitable, making them highly adaptable.
[0077] Structured light depth cameras project light with specific structural characteristics into a target scene for image acquisition. This structured light captures different image phase information depending on the depth of the object being photographed. This information is then converted into depth information to create a 3D point cloud. Structured light depth cameras are also self-luminous sensors that are independent of light sources and are minimally affected by ambient light. They can operate even in dark, enclosed environments, enabling the subsequent generation of high-precision 3D models, making them widely applicable.
[0078] In an exemplary application scenario, such as in the field of oral scanning, a point cloud acquisition device can scan inside the user's oral cavity to collect data related to the user's teeth, thereby establishing a three-dimensional model of the teeth; as shown in Figures 1A and 1B, Figure 1A shows the projection result of a frame of point cloud collected by the point cloud acquisition device at time T on the global model. For ease of understanding, the frame of point cloud is presented in Figure 1A as an image. The image can be a two-dimensional image carrying depth information or a depth image. This embodiment does not impose any restrictions on this; Figure 1B shows the scanning range of the point cloud acquisition device in the oral cavity at time T. It can be seen from Figures 1A and 1B that the point cloud acquisition device scanned a finger at time T, so the collected frame of point cloud contains miscellaneous points related to the finger. After projecting the frame of point cloud collected by the point cloud acquisition device at time T onto the global model, miscellaneous data such as the finger appears in the projection area of the global model (the box in Figure 1A).
[0079] The point cloud acquisition device continues to scan inside the user's oral cavity, and the point cloud processing method provided in the embodiment of the present application can be applied during the scanning process to delete miscellaneous data in real time. For example, at time T+N, the point cloud acquisition device scans a position that intersects with time T. Please refer to Figures 2A and 2B. Figure 2A shows the projection result of a frame of point cloud collected by the point cloud acquisition device at time T+N in the global model, and the frame of point cloud is presented as an image in Figure 2B. Figure 2B shows the scanning range of the point cloud acquisition device in the oral cavity at time T+n. It can be seen from Figures 2A and 2B that the point cloud acquisition device did not scan the finger at time T+n, and n is an integer greater than 0. Based on the assumption that no other objects exist in theory between the point cloud acquisition device and the object being measured (i.e., the point cloud of the current frame), after applying the point cloud processing method provided in the embodiment of the present application, the weight of the finger-related noise points collected at time T in the global model can be reduced; the weight of the finger-related noise points can be reduced multiple times when the same position is scanned multiple times, and finally, when the reduced weight meets the noise point deletion condition, the finger-related noise points collected at the historical time in the global model are deleted; and multiple verifications are performed to accurately delete the noise points.
[0080] Next, the point cloud processing method provided in the embodiment of the present application is exemplarily described:
[0081] It should be noted that the point cloud acquisition device in the embodiment of the present application needs to scan the same location in the detection scene multiple times. This is so that the miscellaneous data scanned at the same location at previous moments can be filtered out and deleted based on the current scan result. Please refer to Figure 3, which shows a flow chart of a point cloud processing method. The method can be performed by an electronic device and includes:
[0082] In S101, the current frame point cloud collected by the point cloud acquisition device and the global model are obtained; wherein, the global model is obtained by fusing the historical frame point clouds collected by the point cloud acquisition device; any three-dimensional point in the global model carries a weight, and the weight of any three-dimensional point represents the possibility that the three-dimensional point is a debris point or a target object.
[0083] In S102, after projecting the current frame point cloud into the global model, a plurality of rays are projected between the projected current frame point cloud and the point cloud acquisition device to determine target three-dimensional points in the global model passed by the rays.
[0084] In S103 , the weight of the target three-dimensional point is reduced.
[0085] In S104 , if the reduced weight of the target 3D point satisfies a noise point deletion condition, the target 3D point is deleted.
[0086] In this embodiment, it can be assumed that all the collected current frame point cloud is valid data, and no other point cloud data exists between the current frame point cloud and the point cloud acquisition device. In other words, theoretically, no other objects exist between the point cloud acquisition device and the object being measured (i.e., the current frame point cloud). Based on this assumption, the current frame point cloud can be used to delete the noise data between the current frame point cloud and the point cloud acquisition device collected at a historical moment in the global model. The current frame point cloud can be projected into the global model, and then a number of rays are cast between the projected current frame point cloud and the point cloud acquisition device to determine the target 3D point in the global model that is passed through by the rays. The target 3D point may be a noise point between the current frame point cloud and the point cloud acquisition device that was mistakenly collected at a historical moment. To avoid accidental deletion, this embodiment reduces the weight of the target 3D point. The weight can be reduced multiple times based on the fact that the target 3D point is passed through by rays multiple times until the reduced weight of the target 3D point meets the noise deletion condition, and then the target 3D point is deleted. This allows accurate deletion of noise data after multiple verifications, thereby improving the accuracy of the deletion result.
[0087] Exemplarily, the noise deletion condition indicates that the weight of the three-dimensional point is less than a preset threshold, and the preset threshold can be specifically set according to an actual application scenario.
[0088] Exemplarily, the global model is obtained by fusing historical frame point clouds collected by the point cloud acquisition device. In one example, the global model includes a plurality of 3D points. In another example, the global model may include, in addition to the plurality of 3D points, triangle information formed by three-dimensional connections; that is, the global model may be a mesh model.
[0089] In some embodiments, after acquiring the current frame point cloud collected by the point cloud collection device, the electronic device needs to further determine the initial weights of the three-dimensional points in the current frame point cloud.
[0090] In one possible implementation, it can be assumed that the three-dimensional points in the current frame point cloud collected by the point cloud acquisition device are all valid data, that is, the three-dimensional points in the current frame point cloud can be assigned preset initial weights, and the initial weights of all three-dimensional points in the current frame point cloud are the same.
[0091] In another possible implementation, the initial weight of a 3D point can be determined based on the reliability of the depth information of the 3D point in the current frame point cloud, with the greater the reliability, the greater the initial weight. The reliability of the depth information of the 3D point can be reflected by the acquisition information of the 3D point. For example, for each 3D point in the current frame point cloud, the electronic device can obtain a first adjustment coefficient based on the acquisition information of the 3D point, and then use the first adjustment coefficient to adjust a baseline weight to obtain the initial weight of the 3D point. The first adjustment coefficient and the initial weight are positively correlated, i.e., the larger the first adjustment coefficient, the larger the initial weight, and vice versa. In one example, the initial weight of the 3D point is equal to the product of the first adjustment coefficient and the baseline weight. In another example, the initial weight of the 3D point is equal to the sum of the first adjustment coefficient and the baseline weight. The specific method for adjusting the baseline weight using the first adjustment coefficient in this embodiment is not limited and can be configured based on the actual application scenario.
[0092] Exemplarily, the acquisition information for each 3D point includes at least one of the following: the distance between the 3D point and the optimal depth of field of the point cloud acquisition device, the distance between the 3D point and the center of the field of view of the point cloud acquisition device, the distance between the 3D point and a ray projected by the point cloud acquisition device that interpolates the 3D point, or the difference between the normal information of the 3D point and the normal information of its adjacent 3D points; but the present invention is not limited thereto. In one example, if the point cloud acquisition device is a structured light camera, the projected light is structured light; if the point cloud acquisition device is a lidar, the projected light is a laser line.
[0093] Based on practical demonstration, it can be determined that: (1) the depth of a three-dimensional point collected within the depth of field of the point cloud acquisition device is more reliable, so the smaller the distance between the three-dimensional point and the optimal depth of field, the larger the first adjustment coefficient, and vice versa; (2) the depth of a three-dimensional point collected at the center of the field of view of the point cloud acquisition device is more reliable, so the smaller the distance between the three-dimensional point and the center of the field of view, the larger the first adjustment coefficient, and vice versa; (3) the closer a three-dimensional point is to the light interpolating the three-dimensional point in the light projected by the point cloud acquisition device, the more reliable the depth of the three-dimensional point, so the smaller the distance between the three-dimensional point and the light interpolating the three-dimensional point in the light projected by the point cloud acquisition device, the larger the first adjustment coefficient, and vice versa; (4) the depth of a three-dimensional point with a smaller depth jump is more reliable, so the smaller the difference between the normal information of the three-dimensional point and the normal information of its adjacent three-dimensional points, the larger the first adjustment coefficient, and vice versa.
[0094] That is, the first adjustment coefficient of the three-dimensional point is negatively correlated with any one of the following: the distance between the three-dimensional point and the depth of field, the distance between the three-dimensional point and the center of the field of view, the distance between the three-dimensional point and the ray projection position, and the difference between the normal information of the three-dimensional point and the normal information of its adjacent three-dimensional points.
[0095] In another possible implementation, in addition to considering the reliability of the depth information of the 3D points in the current frame point cloud, the importance of the 3D points can also be considered. The higher the importance of the 3D points, the higher the initial weight. The importance of the 3D points can be reflected by the object recognition results of the 3D points. If the 3D points are recognized as target objects, such as teeth or gums, the 3D points are relatively important. If the 3D points are recognized as noise points, they are not important.
[0096] Exemplarily, for each three-dimensional point in the current frame point cloud, the electronic device can obtain a first adjustment coefficient based on the acquisition information of the three-dimensional point; and after performing object recognition processing on the current frame point cloud, obtain a second adjustment coefficient based on the object recognition result corresponding to the three-dimensional point; then adjust the reference weight according to the first adjustment coefficient and the second adjustment coefficient to obtain the initial weight of the three-dimensional point; wherein the second adjustment coefficient is positively correlated with the initial weight, and the second adjustment coefficient of the three-dimensional point whose object recognition result is the target object is greater than the second adjustment coefficient of the three-dimensional point whose object recognition result is a noise point.
[0097] In one example, the initial weight of the 3D point may be the product of the first adjustment coefficient, the second adjustment coefficient, and the baseline weight. In another example, the initial weight of the 3D point may be the sum of the first adjustment coefficient, the second adjustment coefficient, and the baseline weight. The specific method for adjusting the baseline weight using the first and second adjustment coefficients in this embodiment is not limited and can be specifically configured based on actual application scenarios.
[0098] The target object may include one or more types, and the second adjustment coefficients for 3D points representing different types of target objects may be the same or different, depending on the specific application scenario. For example, in the field of dental scanning, if the target objects include teeth and gums, the second adjustment coefficient for a 3D point whose object recognition result is teeth may be set to be greater than the second adjustment coefficient for a 3D point whose object recognition result is gums.
[0099] In an example, the initial weight of the three-dimensional point can be the product of the first adjustment coefficient, the second adjustment coefficient and the baseline weight. The value of the initial weight is between 0-1, the value of the baseline weight is 1, and the values of the first adjustment coefficient and the second adjustment coefficient are between 0 and 1; assuming that in the field of dental scanning, the target objects include teeth and gums, where the second adjustment coefficient of the three-dimensional point that is a tooth can be set to 1, the second adjustment coefficient of the three-dimensional point that is a gum can be set to 0.5, and the second adjustment coefficient of the three-dimensional point that is a miscellaneous point can be set to 0; of course, other values can also be used, and this embodiment does not impose any restrictions on this.
[0100] When performing object recognition processing on the current frame point cloud, a pre-trained object recognition model can be used to process the current frame point cloud, thereby obtaining object recognition results corresponding to the three-dimensional points in the current frame point cloud. Exemplarily, the object recognition model can be obtained through supervised training based on several frame point clouds and their object labels.
[0101] In some embodiments, the global model is derived from the fusion of historical frame point clouds collected by the point cloud acquisition device. That is, each time the point cloud acquisition device acquires a frame of point cloud, it fuses that frame of point cloud into the global model. If the acquisition locations of the current frame of point cloud overlap with those of the historical frame of point cloud, i.e., the current frame of point cloud and the global model contain 3D points collected by the point cloud acquisition device from the same locations, noise points in the global model can be filtered out based on the current frame of point cloud.
[0102] Each 3D point in the global model carries a weight. In one example, a larger weight for a 3D point in the global model indicates a greater likelihood that the point is the target object and a more reliable 3D point. A smaller weight indicates a greater likelihood that the point is a noise point and an unreliable 3D point.
[0103] After projecting the current frame point cloud into the global model, the electronic device may use the initial weights of the three-dimensional points in the current frame point cloud to update the weights of the three-dimensional points of the current frame point cloud within the projection area of the global model. Exemplarily, after projecting a certain three-dimensional point of the current frame point cloud onto a certain projection position in the global model, if there is no three-dimensional point at the projection position, the initial weight of the three-dimensional point in the current frame point cloud may be used as the weight of the three-dimensional point at the projection position; if there is already a three-dimensional point at the projection position, the initial weight of the three-dimensional point in the current frame point cloud and the weight of the three-dimensional point at the projection position may be accumulated, and the accumulated weight may be used as the updated weight of the three-dimensional point at the projection position.
[0104] After projecting the current frame point cloud onto the global model, the electronic device may project a plurality of rays between the projected current frame point cloud and the point cloud acquisition device to determine target three-dimensional points in the global model passed through by the rays. The electronic device may project a plurality of rays between the projected current frame point cloud and the point cloud acquisition device, or may project a plurality of rays between a projection area corresponding to the projected current frame point cloud and the point cloud acquisition device; this embodiment imposes no limitation on this.
[0105] Exemplarily, the starting point of the ray is one of a first position and a second position, and the ending point of the ray is the other of the first position and the second position. The first position may be the location of the projected current frame point cloud, or, to avoid misprocessing of the projected current frame point cloud, the first position may be the result of combining the projected current frame point cloud location with a preset error distance. The specific value of the preset error distance can be set based on the actual application scenario and is not limited in this embodiment.
[0106] The second position may be the position of the lens of the point cloud acquisition device when acquiring the current frame point cloud; or, in order to improve the efficiency of light projection, the second position may be the result of combining the position of the projected current frame point cloud with a preset distance, and the preset distance is determined according to the depth of field of the point cloud acquisition device when acquiring the current frame point cloud, thereby avoiding or reducing the projection of light into an area where no three-dimensional points are acquired, thereby improving the efficiency of light projection.
[0107] In one example, the light ray starts from the three-dimensional point of the projected current frame point cloud and extends toward the location of the point cloud acquisition device. In another example, the light ray starts from the coordinates of the three-dimensional point of the projected current frame point cloud plus a preset error distance, and then extends toward the location of the point cloud acquisition device.
[0108] In some embodiments, after projecting a plurality of light rays between the projected current frame point cloud and the point cloud acquisition device, the electronic device may determine the target 3D points in the global model passed through by the light rays. Based on the assumption that no other objects exist between the point cloud acquisition device and the object being measured (i.e., the current frame point cloud), the target 3D points in the global model passed through by the light rays may be noise points between the current frame point cloud and the point cloud acquisition device that were mistakenly captured at a historical moment.
[0109] In some possible implementations, the electronic device may detect in an exhaustive manner whether each 3D point in the global model intersects with any of the plurality of light rays, thereby determining the target 3D point in the global model passed by the light ray.
[0110] In another possible embodiment, the space where the global model is located can be divided into a number of voxels. Voxel can be understood as the smallest unit of digital data in the three-dimensional space segmentation, which is conceptually similar to the smallest unit of two-dimensional space - pixel, which is used in the image data of two-dimensional computer images. Voxel represents a three-dimensional area with a constant scalar or vector. In order to reduce the computational complexity and improve the computational efficiency, in the process of determining the target three-dimensional point, the electronic device can first detect the target voxel passed by the light in the several voxels, and then further determine the target three-dimensional point in the target voxel that intersects with the light; since the area represented by a single voxel is larger than a single three-dimensional point, the method of first determining the target voxel and then determining the target three-dimensional point can significantly reduce the amount of computation and improve the computational efficiency compared to the above-mentioned exhaustive method.
[0111] In some embodiments, after determining the target 3D point in the global model passed by the light, the electronic device can reduce the weight of the target 3D point, and then delete the target 3D point if the reduced weight of the target 3D point satisfies a noise deletion condition. To avoid accidental deletion, the detection of noise points in this embodiment is a continuous process. If a 3D point is a noise point, the weight of the 3D point can be reduced multiple times through multiple scanning processes until the modified weight of the 3D point satisfies the noise deletion condition, thereby accurately deleting the noise point after multiple verifications and improving the accuracy of the deletion results. Exemplarily, the noise deletion condition indicates that the weight of the 3D point is less than a preset threshold.
[0112] In one possible implementation, when a smaller weight indicates a greater possibility that a three-dimensional point is a noise point, the electronic device may subtract a preset value from the weight of the target three-dimensional point; further, if the reduced weight of the target three-dimensional point is less than a weight threshold, the electronic device may delete the target three-dimensional point.
[0113] Exemplarily, at least one of the weight threshold and the preset value (i.e., the reduction ratio) can be set by the user according to actual needs. The user can input a specific value based on his or her own experience, or some recommended values can be given for the user to choose based on the actual application scenario.
[0114] In one example, the electronic device is provided with an input device (such as an interactive interface, a keyboard, a mouse, etc.), and the electronic device can receive the weight threshold and the preset value input by the user in the input device.
[0115] In another example, the electronic device responds to a scanning scene instruction input by the user, and obtains multiple recommended values of the weight threshold and / or multiple recommended values of the preset value from pre-stored data according to the scanning scene indicated by the scanning scene instruction; wherein the pre-stored data includes multiple recommended values of the weight threshold and / or multiple recommended values of the preset value under different scanning scenes; then the electronic device displays the multiple recommended values of the weight threshold and / or multiple recommended values of the preset value in the interactive interface for user adjustment; and then, in response to the user's selection operation, it can determine the selected value from the multiple recommended values of the weight threshold, and / or determine the selected value from the multiple candidate values of the preset value.
[0116] Among them, the values of the weight threshold and the preset value will affect the efficiency and accuracy of noise removal.
[0117] In an example, if the weight threshold is set high and the preset value is set low, the weight of the noise point cannot be reduced to less than the weight threshold at one time due to the small preset value, and multiple comparisons are required to delete the noise point. For example, if the preset value is 0.3, the weight threshold is 0.1, and the weight of the noise point is 1, then each time it is determined that the noise point passes through the light, the weight of the noise point is reduced by 0.3 each time, and it needs to be reduced at least 3 times before the noise point can be deleted. The process of multiple comparisons and deletions is conducive to improving the accuracy of noise point deletion, but it reduces the efficiency of noise point deletion to a certain extent.
[0118] In another example, if the weight threshold is set low and the preset value is set high, the weight of the noise point may be reduced to less than the weight threshold after one or fewer times due to the larger preset value. Then, the noise point can be directly deleted through a single or fewer comparison process, thereby improving the efficiency of noise point deletion.
[0119] Therefore, users can set weight thresholds and preset values that meet their needs based on their needs for noise removal efficiency and accuracy.
[0120] In another possible implementation, the starting point or end point of the ray can be a 3D point in the current frame point cloud. That is, the projected rays correspond one-to-one to a number of 3D points in the current frame point cloud. To further precisely modify the weight of the target 3D point, the electronic device can determine the 3D point in the current frame point cloud corresponding to the ray passing through the target 3D point and use the weight of that 3D point in the global model to reduce the weight of the target 3D point. This embodiment adaptively reduces the weight of the target 3D point based on the weight of the 3D point in the current frame point cloud corresponding to the ray, thereby precisely modifying the weight of the target 3D point passed through by different rays.
[0121] In one example, if a larger weight indicates a greater likelihood that a 3D point is a target object, and a smaller weight indicates a greater likelihood that the 3D point is a noise point, the electronic device, after determining the 3D point in the current frame point cloud corresponding to the ray passing through the target 3D point, can use the weight of the 3D point in the global model to reduce the weight of the target 3D point. The larger the weight of the 3D point, the greater the reduction in the weight of the target 3D point. For example, the weight of the 3D point in the global model can be subtracted from the weight of the target 3D point. Another example is that the weight of the target 3D point can be subtracted from the weight of the target 3D point by a value corresponding to the weight of the 3D point in the global model, where the value is positively correlated with the weight of the 3D point. Furthermore, if the reduced weight of the target 3D point is less than a weight threshold, the electronic device can delete the target 3D point. The weight threshold can be set by the user based on actual needs. The user can enter a specific value based on their own experience, or a recommended value can be provided for the user to choose based on actual application scenarios.
[0122] In other words, the greater the weight of the three-dimensional point in the current frame point cloud corresponding to the light passing through the target three-dimensional point, the greater the possibility that the three-dimensional point is the target object, and the more the weight of the target three-dimensional point is reduced; conversely, the smaller the weight of the three-dimensional point in the current frame point cloud corresponding to the light passing through the target three-dimensional point, the smaller the possibility that the three-dimensional point is the target object, and the less the weight of the target three-dimensional point is reduced.
[0123] In some embodiments, different 3D points in the global model have different weights, and the displayed colors of these points are also different, allowing the user to understand in real time the likelihood that each 3D point is a target object or a point of noise. For example, the 3D points in the global model can be displayed in a color gradient, in descending order of weight or descending order of weight; 3D points with different weights are displayed in different colors.
[0124] In some embodiments, the user can select a lock region within the global model based on actual needs. The lock region indicates that any 3D point within the lock region is valid data that the user wishes to obtain, without modifying the weight or deleting it. After projecting the current frame point cloud onto the global model, if the projected current frame point cloud falls within the lock region, no further operations are required.
[0125] In some embodiments, considering that there may be a deleted target 3D point that is not a noise point but is mistakenly judged as a noise point, resulting in accidental deletion, therefore, if at least one frame of point cloud subsequently collected by the point cloud acquisition device contains the deleted target 3D point, the electronic device can perform weight accumulation based on the initial weight of the deleted target 3D point in each frame of point cloud; and then reconstruct the target 3D point in the global model if the accumulated weight of the deleted target 3D point meets the preset reconstruction conditions. In other words, if the deleted target 3D point is included in all the scans collected by the point cloud acquisition device, it means that there is a high possibility that the deleted target 3D point was mistakenly deleted, and the deleted target 3D point can be restored by weight accumulation.
[0126] In one example, the electronic device can reconstruct the target 3D point in the global model if the accumulated weight of the deleted target 3D point is greater than a weight threshold. By accumulating the initial weight, the deleted target 3D point can be restored in the global model through multiple verifications.
[0127] It is not difficult to understand that the solutions described in the above embodiments can be combined when there is no conflict, and they are not listed one by one in the embodiments of the present disclosure.
[0128] In some embodiments, a point cloud processing method includes: obtaining a global model collected by a point cloud collection device; wherein any three-dimensional point in the global model carries a weight, and the weight of any three-dimensional point represents the possibility that the three-dimensional point is a noise point or a target object; if there is a target three-dimensional point in the global model whose weight meets the noise deletion condition, deleting the target three-dimensional point.
[0129] Among them, the above weights can be adjusted according to the above embodiments, or according to the Ai intelligent system (such as reducing the weight of the three-dimensional point when the three-dimensional point is identified as a non-target object), or according to the patient's historical case data, or according to the scanning scene, such as whether it is scanning a dental model or scanning the patient's oral cavity, or according to user-set rules.
[0130] FIG4 is a schematic structural diagram of a device provided by an exemplary embodiment. Referring to FIG4 , at the hardware level, the device includes a processor 402, an internal bus 404, a network interface 406, a memory 408, and a non-volatile memory 410, and may also include hardware required for other services. One or more embodiments of this specification may be implemented based on software, such as the processor 402 reading the corresponding computer program from the non-volatile memory 410 into the memory 408 and then running it. Of course, in addition to software implementation, one or more embodiments of this specification do not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but may also be hardware or logic devices.
[0131] Please refer to FIG5 , the point cloud processing device can be applied to the device shown in FIG4 to implement the technical solution of this specification. The point cloud processing device may include:
[0132] The acquisition module 501 is used to obtain the current frame point cloud collected by the point cloud acquisition device and the global model; wherein, the global model is obtained by fusing the historical frame point clouds collected by the point cloud acquisition device; any three-dimensional point in the global model carries a weight, and the weight of any three-dimensional point represents the possibility that the three-dimensional point is a debris point or a target object.
[0133] The target three-dimensional point determination module 502 is used to project a plurality of rays between the projected current frame point cloud and the point cloud acquisition device after projecting the current frame point cloud into the global model, so as to determine the target three-dimensional points in the global model passed by the rays.
[0134] The weight reduction module 503 is configured to reduce the weight of the target three-dimensional point.
[0135] The target 3D point deletion module 504 is configured to delete the target 3D point if the reduced weight of the target 3D point satisfies a noise point deletion condition.
[0136] In some embodiments, after the acquisition module 501, a weight determination module is further included for determining initial weights of the three-dimensional points in the current frame point cloud. The weight determination module is further configured to update the weights of the three-dimensional points in the current frame point cloud within the projection area of the global model using the initial weights of the three-dimensional points in the current frame point cloud after projecting the current frame point cloud onto the global model.
[0137] In some embodiments, the weight determination module is specifically configured to obtain, for each 3D point in the current frame point cloud, a first adjustment coefficient according to the acquisition information of the 3D point;
[0138] The reference weight is adjusted using the first adjustment coefficient to obtain the initial weight of the three-dimensional point; wherein the first adjustment coefficient is positively correlated with the initial weight.
[0139] The acquisition information of each 3D point includes at least one of the following: a distance between the 3D point and an optimal depth of field of a point cloud acquisition device, a distance between the 3D point and a center of a field of view of the point cloud acquisition device, a distance between the 3D point and a ray projected by the point cloud acquisition device that interpolates the 3D point, or a difference between normal information of the 3D point and normal information of an adjacent 3D point;
[0140] The first adjustment coefficient of the three-dimensional point is negatively correlated with the collected information of the three-dimensional point.
[0141] In some embodiments, the weight determination module is specifically configured to: for each 3D point in the current frame point cloud, obtain a first adjustment coefficient according to the acquisition information of the 3D point;
[0142] and, after performing object recognition processing on the point cloud of the current frame, obtaining a second adjustment coefficient according to the object recognition result corresponding to the three-dimensional point;
[0143] The reference weight is adjusted according to the first adjustment coefficient and the second adjustment coefficient to obtain the initial weight of the three-dimensional point; wherein the second adjustment coefficient is positively correlated with the initial weight, and the second adjustment coefficient of the three-dimensional point whose object recognition result is a target object is greater than the second adjustment coefficient of the three-dimensional point whose object recognition result is a noise point.
[0144] In some embodiments, the starting point of the light ray is one of a first position and a second position, and the ending point of the light ray is the other of the first position and the second position;
[0145] The first position includes one of the following: the position of the projected current frame point cloud, or the result of combining the projected current frame point cloud position with a preset error distance;
[0146] The second position includes one of the following: the position of the lens of the point cloud acquisition device when acquiring the current frame point cloud, or the position of the projected current frame point cloud combined with a preset distance; the preset distance is determined according to the depth of field of the point cloud acquisition device when acquiring the current frame point cloud.
[0147] In some embodiments, the plurality of light rays correspond one-to-one to a plurality of three-dimensional points in the current frame point cloud; the weight reduction module 503 is specifically used to: determine the three-dimensional point in the current frame point cloud corresponding to the light ray passing through the target three-dimensional point, and use the weight of the three-dimensional point in the global model to reduce the weight of the target three-dimensional point.
[0148] In some embodiments, the space where the global model is located is divided into a plurality of voxels; the target three-dimensional point determination module 502 is specifically used to detect the target voxels passed by the light and determine the target three-dimensional points in the target voxels that intersect with the light.
[0149] In some embodiments, a reconstruction module is also included, which is used to accumulate weights based on the initial weights of the deleted target three-dimensional points in each frame of point cloud if at least one frame of point cloud subsequently collected by the point cloud acquisition device contains deleted target three-dimensional points; and reconstruct the target three-dimensional points in the global model if the accumulated weights of the deleted target three-dimensional points meet preset reconstruction conditions.
[0150] In some embodiments, the three-dimensional points in the global model are displayed in a color gradient manner in order of weight from large to small or from small to large; the display colors of three-dimensional points indicated by different weights are different.
[0151] In some embodiments, the noise removal condition indicates that the reduced weight of the target three-dimensional point is less than a weight threshold. The device further includes: an interaction module for obtaining a weight threshold input by a user in an interactive interface; or, in response to a scan scene instruction input by the user, obtaining multiple recommended values of the weight threshold from pre-stored data based on the scan scene indicated by the scan scene instruction; wherein the pre-stored data includes multiple recommended values of the weight threshold for different scan scenes; displaying the multiple recommended values of the weight threshold in the interactive interface; and determining a selected value from the multiple recommended values of the weight threshold in response to a user selection operation.
[0152] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0153] Accordingly, an embodiment of the present application further provides an electronic device, comprising a memory, a processor, and executable instructions stored in the memory and executable on the processor;
[0154] Wherein, the processor implements the steps in the above method when executing the executable instructions.
[0155] Exemplarily, the processor includes but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), or a readily available field-programmable gate array (FPGA).
[0156] Exemplarily, the memory may include at least one type of storage medium, the storage medium including flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), read-only memory (Read-Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable ROM, EEPROM), programmable read-only memory (Programmable ROM, PROM), magnetic memory, disk, optical disk, etc.
[0157] Accordingly, an embodiment of the present application further provides a computer program product, including a computer program, which is used to implement the above method when executed by a processor.
[0158] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory including instructions, is also provided. The instructions are executable by a processor of a device to perform the above method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, or the like.
[0159] A non-transitory computer-readable storage medium enables the terminal to perform the above method when instructions in the storage medium are executed by a processor of the terminal.
[0160] Embodiments of the subject matter and functional operations described in this specification may be implemented in the following: digital electronic circuits, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. Embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible, non-transitory program carrier to be executed by a data processing device or to control the operation of the data processing device. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagation signal, such as a machine-generated electrical, optical, or electromagnetic signal, which is generated to encode information and transmit it to a suitable receiver device for execution by the data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
[0161] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by, and the apparatus can be implemented as, special-purpose logic circuitry, such as an FPGA (Field Programmable Gate Array) or an ASIC (Application Specific Integrated Circuit).
[0162] Computers suitable for executing computer programs include, for example, general-purpose and / or special-purpose microprocessors, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory and / or random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or the computer will be operably coupled to such a mass storage device to receive data from it or transmit data to it, or both. However, a computer does not necessarily have such a device. In addition, a computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device such as a universal serial bus (USB) flash drive, to name a few.
[0163] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and storage devices, including, for example, semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disks or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks. The processor and memory can be supplemented by, or incorporated in, special purpose logic circuitry.
[0164] Although this specification includes many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of specific embodiments of specific inventions. Certain features described in multiple embodiments within this specification may also be implemented in combination in a single embodiment. On the other hand, the various features described in a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. In addition, although features may work in certain combinations as described above and even initially claimed as such, one or more features from the claimed combination may be removed from the combination in some cases, and the claimed combination may point to a sub-combination or a variation of the sub-combination.
[0165] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that these operations be performed in the particular order shown or performed sequentially, or that all illustrated operations be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product, or packaged into multiple software products.
[0166] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the particular order shown or sequential sequence to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.
[0167] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application. Industrial Applicability
[0168] The point cloud processing method, device, equipment and storage medium of the present application can accurately delete noise data after multiple verifications, improve the accuracy of the deletion results, thereby avoiding the accidental deletion of data, and have strong industrial applicability.
Claims
1. A point cloud processing method, comprising: Acquire the current frame point cloud collected by the point cloud collection device and the global model; wherein the global model is obtained by fusing the historical frame point clouds collected by the point cloud collection device; any three-dimensional point in the global model carries a weight, and the weight of any three-dimensional point represents the possibility that the three-dimensional point is a clutter point or a target object; After projecting the current frame point cloud into the global model, projecting a plurality of rays between the projected current frame point cloud and the point cloud acquisition device to determine a target three-dimensional point in the global model passed by the rays; reducing the weight of the target three-dimensional point; If the reduced weight of the target three-dimensional point satisfies the noise point deletion condition, the target three-dimensional point is deleted.
2. The method according to claim 1, further comprising: Determining initial weights of three-dimensional points in the point cloud of the current frame; After projecting the current frame point cloud into the global model, the method further includes: The weights of the three-dimensional points in the current frame point cloud are updated within the projection area of the global model using the initial weights of the three-dimensional points in the current frame point cloud.
3. The method according to claim 2, wherein in the current frame point cloud, determining the initial weights of the three-dimensional points in the current frame point cloud comprises: For each three-dimensional point in the current frame point cloud, obtaining a first adjustment coefficient according to acquisition information of the three-dimensional point; The reference weight is adjusted using the first adjustment coefficient to obtain the initial weight of the three-dimensional point; wherein the first adjustment coefficient is positively correlated with the initial weight.
4. The method according to claim 3, wherein the acquisition information of each 3D point comprises at least one of the following: a distance between the 3D point and an optimal depth of field of a point cloud acquisition device, a distance between the 3D point and a center of a field of view of the point cloud acquisition device, a distance between the 3D point and a ray projected by the point cloud acquisition device that interpolates the 3D point, or a difference between normal information of the 3D point and normal information of its adjacent 3D points; in, The first adjustment coefficient of the three-dimensional point is negatively correlated with the collection information of the three-dimensional point.
5. The method according to claim 1, wherein determining the initial weights of the three-dimensional points in the point cloud of the current frame comprises: For each three-dimensional point in the current frame point cloud, obtaining a first adjustment coefficient according to acquisition information of the three-dimensional point; And, after performing object recognition processing on the current frame point cloud, obtaining a second adjustment coefficient according to the object recognition result corresponding to the three-dimensional point; The reference weight is adjusted according to the first adjustment coefficient and the second adjustment coefficient to obtain the initial weight of the three-dimensional point; wherein the second adjustment coefficient is positively correlated with the initial weight, and the second adjustment coefficient of the three-dimensional point whose object recognition result is the target object is greater than the second adjustment coefficient of the three-dimensional point whose object recognition result is a noise point.
6. The method of claim 1, wherein the starting point of the light ray is one of a first position and a second position, and the ending point of the light ray is the other of the first position and the second position; in, The first position includes one of the following: The position of the projected current frame point cloud, or the result of the projected current frame point cloud position combined with a preset error distance; The second position includes one of the following: the position of the lens of the point cloud acquisition device when acquiring the current frame point cloud, or the position of the projected current frame point cloud combined with a preset distance; the preset distance is determined according to the depth of field of the point cloud acquisition device when acquiring the current frame point cloud.
7. The method according to any one of claims 1 to 6, wherein the plurality of rays correspond one-to-one to a plurality of three-dimensional points in the point cloud of the current frame; The step of reducing the weight of the target three-dimensional point comprises: A 3D point in the current frame point cloud corresponding to a light ray passing through the target 3D point is determined, and a weight of the target 3D point is reduced by using the weight of the 3D point in the global model.
8. The method according to any one of claims 1 to 6, wherein the space where the global model is located is divided into a plurality of voxels; The step of determining the target three-dimensional point in the updated global model passed by the light comprises: The target voxel passed by the light ray is detected, and the target three-dimensional point intersecting with the light ray in the target voxel is determined.
9. The method according to any one of claims 1 to 6, further comprising: If at least one frame of point cloud subsequently collected by the point cloud collection device contains the deleted target three-dimensional point, weight accumulation is performed based on the initial weight of the deleted target three-dimensional point in each frame of point cloud; When the accumulated weight of the deleted target three-dimensional point meets a preset reconstruction condition, the target three-dimensional point is reconstructed in the global model.
10. According to the method described in any one of claims 1 to 6, the three-dimensional points in the global model are displayed in a color gradient manner in the order of weight from large to small or from small to large; the display colors of the three-dimensional points indicated by different weights are different.
11. The method according to any one of claims 1 to 6, wherein the noise removal condition indicates that the reduced weight of the target three-dimensional point is less than a weight threshold; The method further comprises: Get the weight threshold entered by the user in the interactive interface; or In response to a scanning scene instruction input by a user, a plurality of recommended values of a weight threshold are obtained from pre-stored data according to the scanning scene indicated by the scanning scene instruction; wherein the pre-stored data includes a plurality of recommended values of the weight threshold under different scanning scenes; Display multiple recommended values of weight thresholds in the interactive interface; In response to a selection operation by a user, a selected value is determined from a plurality of recommended values of the weight threshold.
12. A point cloud processing method, comprising: Acquire a global model collected by a point cloud collection device; wherein any three-dimensional point in the global model carries a weight, and the weight of any three-dimensional point represents the possibility that the three-dimensional point is a clutter point or a target object; If there is a target three-dimensional point in the global model whose weight satisfies the noise deletion condition, the target three-dimensional point is deleted.
13. A point cloud processing device, comprising: An acquisition module is configured to acquire a current frame point cloud acquired by a point cloud acquisition device and a global model; wherein the global model is obtained by fusing the historical frame point clouds acquired by the point cloud acquisition device; any three-dimensional point in the global model carries a weight, and the weight of any three-dimensional point represents the possibility that the three-dimensional point is a clutter point or a target object; a target three-dimensional point determination module, configured to project a plurality of rays between the projected current frame point cloud and the point cloud acquisition device after projecting the current frame point cloud into the global model, so as to determine the target three-dimensional point in the global model passed by the rays; A weight reduction module, configured to reduce the weight of the target three-dimensional point; The target 3D point deletion module is configured to delete the target 3D point if the reduced weight of the target 3D point satisfies a noise point deletion condition.
14. An electronic device comprising a memory, a processor, and executable instructions stored in the memory and executable on the processor; in, When the processor executes the executable instructions, the steps in the method according to any one of claims 1 to 12 are implemented.
15. A computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, implement the steps of the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Denoising smoothing method of point cloud
CN105096268A
Denoising method and device for laser point cloud, storage medium and electronic equipment
CN114488091A
Point cloud processing method and device, equipment and storage medium
CN116168180A
Method and system for automatically optimizing quality of point cloud data
US20160125226A1
Cited By
Method for tracking trajectory of moving object in transformer substation based on three-dimensional digital model
CN119648738A
