Dense point cloud target ball detection method and device
Through point cloud color filtering, block processing and Euclidean clustering methods, combined with normal vector calculation, the problem of false detection and large calculation amount of target ball detection in dense point clouds is solved, and fast and accurate detection results are achieved.
Patent Information
- Application Number
- CN202410913651.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-27
AI Technical Summary
Existing target ball detection algorithms have misdetection problems and huge calculation workloads in large-scale, dense point clouds. They are especially inaccurate when the target is blocked, are sensitive to parameters, and are difficult to adapt to the needs of different scenarios.
By acquiring dense point clouds and performing color filtering and block processing, a random sampling consistent algorithm is used to fit planes and cylinders, and combined with Euclidean clustering and normal vector calculations, the coordinate points with dense distribution of point clouds are used as the center coordinates of the sphere to reduce the computational cost resource requirements and improve detection efficiency.
It realizes the rapid and accurate detection of target balls in large-scale dense point clouds under limited computing resources, reduces the false detection rate and computational complexity, and adapts to the needs of different scenarios.
Smart Images

Figure CN118710706A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of target ball detection, and in particular to a method and device for detecting a target ball of a dense point cloud. Background Art
[0002] The target ball algorithm is one of the hot point cloud processing algorithms, and is often used in popular fields such as 3D reconstruction, building information modeling, virtual reality and enhancement. Existing target ball detection algorithms include Euclidean clustering, Hough transform and other algorithms. The Euclidean clustering algorithm is an intuitive and simple clustering method that is easy to understand and implement. It is not only suitable for sphere detection, but also can be used to detect targets of other shapes, and does not require prior knowledge such as the size and number of spheres. The target ball detection algorithm based on Hough changes maps the sphere parameters to the parameter space, and can detect spheres by finding peaks in the parameter space, and can detect spheres of different sizes and positions.
[0003] The clustering algorithm based on Euclidean transformation is sensitive to parameters, such as distance threshold, etc. Different parameters need to be set based on experience in different scenes and point cloud data. There are many false detection problems when processing dense point clouds, and the detection is inaccurate when the target is occluded. The target ball detection algorithm based on Hough transform is more sensitive to parameters, such as threshold, resolution and other parameters need to be set based on experience in different scenes. The calculation amount is large, which is not suitable for processing large-scale point clouds and scenes with high real-time requirements, and the detection is inaccurate when the target is occluded. Summary of the invention
[0004] The purpose of this application is to overcome some challenges faced by the prior art in detecting target balls in large-scale, dense point clouds: since the volume of the target ball is relatively small (the radius of the target ball in the dense point cloud is 7.5 cm), reducing the density of the point cloud will significantly affect the recognition rate of the sphere, and if the target ball is detected directly in a large-scale, dense point cloud, it will face the problem of huge computational complexity. A method and device for detecting target balls in a dense point cloud are provided.
[0005] In a first aspect, a target ball detection method of a dense point cloud is provided, comprising:
[0006] Obtain a dense point cloud and a target sphere radius, and remove non-white points in the dense point cloud to obtain a first point cloud;
[0007] Dividing the first point cloud into a plurality of point cloud blocks;
[0008] Preprocess each point cloud block separately to obtain a sub-point cloud block that does not contain a plane or a cylinder;
[0009] Calculate the normal vector of each point in the sub-point cloud block;
[0010] All points in the sub-point cloud block are moved along the normal vector direction by the same distance as the radius of the target sphere, and the coordinate points where the point cloud is densely distributed are used as the coordinates of the center of the target sphere.
[0011] Further, the preprocessing includes:
[0012] Fitting a plane and a cylinder based on a random sampling consensus algorithm, and removing point clouds on the plane and the cylinder;
[0013] Use radius filtering to remove scattered points in point cloud blocks;
[0014] Use the Euclidean clustering algorithm to cluster the point cloud blocks to obtain multiple sub-point cloud blocks;
[0015] Voxel filtering is performed on the sub-point cloud block.
[0016] Further, the radius filtering includes:
[0017] Determine whether the number of adjacent points of each point in the point cloud block within the first specified radius circle is less than a first threshold;
[0018] If the number of adjacent points of a point within the first specified radius circle is less than the first threshold, remove the point;
[0019] If the number of neighboring points of a point within the first specified radius circle is greater than or equal to the first threshold, the point is retained.
[0020] Furthermore, the Euclidean clustering algorithm includes:
[0021] Initialization: Select an initial point as a seed point;
[0022] Search neighboring points: taking the seed point as the center, calculate the Euclidean distance between the points in the neighborhood of the seed point and the seed point;
[0023] Forming a cluster: The points in the neighborhood whose Euclidean distance is less than the second threshold are classified into the same cluster as the seed point, then the seed point is updated to a point in the new cluster, and the process of searching for neighboring points is repeated until there are no more points that can be added to the current cluster;
[0024] Find new clusters: When a cluster is formed, start looking for new seed points to form the next cluster.
[0025] Furthermore, the calculation formula of the Euclidean distance is:
[0026]
[0027] Among them, the coordinates of two points in three-dimensional space are: A(x1,y1,z1), B(x2,y2,z2), and d is the distance between points A and B.
[0028] Furthermore, the acquisition of the coordinate points of the densely distributed point cloud includes:
[0029] Determine whether the number of adjacent points of each point in the sub-point cloud block within the second specified radius circle is greater than a third threshold;
[0030] If the number of adjacent points of a certain point within the second specified radius circle is greater than the third threshold, then the point is a coordinate point with dense point cloud distribution;
[0031] If the number of neighboring points of a certain point within the second specified radius circle is less than or equal to the third threshold, the point is not a coordinate point with dense point cloud distribution.
[0032] In a second aspect, a target ball detection device for a large-scale dense point cloud is provided, comprising:
[0033] An acquisition module, used for acquiring a dense point cloud and a target sphere radius, and removing non-white points in the dense point cloud to obtain a first point cloud;
[0034] A cutting module, used for cutting the first point cloud into a plurality of point cloud blocks;
[0035] A preprocessing module, used for preprocessing each point cloud block separately to obtain a sub-point cloud block that does not contain a plane and a cylinder;
[0036] Normal vector calculation module, used to calculate the normal vector of each point in the sub-point cloud block;
[0037] The output module is used to move all points in the sub-point cloud block along the normal vector direction by the same distance as the radius of the target sphere, and use the coordinate points with dense point cloud distribution as the coordinates of the center of the target sphere.
[0038] In a third aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method described in the first aspect.
[0039] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable medium stores a program code for execution by a device, wherein the program code includes steps for executing the method in any one of the implementations of the first aspect described above.
[0040] In a fifth aspect, an electronic device is provided, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements a method as in any one of the implementations in the first aspect above.
[0041] The present application has the following beneficial effects: the present application reduces the demand for computing resources by combining point cloud color filtering and point cloud block processing methods, and uses the method of filtering planes and cylinders and the method of Euclidean distance clustering to obtain alternative sub-point clouds where spheres may exist, and combines the characteristics of normal vectors to transform points on a spherical surface of a specific radius to the center of the sphere, and quickly detects the position of the target sphere by searching for dense points in the point cloud, thereby quickly processing large-scale dense point clouds using limited computing resources and accurately detecting the target sphere. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The drawings constituting a part of the present application are used to provide a further understanding 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.
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 is a flow chart of a target sphere detection method for a dense point cloud according to Embodiment 1 of the present application;
[0045] Figure 2 is an example diagram of the original dense point cloud obtained in the target sphere detection method of the dense point cloud in Example 1 of the present application;
[0046] Figure 3 This is an example diagram of the point cloud blocks after segmentation in the target sphere detection method of the dense point cloud in Example 1 of the present application;
[0047] Figure 4 This is an example diagram of a point cloud after removing planes and cylinders in the target sphere detection method of a dense point cloud in Example 1 of the present application;
[0048] Figure 5 is a schematic diagram of radius filtering in the target sphere detection method of dense point cloud in Example 1 of the present application;
[0049] Figure 6 This is an example diagram of the extension of the normal vector of the spherical point cloud in the target sphere detection method of the dense point cloud in Example 1 of the present application;
[0050] Figure 7 It is a structural block diagram of a target ball detection device for a large-scale dense point cloud according to Embodiment 2 of the present application;
[0051] Figure 8 It is a schematic diagram of the internal structure of the electronic device of Example 5 of the present application.
[0052] Reference numerals:
[0053] 100, acquisition module; 200, segmentation module; 300, preprocessing module; 400, normal vector calculation module; 500, output module. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] Example 1
[0056] A method for detecting a target sphere in a dense point cloud involved in Example 1 of the present application includes: obtaining a dense point cloud and a target sphere radius, and removing non-white points in the dense point cloud to obtain a first point cloud; dividing the first point cloud into multiple point cloud blocks; preprocessing each point cloud block to obtain a sub-point cloud block that does not contain a plane or a cylinder; calculating the normal vector of each point in the sub-point cloud block; moving all points in the sub-point cloud block along the normal vector direction by the same distance as the radius of the target sphere, and using the coordinate points of the densely distributed point cloud as the coordinates of the center of the target sphere, and reducing the computing resource requirements by combining the point cloud color filtering and point cloud block processing methods, and using the method of filtering planes and cylinders to eliminate the interference of planes and cylindrical surfaces to reduce the false detection rate, and combining the characteristics of the normal vector to transform the points on the spherical surface of a specific radius to the center of the sphere, and quickly detecting the position of the target sphere by searching for dense points in the point cloud, so that large-scale dense point clouds can be quickly processed using limited computing resources, and the target sphere can be accurately detected.
[0057] Specifically, Figure 1 The flowchart of the target ball detection method of the dense point cloud in the application embodiment 1 is shown, including:
[0058] S100, obtaining a dense point cloud and a target sphere radius, and removing non-white points in the dense point cloud to obtain a first point cloud;
[0059] Specifically, at each stage of point cloud computing, the number of point clouds has a significant impact on the processing efficiency of the algorithm, especially when performing operations such as plane fitting, Euclidean distance calculation, and target sphere fitting. The efficiency of the algorithm is exponentially related to the number of points in the point cloud. In order to improve the overall computing efficiency, in the point cloud preprocessing stage, we use the white color of the target sphere and use filtering technology to remove non-white points. This operation significantly reduces the stray information in the point cloud without affecting the target sphere detection, thereby greatly reducing the amount of calculation for subsequent processing.
[0060] S200, dividing the first point cloud into a plurality of point cloud blocks;
[0061] Specifically, when processing large-scale dense point clouds, even a point cloud of a small building may have a volume of 10 meters wide, 20 meters long, and 10 meters high, and the number of points may exceed 100 million. Using the entire point cloud for target ball detection has the problems of long calculation time and high server memory requirements, which are usually difficult for servers to meet. Therefore, this application proposes a point cloud block processing technology to divide a large point cloud into small cube-structured point cloud blocks, such as Figure 2 , 3 As shown in the figure, the size of each point cloud block is 2 meters long, 2 meters wide, and 2 meters high. Of course, the size of the point cloud block can be customized according to the specific situation. Through this block processing method, each point cloud block can be processed separately, thereby significantly reducing the size of each processing unit and reducing the computational complexity. This not only improves the efficiency of detecting the target ball, but also reduces the memory requirements of the server performing the calculation.
[0062] S300, pre-processing each point cloud block to obtain a sub-point cloud block that does not contain a plane and a cylinder;
[0063] Specifically, in a dense point cloud, the target ball is usually a white ball with a diameter of 7.5 cm, which still accounts for a very small proportion relative to a 2-meter square point cloud block. At the same time, due to various occlusions and noise contamination, the recognition of the target ball faces certain challenges. In the point cloud, faces and cylinders are the most common shapes. In order to improve the recognition rate of the target ball and reduce the amount of calculation, this embodiment adopts a non-spherical point cloud filtering method based on RANSAC fitting planes and cylinders. First, the RANSAC algorithm (i.e., random sampling consensus algorithm) is used to fit the planes and cylinders in the point cloud block, and the fitting results are used to eliminate the corresponding point clouds. Then, the radius filtering algorithm is used to eliminate the scattered points generated by eliminating the planes and cylinders. The point cloud blocks are clustered by Euclidean distance, and the point cloud is further divided into multiple sub-point cloud blocks. Subsequently, for each sub-point cloud block, voxel filtering is applied to further reduce the number of point clouds while keeping the shape of the point cloud unchanged, thereby accelerating the subsequent calculation process. This method can significantly reduce the computational burden and improve the recognition rate of the target ball, such as Figure 4 shown.
[0064] It should be noted that radius filtering means that in point cloud data, users can define that each point must have enough adjacent points within a certain radius circle. For example, when there is at least one adjacent point within the specified circle neighborhood, Figure 5 The yellow point in the diagram will be deleted; if two adjacent points are specified, the yellow and green points will be deleted, while the black point will be retained because it has four adjacent points.
[0065] Euclidean distance is also called Euclidean distance. It is a common distance measurement method in three-dimensional space. It is used to measure the absolute distance between two points in three-dimensional space, which is often referred to as the straight-line distance between two points. Assuming that the coordinates of two points in three-dimensional space are (x1, y1, z1) and (x2, y2, z2), the Euclidean distance d between the two points is calculated as follows:
[0066]
[0067] S400, calculating the normal vector of each point in the sub-point cloud block;
[0068] Specifically, the following steps are included: Determine the neighborhood: For each point in the point cloud, first determine the points in its neighborhood. This can usually be achieved in two ways: one is based on the radius method, that is, taking each point as the center, a neighborhood with a fixed radius is defined; the other is based on the K nearest neighbor method, that is, selecting the K points closest to each point as the neighborhood.
[0069] Fit local surface: Use the points in these neighborhoods to fit a local surface. This is usually done with least squares or other optimization methods to minimize the distance between the fitted surface and the actual points.
[0070] Calculate the normal vector: After fitting the local surface, the normal vector can be calculated based on the geometric characteristics of the surface. For a plane, the normal vector is the vector perpendicular to the plane; for a curved surface, the normal vector is the vector perpendicular to the tangent plane of the curved surface at that point.
[0071] It should be noted that the normal vector of each point in the point cloud belongs to the prior art and will not be described here to avoid redundancy.
[0072] S500, moving all points in the sub-point cloud block along the normal vector direction by a distance equal to the radius of the target sphere, and taking the coordinate points where the point cloud is densely distributed as the coordinates of the center of the target sphere.
[0073] In this embodiment, obtaining the coordinate points of the densely distributed point cloud includes:
[0074] Determine whether the number of adjacent points of each point in the sub-point cloud block within the second specified radius circle is greater than a third threshold;
[0075] If the number of adjacent points of a certain point within the second specified radius circle is greater than the third threshold, then the point is a coordinate point with dense point cloud distribution;
[0076] If the number of neighboring points of a certain point within the second specified radius circle is less than or equal to the third threshold, the point is not a coordinate point with dense point cloud distribution.
[0077] Specifically, the point cloud normal vector is calculated in the sub-point cloud block. Considering the characteristic that the radius of the target sphere is 7.5 cm, all points of the sub-point cloud block are moved 7.5 cm (i.e., the radius of the target sphere) along the normal vector direction. This will produce the following effects: for a plane, the plane shape is still maintained after the movement; for a cylinder, it may become a smaller cylinder or a line after the movement; for a sphere, it will become a smaller sphere or a single point; relative to the original sphere with a radius of 7.5 cm, after the movement, all points on the sphere will converge in a tiny area at the center of the sphere, such as Figure 5 Based on this observation, the transformed point cloud can be filtered to find coordinate points or areas with very high point density. If it is an area, the center of mass (i.e., center of gravity or center point) of the area needs to be found as the center of the target ball, such as Figure 6 The yellow area in the figure. These coordinate points with very high density are the center of the target ball. This method provides an efficient and reliable way to find the center of the target ball by finding concentrated coordinate points in the point cloud. There are many ways to find points with high density, such as radius filtering, coordinate axis mapping, etc. Taking radius filtering as an example, in a dense point cloud with a point cloud density of 0.5 cm, you can find a point cloud subset with more than 500 points within a radius of 1.5 cm, that is, the radius is 2 and the threshold of the neighboring point is 500. The centroid of the point cloud subset obtained after filtering and Euclidean distance clustering is the center of the target ball.
[0078] It should be noted that in this embodiment, the radius filtering includes:
[0079] Determine whether the number of adjacent points of each point in the point cloud block within the first specified radius circle is less than a first threshold;
[0080] If the number of adjacent points of a point within the first specified radius circle is less than the first threshold, remove the point;
[0081] If the number of neighboring points of a point within the first specified radius circle is greater than or equal to the first threshold, the point is retained.
[0082] In this embodiment, the Euclidean clustering algorithm includes:
[0083] Initialization: Select an initial point as a seed point;
[0084] Search neighboring points: taking the seed point as the center, calculate the Euclidean distance between the points in the neighborhood of the seed point and the seed point;
[0085] Forming a cluster: The points in the neighborhood whose Euclidean distance is less than the second threshold are classified into the same cluster as the seed point, then the seed point is updated to a point in the new cluster, and the process of searching for neighboring points is repeated until there are no more points that can be added to the current cluster;
[0086] Find new clusters: When a cluster is formed, start looking for new seed points to form the next cluster.
[0087] In this embodiment, the method of point cloud color filtering and point cloud block processing is combined to reduce the demand for computing resources, and then the method of filtering planes and cylinders and the method of Euclidean distance clustering are used to obtain alternative sub-point clouds where spheres may exist. Finally, combined with the characteristics of the normal vector, the points on the spherical surface of a specific radius are transformed to the center of the sphere, and the position of the target sphere is quickly detected by searching for dense points in the point cloud. This allows limited computing resources to quickly process large-scale dense point clouds and accurately detect the target sphere.
[0088] Example 2
[0089] like Figure 7 As shown, a target ball detection device for a large-scale dense point cloud according to Embodiment 2 of the present application includes:
[0090] An acquisition module 100 is used to acquire a dense point cloud and a target sphere radius, and remove non-white points in the dense point cloud to obtain a first point cloud;
[0091] A cutting module 200, used for cutting the first point cloud into a plurality of point cloud blocks;
[0092] A preprocessing module 300 is used to preprocess each point cloud block to obtain a sub-point cloud block that does not contain a plane or a cylinder;
[0093] A normal vector calculation module 400 is used to calculate the normal vector of each point in the sub-point cloud block;
[0094] The output module 500 is used to move all points in the sub-point cloud block along the normal vector direction by a distance equal to the radius of the target sphere, and use the coordinate points where the point cloud is densely distributed as the coordinates of the center of the target sphere.
[0095] It should be noted that other specific implementations of the target sphere detection device for large-scale dense point cloud in the embodiment of the present invention can refer to the specific implementations of the target sphere detection method for dense point cloud mentioned above, and will not be repeated here to avoid redundancy.
[0096] Example 3
[0097] A computer program product involved in Example 3 of the present application is used to store a computer program. When the computer program runs on a computer, the method in any one of the implementation modes in Example 1 of the present application is implemented.
[0098] Example 4
[0099] A computer-readable storage medium according to Embodiment 4 of the present application, wherein the computer-readable storage medium stores a program code for execution by a device, wherein the program code includes steps for executing a method in any one of the implementations in Embodiment 1 of the present application;
[0100] Among them, the computer-readable storage medium can be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM); the computer-readable storage medium can store program code, and when the program stored in the computer-readable storage medium is executed by the processor, the processor is used to execute the steps of the method in any one of the implementation methods in Example 1 of the present application.
[0101] Example 5
[0102] like Figure 8 As shown, an electronic device involved in Embodiment 5 of the present application includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, a method in any one of the implementations in Embodiment 1 of the present application is implemented;
[0103] Among them, the processor can adopt a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the method in any one of the implementation methods in Example 1 of the present application.
[0104] The processor may also be an integrated circuit electronic device with signal processing capability. In the implementation process, each step of the method in any implementation of Embodiment 1 of the present application may be completed by an integrated logic circuit of hardware in the processor or by instructions in software form.
[0105] The above-mentioned processor may also be a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the functions required to be performed by the unit included in the data processing device of the embodiment of the present application in combination with its hardware, or executes the method in any one of the implementation modes in the embodiment 1 of the present application.
[0106] The above are only preferred specific implementations of the present application; however, the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solution and its improved ideas of the present application within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A target ball detection method for dense point cloud, characterized in that: include: Obtain a dense point cloud and a target sphere radius, and remove non-white points in the dense point cloud to obtain a first point cloud; Dividing the first point cloud into a plurality of point cloud blocks; Preprocess each point cloud block separately to obtain a sub-point cloud block that does not contain a plane or a cylinder; Calculate the normal vector of each point in the sub-point cloud block; All points in the sub-point cloud block are moved along the normal vector direction by the same distance as the radius of the target sphere, and the coordinate points where the point cloud is densely distributed are used as the coordinates of the center of the target sphere.
2. The target sphere detection method of dense point cloud according to claim 1, characterized in that: The pre-processing comprises: Fitting a plane and a cylinder based on a random sampling consensus algorithm, and removing point clouds on the plane and the cylinder; Use radius filtering to remove scattered points in point cloud blocks; Use the Euclidean clustering algorithm to cluster the point cloud blocks to obtain multiple sub-point cloud blocks; Voxel filtering is performed on the sub-point cloud block.
3. The target sphere detection method of dense point cloud according to claim 2, characterized in that: The radius filtering includes: Determine whether the number of adjacent points of each point in the point cloud block within the first specified radius circle is less than a first threshold; If the number of adjacent points of a point within the first specified radius circle is less than the first threshold, remove the point; If the number of neighboring points of a point within the first specified radius circle is greater than or equal to the first threshold, the point is retained.
4. The target sphere detection method of dense point cloud according to claim 2, characterized in that: The Euclidean clustering algorithm includes: Initialization: Select an initial point as a seed point; Search neighboring points: taking the seed point as the center, calculate the Euclidean distance between the points in the neighborhood of the seed point and the seed point; Forming a cluster: The points in the neighborhood whose Euclidean distance is less than the second threshold are classified into the same cluster as the seed point, then the seed point is updated to a point in the new cluster, and the process of searching for neighboring points is repeated until there are no more points that can be added to the current cluster; Find new clusters: When a cluster is formed, start looking for new seed points to form the next cluster.
5. The target sphere detection method of dense point cloud according to claim 4, characterized in that: The calculation formula of the Euclidean distance is: Among them, the coordinates of two points in three-dimensional space are: A(x1,y1,z1), B(x2,y2,z2), and d is the distance between points A and B.
6. The target sphere detection method of dense point cloud according to claim 1, characterized in that: The acquisition of the coordinate points of the densely distributed point cloud includes: Determine whether the number of adjacent points of each point in the sub-point cloud block within the second specified radius circle is greater than a third threshold; If the number of adjacent points of a certain point within the second specified radius circle is greater than the third threshold, then the point is a coordinate point with dense point cloud distribution; If the number of neighboring points of a certain point within the second specified radius circle is less than or equal to the third threshold, the point is not a coordinate point with dense point cloud distribution.
7. A target ball detection device for large-scale dense point clouds, characterized in that: include: An acquisition module, used for acquiring a dense point cloud and a target sphere radius, and removing non-white points in the dense point cloud to obtain a first point cloud; A cutting module, used for cutting the first point cloud into a plurality of point cloud blocks; A preprocessing module, used for preprocessing each point cloud block separately to obtain a sub-point cloud block that does not contain a plane and a cylinder; Normal vector calculation module, used to calculate the normal vector of each point in the sub-point cloud block; The output module is used to move all points in the sub-point cloud block along the normal vector direction by the same distance as the radius of the target sphere, and use the coordinate points with dense point cloud distribution as the center coordinates of the target sphere.
8. A computer program product, characterized in that The computer program product stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program code for execution by a device, wherein the program code includes steps for executing the method according to any one of claims 1 to 6.
10. An electronic device, characterized in that: The electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction implements the method according to any one of claims 1 to 6 when executed by the processor.
