Point cloud data deletion method and device, nonvolatile storage medium and electronic equipment

By determining the reference plane and normal direction during the 3D scanning process and deleting unnecessary point cloud data in real time, it solves the problem of background point cloud data occupying too much computing resources and taking too long to delete, and improves scanning efficiency.

CN118570430APending Publication Date: 2024-08-30CHENGDU XIANLIN 3D TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410629479.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

During the three-dimensional scanning process, the point cloud data in the background part takes up too much computing resources, and deleting this data takes too long. Existing technology cannot effectively solve this problem.

Method used

During the scanning process, by obtaining the point cloud data to be processed, the reference plane and its normal direction are determined, and based on the connection direction and the normal direction, it is decided whether to delete any point in the point cloud data to achieve real-time removal of unnecessary point clouds. data.

Benefits of technology

It effectively reduces the computing resources occupied by noise points in point cloud data, improves the efficiency of the scanning process, and reduces the time consumption of deleting background area data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570430A
    Figure CN118570430A
Patent Text Reader

Abstract

The invention discloses a point cloud data deleting method and device, a nonvolatile storage medium and electronic equipment. The method comprises the following steps: in a scanning process, acquiring to-be-processed point cloud data, and determining a reference plane and a normal direction of the reference plane; determining a preset point in the reference plane; and determining a connection line between any point in the to-be-processed point cloud data and a preset point, and determining whether to delete the any point according to the direction of the connection line and the normal direction. According to the method and the device, the technical problems that the scanning process occupies too much computing power resources and the time consumption for deleting the background region data is too long due to the fact that the background region data in the first type of point cloud data is stored after the scanning process is finished in the related technology are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of scanning data processing, and more specifically, to a point cloud data deletion method, device, non-volatile storage medium and electronic device. Background Art

[0002] In the related art, when a 3D scanner is used to scan an object, the shape of the object is usually inconsistent with the shape of the scanning range of the 3D scanner, so the point cloud data obtained by scanning will include point cloud data of the background part. In the related art, it is usually chosen to delete unnecessary data by using grid editing and other methods on all point cloud data after the entire scanning process is completed. The problem with this method is that the point cloud data of the background part will occupy too much computing power resources, and it takes too long to delete these unnecessary point cloud data after the scanning is completed.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a point cloud data deletion method, device, non-volatile storage medium and electronic device to at least solve the technical problem that the scanning process occupies too much computing power resources and the deletion of background area data takes too long due to the fact that the background area data in the first type of point cloud data is deleted after the scanning process in the related technology.

[0005] According to one aspect of an embodiment of the present application, a point cloud data deletion method is provided, including: during a scanning process, obtaining point cloud data to be processed, and determining a reference plane and a normal direction of the reference plane; determining a preset point in the reference plane; for any point in the point cloud data to be processed, determining a connection line between the arbitrary point and the preset point, and determining whether to delete the arbitrary point based on the direction of the connection line and the normal direction.

[0006] Optionally, determining whether to delete any point based on the direction of the connecting line and the normal direction includes: determining the angle between the direction of the connecting line and the normal direction, wherein the direction of the connecting line is from a preset point to an arbitrary point; retaining any point in the point cloud data to be processed whose corresponding angle is less than 90°, and deleting any point in the point cloud data to be processed whose corresponding angle is not less than 90°.

[0007] Optionally, retaining points in the point cloud data to be processed whose corresponding angles are less than 90°, and deleting points in the point cloud data to be processed whose corresponding angles are not less than 90° include: in the case where there are multiple reference planes, determining second-category points and first-category points in the point cloud data to be processed according to the angles corresponding to the points in the point cloud data to be processed and each reference plane, wherein the second-category points are points whose corresponding angles are less than 90°, and the first-category points are points whose corresponding angles are less than 90° do not exist; deleting the first-category points in the point cloud data to be processed, and retaining the second-category points.

[0008] Optionally, determining the reference plane and the normal direction of the reference plane includes: determining the main direction of the normal of the point cloud data to be processed; using the main direction as the normal direction of the reference plane; determining the position information of any point in the reference plane, and determining the reference plane based on the position information and the normal direction.

[0009] Optionally, determining the reference plane and the normal direction of the reference plane includes: determining a plurality of marker points in the point cloud data to be processed; and determining the reference plane and the normal direction of the reference plane based on the plurality of marker points.

[0010] Optionally, determining the reference plane and the normal direction of the reference plane based on multiple marker points includes: selecting a first marker point, a second marker point and a third marker point from the multiple marker points according to a selection instruction, wherein the first marker point, the second marker point and the third marker point are not on the same straight line; determining position information of the first marker point, the second marker point and the third marker point; determining position information of the reference plane based on the respective position information of the first marker point, the second marker point and the third marker point; determining the selection order of the first marker point, the second marker point and the third marker point, and determining the normal direction of the reference plane based on the selection order; determining the reference plane based on the normal direction and position information of the reference plane.

[0011] Optionally, determining the reference plane and the normal direction of the reference plane includes: displaying the point cloud data to be processed in a three-dimensional scene window; generating a target reference line in the three-dimensional scene window according to the operation instructions of the target object, wherein the target reference line includes a straight line or a broken line; determining the observation angle of the three-dimensional scene window, and the main direction of the normal of the point cloud data to be processed; determining the position information of the reference plane in the three-dimensional scene window according to the observation angle and the target reference line, and determining the normal direction of the reference plane according to the main direction of the normal of the point cloud data to be processed; determining the reference plane in the three-dimensional scene window according to the position information of the reference plane and the normal direction of the reference plane.

[0012] Optionally, determining the position information of the reference plane in the three-dimensional scene window based on the observation angle and the target reference line includes: when the target reference line is a straight line, determining the position information of the reference plane based on the observation angle and the target reference line, wherein the target reference line is located in the reference plane; when the target reference line is a broken line, determining the position information of the reference plane corresponding to each line segment based on the observation angle and each line segment in the broken line, wherein each line segment is located in the corresponding reference plane.

[0013] Optionally, the point cloud data deletion method further includes: when the angle between the normal direction of the reference plane and the main direction of the normal of the point cloud data to be processed is not within a preset value range, inverting the reference plane, thereby switching the normal direction of the reference plane.

[0014] According to another aspect of an embodiment of the present application, a scanner is also provided, including: a scanning module and a processor, wherein the scanning module is used to scan the scanned object during the scanning process to obtain point cloud data to be processed; the processor is used to obtain the point cloud data to be processed from the scanning module, and determine the reference plane and the normal direction of the reference plane; determine a preset point in the reference plane; for any point in the point cloud data to be processed, determine a connecting line between the arbitrary point and the preset point; and determine whether to delete any point based on the direction of the connecting line and the normal direction.

[0015] According to another aspect of an embodiment of the present application, a point cloud data deletion device is also provided, including: a first processing module, used to obtain point cloud data to be processed during a scanning process, and determine a reference plane and a normal direction of the reference plane; a second processing module, used to determine a preset point in the reference plane; a third processing module, used to determine a connection line between any point and the preset point in the point cloud data to be processed; and a fourth processing module, used to determine whether to delete any point based on the direction of the connection line and the normal direction.

[0016] According to another aspect of an embodiment of the present application, a non-volatile storage medium is further provided, in which a program is stored, wherein when the program is running, a device where the non-volatile storage medium is located is controlled to execute a point cloud data deletion method.

[0017] According to another aspect of an embodiment of the present application, there is further provided an electronic device, including: a memory and a processor, the processor being configured to run a program stored in the memory, wherein the point cloud data reduction method is executed when the program is run.

[0018] According to another aspect of an embodiment of the present application, a computer program product is also provided, including a computer program, which implements a point cloud data reduction method when executed by a processor.

[0019] In an embodiment of the present application, during the scanning process, the point cloud data to be processed is obtained, and the reference plane and the normal direction of the reference plane are determined; a preset point is determined in the reference plane; for any point in the point cloud data to be processed, the connection line between the arbitrary point and the preset point is determined, and whether to delete the arbitrary point is determined based on the direction of the connection line and the normal direction. By determining the reference plane during the scanning process and determining which points in the point cloud data to be processed need to be deleted based on the reference plane, the purpose of clearing unnecessary points in the point cloud data to be processed in real time during the scanning process is achieved, thereby achieving the technical effect of efficiently deleting the noise corresponding to the background area in the point cloud data and reducing the computing power resources occupied by the noise, thereby solving the technical problem that the scanning process occupies too much computing power resources and the deletion of the background area data takes too long due to the fact that the background area data in the first type of point cloud data is generated after the scanning process in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0021] Figure 1 It is a structural schematic diagram of a computer terminal (mobile terminal) provided according to an embodiment of the present application;

[0022] Figure 2 It is a flowchart of a point cloud data deletion method provided according to an embodiment of the present application;

[0023] Figure 3 is a schematic diagram of a reference plane and a normal direction of the reference plane provided according to an embodiment of the present application;

[0024] Figure 4 is a schematic diagram of a method for determining the normal direction of a reference plane provided according to an embodiment of the present application;

[0025] Figure 5 is a schematic diagram of the structure of a scanner provided according to an embodiment of the present application;

[0026] Figure 6 It is a structural schematic diagram of a point cloud data deletion device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] In the related art, when a 3D scanner is used to scan an object, the shape of the object is usually inconsistent with the shape of the scanning range of the 3D scanner, so the point cloud data obtained by scanning will include point cloud data of the background part. In the related art, it is usually chosen to delete unnecessary data by using grid editing and other methods on all point cloud data after receiving the entire scanning process. The problem with this method is that the point cloud data of these background parts will occupy too much computing power resources, and it takes too long to delete these unnecessary point cloud data after the scanning is completed.

[0030] In addition, the noise points corresponding to the background area in the point cloud data to be processed are usually located outside the object to be scanned. Therefore, the coverage range of the point cloud data to be processed is larger than the actual range of the object to be scanned, which will result in more computing power resources being consumed when performing operations such as stitching on the point cloud data to be processed. Moreover, as the distribution range of the noise points becomes wider, the coverage range of the point cloud data to be processed will also become wider, which will lead to more computing power resources being consumed.

[0031] In order to solve the above problems, relevant solutions are provided in the embodiments of the present application, which are described in detail below.

[0032] According to an embodiment of the present application, a method embodiment of a point cloud data deletion method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0033] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing a point cloud data deletion method. Figure 1 As shown, the computer terminal 10 (or mobile device 10) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0034] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0035] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the point cloud data deletion method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the above-mentioned point cloud data deletion method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0036] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0037] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).

[0038] In the above operating environment, the present application embodiment provides a point cloud data deletion method, such as Figure 2 As shown, the method comprises the following steps:

[0039] Step S202, during the scanning process, obtaining the point cloud data to be processed, and determining the reference plane and the normal direction of the reference plane;

[0040] In the technical solution provided in step S202, the relative position relationship between each point in the point cloud data to be processed and the reference plane can be determined according to the reference plane and the normal direction of the reference plane, so as to determine whether the point is a point to be retained. Specifically, Figure 3As shown, the surface of the two surfaces of the reference plane that is oriented in the same direction as the positive normal direction can be defined as the front surface, and the surface opposite to the positive normal direction can be defined as the back surface. For each point in the point cloud data to be processed, when the relative position relationship between the point and the reference plane is that the point is located on the front side of the reference plane, the point can be considered to be a point that needs to be retained. When the point is located in the reference plane or on the reverse side of the reference plane, the point can be considered to be a noise point that needs to be deleted. In this way, the deletion of noise points in the point cloud data to be processed can be completed without consuming too much computing power resources, especially the noise points that are far away from the point cloud data of the object to be scanned can be effectively deleted, thereby effectively reducing the consumption of computing power resources in processes such as stitching.

[0041] In some embodiments of the present application, a reference plane may be fitted according to the point cloud data to be processed. Specifically, determining the reference plane and the normal direction of the reference plane according to the point cloud data to be processed includes: determining the main direction of the normal of the point cloud data to be processed; using the main direction as the normal direction of the reference plane; determining the position information of any point in the reference plane, and determining the reference plane according to the position information and the normal direction.

[0042] Since the number of points corresponding to the scanned object in the point cloud data to be processed is the majority, determining the normal direction of the reference plane according to the normal principal direction of the point cloud data to be processed can avoid the points to be retained being misjudged as points to be deleted.

[0043] As an optional implementation, the position information of any point in the reference plane can be set by the user, or the position information of the point in the reference plane can be determined based on the average value of the position information of each point in the point cloud data to be processed.

[0044] In addition, after the reference plane is determined, the display area of ​​the reference plane can be further determined in the reference plane. Specifically, the above display area can be determined according to the projection area of ​​the point cloud data to be processed in the reference plane along the normal of the reference plane. Alternatively, the model bounding box of the point cloud data to be processed can be determined, and the display area of ​​the reference plane can be determined according to the intersection line between the model bounding box and the reference plane. When the reference plane needs to be displayed later, only the reference plane of the display area will be displayed. To facilitate subsequent calculations, the center point of the reference plane display area can be determined as the preset point in step S204.

[0045] In some embodiments of the present application, Figure 4 As shown, multiple marker points may be determined in the point cloud data to be processed, and the reference plane and the normal direction of the reference plane may be determined based on the multiple marker points.

[0046] Specifically, Figure 4As shown, determining a reference plane and a normal direction of the reference plane based on a plurality of marker points includes: selecting a first marker point, a second marker point and a third marker point from a plurality of marker points according to a selection instruction, wherein the first marker point, the second marker point and the third marker point are not on the same straight line; determining position information of the first marker point, the second marker point and the third marker point; determining position information of the reference plane based on respective position information of the first marker point, the second marker point and the third marker point; determining a selection order of the first marker point, the second marker point and the third marker point, and determining the normal direction of the reference plane based on the selection order; determining the reference plane based on the normal direction and position information of the reference plane.

[0047] Specifically, the right-hand rule can be used to determine the direction pointed by the right thumb as the normal direction according to the selection order of the first marker point, the second marker point and the third marker point. The selection order of the first marker point, the second marker point and the third marker point is used to determine the directions of the remaining four fingers.

[0048] In some embodiments of the present application, the reference plane and the normal direction of the reference plane can also be determined according to relevant operations of the user. Specifically, in this case, determining the reference plane and the normal direction of the reference plane includes: displaying the point cloud data to be processed in the three-dimensional scene window; generating a target reference line in the three-dimensional scene window according to the operation instructions of the target object, wherein the target reference line includes a straight line or a broken line; determining the observation angle of the three-dimensional scene window, and the main direction of the normal of the point cloud data to be processed; determining the position information of the reference plane in the three-dimensional scene window according to the observation angle and the target reference line, and determining the normal direction of the reference plane according to the main direction of the normal of the point cloud data to be processed; determining the reference plane in the three-dimensional scene window according to the position information of the reference plane and the normal direction of the reference plane.

[0049] Optionally, determining the position information of the reference plane in the three-dimensional scene window based on the observation angle and the target reference line includes: when the target reference line is a straight line, determining the position information of the reference plane based on the observation angle and the target reference line, wherein the target reference line is located in the reference plane; when the target reference line is a broken line, determining the position information of the reference plane corresponding to each line segment based on the observation angle and each line segment in the broken line, wherein each line segment is located in the corresponding reference plane.

[0050] As an optional implementation, taking the target baseline as the target straight line as an example, when displaying the point cloud data to be processed to the user through the three-dimensional scene window, the observation angle must first be determined to determine which side of the point cloud data to be processed is displayed to the user in the three-dimensional scene window. The observation angle can be determined by setting a virtual camera and according to the relevant parameters of the virtual camera. For example, the shooting angle of the virtual camera can be used as the observation angle. At this time, the user can draw a straight line in the three-dimensional scene window, and then the scanner or the electronic device connected to the scanner can determine the position of the reference plane according to the straight line drawn by the user and the shooting angle of the virtual camera. Specifically, when a plane is regarded as a straight line, it means that the plane is parallel to the observation angle, that is, parallel to the axis of the virtual camera. Therefore, the reference plane can be determined according to the shooting angle of the virtual camera at this time and the position of the straight line in the three-dimensional scene window.

[0051] In some embodiments of the present application, when determining the normal direction of a reference plane, if the angle between the normal direction of the reference plane and the main direction of the normal of the point cloud data to be processed is not within a preset value range, the reference plane is reversed to switch the normal direction of the reference plane.

[0052] The preset value range may be an acute angle or other angle value range set by the user. The angle between the normal direction of the reference plane and the main direction of the normal of the point cloud data to be processed is limited to ensure that most of the points in the point cloud data to be processed are located on the front side of the reference plane.

[0053] Step S204, determining a preset point in the reference plane;

[0054] In the technical solution provided in step S204, the preset point may be any point on the front surface of the reference plane.

[0055] Step S206, for any point in the point cloud data to be processed, determining a connection line between the any point and a preset point;

[0056] Step S208, determining whether to delete any point based on the direction of the connecting line and the normal direction.

[0057] In the technical solution provided in step S208, after determining the connecting line corresponding to the arbitrary point, the angle between the connecting line and the normal direction of the reference plane can be further determined, and then the relative position relationship between the point and the reference plane can be determined according to the angle. Specifically, determining whether to delete the arbitrary point based on the direction of the connecting line and the normal direction includes: determining the angle between the direction of the connecting line and the normal direction, wherein the direction of the connecting line is from the preset point to the arbitrary point; retaining the arbitrary point whose corresponding angle in the point cloud data to be processed is less than 90°, and deleting the arbitrary point whose corresponding angle in the point cloud data to be processed is not less than 90°.

[0058] When the angle is less than 90°, it can be considered that the point is located on the front side of the reference plane and needs to be retained. Otherwise, it needs to be deleted.

[0059] It should be noted that the direction of the connection line can also be from any point to the preset point. In this case, the angle corresponding to the point to be retained is not less than 90°, and the angle corresponding to the point to be deleted is less than 90°.

[0060] In some embodiments of the present application, retaining points in the point cloud data to be processed whose corresponding angles are less than 90°, and deleting points in the point cloud data to be processed whose corresponding angles are not less than 90° include: in the case where the number of reference planes is multiple, determining second-category points and first-category points in the point cloud data to be processed according to the angles corresponding to the points in the point cloud data to be processed and the respective reference planes, wherein the second-category points are points whose corresponding angles are less than 90°, and the first-category points are points whose corresponding angles are less than 90° do not exist; deleting the first-category points in the point cloud data to be processed, and retaining the second-category points.

[0061] As an optional implementation, when the size and shape of the scanned object are known quantities, multiple reference planes can be determined based on the known size and shape of the scanned object, and the coordinate value range of the points to be retained can be determined based on the positions and normal directions of the multiple reference planes. For example, it can be determined that multiple reference planes form a cube, and the normal directions of each reference plane point to the inside of the cube. At this time, it can be determined that the points to be retained are all located inside the cube, so that the coordinate value range of the points to be retained in the preset three-dimensional space coordinate system can be determined.

[0062] By adopting the method of obtaining the point cloud data to be processed and determining the reference plane and the normal direction of the reference plane during the scanning process; determining the preset point in the reference plane; determining the connection line between any point and the preset point for any point in the point cloud data to be processed, and determining whether to delete any point according to the direction of the connection line and the normal direction, by determining the reference plane during the scanning process and determining which points in the point cloud data to be processed need to be deleted according to the reference plane, the purpose of clearing unnecessary points in the point cloud data to be processed in real time during the scanning process is achieved, thereby achieving the technical effect of efficiently deleting the noise points corresponding to the background area in the point cloud data and reducing the computing power resources occupied by the noise points, thereby solving the technical problem that the scanning process occupies too many computing power resources and the deletion of the background area data takes too long due to the fact that the background area data in the first type of point cloud data is deleted after the scanning process in the related technology.

[0063] In addition, by using the point cloud data deletion method provided in the present application, there is no need to perform complex calculations when deleting point cloud data. It is only necessary to determine the reference plane and the normal direction of the reference plane to efficiently delete the noise points that need to be deleted, especially the noise points with a wide distribution range and a long distance between the points corresponding to the scanned object. This can effectively reduce the consumption of computing power and storage resources in the subsequent processing process.

[0064] An embodiment of the present application provides a scanner. Figure 5 This is a schematic diagram of the structure of the scanner. Figure 5 It can be seen that the scanner includes a scanning module 50 and a processor 52, wherein the scanning module 50 is used to scan the object to be scanned during the scanning process, so as to obtain the point cloud data to be processed; the processor 52 is used to obtain the point cloud data to be processed from the scanning module 50, and determine the reference plane and the normal direction of the reference plane; determine the preset point in the reference plane; for any point in the point cloud data to be processed, determine the connection line between the arbitrary point and the preset point; and determine whether to delete any point based on the direction of the connection line and the normal direction.

[0065] The present application embodiment provides a point cloud data deletion device, Figure 6 is a schematic diagram of the structure of the device. Figure 6 It can be seen that the device includes: a first processing module 60, which is used to obtain the point cloud data to be processed during the scanning process, and determine the reference plane and the normal direction of the reference plane; a second processing module 62, which is used to determine the preset point in the reference plane; a third processing module 64, which is used to determine the connection line between any point in the point cloud data to be processed and the preset point; a fourth processing module 66, which is used to determine whether to delete any point based on the direction of the connection line and the normal direction.

[0066] In some embodiments of the present application, the first processing module 60 determines the reference plane and the normal direction of the reference plane, including: determining the main direction of the normal of the point cloud data to be processed; using the main direction as the normal direction of the reference plane; determining the position information of any point in the reference plane, and determining the reference plane based on the position information and the normal direction.

[0067] In some embodiments of the present application, the first processing module 60 determines the reference plane and the normal direction of the reference plane, including: determining multiple marker points in the point cloud data to be processed; and determining the reference plane and the normal direction of the reference plane based on the multiple marker points.

[0068] In some embodiments of the present application, the first processing module 60 determines the reference plane and the normal direction of the reference plane based on multiple marker points, including: selecting a first marker point, a second marker point and a third marker point from multiple marker points according to a selection instruction, wherein the first marker point, the second marker point and the third marker point are not on the same straight line; determining the position information of the first marker point, the second marker point and the third marker point; determining the position information of the reference plane based on the respective position information of the first marker point, the second marker point and the third marker point; determining the selection order of the first marker point, the second marker point and the third marker point, and determining the normal direction of the reference plane based on the selection order; determining the reference plane based on the normal direction and position information of the reference plane.

[0069] In some embodiments of the present application, the first processing module 60 determines the reference plane and the normal direction of the reference plane, including: displaying the point cloud data to be processed in the three-dimensional scene window; generating a target reference line in the three-dimensional scene window according to the operation instructions of the target object, wherein the target reference line includes a straight line or a broken line; determining the observation angle of the three-dimensional scene window, and the main direction of the normal of the point cloud data to be processed; determining the position information of the reference plane in the three-dimensional scene window according to the observation angle and the target reference line, and determining the normal direction of the reference plane according to the main direction of the normal of the point cloud data to be processed; determining the reference plane in the three-dimensional scene window according to the position information of the reference plane and the normal direction of the reference plane.

[0070] In some embodiments of the present application, the first processing module 60 determines the position information of the reference plane in the three-dimensional scene window according to the observation angle and the target reference line, including: when the target reference line is a straight line, determining the position information of the reference plane according to the observation angle and the target reference line, wherein the target reference line is located in the reference plane; when the target reference line is a broken line, determining the position information of the reference plane corresponding to each line segment according to the observation angle and each line segment in the broken line, wherein each line segment is located in the corresponding reference plane.

[0071] In some embodiments of the present application, the first processing module 60 is also used to: when the angle between the normal direction of the reference plane and the main direction of the normal of the point cloud data to be processed is not within a preset value range, reverse the reference plane, thereby switching the normal direction of the reference plane.

[0072] In some embodiments of the present application, the fourth processing module 66 determines whether to delete any point based on the direction of the connecting line and the normal direction, including: determining the angle between the direction of the connecting line and the normal direction, wherein the direction of the connecting line is from a preset point to an arbitrary point; retaining any point in the point cloud data to be processed whose corresponding angle is less than 90°, and deleting any point in the point cloud data to be processed whose corresponding angle is not less than 90°.

[0073] In some embodiments of the present application, the fourth processing module 66 retains points in the point cloud data to be processed whose corresponding angles are less than 90°, and deletes points in the point cloud data to be processed whose corresponding angles are not less than 90°, including: in the case where the number of reference planes is multiple, according to the angles corresponding to the points in the point cloud data to be processed and each reference plane, determining the second category of points and the first category of points in the point cloud data to be processed, wherein the second category of points are points with corresponding angles less than 90°, and the first category of points are points with no corresponding angles less than 90°; deleting the first category of points in the point cloud data to be processed, and retaining the second category of points.

[0074] It should be noted that the various modules in the above-mentioned point cloud data deletion device can be program modules (for example, a set of program instructions that implement a certain specific function) or hardware modules. For the latter, it can be expressed in the following forms, but is not limited to this: the expression form of each of the above-mentioned modules is a processor, or the functions of each of the above-mentioned modules are implemented by a processor.

[0075] According to an embodiment of the present application, a non-volatile storage medium is also provided, in which a program is stored, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the following point cloud data deletion method: during the scanning process, the point cloud data to be processed is obtained, and the reference plane and the normal direction of the reference plane are determined; a preset point is determined in the reference plane; for any point in the point cloud data to be processed, a connecting line between the arbitrary point and the preset point is determined, and whether to delete the arbitrary point is determined based on the direction of the connecting line and the normal direction, wherein the direction of the connecting line is from the preset point to the arbitrary point.

[0076] According to an embodiment of the present application, an electronic device is also provided, including: a memory and a processor, the processor being used to run a program stored in the memory, wherein the following point cloud data deletion method is executed when the program is running: during a scanning process, the point cloud data to be processed is obtained, and a reference plane and a normal direction of the reference plane are determined; a preset point is determined in the reference plane; for any point in the point cloud data to be processed, a connecting line between the arbitrary point and the preset point is determined, and whether to delete the arbitrary point is determined based on the direction of the connecting line and the normal direction, wherein the direction of the connecting line is from the preset point to the arbitrary point.

[0077] According to an embodiment of the present application, a computer program product is also provided, including a computer program. When the computer program is executed by a processor, the following point cloud data deletion method is implemented: during the scanning process, the point cloud data to be processed is obtained, and the reference plane and the normal direction of the reference plane are determined; a preset point is determined in the reference plane; for any point in the point cloud data to be processed, a connecting line between the arbitrary point and the preset point is determined, and whether to delete the arbitrary point is determined based on the direction of the connecting line and the normal direction, wherein the direction of the connecting line is from the preset point to the arbitrary point.

[0078] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0079] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, 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 through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

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

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

[0082] If the integrated unit is implemented in the form of a software functional unit 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 application, or the part that contributes to the relevant technology or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes 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 application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0083] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A point cloud data deletion method, characterized in that: include: During the scanning process, the point cloud data to be processed is obtained, and a reference plane and a normal direction of the reference plane are determined; Determining a preset point in the reference plane; For any point in the point cloud data to be processed, determining a connection line between the any point and the preset point; Determine whether to delete the arbitrary point according to the direction of the connecting line and the normal direction.

2. The point cloud data deletion method according to claim 1, characterized in that: Determining whether to delete the arbitrary point according to the direction of the connecting line and the normal direction includes: Determine an angle between the direction of the connecting line and the normal direction, wherein the direction of the connecting line is from the preset point to the arbitrary point; The arbitrary points in the point cloud data to be processed whose corresponding angles are less than 90° are retained, and the arbitrary points in the point cloud data to be processed whose corresponding angles are not less than 90° are deleted.

3. The point cloud data deletion method according to claim 2, characterized in that: Retaining the points whose corresponding angles are less than 90° in the point cloud data to be processed, and deleting the points whose corresponding angles are not less than 90° in the point cloud data to be processed includes: In the case where there are multiple reference planes, second-category points and first-category points are determined in the point cloud data to be processed according to the angles corresponding to the points in the point cloud data to be processed and the respective reference planes, wherein the second-category points are points having corresponding angles less than 90°, and the first-category points are points having no corresponding angles less than 90°; The first type of points are deleted from the point cloud data to be processed, and the second type of points are retained.

4. The point cloud data deletion method according to claim 1, characterized in that: Determining a reference plane and a normal direction of the reference plane includes: Determining the main direction of the normal of the point cloud data to be processed; Taking the principal direction as the normal direction of the reference plane; The position information of any point in the reference plane is determined, and the reference plane is determined according to the position information and the normal direction.

5. The point cloud data deletion method according to claim 1, characterized in that: Determining a reference plane and a normal direction of the reference plane includes: Determining a plurality of marker points in the point cloud data to be processed; The reference plane and a normal direction of the reference plane are determined according to the multiple marking points.

6. The point cloud data deletion method according to claim 5, characterized in that: Determining the reference plane and the normal direction of the reference plane according to the multiple marking points includes: Selecting a first marker point, a second marker point and a third marker point from the plurality of marker points according to a selection instruction, wherein the first marker point, the second marker point and the third marker point are not on the same straight line; Determine position information of the first marker point, the second marker point, and the third marker point; Determine the position information of the reference plane according to the position information of the first marking point, the second marking point and the third marking point; Determining a selection order of the first marking point, the second marking point, and the third marking point, and determining a normal direction of the reference plane according to the selection order; The reference plane is determined according to the normal direction of the reference plane and the position information.

7. The point cloud data deletion method according to claim 1, characterized in that: Determining a reference plane and a normal direction of the reference plane includes: Display the point cloud data to be processed in a three-dimensional scene window; Generate a target reference line in the three-dimensional scene window according to an operation instruction of the target object, wherein the target reference line includes a straight line or a broken line; Determining the viewing angle of the three-dimensional scene window and the main direction of the normal of the point cloud data to be processed; Determining the position information of the reference plane in the three-dimensional scene window according to the observation angle and the target reference line, and determining the normal direction of the reference plane according to the main direction of the normal direction of the point cloud data to be processed; The reference plane is determined in the three-dimensional scene window according to the position information of the reference plane and the normal direction of the reference plane.

8. The point cloud data deletion method according to claim 1, characterized in that: Determining the position information of the reference plane in the three-dimensional scene window according to the observation angle and the target reference line includes: When the target reference line is a straight line, determining the position information of the reference plane according to the observation angle and the target reference line, wherein the target reference line is located in the reference plane; In the case where the target reference line is a broken line, the position information of the reference plane corresponding to each line segment is determined according to the observation angle and each line segment in the broken line, wherein each line segment is located in the corresponding reference plane.

9. The point cloud data deletion method according to any one of claims 1 to 8, characterized in that: The point cloud data deletion method further includes: When the angle between the normal direction of the reference plane and the main direction of the normal of the point cloud data to be processed is not within a preset value range, the reference plane is reversed to switch the normal direction of the reference plane.

10. A scanner, characterized in that: It includes a scanning module and a processor, wherein the scanning module is used to scan the object to be scanned, so as to obtain the point cloud data to be processed; the processor is used to obtain the point cloud data to be processed from the scanning module during the scanning process, and determine the reference plane and the normal direction of the reference plane; determine the preset point in the reference plane; for any point in the point cloud data to be processed, determine the connection line between the arbitrary point and the preset point; and determine whether to delete the arbitrary point based on the direction of the connection line and the normal direction.

11. A point cloud data deletion device, characterized in that: include: A first processing module is used to obtain the point cloud data to be processed during the scanning process, and determine the reference plane and the normal direction of the reference plane; A second processing module, used for determining a preset point in the reference plane; A third processing module, used for determining, for any point in the point cloud data to be processed, a connection line between the any point and the preset point; The fourth processing module is used to determine whether to delete the arbitrary point according to the direction of the connecting line and the normal direction.

12. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the point cloud data deletion method according to any one of claims 1 to 9.

13. An electronic device, characterized in that: include: A memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the point cloud data reduction method according to any one of claims 1 to 9 is executed when the program is run.

14. A computer program product, characterized in that The method comprises a computer program, which, when executed by a processor, implements the point cloud data reduction method according to any one of claims 1 to 9.