Point cloud data segmentation method and device, storage medium and electronic equipment

Through the correlation between image data and point cloud data, the detection model and the fitting model are used to segment and fit the point cloud data, which solves the problem of low segmentation accuracy of point cloud data and achieves higher segmentation accuracy and noise. Resistance.

CN118537347APending Publication Date: 2024-08-23GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410618336.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

When segmenting point cloud data in the existing technology, there is a problem of low accuracy, which is affected by noise and interference, and there is no effective solution.

Method used

By obtaining image data and point cloud data, determine the pixel coordinates of the target point in the point cloud data in the image data, call the detection model to detect the target object in the image data, and use the comparison results of the recognition frame and the pixel coordinates to detect the point cloud The data is segmented, and the target point cloud data is further fitted through the fitting model to determine interior points and noise points.

Benefits of technology

The accuracy of point cloud data segmentation is improved. Through the correlation between image data and point cloud data, effective segmentation and fitting of point cloud data are achieved, and the impact of noise interference is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537347A
    Figure CN118537347A
Patent Text Reader

Abstract

The invention discloses a point cloud data segmentation method and device, a storage medium and electronic equipment. The method comprises the steps that image data and point cloud data are acquired, and an incidence relation exists between the image data and the point cloud data; determining a pixel coordinate of a target point in the point cloud data in the image data; a detection model is called to detect a target object in the image data to obtain an identification frame of the target object, the identification frame is compared with the pixel coordinates to obtain a first comparison result, the detection model is obtained based on image model framework training, and the first comparison result is used for representing the position relation between the pixel coordinates and the identification frame; and based on the first comparison result, segmenting the point cloud data to obtain a segmentation result. The technical problem of low accuracy of segmenting the point cloud data is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, storage medium and electronic device for segmenting point cloud data. Background Art

[0002] At present, the method of segmenting point cloud data is usually to input the point cloud data into a machine learning model for processing, or to process the image data and the point cloud data separately and then merge the processing results of the two. However, the above methods all directly process the complete point cloud data, which may be affected by noise and interference, and thus there is a technical problem of low accuracy in segmenting point cloud data.

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

[0004] The embodiments of the present application provide a method, device, storage medium and electronic device for segmenting point cloud data to at least solve the technical problem of low accuracy in segmenting point cloud data.

[0005] According to one aspect of an embodiment of the present application, a method for segmenting point cloud data is provided. The method may include: acquiring image data and point cloud data, wherein the image data and the point cloud data have an association relationship; determining the pixel coordinates of the target point in the point cloud data in the image data; calling a detection model to detect the target object in the image data, obtaining a recognition frame of the target object, and comparing the recognition frame with the pixel coordinates to obtain a first comparison result, wherein the detection model is obtained by training based on an image model framework, and the first comparison result is used to characterize the positional relationship between the pixel coordinates and the recognition frame; based on the first comparison result, segmenting the point cloud data to obtain a segmentation result.

[0006] Optionally, based on the first comparison result, the point cloud data is segmented to obtain a segmentation result, including: in response to the first comparison result that the pixel coordinates are within the identification box, determining that the segmentation result is that the target point belongs to the target object; in response to the first comparison result that the pixel coordinates are outside the identification box, determining that the segmentation result is that the target point is a noise point.

[0007] Optionally, after segmenting the point cloud data based on the first comparison result to obtain a segmentation result, the method further includes: determining the segmented point cloud data as target point cloud data; and fitting the target point cloud data to obtain a fitting result.

[0008] Optionally, fitting the target point cloud data to obtain a fitting result includes: selecting multiple sample points from the target point cloud data; determining fitting parameters of a fitting model based on the multiple sample points, wherein the fitting model is used to fit the target point cloud data; and fitting the target point cloud data based on the fitting parameters to obtain a fitting result.

[0009] Optionally, based on the fitting parameters, the target point cloud data is fitted to obtain a fitting result, including: based on the fitting parameters, determining the error value of each sample point in the fitting model among multiple sample points to obtain multiple error values; comparing each error value among the multiple error values ​​with an error threshold to obtain a second comparison result; and determining the fitting result based on the second comparison result.

[0010] Optionally, based on the second comparison result, determining the fitting result includes: in response to the second comparison result being that the error value is less than the error threshold, determining the fitting result is that the sample point is an internal point; in response to the second comparison result being that the error value is greater than or equal to the error threshold, determining the fitting result is that the sample point is a noise point.

[0011] Optionally, the method further includes: determining the number of inliers; and ending fitting of the target point cloud data in response to a ratio of the number of inliers to the total number of the plurality of sample points being greater than a ratio threshold.

[0012] Optionally, the method further includes: determining the label of the inner point as a target label, wherein the target label is a label corresponding to the recognition box.

[0013] Optionally, before determining the pixel coordinates of the target point in the point cloud data in the image data, the method further includes: preprocessing the point cloud data, wherein the preprocessing includes at least sampling processing and filtering processing.

[0014] According to another aspect of the embodiment of the present application, a device for segmenting point cloud data is also provided. The device may include: an acquisition unit, used to acquire image data and point cloud data, wherein the image data and the point cloud data have an association relationship; a first determination unit, used to determine the pixel coordinates of the target point in the point cloud data in the image data; a comparison unit, used to call a detection model to detect the target object in the image data, obtain a recognition frame of the target object, and compare the recognition frame with the pixel coordinates to obtain a first comparison result, wherein the detection model is obtained by training based on the image model framework, and the first comparison result is used to characterize the positional relationship between the pixel coordinates and the recognition frame; a segmentation unit, used to segment the point cloud data based on the first comparison result to obtain a segmentation result.

[0015] According to another aspect of an embodiment of the present application, a non-volatile storage medium is also provided, including: the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute any point cloud data segmentation method.

[0016] According to another aspect of an embodiment of the present application, an electronic device is also provided, including: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement any point cloud data segmentation method.

[0017] According to another aspect of the embodiment of the present application, a computer program product is further provided. The computer program product may include a computer program, wherein the computer program is configured to execute any of the above point cloud data segmentation methods when running.

[0018] According to another aspect of the embodiment of the present application, a computer program product is also provided. The computer program product may include a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and the computer program is configured to execute any of the above point cloud data segmentation methods when running.

[0019] According to another aspect of the embodiment of the present application, a computer program is further provided, wherein the computer program is configured to execute any one of the above point cloud data segmentation methods when running.

[0020] In an embodiment of the present application, image data and point cloud data are obtained, wherein the image data and the point cloud data have an associated relationship; the pixel coordinates of the target point in the point cloud data in the image data are determined; the detection model is called to detect the target object in the image data to obtain the recognition frame of the target object, and the recognition frame is compared with the pixel coordinates to obtain a first comparison result, wherein the detection model is trained based on the image model framework, and the first comparison result is used to characterize the positional relationship between the pixel coordinates and the recognition frame; based on the first comparison result, the point cloud data is segmented to obtain a segmentation result. In other words, the present application determines the pixel coordinates of the target point in the point cloud data in the image data, further calls the detection model to detect the target object in the image data, obtains the recognition frame of the target object, and compares the recognition frame with the pixel coordinates. When the pixel coordinates are within the recognition frame, it is determined that the target point belongs to the target object, thereby achieving the technical effect of improving the accuracy of segmenting the point cloud data, and further solving the technical problem of low accuracy in segmenting the point cloud data. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0022] Figure 1 is a flow chart of a method for segmenting point cloud data according to an embodiment of the present application;

[0023] Figure 2 is a structural schematic diagram of a point cloud data segmentation device according to an embodiment of the present application;

[0024] Figure 3 It is a schematic block diagram of an electronic device 300 according to an embodiment of the present application. DETAILED DESCRIPTION

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

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

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

[0028] Figure 1 is a flow chart of a method for segmenting point cloud data according to an embodiment of the present application, such as Figure 1 As shown, the method may include the following steps:

[0029] Step S102, acquiring image data and point cloud data, wherein the image data and the point cloud data are associated with each other.

[0030] In the technical solution provided in the above step S102, image data and point cloud data can be obtained. There is an association relationship between the image data and the point cloud data. This embodiment performs a coarse filtering on the point cloud data based on the image data, extracts the corresponding point cloud data, and realizes the segmentation of the point cloud data.

[0031] Step S104, determining the pixel coordinates of the target point in the point cloud data in the image data.

[0032] In the technical solution provided in the above step S104, after acquiring the image data and the point cloud data, the pixel coordinates of the target point in the point cloud data in the image data can be determined. The target point can be each point in the point cloud data, for example, it can be a point P in the point cloud data, which can be represented by (x, y, z). The pixel coordinates can be used to represent the horizontal and vertical positions of the target point in the point cloud data in the image data, for example, the pixel coordinates of point P can be represented by (u, v).

[0033] Optionally, after acquiring the image data and the point cloud data, the pixel coordinates of the point P (x, y, z) in the point cloud data in the image data may be determined by the following formula:

[0034]

[0035] Among them, u and v can be used to represent pixel coordinates, dx and dy can be used to represent the pixel size of the camera, u0 and v0 can be used to represent the offset between the pixel coordinate system and the image coordinate system, f can be used to represent the focal length, R and T can be used to represent the rotation offset between the world coordinate system and the camera coordinate system, which is usually obtained through automatic calibration, x, y, and z can be used to represent the world coordinates. The radar coordinate system is used in the application, and z c It can be used to represent the Z-axis coordinate of point P in the camera coordinate system, which can be obtained by the following formula:

[0036]

[0037] Among them, x c Can be used to represent the X-axis coordinate of point P in the camera coordinate system, y c Can be used to represent the Y-axis coordinate of point P in the camera coordinate system, x w Can be used to represent the X-axis coordinate of point P in the world coordinate system, y w Can be used to represent the Y-axis coordinate of point P in the world coordinate system, z wIt can be used to represent the Z-axis coordinate of point P in the world coordinate system.

[0038] Step S106, calling the detection model to detect the target object in the image data, obtaining an identification frame of the target object, and comparing the identification frame with the pixel coordinates to obtain a first comparison result.

[0039] In the technical solution provided in the above step S106, after determining the pixel coordinates of the target point in the point cloud data in the image data, the detection model can be called to detect the target object in the image data to obtain an identification frame of the target object, and the identification frame can be compared with the pixel coordinates to obtain a first comparison result. Among them, the detection model can be trained based on the image model framework and can be called an object detection model. The first comparison result can be used to characterize the positional relationship between the pixel coordinates and the identification frame, for example, it can be used to characterize the pixel coordinates within the identification frame. The target object can be called a picture object, and the identification frame can be a rectangular or other shaped frame that selects the position and range of the target object in the image, which can be represented by {u(u1, u2), v(v1, v2)}.

[0040] Optionally, a corresponding object detection model is trained based on an artificial intelligence (AI) image model framework, and the object detection model is called to detect the image object, so that the image can be recognized and detected, and a recognition frame of the target object is returned. After determining the pixel coordinates of the target point in the point cloud data in the image data, the determined pixel coordinates can be compared with the recognition frame returned by the detection model to obtain a first comparison result.

[0041] Step S108: segment the point cloud data based on the first comparison result to obtain a segmentation result.

[0042] In the technical solution provided in the above step S108, after comparing the recognition box with the pixel coordinates to obtain a first comparison result, the point cloud data can be segmented based on the first comparison result to obtain a segmentation result.

[0043] Optionally, this embodiment can calculate the pixel coordinates of each point in the point cloud data in the image data through a mapping algorithm in the fusion of point cloud data and image data, and further coarsely filter the point cloud data according to the identification box to extract the point cloud in the corresponding identification box, thereby achieving basic point cloud segmentation.

[0044] In an embodiment of the present application, image data and point cloud data are obtained, wherein the image data and the point cloud data have an associated relationship; the pixel coordinates of the target point in the point cloud data in the image data are determined; the detection model is called to detect the target object in the image data to obtain the recognition frame of the target object, and the recognition frame is compared with the pixel coordinates to obtain a first comparison result, wherein the detection model is trained based on the image model framework, and the first comparison result is used to characterize the positional relationship between the pixel coordinates and the recognition frame; based on the first comparison result, the point cloud data is segmented to obtain a segmentation result. In other words, the present application determines the pixel coordinates of the target point in the point cloud data in the image data, further calls the detection model to detect the target object in the image data, obtains the recognition frame of the target object, and compares the recognition frame with the pixel coordinates. When the pixel coordinates are within the recognition frame, it is determined that the target point belongs to the target object, thereby achieving the technical effect of improving the accuracy of segmenting the point cloud data, and further solving the technical problem of low accuracy in segmenting the point cloud data.

[0045] The above embodiments of the present application are further described below.

[0046] In some embodiments of the present application, step S108, based on the first comparison result, segment the point cloud data to obtain a segmentation result, including: in response to the first comparison result that the pixel coordinates are within the identification box, determining that the segmentation result is that the target point belongs to the target object; in response to the first comparison result that the pixel coordinates are outside the identification box, determining that the segmentation result is that the target point is a noise point.

[0047] In this embodiment, after comparing the recognition frame with the pixel coordinates and obtaining the first comparison result, when the first comparison result obtained is that the pixel coordinates are within the recognition frame, in response to the first comparison result that the pixel coordinates are within the recognition frame, it can be determined that the segmentation result is that the target point belongs to the target object. When the first comparison result is that the pixel coordinates are outside the recognition frame, in response to the first comparison result that the pixel coordinates are outside the recognition frame, it can be determined that the segmentation result is that the target point is a noise point. The noise point can be messy, interfering or irrelevant information that does not belong to the original signal.

[0048] Optionally, after comparing the recognition frame with the pixel coordinates to obtain the first comparison result, since the recognition frame {u(u1, u2), v(v1, v2)} corresponds to the range of the pixel coordinate system, when the pixel coordinates of the point P obtained by calculation are (u p , v p ), if u1<=u p <=u2 and v1<=v p <= v2, that is, the pixel coordinates of point P are within the recognition box, and it is judged that point P belongs to the current recognition object, which can be expressed by the following formula:

[0049] {p(x,y,z)|u1≤up≤u2,v1≤vp≤v2}

[0050] When the pixel coordinates of point P do not satisfy the above formula, that is, the pixel coordinates of point P are outside the recognition box, it is determined that point P does not belong to the current recognition object, and point P is classified as a noise point. Further, this embodiment can extract points in the point cloud data that belong to the current point cloud by traversing all points in the point cloud data.

[0051] In some embodiments of the present application, after segmenting the point cloud data based on the first comparison result to obtain the segmentation result, the method further includes: determining the segmented point cloud data as target point cloud data; and fitting the target point cloud data to obtain a fitting result.

[0052] In this embodiment, after the point cloud data is segmented based on the first comparison result and the segmentation result is obtained, the segmented point cloud data can be determined as the target point cloud data, and the determined target point cloud data can be further fitted to obtain the fitting result.

[0053] Optionally, since the point cloud roughly segmented by the recognition box still contains points other than other objects, it is necessary to cooperate with various fitting algorithms of the point cloud, such as using cylinder and cone fitting for poles, parabola fitting for wires, plane fitting for transformers, and other algorithm logic to extract transformer point clouds.

[0054] In some embodiments of the present application, the target point cloud data is fitted to obtain a fitting result, including: selecting multiple sample points from the target point cloud data; determining fitting parameters of a fitting model based on the multiple sample points, wherein the fitting model is used to fit the target point cloud data; and fitting the target point cloud data based on the fitting parameters to obtain a fitting result.

[0055] In this embodiment, a plurality of sample points may be selected from the target point cloud data. After selecting a plurality of sample points from the target point cloud data, fitting parameters of the fitting model may be determined based on the selected plurality of sample points. Further based on the determined fitting parameters, the target point cloud data may be fitted to obtain a fitting result. The fitting model may be used to fit the target point cloud data. The fitting parameters may be model parameters, which may be represented by M. The fitting model may be an equation of a corresponding shape.

[0056] Optionally, this embodiment can use the Random Sample Consensus (RANSAC) algorithm to fit and extract the point cloud. First, randomly select a point cloud {P xy} select n sample points P xy1 ,…,P xyn, depending on the model to be fitted, the number of points selected is different. Secondly, the model parameter M is obtained through the selected sample points, and the corresponding model equation is set to f(x, y, z, M) = 0. The parameter M of the model equation is solved using the randomly selected sample points. Finally, based on the solved model parameters, the target point cloud data can be fitted to obtain the fitting result.

[0057] It should be noted that the objects that need to be identified in the scene can usually be fitted using common models. For example, utility poles can be fitted using cylinders. Although utility poles are actually truncated cones, using cylinder fitting usually achieves better results. Overhead lines can be fitted using parabolas, and transformer boxes can be fitted using multiple planes.

[0058] In some embodiments of the present application, the target point cloud data is fitted based on the fitting parameters to obtain a fitting result, including: determining the error value of each sample point in the fitting model among multiple sample points based on the fitting parameters to obtain multiple error values; comparing each error value among the multiple error values ​​with an error threshold to obtain a second comparison result; and determining the fitting result based on the second comparison result.

[0059] In this embodiment, after solving the fitting parameters, based on the determined fitting parameters, the error value of each sample point in the fitting model of the multiple sample points can be determined to obtain multiple error values. Each error value in the multiple error values ​​is further compared with the error threshold to obtain a second comparison result. Based on the obtained second comparison result, the fitting result can be determined. Among them, the error threshold can be an error range set according to actual conditions, which can be represented by err0. The error value can be represented by err.

[0060] Optionally, after solving the model parameters, the model fit can be verified by screening all points in the point cloud that meet the parameter M according to the given error range err0, and counting the number. That is, for each point (x, y, z) in the point cloud data, substitute the current model parameter M into the model equation and solve the error err = f (x, y, z, M). The error is further compared with the error threshold to obtain a second comparison result. Based on the obtained second comparison result, the fitting result can be determined.

[0061] In some embodiments of the present application, based on the second comparison result, the fitting result is determined, including: in response to the second comparison result being that the error value is less than the error threshold, determining the fitting result is that the sample point is an inlier; in response to the second comparison result being that the error value is greater than or equal to the error threshold, determining the fitting result is that the sample point is a noise point.

[0062] In this embodiment, after comparing the error value with the error threshold to obtain a second comparison result, when the second comparison result is that the error value is less than the error threshold, in response to the second comparison result that the error value is less than the error threshold, it can be determined that the fitting result is that the sample point is an inlier. When the second comparison result is that the error value is greater than or equal to the error threshold, in response to the second comparison result that the error value is greater than or equal to the error threshold, it can be determined that the fitting result is that the sample point is a noise point. Among them, the inlier can be a sample point that conforms to the fitting parameter M.

[0063] Optionally, when the error value is less than the error threshold, that is, err < err0, then it is determined that the current point (x, y, z) is an inlier. When the error value is greater than or equal to the error threshold, that is, err >= err0, then it is determined that the current point (x, y, z) is a noise point.

[0064] In some embodiments of the present application, the method further includes: determining the number of inliers; in response to the ratio of the number of inliers to the total number of multiple sample points being greater than a ratio threshold, ending the fitting of the target point cloud data.

[0065] In this embodiment, the number of inliers can be determined. When the ratio of the determined number of inliers to the total number of multiple sample points is greater than the ratio threshold, in response to the ratio of the number of inliers to the total number of multiple sample points being greater than the ratio threshold, the fitting of the target point cloud data can be ended. Among them, the ratio threshold can be a threshold set according to the actual situation.

[0066] Optionally, determine the number of inliers. When the proportion of the number of inliers in the point cloud data is greater than the set threshold, or the number of random samplings reaches the maximum number of iterations of the algorithm, the algorithm ends; otherwise, continue the current loop. Further, it can be determined whether it is the first loop. If it is not the first loop, then compare with the number of inliers in the previous loop, and select the larger model parameter as the current optimal model parameter. Continue to randomly select n sample points for a new round of loop until the condition is met or the iteration ends to obtain the final model parameter M.

[0067] In some embodiments of the present application, the method further includes: determining the label of the inlier as the target label, where the target label is the label corresponding to the recognition frame.

[0068] In this embodiment, the label of the inlier can be determined as the target label. According to the point cloud segmented by the recognition frame, the label of the recognition frame can be directly used as the point cloud label. Among them, the target label can be the label corresponding to the recognition frame.

[0069] Optionally, when detecting an object in an image through an object detection model, the label corresponding to the recognition frame is returned along with the recognition frame of the target object. That is, when a picture or video is passed to the object detection model, the returned data is the recognition frame and the label. The obtained recognition frame and the corresponding label can be represented by {u(u1,u2),v(v1,v2),label}.

[0070] Optionally, in the above point cloud segmentation step, the identification label of the corresponding identification box is assigned to the final extracted point cloud. In each point cloud segmentation, the image recognition result {u(u1, u2), v(v1, v2), label} is first obtained, and the segmented point cloud C1 is obtained after the above point cloud segmentation step. The label of C1 is also label, so that the sub-point cloud and the corresponding label pair (C1, label1) can be obtained.

[0071] Optionally, the segmented point cloud and label pairs obtained through the above steps can be represented by (C1, label1), (C2, label2) to (Cn, labeln). Traverse each point and classify the points that do not belong to any of the above sub-point clouds as noise points, which can be represented by the following formula:

[0072]

[0073] In some embodiments of the present application, before determining the pixel coordinates of the target point in the point cloud data in the image data, the method further includes: preprocessing the point cloud data, wherein the preprocessing includes at least sampling processing and filtering processing.

[0074] In this embodiment, before determining the pixel coordinates of the target point in the point cloud data in the image data, the point cloud data may be preprocessed. The preprocessing may include at least sampling and filtering. After receiving the original point cloud data, downsampling, filtering and other preliminary processing may be performed to obtain point cloud data for subsequent calculations. The filtering is usually a radius filter to filter out outliers.

[0075] In an embodiment of the present application, image data and point cloud data are obtained, wherein the image data and the point cloud data have an associated relationship; the pixel coordinates of the target point in the point cloud data in the image data are determined; the detection model is called to detect the target object in the image data to obtain the recognition frame of the target object, and the recognition frame is compared with the pixel coordinates to obtain a first comparison result, wherein the detection model is trained based on the image model framework, and the first comparison result is used to characterize the positional relationship between the pixel coordinates and the recognition frame; based on the first comparison result, the point cloud data is segmented to obtain a segmentation result. In other words, the present application determines the pixel coordinates of the target point in the point cloud data in the image data, further calls the detection model to detect the target object in the image data, obtains the recognition frame of the target object, and compares the recognition frame with the pixel coordinates. When the pixel coordinates are within the recognition frame, it is determined that the target point belongs to the target object, thereby achieving the technical effect of improving the accuracy of segmenting the point cloud data, and further solving the technical problem of low accuracy in segmenting the point cloud data.

[0076] In order to facilitate those skilled in the art to better understand the technical solution of the present application, a specific embodiment is now described.

[0077] At present, the scale of point cloud data is large and the background is complex, so how to quickly and accurately extract the point cloud of the target object faces great challenges. The segmentation algorithms widely used in the field of point cloud segmentation can be divided into the following six categories: attribute-based segmentation algorithms use point cloud attributes as clustering thresholds to obtain segmentation results. However, this method is too dependent on point cloud density and is time-consuming. Graph-based segmentation algorithms use the data structure of point clouds to construct graphs, use weights to represent the similarity between points, and use weights to segment point clouds. The segmentation accuracy is high, but the segmentation efficiency of this method is low. Model-based segmentation algorithms fit point clouds into mathematical models such as spheres and cylinders for segmentation. However, this method has a limited segmentation range and is not effective for point clouds in complex scenes. Edge detection-based methods use scanning lines, gradients, and other methods to detect the boundaries of point cloud areas to obtain segmented areas. The segmentation speed is fast, but the segmentation accuracy of this method is low and it is easily affected by noise. Machine learning-based segmentation algorithms use machine learning algorithms for segmentation. However, this method requires offline training and cannot run in real time. Region growing-based segmentation algorithms select seed points and use normal vector angles or curvatures as thresholds for region growth. This can maintain good boundaries and regional connectivity and has high segmentation efficiency. However, the performance of this method depends on seed selection.

[0078] In related technologies, the method of segmenting point cloud data is usually to input the point cloud data into a machine learning model for processing, or to process the image data and the point cloud data separately, and then merge the processing results of the two. However, the above methods all directly process the complete point cloud data, which may be affected by noise and interference, resulting in inaccurate classification and segmentation results. In complex scenes, there may be occlusion and overlap between objects. Directly processing the point cloud may result in inaccurate segmentation and classification, resulting in a technical problem of low accuracy in segmenting point cloud data.

[0079] In order to solve the above problems, this application proposes a method for automatic segmentation and classification of point cloud data combined with image recognition. The method is mainly divided into a module for image object recognition and a point cloud processing module for point cloud segmentation. First, object detection is performed based on AI vision. The image recognition part is mainly used to provide image object recognition function. Usually the input data is a picture or video, and the return data is a recognition box and label. This part is based on the relatively mature AI image model framework to train the corresponding object detection model, perform image object detection, and can recognize and detect the image and return the object recognition box.

[0080] Secondly, point cloud segmentation and classification are performed based on the recognition frame. The point cloud processing part is mainly responsible for point cloud processing, such as filtering, segmentation and fitting. After receiving the original point cloud, downsampling, filtering (usually radius filtering is used to filter out outliers) and other preliminary processing are first performed to obtain point cloud data for subsequent calculations. Next, the coordinates of each point in the image can be calculated through the mapping algorithm in the point cloud image fusion. Then the point cloud is roughly filtered according to the recognition frame, and the point cloud in the corresponding recognition frame is extracted, thereby realizing basic point cloud segmentation. However, the roughly segmented point cloud still contains points outside of other objects, and it is necessary to cooperate with various fitting algorithms of the point cloud, such as using cylinder and cone fitting for poles, parabola fitting for wires, plane fitting for transformers, and other algorithm logic to extract transformer point clouds. At the same time, the point cloud segmented with the assistance of the recognition frame can also directly use the label of the recognition frame as the point cloud label.

[0081] In this embodiment, the first step of the method for automatic segmentation and classification of point cloud data combined with image recognition is: performing target detection on the image to obtain the recognition box and the corresponding label {u(u1, u2), v(v1, v2), label}.

[0082] The second step of the point cloud data automatic segmentation and classification method combined with image recognition in this embodiment is: perform rough segmentation of the point cloud in combination with the recognition frame, use the recognition frame to filter the input point cloud, and determine the pixel coordinates of the point P (x, y, z) in the point cloud data in the image data by the following formula:

[0083]

[0084] Among them, u and v can be used to represent pixel coordinates, dx and dy can be used to represent the pixel size of the camera, u0 and v0 can be used to represent the offset between the pixel coordinate system and the image coordinate system, f can be used to represent the focal length, R and T can be used to represent the rotation offset between the world coordinate system and the camera coordinate system, which is usually obtained through automatic calibration, x, y, and z can be used to represent the world coordinates. The radar coordinate system is used in the application, and z c It can be used to represent the Z-axis coordinate of point P in the camera coordinate system, which can be obtained by the following formula:

[0085]

[0086] Among them, x c Can be used to represent the X-axis coordinate of point P in the camera coordinate system, y c Can be used to represent the Y-axis coordinate of point P in the camera coordinate system, x w Can be used to represent the X-axis coordinate of point P in the world coordinate system, y w Can be used to represent the Y-axis coordinate of point P in the world coordinate system, z w It can be used to represent the Z-axis coordinate of point P in the world coordinate system. It can further determine whether the pixel coordinate is within the recognition box. The recognition box {u(u1, u2), v(v1, v2)} corresponds to the range of the pixel coordinate system. When the pixel coordinate of point P obtained by calculation is (u p , v p ), if u1<=u p <=u2 and v1<=v p <= v2, that is, the pixel coordinates of point P are within the recognition box, and it is judged that point P belongs to the current recognition object, which can be expressed by the following formula:

[0087] {p(x,y,z)|u1≤up≤u2,v1≤vp≤v2}

[0088] When the pixel coordinates of point P do not satisfy the above formula, that is, the pixel coordinates of point P are outside the recognition frame, it is determined that point P does not belong to the current recognition object. This embodiment can extract points belonging to the current point cloud in the point cloud data by traversing all points in the point cloud data.

[0089] The third step of the automatic segmentation and classification method for point cloud data combined with image recognition in this embodiment is: using the Random Sample Consensus (RANSAC) algorithm to fit and extract the point cloud. Objects to be recognized in the scene can usually be fitted by common models. For example, utility poles can be fitted using cylinders. Although utility poles are actually frustum-shaped in reality, using cylinders for fitting usually gives good results. Overhead lines can be fitted using parabolas, and switchgear boxes can be fitted using multiple planes. Randomly select n sample points P xy from the point cloud {P xy1 , …, P xyn . The number of points selected varies according to the model to be fitted.

[0090] Obtain the model parameters M (the model is the equation corresponding to the shape) through the selected sample points. Assume the corresponding model equation is f(x, y, z, M) = 0, and use the randomly selected sample points to solve the parameters M of the model equation. Verify the goodness of fit of the model. According to the given error range err0, filter out all points (inliers) in the point cloud that conform to the parameters M, and count the quantity. For each point (x, y, z) in the point cloud, substitute the current model parameters M into the model equation to solve for the error err = f(x, y, z, M). When err < err0, determine that the current point (x, y, z) is an inlier. When the proportion of inliers in the point cloud data is greater than the set threshold, or the number of random samplings reaches the maximum iteration number of the algorithm, the algorithm ends; otherwise, continue the current loop. Further determine whether it is the first loop. If it is not the first loop, compare with the number of inliers in the previous loop, and select the larger model parameters as the current optimal model parameters. Continue to randomly select n sample points for a new round of loop until the conditions are met or the iteration ends to obtain the final model parameters M.

[0091] The fourth step of the automatic segmentation and classification method for point cloud data combined with image recognition in this embodiment is: assign corresponding labels to the extracted point cloud according to the labels recognized by the image. In the above point cloud segmentation step, assign the recognition labels of the corresponding recognition frames to the finally extracted point cloud. In each point cloud segmentation, first obtain the image recognition results {u(u1, u2), v(v1, v2), label}. After the above point cloud segmentation step, the segmented point cloud C1 is obtained, and the label of C1 is also label. In this way, the sub-point cloud and the corresponding label pair (C1, label1) can be obtained.

[0092] The fifth step of the automatic segmentation and classification method of point cloud data combined with image recognition in this embodiment is: traverse all points and classify the points that are not classified as specific objects by the segmentation classification system as noise points. The segmented point cloud and label pairs obtained through the above steps can be represented by (C1, label1), (C2, label2) to (Cn, labeln). Traverse each point and classify the points that do not belong to any of the above sub-point clouds as noise points, which can be represented by the following formula:

[0093]

[0094] In an embodiment of the present application, image data and point cloud data are obtained, wherein the image data and the point cloud data have an associated relationship; the pixel coordinates of the target point in the point cloud data in the image data are determined; the detection model is called to detect the target object in the image data to obtain the recognition frame of the target object, and the recognition frame is compared with the pixel coordinates to obtain a first comparison result, wherein the detection model is trained based on the image model framework, and the first comparison result is used to characterize the positional relationship between the pixel coordinates and the recognition frame; based on the first comparison result, the point cloud data is segmented to obtain a segmentation result. In other words, the present application determines the pixel coordinates of the target point in the point cloud data in the image data, further calls the detection model to detect the target object in the image data, obtains the recognition frame of the target object, and compares the recognition frame with the pixel coordinates. When the pixel coordinates are within the recognition frame, it is determined that the target point belongs to the target object, thereby achieving the technical effect of improving the accuracy of segmenting the point cloud data, and further solving the technical problem of low accuracy in segmenting the point cloud data.

[0095] The embodiment of the present application also provides a point cloud data segmentation device. It should be noted that the point cloud data segmentation device of this embodiment can be used to execute the point cloud data segmentation method of the embodiment of the present invention.

[0096] Figure 2 is a schematic diagram of the structure of a point cloud data segmentation device according to an embodiment of the present application, such as Figure 2 As shown, the point cloud data segmentation device 200 may include: an acquisition unit 202 , a first determination unit 204 , a comparison unit 206 and a segmentation unit 208 .

[0097] The acquisition unit 202 is used to acquire image data and point cloud data, wherein the image data and the point cloud data are associated with each other.

[0098] The first determining unit 204 is used to determine the pixel coordinates of the target point in the point cloud data in the image data.

[0099] The comparison unit 206 is used to call the detection model to detect the target object in the image data, obtain the identification box of the target object, and compare the identification box with the pixel coordinates to obtain a first comparison result, wherein the detection model is trained based on the image model framework, and the first comparison result is used to characterize the positional relationship between the pixel coordinates and the identification box.

[0100] The segmentation unit 208 is used to segment the point cloud data based on the first comparison result to obtain a segmentation result.

[0101] Optionally, the segmentation unit 208 includes: a first determination module, used to determine the segmentation result as that the target point belongs to the target object in response to the first comparison result that the pixel coordinates are within the identification box; a second determination module, used to determine the segmentation result as that the target point is a noise point in response to the first comparison result that the pixel coordinates are outside the identification box.

[0102] Optionally, in the segmentation unit 208, which is used to segment the point cloud data based on the first comparison result, after obtaining the segmentation result, the device also includes: a second determination unit, which is used to determine the segmented point cloud data as target point cloud data; and a fitting unit, which is used to fit the target point cloud data to obtain a fitting result.

[0103] Optionally, the fitting unit includes: a selection module for selecting multiple sample points from the target point cloud data; a determination module for determining fitting parameters of a fitting model based on the multiple sample points, wherein the fitting model is used to fit the target point cloud data; a fitting module for fitting the target point cloud data based on the fitting parameters to obtain a fitting result.

[0104] Optionally, the fitting module includes: a determination submodule, used to determine the error value of each sample point in the fitting model among multiple sample points based on the fitting parameters, so as to obtain multiple error values; a comparison submodule, used to compare each error value among the multiple error values ​​with the error threshold, so as to obtain a second comparison result; and a determination submodule, used to determine the fitting result based on the second comparison result.

[0105] Optionally, the comparison submodule is further used to: in response to the second comparison result being that the error value is less than the error threshold, determine the fitting result as the sample point being an internal point; in response to the second comparison result being that the error value is greater than or equal to the error threshold, determine the fitting result as the sample point being a noise point.

[0106] Optionally, the device further includes: an ending unit, configured to determine the number of inliers; and ending the fitting of the target point cloud data in response to a ratio of the number of inliers to the total number of the plurality of sample points being greater than a ratio threshold.

[0107] Optionally, the device further includes: a third determining unit, configured to determine the label of the inner point as a target label, wherein the target label is a label corresponding to the identification box.

[0108] Optionally, before the first determination unit 204 is used to determine the pixel coordinates of the target point in the point cloud data in the image data, the device also includes: a preprocessing unit, used to preprocess the point cloud data, wherein the preprocessing at least includes sampling processing and filtering processing.

[0109] In the device, the image data and the point cloud data are acquired by the acquisition unit 202, wherein the image data and the point cloud data have an association relationship. The pixel coordinates of the target point in the point cloud data in the image data are determined by the first determination unit 204. The detection model is called by the comparison unit 206 to detect the target object in the image data, obtain the identification frame of the target object, and compare the identification frame with the pixel coordinates to obtain a first comparison result, wherein the detection model is obtained based on the image model framework training, and the first comparison result is used to characterize the positional relationship between the pixel coordinates and the identification frame. The segmentation unit 208 segments the point cloud data based on the first comparison result to obtain a segmentation result. That is to say, the present application determines the pixel coordinates of the target point in the point cloud data in the image data, further calls the detection model to detect the target object in the image data, obtains the identification frame of the target object, and compares the identification frame with the pixel coordinates. When the pixel coordinates are within the identification frame, it is determined that the target point belongs to the target object, thereby achieving the technical effect of improving the accuracy of segmenting the point cloud data, thereby solving the technical problem of low accuracy of segmenting the point cloud data.

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

[0111] Specifically, the above storage medium is used to store program instructions for the following functions to implement the following functions:

[0112] Acquire image data and point cloud data, wherein the image data and the point cloud data are associated with each other; determine the pixel coordinates of the target point in the point cloud data in the image data; call the detection model to detect the target object in the image data, obtain the recognition frame of the target object, and compare the recognition frame with the pixel coordinates to obtain a first comparison result, wherein the detection model is trained based on the image model framework, and the first comparison result is used to characterize the positional relationship between the pixel coordinates and the recognition frame; based on the first comparison result, segment the point cloud data to obtain a segmentation result.

[0113] Optionally, in this embodiment, the above-mentioned storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the above-mentioned contents. More specific examples of the above-mentioned storage medium may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above-mentioned contents.

[0114] In an exemplary embodiment of the present application, a computer program product is further provided, including a computer program, and when the computer program is executed by a processor, any of the above-mentioned point cloud data segmentation methods is implemented.

[0115] Optionally, the computer program may implement the following steps when executed by a processor:

[0116] Acquire image data and point cloud data, wherein the image data and the point cloud data are associated with each other; determine the pixel coordinates of the target point in the point cloud data in the image data; call the detection model to detect the target object in the image data, obtain the recognition frame of the target object, and compare the recognition frame with the pixel coordinates to obtain a first comparison result, wherein the detection model is trained based on the image model framework, and the first comparison result is used to characterize the positional relationship between the pixel coordinates and the recognition frame; based on the first comparison result, segment the point cloud data to obtain a segmentation result.

[0117] In an exemplary embodiment of the present application, a computer program product is also provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and the computer program is configured to execute any of the above-mentioned point cloud data segmentation methods when running.

[0118] Optionally, the computer program may implement the following steps when executed by a processor:

[0119] Acquire image data and point cloud data, wherein the image data and the point cloud data are associated with each other; determine the pixel coordinates of the target point in the point cloud data in the image data; call the detection model to detect the target object in the image data, obtain the recognition frame of the target object, and compare the recognition frame with the pixel coordinates to obtain a first comparison result, wherein the detection model is trained based on the image model framework, and the first comparison result is used to characterize the positional relationship between the pixel coordinates and the recognition frame; based on the first comparison result, segment the point cloud data to obtain a segmentation result.

[0120] In an exemplary embodiment of the present application, a computer program is further provided. The computer program is configured to execute the steps in any of the above method embodiments when running.

[0121] Optionally, the computer program may implement the following steps when executed by a processor:

[0122] Acquire image data and point cloud data, wherein the image data and the point cloud data are associated with each other; determine the pixel coordinates of the target point in the point cloud data in the image data; call the detection model to detect the target object in the image data, obtain the recognition frame of the target object, and compare the recognition frame with the pixel coordinates to obtain a first comparison result, wherein the detection model is trained based on the image model framework, and the first comparison result is used to characterize the positional relationship between the pixel coordinates and the recognition frame; based on the first comparison result, segment the point cloud data to obtain a segmentation result.

[0123] According to an embodiment of the present application, an electronic device is provided, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any one of the above-mentioned point cloud data segmentation methods.

[0124] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0125] Figure 3 3 is a schematic block diagram of an electronic device 300 according to an embodiment of the present application. 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 processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0126] like Figure 3As shown, the device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0127] A number of components in the device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0128] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above, such as the segmentation method of point cloud data. For example, in some embodiments, the segmentation method of point cloud data may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the segmentation method of point cloud data described above may be performed. Alternatively, in other embodiments, the computing unit 301 may be configured to perform the segmentation method of point cloud data in any other appropriate manner (e.g., by means of firmware).

[0129] Various implementations 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 chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0130] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0131] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0132] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 acoustic input, voice input, or tactile input).

[0133] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0134] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0135] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

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

[0137] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

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

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

[0140] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

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

Claims

1. A method for segmenting point cloud data, characterized in that: include: Acquire image data and point cloud data, wherein the image data and the point cloud data are associated with each other; Determine the pixel coordinates of the target point in the point cloud data in the image data; Calling a detection model to detect a target object in the image data, obtaining an identification frame of the target object, and comparing the identification frame with the pixel coordinates to obtain a first comparison result, wherein the detection model is trained based on an image model framework, and the first comparison result is used to characterize a positional relationship between the pixel coordinates and the identification frame; Based on the first comparison result, the point cloud data is segmented to obtain a segmentation result.

2. The method according to claim 1, characterized in that: Based on the first comparison result, the point cloud data is segmented to obtain a segmentation result, including: In response to the first comparison result being that the pixel coordinates are within the identification frame, determining the segmentation result is that the target point belongs to the target object; In response to the first comparison result being that the pixel coordinates are outside the identification frame, the segmentation result is determined to be that the target point is a noise point.

3. The method according to claim 1, characterized in that After segmenting the point cloud data based on the first comparison result to obtain a segmentation result, the method further includes: Determine the segmented point cloud data as target point cloud data; The target point cloud data is fitted to obtain a fitting result.

4. The method according to claim 3, characterized in that Fitting the target point cloud data to obtain a fitting result includes: Selecting a plurality of sample points from the target point cloud data; Determining fitting parameters of a fitting model based on the multiple sample points, wherein the fitting model is used to fit the target point cloud data; Based on the fitting parameters, the target point cloud data is fitted to obtain the fitting result.

5. The method according to claim 4, characterized in that Based on the fitting parameters, fitting the target point cloud data to obtain the fitting result includes: Based on the fitting parameters, determining an error value of each sample point in the fitting model to obtain a plurality of error values; Comparing each error value of the multiple error values ​​with an error threshold to obtain a second comparison result; Based on the second comparison result, the fitting result is determined.

6. The method according to claim 5, characterized in that Determining the fitting result based on the second comparison result includes: In response to the second comparison result being that the error value is less than the error threshold, determining the fitting result to be that the sample point is an interior point; In response to the second comparison result being that the error value is greater than or equal to the error threshold, determining the fitting result is that the sample point is a noise point.

7. The method according to claim 6, characterized in that The method further comprises: determining the number of said interior points; In response to a ratio of the number of the inner points to the total number of the plurality of sample points being greater than a ratio threshold, fitting the target point cloud data is terminated.

8. The method according to claim 7, characterized in that The method further comprises: The label of the inner point is determined as a target label, wherein the target label is a label corresponding to the recognition box.

9. The method according to claim 1, characterized in that: Before determining the pixel coordinates of the target point in the point cloud data in the image data, the method further includes: The point cloud data is preprocessed, wherein the preprocessing at least includes sampling processing and filtering processing.

10. A point cloud data segmentation device, characterized in that: include: An acquisition unit, used for acquiring image data and point cloud data, wherein the image data and the point cloud data are associated with each other; A first determining unit, used to determine the pixel coordinates of the target point in the point cloud data in the image data; a comparison unit, configured to call a detection model to detect a target object in the image data, obtain an identification frame of the target object, and compare the identification frame with the pixel coordinates to obtain a first comparison result, wherein the detection model is obtained by training based on an image model framework, and the first comparison result is used to characterize a positional relationship between the pixel coordinates and the identification frame; A segmentation unit is used to segment the point cloud data based on the first comparison result to obtain a segmentation result.

11. A non-volatile storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 9.

12. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method as claimed in any one of claims 1 to 9.

13. A computer program product, characterized in that The computer program product comprises a computer program, wherein the computer program is configured to perform the method of any one of claims 1 to 9 when executed by a processor.