Point cloud-based target extraction method and device, electronic equipment and storage medium

By using a point cloud-based target extraction method, clustering algorithms are employed to generate clustered point clouds and extract bounding boxes. This solves the problem of insufficient accuracy in static object extraction in high-precision maps, achieving efficient and accurate target object extraction and improving map construction quality.

CN117611861BActive Publication Date: 2026-11-24BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311688733.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-08
Publication Date
2026-11-24
Estimated Expiration
2043-12-08

AI Technical Summary

Technical Problem

Existing technologies struggle to efficiently and accurately extract geometric information from static roadside objects, especially traffic signs and traffic lights, when constructing high-precision maps. This results in decreased map accuracy and impacts driving safety.

Method used

By using a point cloud-based target extraction method, in response to user confirmation, the category of the target object and the initial seed point are determined. The point cloud image is then clustered using a clustering algorithm to generate a clustered point cloud, and the bounding box is extracted as the 3D rectangle of the target object.

Benefits of technology

It improves the accuracy and efficiency of target object extraction, simplifies user interaction, reduces the need for manual adjustments, and enhances the construction quality of high-precision maps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117611861B_ABST
    Figure CN117611861B_ABST
Patent Text Reader

Abstract

This disclosure provides a point cloud-based target extraction method, apparatus, electronic device, and storage medium, relating to the field of image processing, and particularly to the field of map technology. The specific implementation scheme is as follows: In response to a user's confirmation operation on a target object in a point cloud image, the object category of the target object indicated by the confirmation operation is determined, and initial seed points are determined from the data points of the point cloud image; the confirmation operation is used to indicate the target object in the point cloud image, and the initial seed points are used to cluster the data points in the point cloud image; based on the initial seed points and the object category of the target object, the data points in the point cloud image are clustered to obtain a clustered point cloud of the target object; the clustered point cloud is used to represent the target object; based on the clustered point cloud, the bounding box of the target object is extracted; the bounding box represents the 3D rectangle surrounding the target object. This enables target extraction for different categories of objects, improving the accuracy of target extraction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of map technology in the field of image processing, and more particularly to a target extraction method, apparatus, electronic device and storage medium based on point clouds. Background Technology

[0002] In addition to showing the distribution of roads, high-precision maps can also display the static geometric information of the surrounding environment. For example, static geometric information can include the geometric information of objects such as traffic lights and signs along the roadside.

[0003] To construct accurate high-precision maps, objects such as traffic lights and signs along the roadside need to be extracted from the acquired images. If the extracted geometric information, such as the size of the objects, is incorrect, it will affect the accuracy of the map construction and consequently impact road safety. Summary of the Invention

[0004] This disclosure provides a target extraction method, apparatus, electronic device, and storage medium based on point clouds.

[0005] According to a first aspect of this disclosure, a point cloud-based target extraction method is provided, comprising:

[0006] In response to a user's confirmation operation on a target object in a point cloud image, the object category of the target object indicated by the confirmation operation is determined, and initial seed points are determined from the data points of the point cloud image; wherein, the confirmation operation is used to indicate the target object in the point cloud image, and the initial seed points are used to cluster the data points in the point cloud image.

[0007] Based on the initial seed points and the object category of the target object, the data points on the point cloud image are clustered to obtain the clustered point cloud of the target object; wherein, the clustered point cloud is used to represent the target object;

[0008] Based on the clustered point cloud, the bounding box of the target object is extracted; wherein, the bounding box represents a 3D rectangle surrounding the target object.

[0009] According to a second aspect of this disclosure, a point cloud-based target extraction apparatus is provided, comprising:

[0010] A determining unit is configured to, in response to a user's confirmation operation on a target object in a point cloud image, determine the object category of the target object indicated by the confirmation operation, and determine initial seed points from the data points of the point cloud image; wherein the confirmation operation is used to indicate the target object in the point cloud image, and the initial seed points are used to cluster the data points in the point cloud image.

[0011] A clustering unit is used to cluster data points on the point cloud image according to the initial seed points and the object category of the target object to obtain a clustered point cloud of the target object; wherein, the clustered point cloud is used to represent the target object;

[0012] An extraction unit is used to extract the bounding box of the target object based on the clustered point cloud; wherein the bounding box represents a 3D rectangle surrounding the target object.

[0013] According to a third aspect of this disclosure, an electronic device is provided, comprising:

[0014] At least one processor; and

[0015] A memory that is communicatively connected to the at least one processor;

[0016] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.

[0017] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions for causing the computer to perform the method described in the first aspect.

[0018] According to a fifth aspect of this disclosure, a computer program product is provided, the computer program product comprising: a computer program that, when executed by a processor, implements the method described in the first aspect.

[0019] The technology disclosed herein improves the accuracy of target object extraction.

[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0021] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0022] Figure 1 This is a flowchart illustrating a point cloud-based target extraction method according to an embodiment of the present disclosure;

[0023] Figure 2 This is a schematic diagram of a bounding box provided according to an embodiment of the present disclosure;

[0024] Figure 3 This is a flowchart illustrating a point cloud-based target extraction method according to an embodiment of the present disclosure;

[0025] Figure 4 This is a schematic diagram of a 3D view provided according to an embodiment of the present disclosure;

[0026] Figure 5 This is a schematic diagram of a 2.5D view provided according to an embodiment of the present disclosure;

[0027] Figure 6 This is a flowchart illustrating a point cloud-based target extraction method according to an embodiment of the present disclosure;

[0028] Figure 7 This is a flowchart illustrating an iterative method for clustering according to an embodiment of this disclosure;

[0029] Figure 8 This is a structural block diagram of a point cloud-based target extraction device provided according to an embodiment of the present disclosure;

[0030] Figure 9 This is a structural block diagram of a point cloud-based target extraction device provided according to an embodiment of the present disclosure;

[0031] Figure 10 This is a block diagram of an electronic device used to implement the point cloud-based target extraction method of the present disclosure embodiments;

[0032] Figure 11 This is a block diagram of an electronic device used to implement the point cloud-based target extraction method of the present disclosure embodiments. Detailed Implementation

[0033] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0034] Compared to traditional electronic maps, high-precision maps contain not only road information but also, and more importantly, static geometric information related to traffic. This static geometric information can include the geometry of roadside traffic signs, traffic lights, and other objects. The geometric information of these objects can be represented using bounding boxes, which are 3D solid frames, such as cuboids, that enclose the objects.

[0035] When building high-precision maps, point cloud images of roads can be collected. Efficiently and accurately extracting the bounding box information of objects within roads from massive amounts of point cloud data has become a crucial step in high-precision map construction.

[0036] Numerous image-based methods for high-precision traffic sign detection and classification have emerged to address the problem of extracting static objects on roads. However, these methods often lack geometric information, hindering precise absolute localization of traffic signs. For example, one approach involves filtering data points based on distance information from depth point clouds, then extracting the object from the remaining point cloud data. Another method involves selecting the object's coordinates on a 2D map, manually inputting approximate bounding box parameters (length, width, and height), and then editing and adjusting the bounding box in a 3D view to obtain the final bounding box. However, distance-based extraction methods are susceptible to accuracy issues when the point cloud is obscured by trees or other objects, requiring high-quality point cloud data. Manual input methods rely heavily on manual editing and adjustments, which are cumbersome, time-consuming, inefficient, and costly.

[0037] This disclosure provides a point cloud-based target extraction method, apparatus, electronic device, and storage medium, which are applied in the field of map technology within image processing to improve the accuracy and efficiency of target extraction.

[0038] It should be noted that the data in this embodiment is not specific to any particular user and does not reflect the personal information of any particular user. It should also be noted that the data in this embodiment comes from a publicly available dataset.

[0039] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0040] To help readers gain a deeper understanding of the implementation principles of this disclosure, the following will be discussed in conjunction with... Figures 1-11 The embodiments are further refined.

[0041] Figure 1 This is a flowchart illustrating a point cloud-based target extraction method according to an embodiment of the present disclosure. This method can be executed by a point cloud-based target extraction device. Figure 1 As shown, the method includes the following steps:

[0042] S101. In response to the user's confirmation operation on the target object on the point cloud image, determine the object category of the target object indicated by the confirmation operation, and determine the initial seed points from the data points of the point cloud image; wherein, the confirmation operation is used to indicate the target object on the point cloud image, and the initial seed points are used to cluster the data points on the point cloud image.

[0043] For example, a point cloud image of a road is acquired. The point cloud image can represent various objects on the road, such as streetlights, height restriction poles, traffic lights, and charging piles. Objects represented in the point cloud image can be extracted; the object to be extracted is the target object. In this embodiment, extracting the target object can mean using a bounding box to enclose the target object. The bounding box can be the smallest 3D bounding box that encloses the target object.

[0044] A point cloud image is an image containing data points, and can include multiple data points. For an object, multiple data points may cluster at its location in the point cloud image. A user can observe the presence of an object in the point cloud image based on the data points and designate that object as the target object. The user can perform a confirmation operation on the target object in the point cloud image; the confirmation operation indicates the target object. For example, the confirmation operation could be that the user selects an object in the point cloud image, and the selected object becomes the target object. In this embodiment, the specific method of the confirmation operation is not limited; for example, the operation method could be a click operation, an input operation, etc.

[0045] In response to a user's confirmation action, the system identifies the object indicated by the confirmation action as the target object. Each object can have its own object category, and the target object's object category is determined accordingly. For example, after obtaining a point cloud image, the objects on the point cloud image can be labeled with their categories. After identifying the target object, its object category is determined based on the labels at its location. For instance, a traffic light category can be labeled as "0," and a street lamp pole category can be labeled as "1."

[0046] After responding to the confirmation operation and identifying the target object, an initial seed point can be determined from the data points of the point cloud image. This initial seed point can be used to cluster the data points on the point cloud image; that is, the data points in the point cloud image can be clustered using the initial seed point to find all data points representing the target object. The initial seed point can be determined from the location of the target object in the point cloud image. For example, a data point can be randomly selected from multiple data points within a preset range around the target object as the initial seed point; alternatively, the data point at the location clicked by the user when making the confirmation operation can be determined as the initial seed point.

[0047] S102. Based on the initial seed points and the object category of the target object, the data points on the point cloud image are clustered to obtain the clustered point cloud of the target object; wherein, the clustered point cloud is used to represent the target object.

[0048] For example, a clustering algorithm for the data points can be preset. Based on the preset clustering algorithm, starting from an initial seed point, the data points surrounding the initial seed point are clustered. In this embodiment, the clustering effect of data points differs for different object categories. For example, for the same initial seed point, if the object categories are different, the clustered data points may be different. In this embodiment, the preset clustering algorithm is not specifically limited; for example, the preset clustering algorithm can be a region growing algorithm.

[0049] In other words, clustering can be performed on data points in a point cloud image based on the object category of the target object, starting from an initial seed point. For example, different object categories can correspond to different clustering parameters, which can be parameters used when running the clustering algorithm, such as the number of iterations or the number of data points in the clustered point cloud.

[0050] The association between object categories and clustering parameters can be pre-defined. Based on the object category of the target object, the corresponding clustering parameters can be determined. Then, based on the clustering parameters and initial seed points, data points are clustered using a pre-defined clustering algorithm. For example, the clustering algorithm can iterate over the seed points, updating them in each iteration. During each iteration, surrounding data points can be clustered based on the seed points. Once all iterations are complete, the clustering process is finished. After clustering, multiple clustered data points are obtained, forming a point cloud; that is, a point cloud is a collection of data points. The point cloud obtained after clustering is identified as the clustered point cloud of the target object. The clustered point cloud can be used to represent the target object; for example, the size and shape of the target object can be represented by the size and shape of the clustered point cloud.

[0051] S103. Extract the bounding box of the target object based on the clustered point cloud; whereby the bounding box represents the 3D rectangle that surrounds the target object.

[0052] For example, after obtaining the clustered point cloud, the target object can be extracted based on the clustered point cloud to obtain the smallest 3D rectangle surrounding the target object, which serves as the bounding box of the target object. When determining the bounding box, the outermost data points in each direction within the clustered point cloud can be found, and lines can be connected to these outermost data points to obtain the bounding box of the target point cloud. That is, the size and shape of the bounding box can be obtained based on the size and shape of the clustered point cloud.

[0053] In this embodiment, the bounding box can be the smallest 3D rectangle that encloses all data points in the clustered point cloud. The bounding box can be standardized to the shape of a rectangle, thereby determining the geometric information of the bounding box as the geometric information of the target object. This improves the standardization of target extraction and avoids overly cluttered bounding box shapes that could negatively impact the user's viewing experience.

[0054] In this embodiment, extracting the bounding box of the target object based on the clustered point cloud includes: projecting the clustered point cloud onto a plane parallel to the ground to obtain the circumscribed 2D rectangle of the clustered point cloud; obtaining the circumscribed 3D rectangle of the clustered point cloud based on the height information of the data points in the clustered point cloud and the circumscribed 2D rectangle, which is the bounding box of the target object; wherein, the bottom surface of the bounding box is parallel to the ground, and the side surface of the bounding box is perpendicular to the ground.

[0055] Specifically, the coordinate system of the road is defined as the world coordinate system with XYZ axes, the ground plane is defined as the plane formed by the XY axes, and the Z-axis is a coordinate axis perpendicular to the XY plane, i.e., the Z-axis is perpendicular to the XY axes. Data points in the clustered point cloud are used as data points in the bounding box. These data points are used to determine the smallest bounding box parallel to the Z-axis. Parallel to the Z-axis means that the side of the bounding box is parallel to the Z-axis. For example, a pre-defined 2D convex hull preprocessing algorithm can be used to extract the bounding box parallel to the Z-axis.

[0056] When determining the bounding box, the data points in the clustered point cloud are first projected in two dimensions onto a plane parallel to the ground, resulting in a two-dimensional projection point set. The smallest circumscribed rectangle of this two-dimensional projection point set is then determined as the circumscribed 2D rectangle of the clustered point cloud. Next, the height information of each data point in the clustered point cloud is determined; this height information represents the height of the data point relative to the ground. Based on the data points with the minimum and maximum heights, the smallest circumscribed 3D rectangle with the circumscribed 2D rectangle as its base is determined as the bounding box of the final target object. In this embodiment, the bounding box is an AABB bounding box, which is a hexahedron with each side parallel to a coordinate plane. That is, the bottom surface of the bounding box in this embodiment is parallel to the ground, and its sides are perpendicular to the ground.

[0057] The advantage of this setting is that, based on the 2D projection and the height information of the data points, the bounding box with the smallest circumscribed volume can be obtained, making the geometric information of the bounding box closer to the geometric information of the target object, thus improving the accuracy of the bounding box determination, i.e., improving the accuracy of target extraction.

[0058] Figure 2 This is a schematic diagram of the bounding box. Figure 2 The bounding box in the diagram is a cube with its sides parallel to the Z-axis (i.e., perpendicular to the XY plane) and its bottom surface parallel to the XY plane.

[0059] In this embodiment, the user confirms the object to be extracted on a point cloud image. In response to the user's confirmation, the object category of the target object is determined, and an initial seed point is identified from the data points of the point cloud image. Based on the initial seed point and the object category of the target object, the data points on the point cloud image are subjected to targeted clustering processing to obtain a clustered point cloud of the target object. The bounding box of the target object is determined based on the clustered point cloud. The user's interactive operation on the point cloud image is simple; the target object's category is determined after the user confirms the target object, and accurate extraction is performed for different object categories without requiring manual adjustment by the user, effectively improving the accuracy and efficiency of target extraction.

[0060] Figure 3 This is a flowchart illustrating a point cloud-based target extraction method provided in an embodiment of this disclosure.

[0061] In this embodiment, in response to the user's confirmation operation on a target object in a point cloud image, the object category of the target object indicated by the confirmation operation is determined. This can be further refined as follows: in response to the user's confirmation operation on a target object in a point cloud image, the corresponding position of the confirmation operation in the point cloud image is determined; the object category of the target object is determined based on the intensity information at the corresponding position in the point cloud image; wherein, the intensity information represents the material, and the material is used to distinguish the object category.

[0062] like Figure 3 The method includes the following steps:

[0063] S301, In response to the user's confirmation operation on the target object in the point cloud image, determine the corresponding position of the confirmation operation in the point cloud image.

[0064] For example, a user makes a confirmation operation on a point cloud image, and the location of the confirmation operation is the location of the target object in the point cloud image. After responding to the user's confirmation operation, the corresponding position of the confirmation operation on the point cloud image is determined. For example, if the user's confirmation operation is a click operation, then the position corresponding to the confirmation operation is the position clicked by the user.

[0065] In this embodiment, the point cloud image is a 3D view, and the confirmation operation is a click operation performed by the user on the target object; or, the point cloud image is a 2.5D view, and the confirmation operation is a selection operation performed by the user on the target object.

[0066] Specifically, the point cloud image in this embodiment can be a three-dimensional point cloud image, i.e., a 3D view, or a depth image, i.e., a 2.5D view. A depth image refers to an image where the distance between the image acquisition device and the scene is added to the RGB (Red-Green-Blue) information of a standard two-dimensional image. The image acquisition device refers to a device that acquires images of the road.

[0067] If the point cloud image is a 3D view, the confirmation operation can be a click operation. That is, the user can click anywhere on the point cloud image, and the clicked location is the location corresponding to the confirmation operation. For example, by observing the 3D point cloud, the user can see the clustering of data points on the point cloud image. By observing the clustering of data points, the user can determine which region's bounding box they want to extract from the image, and then double-click on that region.

[0068] If the point cloud image is a 2.5D view, the confirmation operation can be a selection operation. That is, the user can select an area on the point cloud image, for example, by drawing a rectangle on the point cloud image. The area selected by the user is the location corresponding to the confirmation operation. For example, if a user can see a traffic light on the point cloud image by observing it in a 2.5D view, and the user wants to extract the bounding box of the traffic light, they can draw a rectangle around the traffic light; the location of this rectangle is the location corresponding to the confirmation operation.

[0069] The advantage of this setup is that users can manipulate different types of point cloud images, selecting points in the 3D view or drawing boxes in the 2.5D view. The interaction process is simple, improving the efficiency of target extraction and enhancing the user experience.

[0070] S302. Determine the object category of the target object based on the intensity information at the corresponding location in the point cloud image; wherein, the intensity information represents the material, and the material is used to distinguish the object category.

[0071] For example, when acquiring point cloud images, scanning devices such as laser scanners can be used to scan the environment and obtain its intensity information. The laser beam emitted by these devices can strike the surface of an object and be reflected; the intensity information represents the intensity of the reflected laser beam. Different materials have different reflection intensities; therefore, intensity information is used to characterize the object's material, and the object is categorized based on its material.

[0072] After determining the corresponding location of the confirmation operation in the point cloud image, the intensity information at that location is acquired. Based on the intensity information, the material of the object at that location is determined, and thus the object category is determined based on the material. For example, if the intensity information determines that the object's material is plastic, then the object category can be determined as a traffic light.

[0073] In this embodiment, by determining the location corresponding to the confirmation operation, the intensity information at that location is obtained, enabling the differentiation of the target object's category. This allows for clustering of objects of different categories, effectively improving the accuracy of target extraction.

[0074] S303. Determine the initial seed points from the data points of the point cloud image.

[0075] For example, after responding to a user's confirmation action, an initial seed point is determined based on the location of the confirmation action. For instance, a data point can be randomly selected within a preset range of the confirmation action's location as the initial seed point; that is, the initial seed point is determined near the location of the confirmation action.

[0076] In this embodiment, if the point cloud image is a 3D view, determining the initial seed point from the data points of the point cloud image includes: determining the data point corresponding to the click operation as the initial seed point based on the user's click operation on the target object in the point cloud image.

[0077] Specifically, if the point cloud image is a 3D view, the confirmation operation is a click operation. The user can click any location on the 3D view to indicate that they want to extract the bounding box of the object at that location. In this embodiment, the click operation can be a single click or a double click.

[0078] In response to a user's click action, the system determines the location of the click within the point cloud image. Since the point cloud image contains a large number of data points, the data point at the location corresponding to the click action is designated as the initial seed point. That is, for a 3D point cloud image, the initial seed point can be directly determined based on the user's click action; different click locations will result in different initial seed points.

[0079] The advantages of this setup are that, for 3D views, the initial seed points are the data points clicked by the user, improving the efficiency of determining the initial seed points and thus improving the efficiency of target extraction. Furthermore, it simplifies user interaction and enhances the user experience.

[0080] In this embodiment, if the point cloud image is a 2.5D view, determining the initial seed point from the data points of the point cloud image further includes: determining the target box corresponding to the selection operation based on the user's selection operation on the target object in the point cloud image; and determining the initial seed point from the data points of the target box.

[0081] Specifically, if the point cloud image is a 2.5D view, the confirmation operation is a bounding box selection operation. A bounding box selection operation means that the user can draw a target box on the 2.5D view, and the object within the target box is the target object the user wants to extract. For example, the target box can be a rectangle. In this embodiment, the execution method of the bounding box selection operation is not specifically limited. For example, the user can drag the mouse to change the size and position of the target box.

[0082] In response to the user's selection action, the system determines the location of the target bounding box in the point cloud image. The target bounding box can contain a large number of data points. From these data points, one data point is selected as the initial seed point. For example, the data point located at the center of the target bounding box can be selected as the initial seed point; alternatively, a data point can be randomly selected from the target bounding box as the initial seed point.

[0083] The advantages of this setup are that, for 2.5D views, initial seed points can be determined based on the user-confirmed target bounding box. This enables target extraction for different types of point cloud images, improving the flexibility and breadth of target extraction, simplifying user interaction, and enhancing the user experience.

[0084] In this embodiment, determining the initial seed point from the data points of the target box includes: determining the curvature value of the data points in the target box and sorting the curvature values; and determining the data point corresponding to the curvature value located at the preset sorting position as the initial seed point.

[0085] Specifically, for a 2.5D view, when determining the initial seed point, the curvature value of each data point within the target bounding box can be determined. The curvature values ​​of each data point within the target bounding box are compared and sorted by size, for example, from smallest to largest. The curvature value located at a preset sorting position is then determined, for example, the smallest curvature value. The data point corresponding to the curvature value at the preset sorting position is then designated as the initial seed point. That is, the data point corresponding to the smallest curvature value is designated as the initial seed point.

[0086] The advantage of this setup is that the curvature value can represent the smoothness, or convexity, of the surface where the data point is located. Using the data point with the smallest curvature value as the initial seed point ensures that the initial seed point is not at the intersection of different planes, which is beneficial for clustering data points on the same plane and improving the efficiency and accuracy of target extraction.

[0087] S304. Based on the initial seed points and the object category of the target object, perform clustering processing on the data points on the point cloud image to obtain the clustered point cloud of the target object; wherein, the clustered point cloud is used to represent the target object.

[0088] For example, this step can refer to step S102 above, and will not be repeated here.

[0089] S305. Extract the bounding box of the target object based on the clustered point cloud; wherein, the bounding box represents the 3D rectangle that surrounds the target object.

[0090] For example, the steps can be referred to in step S103 above, and will not be repeated here.

[0091] Figure 4 This is a schematic diagram of the 3D view in this embodiment. Figure 5 This is a schematic diagram of the 2.5D view in this embodiment. Figure 4 In the process, users can click on any data point as an initial seed point. For example, a user can click on a data point in the leftmost traffic light to indicate that they want to extract data from that traffic light. Figure 5 In the image, users can select the leftmost traffic light to indicate that they want to extract it.

[0092] In this embodiment, the user confirms the object to be extracted on a point cloud image. In response to the user's confirmation, the object category of the target object is determined, and an initial seed point is identified from the data points of the point cloud image. Based on the initial seed point and the object category of the target object, the data points on the point cloud image are subjected to targeted clustering processing to obtain a clustered point cloud of the target object. The bounding box of the target object is determined based on the clustered point cloud. The user's interactive operation on the point cloud image is simple; the target object's category is determined after the user confirms the target object, and accurate extraction is performed for different object categories without requiring manual adjustment by the user, effectively improving the accuracy and efficiency of target extraction.

[0093] Figure 6 This is a flowchart illustrating a point cloud-based target extraction method provided in an embodiment of this disclosure.

[0094] In this embodiment, the data points on the point cloud image are clustered according to the initial seed points and the object category of the target object to obtain the clustered point cloud of the target object. This can be further refined as follows: the clustering parameters corresponding to the target object are determined according to the object category of the target object; wherein, the clustering parameters are used to cluster the data points on the point cloud image; the data points on the point cloud image are clustered according to the initial seed points and the clustering parameters to obtain the clustered point cloud of the target object.

[0095] like Figure 6 The method includes the following steps:

[0096] S601, In response to the user's confirmation operation on a target object in the point cloud image, determine the object category of the target object indicated by the confirmation operation, and determine the initial seed point from the data points of the point cloud image.

[0097] For example, this step can refer to step S101 above, and will not be repeated here.

[0098] S602. Determine the clustering parameters corresponding to the target object based on the object category of the target object; wherein, the clustering parameters are used to cluster the data points on the point cloud image.

[0099] For example, different clustering parameters can be set for different object categories. Different clustering parameters will produce different results in point cloud clustering. Based on the object category of the target object, the clustering parameters for that object category are determined and used as the clustering parameters corresponding to the target object. For example, different parameter ranges can be set for different object categories. After determining the object category of the target object, a parameter value is randomly selected from the parameter range corresponding to that object category as the clustering parameter for the target object.

[0100] In this embodiment, determining the clustering parameters corresponding to the target object based on the object category of the target object includes: determining the parameters associated with the object category of the target object based on the preset association relationship between the object category and the parameters, which are the clustering parameters corresponding to the target object.

[0101] Specifically, the association between object categories and parameters is pre-set and stored. In this embodiment, one object category can correspond to multiple clustering parameters; that is, multiple clustering parameters can be used for clustering. Based on the association between object categories and parameters, multiple clustering parameters associated with the object category of the target object can be found. The found multiple clustering parameters are then determined as the clustering parameters corresponding to the target object.

[0102] For example, when performing clustering, the required parameters include a first parameter and a second parameter. The relationships between different object categories and the first parameter, as well as the relationships between different object categories and the second parameter, can be pre-defined. Based on these pre-defined relationships, the first and second parameters associated with the object categories of the target object can be found. These found first and second parameters are then determined as the clustering parameters corresponding to the target object.

[0103] The advantage of this setup is that it allows for targeted clustering parameters for different object categories, enabling accurate clustering of data points for different target object categories and improving the accuracy of target extraction.

[0104] S603. Based on the initial seed points and clustering parameters, perform clustering processing on the data points on the point cloud image to obtain the clustered point cloud of the target object.

[0105] For example, after obtaining the clustering parameters, data points around the initial seed point can be clustered based on these parameters. The clustered data points are then identified as the clustered point cloud of the target object. For instance, the clustering parameters represent the curvature values ​​of the data points. Based on these parameters, data points with the same curvature values ​​around the initial seed point can be clustered together to obtain the clustered point cloud.

[0106] During the clustering process, the seed point can be continuously changed. For example, the preset clustering algorithm may have a set number of iterations, and the seed point will be changed in each iteration. The seed point of the first iteration is the initial seed point. In the second iteration, a new seed point can be determined from the data points obtained in the first iteration, and then the surrounding data points can be clustered again based on the new seed point. In this embodiment, the preset clustering algorithm is not specifically limited.

[0107] In this embodiment, by determining the clustering parameters for the corresponding categories and performing clustering based on these parameters, accurate extraction of the target object can be achieved. During the data point clustering process, no manual operation is required; the cluster point cloud is automatically generated, saving manpower and time and improving the efficiency of target extraction.

[0108] In this embodiment, the clustering parameters include a first parameter and a second parameter. The first parameter represents a threshold for the angle between normals, and the second parameter represents a threshold for curvature. Initial seed points are cached in a preset seed point array. Based on the initial seed points and the clustering parameters, clustering processing is performed on the data points in the point cloud image to obtain a clustered point cloud of the target object. This includes: determining the initial seed point as the current seed point, and determining the neighboring points of the current seed point from the point cloud image; wherein, neighboring points are data points whose distance from the seed point is less than or equal to a preset distance; if a point to be clustered is determined from the neighboring points of the current seed point according to the first parameter, then the point to be clustered is cached in a preset clustering array; wherein, the point to be clustered... The points are data points in the clustered point cloud. If a new seed point is determined from the points to be clustered according to the second parameter, the new seed point is cached in the seed point array, and the current seed point is deleted from the seed point array. Alternatively, if it is determined according to the second parameter that there is no new seed point among the points to be clustered, the current seed point is deleted from the seed point array. If it is determined that there are still seed points in the seed point array, a seed point is obtained from the seed point array as the new current seed point, and the process of determining the neighborhood points of the current seed point from the point cloud image continues until there are no seed points in the seed point array. Based on all the points to be clustered in the clustering array, the clustered point cloud of the target object is determined.

[0109] Specifically, determining the clustered point cloud involves multiple iterations, with the seed point used in each iteration becoming the current seed point. For the first iteration, the current seed point is the initial seed point. At the end of the first iteration, the current seed point for the second iteration can be generated. That is, after each iteration, the current seed point for the next iteration can be determined. A seed point array can be pre-set, and each determined seed point is cached in the seed point array. When the initial seed point is determined, it is also cached in the seed point array. Each iteration requires the use of clustering parameters. In this embodiment, the clustering parameters may include a first parameter and a second parameter. The first parameter can represent the threshold of the normal angle, and the second parameter represents the threshold of the curvature. Here, the normal angle refers to the angle between the normal of the data point and the normal of the current seed point, and the curvature refers to the curvature of the data point.

[0110] In each iteration, neighborhood points of the current seed point are determined from the point cloud image. Neighborhood points represent data points within a preset distance range from the seed point; that is, the distance between a neighboring point and the seed point can be less than or equal to the preset distance. In other words, multiple neighborhood points can be identified near the current seed point. The number of neighborhood points can be preset, for example, K. The Euclidean distances between the current seed point and each data point are determined. Based on these Euclidean distances, the K closest data points to the current seed point are identified as the neighborhood points for this iteration.

[0111] After identifying the neighborhood points, a first parameter can be used to determine if there are any points to be clustered among them. These points can be one or more, and can be combined to form a clustered point cloud. The first parameter is a threshold for the angle between normals. When identifying points to be clustered, the angle between the normals of each neighborhood point and the normal of the current seed point can be determined. The determined angle is then checked against the threshold requirement corresponding to the first parameter. Neighborhood points that meet this threshold are identified as points to be clustered. A pre-set clustering array can be used to cache points to be clustered. If a point to be clustered is identified among the neighborhood points, it is cached in the pre-set clustering array.

[0112] After confirming the existence of points to be clustered, the second parameter is used to determine if a new seed point exists among these points. This new seed point can then be used as the current seed point in subsequent iterations. For example, if the second parameter is a curvature threshold, the curvature of each point to be clustered can be determined. The curvature of each point can then be checked to see if it meets the threshold requirement of the second parameter. Points that meet the threshold are designated as new seed points. There can be one or more new seed points. These new seed points are cached in a seed point array, and the current seed point is removed from the array. In other words, after each iteration, used seed points are deleted to ensure that all seed points in the seed point array are unused.

[0113] After removing the current seed point from the seed point array, determine the number of seed points in the array, i.e., check if any seed points still exist. If none exist, the iteration count is complete, and all points to be clustered in the clustering array are combined into a clustered point cloud of the target object. If seed points still exist, a new seed point is selected from the seed point array as the new current seed point; for example, a new current seed point can be randomly selected. The neighborhood points of the new current seed point are then determined from the point cloud image. If a new point to be clustered is determined from the new neighborhood points based on the first parameter, this new point is cached in the clustering array. If a new seed point is determined from the new point to be clustered based on the second parameter, this new seed point is again cached in the seed point array, and the current seed point is removed from the array. This process continues until no seed points remain in the seed point array, completing the iteration count.

[0114] The beneficial effect of this setup is that it takes a seed point from the seed point array and determines K neighboring points. Based on two preset parameters, the seed point array and the clustering array are continuously updated. Used seed points are deleted from the seed point array until it is empty, and the data points in the clustering array are aggregated into a clustered point cloud. This achieves the targeted generation of clustered point clouds based on different clustering parameters. Through multiple iterations, the points to be clustered in the clustered point cloud are gradually improved, increasing the accuracy of the clustered point cloud determination.

[0115] In this embodiment, determining the clustering point from the neighborhood points of the current seed point according to the first parameter includes: determining the normal angle between the current seed point and the neighborhood points; if there is a neighborhood point whose normal angle with the current seed point is less than the first parameter, then the neighborhood point is determined as the clustering point corresponding to the current seed point.

[0116] Specifically, the first parameter is the threshold for the angle between the normals. After determining the neighboring points, the angle between the normal of each neighboring point and the normal of the current seed point is determined, thus obtaining the angle between the normals of each neighboring point. The angle between the normals of the neighboring points is compared with the angle threshold represented by the first parameter. If the angle between the normals of the neighboring points is less than the angle threshold represented by the first parameter, then the neighboring point is determined as a point to be clustered, and the point to be clustered is placed in the clustering array.

[0117] A non-clustered array can be pre-set. If the included angle of the normal corresponding to a neighboring point is equal to or greater than the included angle threshold represented by the first parameter, then the neighboring point can be placed in the non-clustered array.

[0118] The advantage of this setting is that, based on a preset threshold for the angle between normals, it can quickly identify neighboring points with normal orientations similar to the current seed point. This means it obtains the neighboring points most likely to be in the same object as the current seed point, which are then used as clustering points. This avoids identifying data points on objects other than the target object as clustering points, thus improving the accuracy of clustering point determination.

[0119] In this embodiment, determining a new seed point from the points to be clustered according to the second parameter includes: if there is a point to be clustered with a curvature less than the second parameter, then that point to be clustered is determined as a new seed point.

[0120] Specifically, the second parameter is the curvature threshold. Curvature represents the smoothness of the data points, that is, whether there are bumps or other irregularities on the surface of the object containing the data points. The curvature of the points to be clustered is determined by comparing it with the curvature threshold represented by the second parameter. If the curvature of a point to be clustered is less than the curvature threshold represented by the second parameter, then that point is designated as a new seed point. Multiple points to be clustered can have curvature less than the curvature threshold represented by the second parameter; that is, multiple new seed points can be determined in each iteration.

[0121] If the curvature of the point to be clustered is equal to or greater than the curvature threshold represented by the second parameter, then the point to be clustered is determined not to be a new seed point, and the point to be clustered is not cached in the seed point array.

[0122] The advantage of this setup is that, based on the second parameter, the points to be clustered on a smooth surface can be identified as new seed points. This ensures accurate clustering of data points on the same surface during subsequent iterations, preventing the selection of seed points from other surfaces and the subsequent point cloud clustering of those surfaces. This effectively improves the accuracy of clustering, and consequently, the accuracy of target extraction.

[0123] In this embodiment, the method further includes: if it is determined according to the first parameter that there are no points to be clustered in the neighborhood of the current seed point, then the current seed point is deleted from the seed point array.

[0124] Specifically, there may be no points to be clustered in the neighborhood of the current seed point. For example, if it is determined that the included angle of the normal corresponding to each neighborhood point is equal to or greater than the included angle threshold represented by the first parameter, then it is determined that there are no points to be clustered. If it is determined that there are no points to be clustered in the neighborhood of the current seed point, then it is not necessary to determine a new seed point based on the points to be clustered; the current seed point is directly deleted from the seed point array, and the number of seed points in the seed point array is determined.

[0125] If there is no seed point in the seed point array, all the points to be clustered in the current clustering array will be determined as the clustering point cloud of the target object; if there is a seed point in the seed point array, a seed point will be obtained from the seed point array as the new current seed point, and the process of determining the neighborhood points of the current seed point from the point cloud image will continue until there is no seed point in the seed point array.

[0126] For the first iteration, if no clustering points are identified, the clustering array is determined to be empty, meaning that the clustering point cloud of the target object cannot be found, and the target object extraction fails. A prompt message can be sent to the user to remind them to check.

[0127] The advantage of this setup is that if no clustering points are found, the current iteration is completed, and the next iteration is repeated, thus enabling the clustering process to proceed cyclically and improving the efficiency of determining the clustered point cloud.

[0128] In this embodiment, the method further includes: if it is determined, according to the second parameter, that there are no new seed points among the points to be clustered, then the current seed point is deleted from the seed point array.

[0129] Specifically, for each iteration, after determining the points to be clustered, there may not be any new seed points among them. For example, if it is determined that the curvature corresponding to each point to be clustered is equal to or greater than the curvature threshold represented by the second parameter, then it is determined that there are no new seed points. If it is determined that there are no new seed points, the current seed point is directly deleted from the seed point array, and the number of seed points in the seed point array is determined.

[0130] If there is no seed point in the seed point array, all the points to be clustered in the current clustering array will be determined as the clustering point cloud of the target object; if there is a seed point in the seed point array, a seed point will be obtained from the seed point array as the new current seed point, and the process of determining the neighborhood points of the current seed point from the point cloud image will continue until there is no seed point in the seed point array.

[0131] The advantage of this setting is that if no new seed point is found, the current iteration is completed, and the next iteration is automatically repeated, realizing the cyclical execution of the clustering process and improving the determination efficiency of the clustered point cloud.

[0132] In this embodiment, the method further includes: if it is determined that there are no clustering points in the clustering array, then determining the parent category of the object category of the target object; wherein the parent category is the upper level of the object category of the target object; and determining the parameters associated with the parent category according to the preset association relationship between the object category and the parameters, which are the new clustering parameters corresponding to the target object.

[0133] Specifically, if all iterations are complete, the points to be clustered are obtained from the clustering array and used as the cluster point cloud for the target object. If it is determined that there are no points to be clustered in the clustering array, the clustering parameters can be changed and clustering can be performed again.

[0134] It's possible to determine the parent category of the target object's object category. The parent category is the level above the target object's object category; that is, the target object's object category is a subordinate category of the parent category. For example, if the target object's object category is "traffic light," and traffic lights are a type of signal light, then the parent category is "signal light." In other words, it's possible to perform both sub-categorization and coarse-categorization of various traffic signs on the road. Sub-categorization refers to determining the category to which each object directly belongs, while coarse-categorization refers to the category to which multiple objects belong uniformly. First, based on the sub-categorized categories, determine the target object's object category. If clustering fails, then based on the coarse-categorized categories, determine the parent category of the target object's object category.

[0135] Based on the preset association between object categories and parameters, parameters associated with the parent category are determined and used as new clustering parameters for the target object. Using the initial seed points and the new clustering parameters, the data points on the point cloud image are re-clustered to obtain the clustered point cloud of the target object.

[0136] In this embodiment, default clustering parameters can also be preset. If the clustered point cloud cannot be obtained using the clustering parameters of the parent category, the default clustering parameters can be used. Based on the initial seed points and the default clustering parameters, the data points on the point cloud image are re-clustered to ensure that the clustered point cloud of the target object can be obtained. In other words, clustering using the clustering parameters corresponding to the object category of the target object has a lower success rate but the highest accuracy; clustering using the clustering parameters corresponding to the parent category has a higher success rate but moderate accuracy; and clustering using the default clustering parameters has the highest success rate but lower accuracy.

[0137] The advantage of this setup is that it can generate accurate clustered point clouds by using the clustering parameters corresponding to the object category of the target object. However, these clustering parameters are quite stringent in terms of the conditions for generating the clustered points. For example, if the threshold for the normal angle in the first parameter is set too low, it will be impossible to find clustered points with smaller normal angles when determining the clustered points. By changing the clustering parameters to those corresponding to the parent category, the probability of finding the clustered points can be increased, improving the success rate of target extraction. Furthermore, the clustering parameters can be changed automatically without requiring manual user intervention, thus improving the user experience.

[0138] In this embodiment, the point cloud image is a 2.5D view, and the confirmation operation is a bounding box operation, which is used to generate a target bounding box on the point cloud image. The method also includes: determining all the identified neighboring points as used points; if there are data points other than used points in the target bounding box, determining the curvature values ​​of the data points other than used points in the target bounding box and sorting the curvature values; determining the data points corresponding to the curvature values ​​located at the preset sorting positions as new initial seed points; continuing to perform clustering processing on the data points on the point cloud image based on the new initial seed points and the object category of the target object to obtain the clustered point cloud of the target object, until there are no data points other than used points in the target bounding box.

[0139] Specifically, in 3D views, the initial seed point is determined by the user's click action, and the user does not limit the extraction range of the target object. However, in 2.5D views, the user selects an area within the image, indicating that they want to extract objects within that area, thus limiting the extraction range. Multiple objects may exist within the target area; for example, the target area may contain... Figure 3 The three traffic lights in the diagram. Data points clustered on different objects are far apart. When performing clustering, data points that are far apart will not become neighbors of the seed point and will not be clustered into the cluster point cloud.

[0140] For a 2.5D view, the identified neighboring points can be designated as used points. After generating a set of clustered point clouds, it can be determined whether there are any data points in the target bounding box other than those already used, i.e., whether there are any unused points in the target bounding box. If not, the bounding box of the target object can be extracted based on the clustered point cloud, and the target extraction process is complete. If it exists, it means that there are multiple target objects in the target bounding box, and only the clustered point cloud of one target object has been determined so far; the clustered point clouds of the other target objects still need to be determined.

[0141] Determine the curvature values ​​of unused points within the target bounding box, sort these curvature values, and select the unused point corresponding to the smallest curvature value as the new initial seed point. Based on the new initial seed point, repeat steps S602 and S603 to obtain a new clustered point cloud until no data points other than those already used remain within the target bounding box. Each clustered point cloud can correspond to a bounding box.

[0142] The advantage of this setting is that if the target box defined by the user includes multiple target objects, each target object can be extracted, improving the efficiency of target extraction and enhancing the user experience.

[0143] S604. Extract the bounding box of the target object based on the clustered point cloud; whereby the bounding box represents the 3D rectangle that surrounds the target object.

[0144] For example, this step can refer to step S103 above, and will not be repeated here.

[0145] In this embodiment, the user confirms the object to be extracted on a point cloud image. In response to the user's confirmation, the object category of the target object is determined, and an initial seed point is identified from the data points of the point cloud image. Based on the initial seed point and the object category of the target object, the data points on the point cloud image are subjected to targeted clustering processing to obtain a clustered point cloud of the target object. The bounding box of the target object is determined based on the clustered point cloud. The user's interactive operation on the point cloud image is simple; the target object's category is determined after the user confirms the target object, and accurate extraction is performed for different object categories without requiring manual adjustment by the user, effectively improving the accuracy and efficiency of target extraction.

[0146] Figure 7 This is a flowchart illustrating an iterative method for clustering provided in an embodiment of this disclosure. Figure 7 The method includes the following steps:

[0147] S701. Determine the current seed point.

[0148] For example, in the first iteration, the current seed point is the initial seed point. In subsequent iterations, the current seed point is determined by the previous iteration.

[0149] S702. Determine the neighborhood points of the current seed point from the point cloud image.

[0150] S703. Based on the first parameter, determine whether there are any points to be clustered in the neighborhood of the current seed point.

[0151] For example, if yes, then S704 is executed; if no, then S707 is executed.

[0152] S704. Cache the points to be clustered in the preset clustering array.

[0153] S705. Based on the second parameter, determine whether there are new seed points among the points to be clustered.

[0154] For example, if yes, then S706 is executed; if no, then S707 is executed.

[0155] S706. Cache the new seed point in the seed point array.

[0156] S707. Remove the current seed point from the seed point array.

[0157] S708. Determine if a seed point exists in the seed point array.

[0158] For example, if yes, then S701 is executed; if no, then S709 is executed.

[0159] S709. Determine the cluster point cloud of the target object based on all the points to be clustered in the cluster array.

[0160] Figure 8 This is a structural block diagram of a point cloud-based target extraction device provided in an embodiment of this disclosure. For ease of explanation, only the parts relevant to the embodiments of this disclosure are shown. (Refer to...) Figure 8 The point cloud-based target extraction device 800 includes: a determination unit 801, a clustering unit 802, and an extraction unit 803.

[0161] The determining unit 801 is configured to, in response to a user's confirmation operation on a target object in a point cloud image, determine the object category of the target object indicated by the confirmation operation, and determine initial seed points from the data points of the point cloud image; wherein the confirmation operation is used to indicate the target object in the point cloud image, and the initial seed points are used to cluster the data points in the point cloud image.

[0162] Clustering unit 802 is used to cluster data points on the point cloud image according to the initial seed points and the object category of the target object to obtain a clustered point cloud of the target object; wherein, the clustered point cloud is used to represent the target object;

[0163] Extraction unit 803 is used to extract the bounding box of the target object based on the clustered point cloud; wherein the bounding box represents a 3D rectangle surrounding the target object.

[0164] Figure 9 This is a structural block diagram of a point cloud-based target extraction device provided in an embodiment of this disclosure. Figure 9As shown, the target extraction device 900 based on point cloud includes a determination unit 901, a clustering unit 902 and an extraction unit 903, wherein the determination unit 901 includes a position determination module 9011 and a category determination module 9012.

[0165] The location determination module 9011 is used to determine the corresponding location of the confirmation operation on the point cloud image in response to a user's confirmation operation on a target object on the point cloud image.

[0166] The category determination module 9012 is used to determine the object category of the target object based on the intensity information at the corresponding position in the point cloud image; wherein the intensity information represents the material, and the material is used to distinguish the object category.

[0167] In one example, the point cloud image is a 3D view, and the confirmation operation is a click operation performed by the user on the target object; or

[0168] The point cloud image is a 2.5D view, and the confirmation operation is a selection operation made by the user on the target object.

[0169] In one example, if the point cloud image is a 3D view; the determining unit 901 includes:

[0170] The click module is used to determine the data point corresponding to the click operation as the initial seed point based on the click operation performed by the user on the target object in the point cloud image.

[0171] In one example, if the point cloud image is a 2.5D view; the determining unit 901 includes:

[0172] The bounding box module is used to determine the target bounding box corresponding to the bounding box operation based on the bounding box operation performed by the user on the point cloud image; and to determine the initial seed point from the data points of the target bounding box.

[0173] In one example, the selected modules include:

[0174] The sorting submodule is used to determine the curvature values ​​of the data points in the target frame and sort the curvature values.

[0175] The sequence determination submodule is used to determine the data point corresponding to the curvature value located at the preset sorting position as the initial seed point.

[0176] In one example, cluster unit 902 includes:

[0177] The parameter determination module is used to determine the clustering parameters corresponding to the target object based on the object category of the target object; wherein, the clustering parameters are used to cluster data points on the point cloud image;

[0178] The clustering module is used to perform clustering processing on the data points on the point cloud image based on the initial seed points and the clustering parameters to obtain the clustered point cloud of the target object.

[0179] In one example, the clustering parameters include a first parameter and a second parameter, where the first parameter represents a threshold for the included angle of the normals, and the second parameter represents a threshold for the curvature; the initial seed points are cached in a preset seed point array; the clustering module includes:

[0180] The first determining submodule is used to determine the initial seed point as the current seed point and determine the neighboring points of the current seed point from the point cloud image; wherein, the neighboring points are data points that are less than or equal to a preset distance from the seed point;

[0181] The second determining submodule is used to cache the point to be clustered in a preset clustering array if a point to be clustered is determined from the neighborhood points of the current seed point according to the first parameter; wherein the point to be clustered is a data point in the clustering point cloud;

[0182] The third determining submodule is used to cache the new seed point in the seed point array and delete the current seed point from the seed point array if a new seed point is determined from the points to be clustered according to the second parameter; or, if it is determined according to the second parameter that there is no new seed point among the points to be clustered, delete the current seed point from the seed point array.

[0183] The seed point update submodule is used to, if it is determined that there are still seed points in the seed point array, obtain a seed point from the seed point array as the new current seed point, and continue to execute the process of determining the neighborhood points of the current seed point from the point cloud image until there are no seed points in the seed point array.

[0184] The point cloud determination submodule is used to determine the clustered point cloud of the target object based on all the points to be clustered in the clustering array.

[0185] In one example, the second determined submodule is specifically used for:

[0186] Determine the normal angle between the current seed point and each of the neighboring points. If there is a neighboring point whose normal angle with the current seed point is less than the first parameter, then that neighboring point is determined as the clustering point corresponding to the current seed point.

[0187] In one example, the third determining submodule is specifically used for:

[0188] If there exists a point to be clustered with a curvature less than the second parameter, then that point to be clustered is determined as a new seed point.

[0189] One example also includes:

[0190] The deletion unit is used to delete the current seed point from the seed point array if it is determined, based on the first parameter, that there are no points to be clustered in the neighborhood of the current seed point.

[0191] In one example, the parameter determination module is specifically used for:

[0192] Based on the preset association between object categories and parameters, the parameters associated with the object category of the target object are determined, which are the clustering parameters corresponding to the target object.

[0193] One example also includes:

[0194] The parent category determination unit is used to determine the parent category of the object category of the target object if it is determined that there is no point to be clustered in the clustering array; wherein the parent category is the one level above the object category of the target object;

[0195] The parameter update unit is used to determine the parameters associated with the parent category based on the preset association relationship between the object category and the parameters, and to set them as new clustering parameters for the target object.

[0196] In one example, the point cloud image is a 2.5D view, and the confirmation operation is a bounding box operation, which is used to generate a target bounding box on the point cloud image; the device further includes:

[0197] The neighborhood point determination unit is used to determine all the determined neighborhood points as used points;

[0198] A curvature sorting unit is used to determine the curvature values ​​of the data points in the target frame other than the used points if there are data points in the target frame other than the used points, and to sort the curvature values.

[0199] The initial update unit is used to determine the data point corresponding to the curvature value located at the preset sorting position as the new initial seed point;

[0200] The repeat execution unit is used to continue executing the clustering process of data points on the point cloud image based on the new initial seed point and the object category of the target object, to obtain the clustered point cloud of the target object, until there are no data points other than the points already used in the target box.

[0201] In one example, extraction unit 903 includes:

[0202] The projection module is used to project the clustered point cloud onto a plane parallel to the ground to obtain the circumscribed 2D rectangle of the clustered point cloud.

[0203] The bounding box determination module is used to obtain the bounding box of the clustered point cloud as the bounding box of the target object based on the height information of the data points in the clustered point cloud and the bounding 2D rectangle; wherein the bottom surface of the bounding box is parallel to the ground and the side surface of the bounding box is perpendicular to the ground.

[0204] According to embodiments of this disclosure, this disclosure also provides an electronic device.

[0205] Figure 10 A structural block diagram of an electronic device provided in this disclosure embodiment, such as... Figure 10 As shown, the electronic device 1000 includes: at least one processor 1002; and a memory 1001 communicatively connected to the at least one processor 1002; wherein the memory stores instructions executable by the at least one processor 1002, the instructions being executed by the at least one processor 1002 to enable the at least one processor 1002 to execute the point cloud-based target extraction method of this disclosure.

[0206] The electronic device 1000 also includes a receiver 1003 and a transmitter 1004. The receiver 1003 is used to receive instructions and data sent by other devices, and the transmitter 1004 is used to send instructions and data to external devices.

[0207] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0208] According to embodiments of this disclosure, this disclosure also provides a computer program product comprising: a computer program stored in a readable storage medium, at least one processor of an electronic device being able to read the computer program from the readable storage medium, and the at least one processor executing the computer program causing the electronic device to perform the scheme provided in any of the above embodiments.

[0209] Figure 11A schematic block diagram of an example electronic device 1100 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0210] like Figure 11 As shown, device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in read-only memory (ROM) 1102 or a computer program loaded from storage unit 1108 into random access memory (RAM) 1103. The RAM 1103 may also store various programs and data required for the operation of device 1100. The computing unit 1101, ROM 1102, and RAM 1103 are interconnected via bus 1104. Input / output (I / O) interface 1105 is also connected to bus 1104.

[0211] Multiple components in device 1100 are connected to I / O interface 1105, including: input unit 1106, such as keyboard, mouse, etc.; output unit 1107, such as various types of monitors, speakers, etc.; storage unit 1108, such as disk, optical disk, etc.; and communication unit 1109, such as network card, modem, wireless transceiver, etc. Communication unit 1109 allows device 1100 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0212] The computing unit 1101 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1101 performs the various methods and processes described above, such as point cloud-based target extraction methods. For example, in some embodiments, the point cloud-based target extraction method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 1108. In some embodiments, part or all of the computer program may be loaded and / or installed on device 1100 via ROM 1102 and / or communication unit 1109. When the computer program is loaded into RAM 1103 and executed by the computing unit 1101, one or more steps of the point cloud-based target extraction method described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to perform a point cloud-based target extraction method by any other suitable means (e.g., by means of firmware).

[0213] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0214] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0215] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0216] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0217] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0218] Computer systems can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. A server can be a cloud server, also known as a cloud computing server or cloud host, a hosting product within the cloud computing service ecosystem, addressing the shortcomings of traditional physical hosts and VPS (Virtual Private Server, or simply "VPS") services, such as high management difficulty and weak business scalability. Servers can also be servers for distributed systems or servers incorporating blockchain technology.

[0219] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0220] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A target extraction method based on point clouds, comprising: In response to a user's confirmation operation on a target object in a point cloud image, the object category of the target object indicated by the confirmation operation is determined, and initial seed points are determined from the data points of the point cloud image; wherein, the confirmation operation is used to indicate the target object in the point cloud image, and the initial seed points are used to cluster the data points in the point cloud image. Based on the object category of the target object, clustering parameters corresponding to the target object are determined; wherein, the clustering parameters are used to cluster data points on the point cloud image, and the clustering parameters include a first parameter and a second parameter, wherein the first parameter represents a threshold for the included angle of the normals, and the second parameter represents a threshold for the curvature; Based on the initial seed points and the clustering parameters, the data points on the point cloud image are clustered to obtain the clustered point cloud of the target object; wherein, the clustered point cloud is used to represent the target object; Based on the clustered point cloud, the bounding box of the target object is extracted; wherein, the bounding box represents a 3D rectangle surrounding the target object.

2. The method according to claim 1, wherein, In response to a user's confirmation operation regarding a target object on a point cloud image, the object category of the target object indicated by the confirmation operation is determined, including: In response to a user's confirmation operation on a target object in a point cloud image, determine the corresponding location of the confirmation operation in the point cloud image; The object category of the target object is determined based on the intensity information at the corresponding location in the point cloud image; wherein the intensity information represents the material, and the material is used to distinguish the object category.

3. The method according to claim 2, wherein, The point cloud image is a 3D view, and the confirmation operation is a click operation performed by the user on the target object; or The point cloud image is a 2.5D view, and the confirmation operation is a selection operation made by the user on the target object.

4. The method according to claim 3, wherein, If the point cloud image is a 3D view; Determining initial seed points from the data points of the point cloud image includes: Based on the user's click operation on the target object in the point cloud image, the data point corresponding to the click operation is determined as the initial seed point.

5. The method according to claim 3, wherein, If the point cloud image is a 2.5D view; Determining initial seed points from the data points of the point cloud image further includes: Based on the user's selection operation on the point cloud image, determine the target box corresponding to the selection operation; The initial seed point is determined from the data points of the target box.

6. The method according to claim 5, wherein, Determining the initial seed point from the data points of the target bounding box includes: Determine the curvature values ​​of the data points in the target frame, and sort the curvature values; The data point corresponding to the curvature value located at the preset sorting position is determined as the initial seed point.

7. The method according to claim 1, wherein, The initial seed points are cached in a preset seed point array; Based on the initial seed points and the clustering parameters, the data points on the point cloud image are clustered to obtain the clustered point cloud of the target object, including: The initial seed point is determined as the current seed point, and the neighboring points of the current seed point are determined from the point cloud image; wherein, the neighboring points are data points that are less than or equal to a preset distance from the seed point; If a point to be clustered is determined from the neighborhood points of the current seed point according to the first parameter, the point to be clustered is cached in a preset clustering array; wherein, the point to be clustered is a data point in the clustering point cloud; If a new seed point is determined from the points to be clustered according to the second parameter, the new seed point is cached in the seed point array, and the current seed point is deleted from the seed point array; or, if it is determined according to the second parameter that there is no new seed point among the points to be clustered, the current seed point is deleted from the seed point array. If it is determined that there are still seed points in the seed point array, then a seed point is obtained from the seed point array as the new current seed point, and the process of determining the neighborhood points of the current seed point from the point cloud image continues until there are no seed points in the seed point array. The cluster point cloud of the target object is determined based on all the points to be clustered in the clustering array.

8. The method according to claim 7, wherein, Determining the points to be clustered from the neighborhood points of the current seed point based on the first parameter includes: Determine the normal angle between the current seed point and each of the neighboring points. If there is a neighboring point whose normal angle with the current seed point is less than the first parameter, then that neighboring point is determined as the clustering point corresponding to the current seed point.

9. The method according to claim 7, wherein, Determining new seed points from the points to be clustered based on the second parameter includes: If there exists a point to be clustered with a curvature less than the second parameter, then that point to be clustered is determined as a new seed point.

10. The method of claim 7, further comprising: If, based on the first parameter, it is determined that there are no points to be clustered in the neighborhood of the current seed point, then the current seed point is deleted from the seed point array.

11. The method according to any one of claims 7-10, wherein, Based on the object category of the target object, determine the clustering parameters corresponding to the target object, including: Based on the preset association between object categories and parameters, the parameters associated with the object category of the target object are determined, which are the clustering parameters corresponding to the target object.

12. The method of claim 11, further comprising: If it is determined that there are no clustering points in the clustering array, then the parent category of the object category of the target object is determined; wherein, the parent category is the one level above the object category of the target object; Based on the preset association between object categories and parameters, the parameters associated with the parent category are determined as new clustering parameters corresponding to the target object.

13. The method according to any one of claims 7-10 and 12, wherein the point cloud image is a 2.5D view, the confirmation operation is a box selection operation, and the box selection operation is used to generate a target box on the point cloud image; The method further includes: All identified neighboring points are designated as used points; If there are data points in the target frame other than the points that have been used, then determine the curvature values ​​of the data points in the target frame other than the points that have been used, and sort the curvature values. The data point corresponding to the curvature value located at the preset sorting position is determined as the new initial seed point; Continue performing clustering processing on the data points on the point cloud image based on the new initial seed points and the object category of the target object to obtain the clustered point cloud of the target object, until there are no data points other than the points already used in the target box.

14. The method according to any one of claims 1-10, 12, wherein, Based on the clustered point cloud, the bounding box of the target object is extracted, including: The clustered point cloud is projected onto a plane parallel to the ground to obtain the circumscribed 2D rectangle of the clustered point cloud. Based on the height information of the data points in the clustered point cloud and the circumscribed 2D rectangle, the circumscribed 3D rectangle of the clustered point cloud is obtained, which is the bounding box of the target object; wherein, the bottom surface of the bounding box is parallel to the ground, and the side surface of the bounding box is perpendicular to the ground.

15. A target extraction device based on point clouds, comprising: A determining unit is configured to, in response to a user's confirmation operation on a target object in a point cloud image, determine the object category of the target object indicated by the confirmation operation, and determine initial seed points from the data points of the point cloud image; wherein the confirmation operation is used to indicate the target object in the point cloud image, and the initial seed points are used to cluster the data points in the point cloud image. A clustering unit is used to cluster data points on the point cloud image according to the initial seed points and the object category of the target object to obtain a clustered point cloud of the target object; wherein, the clustered point cloud is used to represent the target object; An extraction unit is used to extract the bounding box of the target object based on the clustered point cloud; wherein the bounding box represents a 3D rectangle surrounding the target object; The clustering unit includes: The parameter determination module is used to determine the clustering parameters corresponding to the target object based on the object category of the target object; wherein, the clustering parameters are used to cluster data points on the point cloud image, and the clustering parameters include a first parameter and a second parameter, wherein the first parameter represents a threshold for the included angle of the normals, and the second parameter represents a threshold for the curvature; The clustering module is used to perform clustering processing on the data points on the point cloud image based on the initial seed points and the clustering parameters to obtain the clustered point cloud of the target object.

16. The apparatus according to claim 15, wherein, The determining unit includes: The location determination module is used to determine the corresponding location of the confirmation operation on the point cloud image in response to a user's confirmation operation on a target object on the point cloud image. The category determination module is used to determine the object category of the target object based on the intensity information at the corresponding location in the point cloud image; wherein the intensity information represents the material, and the material is used to distinguish the object category.

17. The apparatus according to claim 16, wherein, The point cloud image is a 3D view, and the confirmation operation is a click operation performed by the user on the target object; or The point cloud image is a 2.5D view, and the confirmation operation is a selection operation made by the user on the target object.

18. The apparatus according to claim 17, wherein, If the point cloud image is a 3D view; The determining unit includes: The click module is used to determine the data point corresponding to the click operation as the initial seed point based on the click operation performed by the user on the target object in the point cloud image.

19. The apparatus according to claim 17, wherein, If the point cloud image is a 2.5D view; The determining unit includes: The bounding box module is used to determine the target bounding box corresponding to the bounding box operation based on the bounding box operation performed by the user on the target object in the point cloud image; The initial seed point is determined from the data points of the target box.

20. The apparatus according to claim 19, wherein, The selection module includes: The sorting submodule is used to determine the curvature values ​​of the data points in the target frame and sort the curvature values. The sequence determination submodule is used to determine the data point corresponding to the curvature value located at the preset sorting position as the initial seed point.

21. The apparatus according to claim 15, wherein the initial seed point is cached in a preset seed point array; The clustering module includes: The first determining submodule is used to determine the initial seed point as the current seed point and determine the neighboring points of the current seed point from the point cloud image; wherein, the neighboring points are data points that are less than or equal to a preset distance from the seed point; The second determining submodule is used to cache the point to be clustered in a preset clustering array if a point to be clustered is determined from the neighborhood points of the current seed point according to the first parameter; wherein the point to be clustered is a data point in the clustering point cloud; The third determining submodule is used to cache the new seed point in the seed point array and delete the current seed point from the seed point array if a new seed point is determined from the points to be clustered according to the second parameter; or, if it is determined according to the second parameter that there is no new seed point among the points to be clustered, delete the current seed point from the seed point array. The seed point update submodule is used to, if it is determined that there are still seed points in the seed point array, obtain a seed point from the seed point array as the new current seed point, and continue to execute the process of determining the neighborhood points of the current seed point from the point cloud image until there are no seed points in the seed point array. The point cloud determination submodule is used to determine the clustered point cloud of the target object based on all the points to be clustered in the clustering array.

22. The apparatus according to claim 21, wherein, The second determining submodule is specifically used for: Determine the normal angle between the current seed point and each of the neighboring points. If there is a neighboring point whose normal angle with the current seed point is less than the first parameter, then that neighboring point is determined as the clustering point corresponding to the current seed point.

23. The apparatus according to claim 21, wherein, The third determining submodule is specifically used for: If there exists a point to be clustered with a curvature less than the second parameter, then that point to be clustered is determined as a new seed point.

24. The apparatus of claim 23, further comprising: The deletion unit is used to delete the current seed point from the seed point array if it is determined, based on the first parameter, that there are no points to be clustered in the neighborhood of the current seed point.

25. The apparatus according to any one of claims 21-24, wherein, The parameter determination module is specifically used for: Based on the preset association between object categories and parameters, the parameters associated with the object category of the target object are determined, which are the clustering parameters corresponding to the target object.

26. The apparatus of claim 25, further comprising: The parent category determination unit is used to determine the parent category of the object category of the target object if it is determined that there is no point to be clustered in the clustering array; wherein the parent category is the one level above the object category of the target object; The parameter update unit is used to determine the parameters associated with the parent category based on the preset association relationship between the object category and the parameters, and to set them as new clustering parameters for the target object.

27. The apparatus according to any one of claims 21-24 and 26, wherein the point cloud image is a 2.5D view, the confirmation operation is a box selection operation, and the box selection operation is used to generate a target box on the point cloud image; The device further includes: The neighborhood point determination unit is used to determine all the determined neighborhood points as used points; A curvature sorting unit is used to determine the curvature values ​​of the data points in the target frame other than the used points if there are data points in the target frame other than the used points, and to sort the curvature values. The initial update unit is used to determine the data point corresponding to the curvature value located at the preset sorting position as the new initial seed point; The repeat execution unit is used to continue executing the clustering process of data points on the point cloud image based on the new initial seed point and the object category of the target object, to obtain the clustered point cloud of the target object, until there are no data points other than the points already used in the target box.

28. The apparatus according to any one of claims 15-24, 26, wherein, The extraction unit includes: The projection module is used to project the clustered point cloud onto a plane parallel to the ground to obtain the circumscribed 2D rectangle of the clustered point cloud. The bounding box determination module is used to obtain the bounding box of the clustered point cloud as the bounding box of the target object based on the height information of the data points in the clustered point cloud and the bounding 2D rectangle; wherein the bottom surface of the bounding box is parallel to the ground and the side surface of the bounding box is perpendicular to the ground.

29. An electronic device comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-14.

30. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-14.

31. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1-14.

Citation Information

Patent Citations

  • Unmanned vehicle positioning method and system

    CN111505662A

  • Object recognition method and device, equipment and medium

    CN114926656A