A sparse point cloud thinning method, device and storage medium
By performing semantic label reprojection and voting algorithm processing on sparse point clouds, the problem of large-scale sparse point cloud thinning is solved, the number of data points is reduced, the quality is guaranteed, and the processing efficiency is improved.
Patent Information
- Application Number
- CN202210559189.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-22
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-05-22
AI Technical Summary
Existing technologies cannot effectively thin out large-scale sparse point clouds, resulting in too many data points and affecting the efficiency and quality of subsequent processing.
By obtaining the initial semantic labels of the pixels in the photo, using the sparse point cloud after aerial triangulation processing for reprojection, combined with the voting algorithm, the data points are removed or retained according to the proportion and difference of the semantic labels to achieve the thinning of the sparse point cloud. .
It effectively reduces the number of data points in the point cloud, filters out noise points, ensures the quality of the point cloud after thinning, and improves processing efficiency.
Smart Images

Figure CN114898366B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a sparse point cloud thinning method, device and storage medium. Background Art
[0002] Aerial triangulation (Aerial triangulation) is a measurement method in stereophotogrammetry that uses a small number of field control points to encrypt control points indoors to obtain the elevation and plane position of the encrypted points. Its main purpose is to provide absolutely directional control points for mapping areas that lack field control points. In an Aerial triangulation process, if tens of thousands of aerial photographs can be processed at the same time, the production efficiency will be improved. However, processing a large number of aerial photographs at one time will face many technical difficulties. One of the prominent problems is that with tens of thousands of aerial photographs as input, the scale of the sparse point cloud output after Aerial triangulation is also very large, usually reaching millions of points, which brings great pressure to subsequent processing and even leads to the failure of some related production. Summary of the invention
[0003] The purpose of the embodiments of the present invention is to provide a sparse point cloud thinning method, device and storage medium to solve the problem in the prior art that it is impossible to effectively thin out large-scale sparse point clouds, that is, it is impossible to reduce the number of data points in the point cloud and effectively ensure the quality of the point cloud after thinning.
[0004] To achieve the above-mentioned purpose, an embodiment of the present invention provides a sparse point cloud thinning method, comprising the steps of: obtaining an initial semantic label of each pixel in a photo and a sparse point cloud obtained by performing aerial triangulation on the photo; reprojecting each data point in the sparse point cloud back onto at least two photos to obtain at least two first pixel points corresponding to each data point; based on the initial semantic labels of the first pixel point and the second pixel point, obtaining at least two first target semantic labels corresponding to each data point by a voting algorithm, wherein the second pixel point is a plurality of pixel points around the first pixel point in the photo; determining whether the proportion of the first target semantic label with the largest proportion among the at least two first target semantic labels of each data point is greater than a first threshold, if not, removing the data point, if yes, determining whether the difference between the proportions of the first and second proportions among the at least two first target semantic labels obtained is greater than a second threshold, if not, removing the data point, if yes, retaining the data point, and obtaining the sparse point cloud after thinning.
[0005] Optionally, after calculating the execution weight of each node, it also includes: the method of obtaining the first target semantic label through the voting algorithm includes: assigning a third threshold to the first pixel point, assigning a fourth threshold to the second pixel point, using the third threshold and the fourth threshold to vote on the initial semantic label of the first pixel point and the initial semantic label of the second pixel point respectively, and the initial semantic label with the largest number of votes and a vote ratio greater than the fifth threshold is the first target semantic label of the data point.
[0006] Optionally, after using the third threshold and the fourth threshold to perform voting calculations on the initial semantic label of the first pixel point and the initial semantic label of the second pixel point respectively, it also includes: determining whether the proportion of votes of the initial semantic label with the largest number of votes is greater than the fifth threshold; if not, setting the initial semantic label of the first pixel point to one of the first target semantic labels of the data point.
[0007] Optionally, the selection range of the first threshold is [40%, 90%], the selection range of the second threshold is [0, 15%], the selection range of the third threshold is [2, 10], the selection range of the fourth threshold is [1, 5], and the selection range of the fifth threshold is [30%, 90%].
[0008] Optionally, the third threshold is greater than the fourth threshold.
[0009] Optionally, the method for obtaining the initial semantic label of each pixel in the photo includes: performing semantic segmentation on the photo through a semantic segmentation method based on deep learning, identifying the initial semantic labels of various entities in the photo, and assigning the initial semantic label to each pixel of the corresponding entity.
[0010] Optionally, the photograph is an aerial photograph, and the entity is a building, road, tree or vehicle photographed by urban oblique photography.
[0011] Optionally, the method for selecting the second pixel point is: selecting eight pixel points around the first pixel point in the photo as the second pixel points.
[0012] To achieve the above object, the present invention further provides a sparse point cloud thinning device, comprising: a memory; and
[0013] a processor connected to the memory, the processor being configured to:
[0014] Obtain an initial semantic label for each pixel in a photo and a sparse point cloud obtained after performing aerial triangulation on the photo; reproject each data point in the sparse point cloud back onto at least two photos to obtain at least two first pixels corresponding to each data point; obtain at least two first target semantic labels corresponding to each data point through a voting algorithm based on the initial semantic labels of the first pixel and the second pixel, wherein the second pixel is a plurality of pixels around the first pixel in the photo; determine whether the proportion of the first target semantic label with the largest proportion among the at least two first target semantic labels of each data point is greater than a first threshold, if not, remove the data point, if yes, determine whether the difference between the proportions of the first and second proportions of the at least two first target semantic labels obtained is greater than a second threshold, if not, remove the data point, if yes, retain the data point, and obtain the sparse point cloud after thinning.
[0015] To achieve the above object, the present invention further provides a computer storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a machine.
[0016] The embodiments of the present invention have the following advantages:
[0017] 1. An embodiment of the present invention provides a sparse point cloud thinning method, comprising the steps of: obtaining an initial semantic label of each pixel in a photo and a sparse point cloud obtained by performing aerial triangulation on the photo; reprojecting each data point in the sparse point cloud back onto at least two photos to obtain at least two first pixel points corresponding to each data point; obtaining at least two first target semantic labels corresponding to each data point by a voting algorithm based on the initial semantic labels of the first pixel point and the second pixel point, wherein the second pixel point is a plurality of pixel points around the first pixel point in the photo; determining whether the proportion of the first target semantic label with the largest proportion among the at least two first target semantic labels of each data point is greater than a first threshold, if not, removing the data point, if yes, determining whether the difference between the proportions of the first and second proportions among the at least two first target semantic labels obtained is greater than a second threshold, if not, removing the data point, if yes, retaining the data point, and obtaining the sparse point cloud after thinning.
[0018] Through the above method, the data points in the sparse point cloud are removed or retained according to whether at least two first target semantic labels meet the preset conditions, thereby filtering out the data points that do not meet the requirements, and thinning out the sparse point cloud. The purpose of effectively thinning out the large-scale sparse point cloud is achieved, which not only reduces the number of data points in the point cloud, but also ensures that the noise points are filtered out as much as possible, effectively ensuring the quality of the point cloud after thinning.
[0019] 2. Further, the method for obtaining the first target semantic label through the voting algorithm includes: assigning a third threshold to the first pixel point, assigning a fourth threshold to the second pixel point, using the third threshold and the fourth threshold to respectively vote on the initial semantic label of the first pixel point and the initial semantic label of the second pixel point, and the initial semantic label with the largest number of votes and a vote ratio greater than the fifth threshold is the first target semantic label of the data point.
[0020] Through the voting algorithm, the initial semantic labels of the first pixel point and the second pixel point are voted to obtain a first target semantic label for the current data point, thereby improving the accuracy of the first target semantic label of the current data point and ensuring that noise points are filtered out as much as possible, thereby effectively ensuring the quality of the point cloud after thinning. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0022] Figure 1 A flowchart of a sparse point cloud thinning method provided by an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of reprojection of a sparse point cloud thinning method provided by an embodiment of the present invention;
[0024] Figure 3 A schematic diagram of selecting a second pixel point in a sparse point cloud thinning method provided by an embodiment of the present invention;
[0025] Figure 4 A module block diagram of a sparse point cloud thinning device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are 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.
[0027] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0028] An embodiment of the present invention provides a sparse point cloud thinning method, referring to Figure 1 , Figure 1 This is a flow chart of a sparse point cloud thinning method provided in one embodiment of the present invention. It should be understood that the method may also include additional blocks not shown and / or may omit the blocks shown, and the scope of the present invention is not limited in this respect. The method includes the following steps:
[0029] In step 101, the initial semantic label of each pixel in the photo and the sparse point cloud obtained by performing aerial triangulation on the photo are obtained.
[0030] In some embodiments, the method for obtaining the initial semantic label of each pixel in the photo includes: performing semantic segmentation on the photo through a semantic segmentation method based on deep learning, identifying the initial semantic labels of various entities in the photo, and assigning the initial semantic label to each pixel of the corresponding entity. In some embodiments, the photo is an aerial photo, and the entity is a building, road, tree or vehicle taken by urban oblique photography.
[0031] Specifically, through the semantic segmentation method based on deep learning, semantic segmentation is performed on each aerial photo, and the initial semantic labels of various entities such as roads and vehicles captured by urban oblique photography are identified. Each aerial photo contains multiple segmented entities, and each entity contains a set of pixels, representing the scope of the current semantic entity. Each pixel is assigned the initial semantic label of the current entity.
[0032] At step 102, each data point in the sparse point cloud is reprojected back onto at least two of the photos to obtain at least two first pixel points corresponding to each of the data points.
[0033] Specifically, refer to Figure 2, taking the current data point reprojected back to three aerial photos as an example, the current data point in the sparse point cloud is X, which is reprojected back to the original aerial photos Image1, Image2, and Image3, and the corresponding pixels on the aerial photos are x1, x2, and x3. That is, the three first pixel points x1, x2, and x3 corresponding to the current data point X are obtained. Perform this operation on each data point in the sparse point cloud to obtain at least two first pixel points corresponding to each data point.
[0034] At step 103, based on the initial semantic labels of the first pixel point and the second pixel point, at least two first target semantic labels corresponding to each of the data points are obtained through a voting algorithm, and the second pixel point is a plurality of pixel points around the first pixel point in the photo.
[0035] Specifically, refer to Figure 3 , taking the eight pixels around the first pixel in the photo as the second pixel as an example, where x1 is a first pixel of the current data point, and p1-p8 represent eight second pixels around x1. In some embodiments, the method of obtaining the first target semantic label by the voting algorithm includes: assigning a third threshold to the first pixel, assigning a fourth threshold to the second pixel, using the third threshold and the fourth threshold to vote on the initial semantic label of the first pixel and the initial semantic label of the second pixel respectively, and the initial semantic label with the most votes and a vote ratio greater than the fifth threshold is the first target semantic label of the data point. Specifically, the initial semantic label corresponding to each pixel of x1 and p1-p8 is obtained respectively, and a voting algorithm is used to calculate x1 and p1-p8, wherein each pixel of p1-p8 has pv votes (pv represents the fourth threshold assigned to each second pixel. In some embodiments, the fourth threshold has a value range of [1, 5]), and x1 has xv votes (xv represents the third threshold assigned to the first pixel. In some embodiments, the third threshold has a value range of [2, 10]). Assuming that the semantic label of x1 is LA and the third threshold of x1 is 5, it means that after calculation by the voting algorithm, the LA semantic label gets 5 votes. In some embodiments, the third threshold is greater than the fourth threshold to ensure that the weight of the initial semantic label of the first pixel is greater than the initial semantic label of the second pixel, thereby improving the accuracy of the first target semantic label of the current data point and ensuring that noise points are filtered out as much as possible, thereby effectively ensuring the quality of the point cloud after thinning. Finally, the initial semantic label with the largest number of votes and a vote ratio greater than the fifth threshold among the initial semantic labels of the current first pixel point and the corresponding second pixel points is selected as a first target semantic label of the current data point.
[0036] In some embodiments, after using the third threshold and the fourth threshold to respectively perform voting calculations on the initial semantic label of the first pixel and the initial semantic label of the second pixel, it further includes: determining whether the proportion of votes of the initial semantic label with the most votes is greater than the fifth threshold, and if not, setting the initial semantic label of the first pixel to be one of the first target semantic labels of the data point. In some embodiments, the value range of the fifth threshold is [30%, 90%]. Setting the fifth threshold improves the accuracy of the first target semantic label of the current data point, ensures that noise points are filtered out as much as possible, and thus effectively ensures the quality of the thinned point cloud.
[0037] Through the voting algorithm, the initial semantic labels of the first pixel point and the second pixel point are voted to obtain a first target semantic label for the current data point, thereby improving the accuracy of the first target semantic label of the current data point and ensuring that noise points are filtered out as much as possible, thereby effectively ensuring the quality of the point cloud after thinning.
[0038] At step 104, it is determined whether the proportion of the first target semantic label with the largest proportion among at least two of the first target semantic labels of each of the data points is greater than a first threshold. If not, the data point is removed. If so, it is determined whether the difference between the first and second proportions of the at least two first target semantic labels obtained is greater than a second threshold. If not, the data point is removed. If so, the data point is retained to obtain the sparse point cloud after thinning.
[0039] Specifically, referring to the aforementioned embodiment, still taking the current data point reprojected back to three aerial photos as an example, by using the voting algorithm for the three first pixel points x1, x2, and x3 and the multiple second pixel points corresponding to the three first pixel points, the three first target semantic labels of the current data point are obtained respectively. Assuming that the three first target semantic labels are LA, LA, and LB, it should be understood that LA, LA, and LB can also be considered as the three target semantic labels corresponding to the three first pixel points x1, x2, and x3 obtained after the aforementioned voting algorithm is calculated (they are called the first target semantic labels of the data point), and the first target semantic label with the largest proportion (LA in this example) is counted, and its proportion is px1. The size of px1 is judged. If px1≤sp1, the current data point X is removed, where sp1 represents the first threshold. In some embodiments, the value range of the first threshold is [40%, 90%]; otherwise, if px1-px2≤sp 12 Then the current data point X is removed, where px2 is the proportion value of the first target semantic label with the second largest proportion, sp 12represents the second threshold value. In some embodiments, the value range of the second threshold value is [0, 15%], otherwise the current data point X is retained. The above method is executed for all data points in the sparse point cloud, and the data points that do not meet the requirements are filtered out, and finally a sparse point cloud after thinning is obtained.
[0040] It should be understood that although the above embodiment takes the reprojection of the current data point back to three aerial photos as an example, the solution of the present application can be applied to the situation where the reprojection is performed on any photo of no less than two photos and no less than two first pixel points are obtained.
[0041] In some embodiments of the above method, the value range of the first threshold is [40%, 90%], the value range of the second threshold is [0, 15%], the value range of the third threshold is [2, 10], the value range of the fourth threshold is [1, 5], and the value range of the fifth threshold is [30%, 90%]. The reasons for determining the value ranges of the above thresholds are: the weight of the third threshold is usually greater than the fourth threshold, and the numerical level is usually twice that of the fourth threshold, because the third threshold represents the number of votes for the initial semantic label of the first pixel to judge the first target semantic label, and the fourth threshold represents the number of votes for the initial semantic label of the second pixel around the first pixel to judge the first target semantic label, so the votes of the initial semantic labels of the surrounding pixels should have less influence on the first target semantic label itself; the value range of the fourth threshold is the setting of the prior base value, and the value range of the third threshold is twice its base; the fifth threshold represents the proportion of the largest initial semantic label, which belongs to The empirical value is usually set to be greater than 50%. It will be set according to the actual situation. When the requirements are higher, it will be greater than 50%, and when the requirements are lower, it will be less than 50%. The overall selection range is between [30%, 90%]. The first threshold represents the data point in the point cloud corresponding to a 3D point in the physical world. It is projected onto different photos and the threshold of the largest proportion of the first target semantic label obtained after voting calculation. If the threshold is met, the current data point is deleted. The set value is [40%, 90%]. Usually, the threshold is set to 50%. The range of the threshold mainly takes into account the data characteristics of different scenes and needs to be adjusted appropriately. The setting of the second threshold is also based on empirical values.
[0042] Through the above method, the data points in the sparse point cloud are removed or retained according to whether at least two first target semantic labels meet the preset conditions, thereby filtering out the data points that do not meet the requirements, and thinning out the sparse point cloud. The purpose of effectively thinning out the large-scale sparse point cloud is achieved, which not only reduces the number of data points in the point cloud, but also ensures that the noise points are filtered out as much as possible, effectively ensuring the quality of the point cloud after thinning.
[0043] Figure 4 A block diagram of a sparse point cloud thinning device provided in an embodiment of the present invention. The device includes:
[0044] A memory 201; and a processor 202 connected to the memory 201, the processor 202 being configured to: obtain initial semantic labels for each pixel in a photo and a sparse point cloud obtained by performing aerial triangulation on the photo; reproject each data point in the sparse point cloud back onto at least two of the photos to obtain at least two first pixels corresponding to each of the data points; obtain at least two first target semantic labels corresponding to each of the data points by a voting algorithm based on the initial semantic labels of the first pixel and the second pixel, wherein the second pixel is a plurality of pixels around the first pixel in the photo; determine whether the proportion of the first target semantic label with the largest proportion among the at least two first target semantic labels of each of the data points is greater than a first threshold, if not, remove the data point, if yes, determine whether the difference between the proportions of the first and second proportions of the at least two first target semantic labels obtained is greater than a second threshold, if not, remove the data point, if yes, retain the data point, and obtain the sparse point cloud after thinning.
[0045] In some embodiments, the processor 202 is also configured to: after calculating the execution weight of each node, it also includes: the method of obtaining the first target semantic label through the voting algorithm includes: assigning a third threshold to the first pixel point, assigning a fourth threshold to the second pixel point, and using the third threshold and the fourth threshold to vote on the initial semantic label of the first pixel point and the initial semantic label of the second pixel point respectively, and the initial semantic label with the largest number of votes and a vote ratio greater than the fifth threshold is the first target semantic label of the data point.
[0046] In some embodiments, the processor 202 is also configured to: after using the third threshold and the fourth threshold to respectively perform voting calculations on the initial semantic label of the first pixel point and the initial semantic label of the second pixel point, it also includes: determining whether the proportion of votes of the initial semantic label with the largest number of votes is greater than the fifth threshold; if not, setting the initial semantic label of the first pixel point to be one of the first target semantic labels of the data point.
[0047] In some embodiments, the processor 202 is further configured as follows: the selection range of the first threshold is [40%, 90%], the selection range of the second threshold is [0, 15%], the selection range of the third threshold is [2, 10], the selection range of the fourth threshold is [1, 5], and the selection range of the fifth threshold is [30%, 90%].
[0048] In some embodiments, the processor 202 is further configured such that: the third threshold is greater than the fourth threshold.
[0049] In some embodiments, the processor 202 is further configured to: obtain the initial semantic label of each pixel in the photo, including: performing semantic segmentation on the photo through a semantic segmentation method based on deep learning, identifying the initial semantic labels of various entities in the photo, and assigning the initial semantic label to each pixel of the corresponding entity.
[0050] In some embodiments, the processor 202 is further configured such that: the photograph is an aerial photograph, and the entity is a building, road, tree or vehicle photographed by urban oblique photography.
[0051] In some embodiments, the processor 202 is further configured to: select the second pixel point by: selecting eight pixel points around the first pixel point in the photo as the second pixel point.
[0052] The specific implementation method is referred to the aforementioned method embodiment and will not be described in detail here.
[0053] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.
[0054] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0055] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0056] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0057] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0058] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0059] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0060] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0061] Note that, unless otherwise directly stated, all features disclosed in this specification (including any attached claims, abstracts and drawings) may be replaced by alternative features for achieving the same, equivalent or similar purposes. Therefore, unless otherwise explicitly stated, each feature disclosed is only an example of a group of equivalent or similar features. Where used, further, preferably, further and more preferably are simple beginnings for elaborating another embodiment based on the aforementioned embodiment, and the content of the further, preferably, further or more preferably followed by the combination with the aforementioned embodiment constitutes a complete construction of another embodiment. Several further, preferably, further or more preferably settings following the same embodiment can be arbitrarily combined to form another embodiment.
[0062] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.
Claims
1. A sparse point cloud thinning method, It is characterized in that The following steps are involved: Obtaining initial semantic labels for each pixel in the photo and a sparse point cloud obtained by performing aerial triangulation on the photo; Reprojecting each data point in the sparse point cloud back onto at least two of the photos to obtain at least two first pixel points corresponding to each of the data points; Based on the initial semantic labels of the first pixel and the second pixel, at least two first target semantic labels corresponding to each of the data points are obtained by a voting algorithm, wherein the second pixel is a plurality of pixel points around the first pixel in the photo; Determine whether the proportion of the first target semantic label with the largest proportion among at least two of the first target semantic labels of each of the data points is greater than a first threshold; if not, remove the data point; if so, determine whether the difference between the first and second proportions of the at least two first target semantic labels obtained is greater than a second threshold; if not, remove the data point; if so, retain the data point to obtain the sparse point cloud after thinning.
2. The sparse point cloud thinning method according to claim 1, It is characterized in that The method for obtaining the first target semantic label through the voting algorithm includes: assigning a third threshold to the first pixel point, assigning a fourth threshold to the second pixel point, using the third threshold and the fourth threshold to respectively perform voting calculations on the initial semantic label of the first pixel point and the initial semantic label of the second pixel point, and the initial semantic label with the largest number of votes and a vote ratio greater than the fifth threshold is one of the first target semantic labels for the data point.
3. The sparse point cloud thinning method according to claim 2, It is characterized in that After using the third threshold and the fourth threshold to respectively perform voting calculations on the initial semantic label of the first pixel and the initial semantic label of the second pixel, the method further includes: determining whether the proportion of votes of the initial semantic label with the largest number of votes is greater than the fifth threshold; if not, setting the initial semantic label of the first pixel to be one of the first target semantic labels of the data point.
4. The sparse point cloud thinning method according to claim 2, It is characterized in that The selection range of the first threshold is [40%, 90%], the selection range of the second threshold is [0, 15%], the selection range of the third threshold is [2, 10], the selection range of the fourth threshold is [1, 5], and the selection range of the fifth threshold is [30%, 90%].
5. The sparse point cloud thinning method according to claim 2 or 4, It is characterized in that The third threshold is greater than the fourth threshold.
6. The sparse point cloud thinning method according to claim 1, It is characterized in that The method for obtaining the initial semantic label of each pixel point in the photo includes: performing semantic segmentation on the photo through a semantic segmentation method based on deep learning, identifying the initial semantic labels of various entities in the photo, and assigning the initial semantic label to each pixel point of the corresponding entity.
7. The sparse point cloud thinning method according to claim 6, It is characterized in that The photograph is an aerial photograph, and the entity is a building, road, tree or vehicle photographed through urban oblique photography.
8. The sparse point cloud thinning method according to claim 1, It is characterized in that The method for selecting the second pixel point is: selecting eight pixel points around the first pixel point in the photo as the second pixel point.
9. A sparse point cloud thinning device, It is characterized in that include: Memory; as well as a processor connected to the memory, the processor being configured to: Obtaining initial semantic labels for each pixel in the photo and a sparse point cloud obtained by performing aerial triangulation on the photo; Reprojecting each data point in the sparse point cloud back onto at least two of the photos to obtain at least two first pixel points corresponding to each of the data points; Based on the initial semantic labels of the first pixel and the second pixel, at least two first target semantic labels corresponding to each of the data points are obtained by a voting algorithm, wherein the second pixel is a plurality of pixel points around the first pixel in the photo; Determine whether the proportion of the first target semantic label with the largest proportion among at least two of the first target semantic labels of each of the data points is greater than a first threshold; if not, remove the data point; if so, determine whether the difference between the first and second proportions of the at least two first target semantic labels obtained is greater than a second threshold; if not, remove the data point; if so, retain the data point to obtain the sparse point cloud after thinning.
10. A computer storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a machine, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Terrain section data thinning method, device and equipment
CN112562079A
Plane graph generation method and device and computer readable storage medium
CN114494597A
Method and System for Semantic Labeling of Point Clouds
US20190213790A1
Lidar noise removal using image pixel clusterings
US20190287254A1
