Point cloud annotation method, device, storage medium and electronic device

By annotating the two-dimensional image and combining the preset direction data to determine the three-dimensional annotation frame, the problem of low recognition and low efficiency of point cloud annotation is solved, and higher positioning accuracy and efficiency are achieved.

CN113160349BActive Publication Date: 2024-09-03BEIJING HORIZON ROBOTICS TECH RES & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010014429.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-07
Publication Date
2024-09-03
Estimated Expiration
2040-01-07

AI Technical Summary

Technical Problem

In autonomous driving environment perception technology, the annotation of point cloud data has problems such as low recognition, high error rate, and low efficiency. Especially when the point cloud density is low, the positioning accuracy is low.

Method used

By obtaining the objects to be annotated in the two-dimensional image for annotation, using the preset direction data to determine the three-dimensional annotation frame, and adjusting the size of the annotation frame to improve the accuracy and efficiency of point cloud annotation.

Benefits of technology

It improves the positioning accuracy and efficiency of point cloud annotation, reduces the time for annotators to determine the location of objects in the point cloud, and enhances the precision and accuracy of annotation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113160349B
    Figure CN113160349B
Patent Text Reader

Abstract

A point cloud annotation method is disclosed, including: obtaining a first image, the first image being a two-dimensional image containing a point cloud of an object to be annotated; annotating the object to be annotated in the first image to obtain a first annotation frame of the object to be annotated; determining a second annotation frame according to preset direction data of the first annotation frame and the first image, the second annotation frame containing the point cloud of the object to be annotated; and resizing the second annotation frame to obtain a third annotation frame. The annotation frame in the two-dimensional image is used as a reference annotation to assist three-dimensional annotation in determining the position of the object to be annotated and the range of the object to be annotated in the image. For the annotation of some low-density point clouds to be annotated, the accuracy of point cloud annotation positioning can be improved, and the time for annotators to determine the position of objects in the point cloud can be saved, thereby improving the annotation efficiency. The size of the annotation frame of the point cloud is adjusted to adjust the precision to a certain extent, which can improve the accuracy of annotation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a point cloud annotation method, device, storage medium and electronic device. Background Art

[0002] Point cloud data is generated by 3D scanning equipment (such as LiDAR (2D / 3D), stereo camera, time-of-flight camera), represented by a set of vectors in a three-dimensional coordinate system, mainly used to represent the outer surface shape of an object. In addition to the geometric position information represented by (X, Y, Z), point cloud data can also represent the RGB color, grayscale value, depth, segmentation results, etc. of a point.

[0003] In autonomous driving environment perception technology, when annotating point cloud data collected by radar, although the point cloud data has the ability to reproduce the scene, it does not have high recognition. For example, some point clouds have few points, which makes it difficult to confirm their actual type. At present, point cloud annotation is roughly divided into two types: one is to annotate directly in the point cloud, and the other is to use the point cloud and the image corresponding to the projection of the object to be annotated for reference annotation. The first annotation method requires a high level of identification ability of the annotator, and it is easy to have mislabeling. In addition, the quality inspection personnel spend a lot of time on quality inspection and the efficiency is low. The second annotation method can overcome the shortcomings of judging and locating the annotated objects, but the overall annotation efficiency has not been improved, and the positioning accuracy is also low when the point cloud density is low. Summary of the invention

[0004] In order to solve the above technical problems, a point cloud annotation method, device, storage medium and electronic device disclosed in the present invention are proposed.

[0005] According to a first aspect of the present disclosure, a point cloud annotation method is provided, comprising:

[0006] Acquire a first image, where the first image is a two-dimensional image containing a point cloud of an object to be annotated;

[0007] Annotating the object to be annotated in the first image to obtain a first annotation frame of the object to be annotated;

[0008] Determine a second annotation frame according to the first annotation frame and preset direction data of the first image, wherein the second annotation frame contains a point cloud of the object to be annotated;

[0009] The second annotation frame is resized to obtain a third annotation frame.

[0010] According to a second aspect of the present disclosure, there is provided a data processing device, comprising:

[0011] An acquisition module, used to acquire a first image, where the first image is a two-dimensional image containing a point cloud of an object to be annotated;

[0012] A first labeling module, used for labeling the object to be labeled in the first image to obtain a first labeling frame of the object to be labeled;

[0013] A second annotation module, configured to determine a second annotation frame according to the first annotation frame and preset direction data of the first image, wherein the second annotation frame contains a point cloud of the object to be annotated;

[0014] The adjustment module is used to adjust the size of the second annotation frame to obtain a third annotation frame.

[0015] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the point cloud annotation method described in the first aspect above.

[0016] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; and the processor for executing the point cloud annotation method described in the first aspect above.

[0017] The point cloud annotation method, device, storage medium and electronic device provided by the embodiments of the present disclosure use the annotation box in the two-dimensional image as a reference annotation to assist in three-dimensional annotation to determine the position of the object to be annotated and the range of the object to be annotated in the image. For the annotation of some objects to be annotated in low-density point clouds, the accuracy of point cloud annotation positioning can be improved, and the time for annotators to determine the position of objects in the point cloud can be saved, thereby improving the annotation efficiency. The size of the annotation box of the point cloud can be adjusted to make fine adjustments to a certain extent, which can further improve the accuracy of the annotation. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.

[0019] Figure 1 is a flowchart of a point cloud annotation method provided by the first embodiment of the present disclosure;

[0020] Figure 2 is a flowchart of a point cloud annotation method provided by the second embodiment of the present disclosure;

[0021] Figure 3 is a flowchart of a point cloud annotation method provided in the third embodiment of the present disclosure;

[0022] Figure 4 is a reference diagram of a point cloud annotation process provided by an exemplary embodiment of the present disclosure;

[0023] Figure 5 is a schematic structural block diagram of a point cloud annotation device provided in the first embodiment of the present disclosure;

[0024] Figure 6 is a schematic structural block diagram of a point cloud annotation device provided in the second embodiment of the present disclosure;

[0025] Figure 7 is a schematic structural block diagram of a point cloud annotation device provided in the third embodiment of the present disclosure;

[0026] Figure 8 is a structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] Below, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.

[0028] Application Overview

[0029] In autonomous driving environment perception technology, when annotating point cloud data collected by radar, although the point cloud data has the ability to reproduce the scene, it does not have high recognition. For example, some point clouds have few points, which makes it difficult to confirm their actual type. In related technologies, point clouds are prone to mislabeling and low efficiency, and when the point cloud density is low, the positioning accuracy is also low. Based on this, the present disclosure proposes a point cloud annotation method, which combines a two-dimensional image with a point cloud image for point cloud annotation. For some objects to be annotated with a low point cloud density, the outline of the object to be annotated can be made clearer, which can save the annotation time of the annotators and improve the annotation efficiency and accuracy.

[0030] The point cloud annotation method, device, storage medium and electronic device of the embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings so that those skilled in the art can clearly and accurately understand the technical solution of the present disclosure.

[0031] Exemplary Methods

[0032] Figure 1 It is a flowchart of the point cloud annotation method provided in the first embodiment of the present disclosure.

[0033] like Figure 1 As shown, a point cloud annotation method according to an embodiment of the present disclosure may include the following steps:

[0034] Step 110 : Acquire a first image, wherein the first image is a two-dimensional image including a point cloud of an object to be labeled.

[0035] In one embodiment, the first image may be a two-dimensional image captured by an image sensor or an image capture device having an image acquisition function, for example, a two-dimensional image captured by a road traffic monitoring device and including a vehicle as the object to be annotated. The first image may include point cloud data of the object to be annotated, and may also include direction information (preset direction data) of the object to be annotated. The direction information may include, for example, the front, left, right, rear, bottom, or top of the object to be annotated.

[0036] Step 120 : annotate the object to be annotated in the first image to obtain a first annotation frame of the object to be annotated.

[0037] Exemplarily, this step can be specifically implemented as follows: Step M, detecting the box selection information of the object to be annotated in the first image; Step N, generating a first annotation box according to the box selection information, wherein the first annotation box contains the point cloud of the object to be annotated. It should be noted that the first annotation box is a two-dimensional annotation box, which can be understood to only contain the point cloud in any direction of the object to be annotated. For example, if the box selection information of the first annotation box is the positive direction of the object to be annotated (for example, the positive direction of the vehicle), then the first annotation box only contains the point cloud in the positive direction of the object to be annotated.

[0038] In the disclosed embodiment, the object to be annotated is selected in the first image (two-dimensional image) to annotate the object to be annotated in the first image, and a first annotation box containing the object to be annotated is obtained. Exemplarily, the first image is assumed to include four objects R, T, U, and I, where R is the object to be annotated. In this step, the object to be annotated R can be selected from multiple objects in the first image through a selection operation or path operation of an input device (e.g., a mouse). The box containing the object to be annotated R is determined as the first annotation box.

[0039] Step 130 : determining a second annotation frame according to the first annotation frame and the preset direction data of the first image, wherein the second annotation frame contains a point cloud of the object to be annotated.

[0040] In this step, the two-dimensional coordinate number of the first annotation frame and the preset direction data in the first image are used as parameters, and the three-dimensional coordinate data is calculated by a preset method. The second annotation frame can be determined based on the three-dimensional coordinate data. For example, the two-dimensional coordinate data of the first annotation frame is (x, y). On the basis of retaining the two-dimensional coordinate data, a z value is added to the coordinate data to obtain the three-dimensional coordinate data (x, y, z). Then, the direction of the current object to be annotated can be determined according to the preset / pre-stored direction data in the first image. A stereo frame can be determined based on the three-dimensional coordinate data, and the direction of the point cloud of the object to be annotated in the stereo frame can be determined based on the direction data, thereby obtaining the second annotation frame.

[0041] Step 140: resize the second annotation frame to obtain a third annotation frame.

[0042] In this step, the size of the second annotation frame can be adjusted by adjusting the length of any side of the second annotation frame through a detection input device (e.g., a mouse), thereby obtaining a third annotation frame. For example, the second annotation frame may only contain part of the point cloud of the object to be annotated. The third annotation frame obtained by the adjustment in this step can contain all the point clouds of the object to be annotated, so that the annotation of the point clouds of the object to be annotated is more complete and accurate, thereby improving the recognition rate of the object. Figure 4 As shown in , if the annotation box G is the second annotation box, the size of G can be adjusted by adjusting the size of X and / or Y. For example, by selecting any axis (X axis or Y axis) with the mouse and then dragging the axis, the size of the X / Y value can be adjusted, thereby achieving the size adjustment of the annotation box G.

[0043] Through the embodiments of the present disclosure, the annotation box in the two-dimensional image is used as a reference annotation to assist in three-dimensional annotation to determine the position of the object to be annotated and the range of the object to be annotated in the image. For the annotation of some objects to be annotated in low-density point clouds, the accuracy of point cloud annotation positioning can be improved, and the time for annotators to determine the position of objects in the point cloud can be saved, thereby improving the annotation efficiency. The size of the annotation box of the point cloud can be adjusted to make a certain degree of fineness adjustment, which can further improve the accuracy of the annotation.

[0044] Figure 2 It is a flowchart of the point cloud annotation method provided in the second embodiment of the present disclosure. Figure 2 For Figure 1 Another embodiment of the present disclosure is shown based on the illustrated embodiment.

[0045] like Figure 2 As shown, step 130 can also be further implemented by the following steps:

[0046] Step 131 : determining the direction of the point cloud of the object to be annotated according to preset direction data of the first image.

[0047] In this step, the preset direction data of the first image may be the direction data of the object to be annotated in the first image. The preset direction data may be pre-stored in the annotation system as known data based on the direction annotation of the image during the image acquisition process. The preset direction data of the first image may be determined as the direction of the large annotated object point cloud. For example, the preset direction data of the object to be annotated in the first image is the front direction, that is, the direction of the point cloud of the object to be annotated is also the front direction.

[0048] Step 132 : determining the three-dimensional coordinate data of the point cloud of the object to be annotated based on the two-dimensional coordinate data of the first annotation frame.

[0049] In the disclosed embodiment, this step can confirm the position of the object to be marked in the image based on the two-dimensional coordinate data of the first annotation box, and lock the position range of the object to be marked in the image. Further, the two-dimensional second annotation box is projected into the three-dimensional image. The projection of the two-dimensional image to the three-dimensional image will form a viewing cone in the point cloud, and the backward position can be further determined based on the viewing cone. For example, the (xy) coordinates of the two-dimensional image are known, and the value of the z coordinate can be determined based on the viewing cone, thereby obtaining the three-dimensional coordinate data.

[0050] Step 133 : determining a second annotation frame according to the three-dimensional coordinate data of the point cloud of the object to be annotated and the direction of the point cloud of the object to be annotated, wherein the second annotation frame includes the point cloud of the object to be annotated.

[0051] In this step, a labeling frame for selecting the point cloud of the object to be labeled is determined based on the three-dimensional coordinate data of the point cloud of the object to be labeled, and the direction of the object to be labeled in the labeling frame is determined based on the direction of the point cloud of the object to be labeled, thereby obtaining a second labeling frame that includes the point cloud of the object to be labeled and determines the direction of the point cloud of the object to be labeled. Figure 4 The annotation frame G shown can be recorded as the second annotation frame in this step, which contains at least part of the point cloud of the object to be annotated. Of course, the annotation frame G can also be the second annotation frame after resizing, that is, it can be the third annotation frame, containing all the point clouds of the object to be annotated.

[0052] According to the disclosed embodiment, the direction of the object to be annotated (e.g., a vehicle) in the point cloud image is determined based on the direction data of the object to be annotated (e.g., a vehicle) in the two-dimensional image (i.e., the first image), so that the annotation frame in the point cloud image (i.e., the second annotation frame) can be determined based on the annotation frame of the two-dimensional image and the determined direction in the point cloud image, providing a direction data and coordinate data basis for determining the annotation frame in the point cloud image, making the annotation of the annotation frame in the point cloud image (i.e., the second annotation frame) more accurate. In addition, the use of the direction data of the two-dimensional image can narrow the data search range of the three-dimensional space in the point cloud image, thereby reducing the computational complexity and complexity of the search.

[0053] Figure 3 FIG. 1 is a flow chart of a point cloud annotation method provided by the third embodiment of the present disclosure. Figure 3 As shown, step 132 of the embodiment of the present disclosure may further include the following steps:

[0054] Step 1321 , determining an index array, wherein the values ​​of the elements of the index array are all first values, and the number of the elements is the same as the number of the point clouds of the object to be annotated.

[0055] In the embodiment of the present disclosure, an index array may be constructed, the number of elements of the index array being the same as the number N of point cloud data, to serve as an index of the actual point cloud. In the embodiment of the present disclosure, for example, the index array is recorded as mask.

[0056] Step 1322 : determining the viewing cone of the image of the object to be annotated in the first annotation frame based on the two-dimensional coordinate data of the first annotation frame and the index array.

[0057] In this step, first, the point cloud of the object to be annotated that is included in the two-dimensional coordinate data range of the first annotation frame can be determined, and then the value of the element of the index array corresponding to other point clouds that are included in the first annotation frame and are outside the point cloud of the two-dimensional coordinate data range is set to the second value. For example, the point cloud in the radar coordinate system can be projected to the camera coordinate system using the external parameter rotation and translation Rt matrix (Rt matrix is ​​obtained by radar to camera calibration), and these point clouds are recorded as the point cloud set to be cropped (pointcloud_cam_coord), and then the z<0 part (i.e., the camera) in the z-axis coordinate of the point cloud set to be cropped (pointcloud_cam_coord) is removed. The point cloud of the part after the camera (i.e., the point cloud of the part z<0 (i.e., the part after the camera) in the point cloud set to be cropped (pointcloud_cam_coord) is set to the second value (e.g., 0). In the camera coordinate system, the points in the camera coordinate system are further projected to the image coordinate system. For example, the intrinsic parameter P matrix (P matrix is ​​the factory parameter of the camera) is used to project the points in the camera coordinate system to the image coordinate system, which is recorded as pointcoloud_image_coord (e.g., the two-dimensional first image), and the values ​​of the elements of the index array (mask) of the part exceeding the image size are set to the second value (e.g., 0). Furthermore, the first coordinate value and the second coordinate value in the first annotation frame are detected, wherein the positions of the first coordinate value and the second coordinate value in the first annotation frame are in a diagonal relationship (e.g., Figure 4The coordinate values ​​of point A and point B in the first annotation box shown in , that is, the first coordinate value and the second coordinate value, and point A and point B are diagonal points in the first annotation box), and based on the first coordinate value, the second coordinate value and the point cloud whose element value of the index array is the first numerical value, determine the viewing cone of the image of the object to be annotated. For example, the figure formed by the point cloud in the index pointcloud_lidar_coord based on the value (x1, y1) of point A at the first coordinate position and the value (x2, y2) of point B at the second coordinate position, and the value of the element in the index array (mask) as the first numerical value is the viewing cone.

[0058] Step 1323, determine the point cloud of the object to be labeled corresponding to the pixel points in the viewing cone.

[0059] In pointcoloud_image_coord, the points within the first coordinate value A(x1,y1) and the second coordinate value B(x2,y2) in the first annotation box are the point clouds corresponding to the pixels in the viewing cone. For example, the point cloud with coordinate values ​​(x,y) is the point cloud corresponding to the pixels in the viewing cone. <x<x2,y1<y<y2。

[0060] Step 1324, determining the three-dimensional coordinate data of the object to be labeled based on the point cloud.

[0061] This step can be implemented through the following steps: Step Q, sorting the depth values ​​of the point cloud from small to large to determine the point cloud of the preset number of depth value sorting from the point cloud; Step W, determining the average value of the depth values ​​of the preset number of point clouds to obtain the point cloud corresponding to the average value; Step E, determining a labeling surface perpendicular to the ground through the point cloud; Step R, determining the three-dimensional coordinate data of the object to be labeled based on the labeling surface and the preset labeling frame ratio. In the above steps, the point cloud of the object to be labeled within the cone range is calculated and operated accordingly, so as to determine any point cloud of the object to be labeled within the cone range for determining a labeling surface. It can be understood that locking the search range from the point cloud image to the point cloud in the search cone narrows the scope of the point cloud search processing, and determining any point cloud based on the average value of the depth value of the point cloud can ensure that the point cloud belongs to the object to be labeled, and can provide a data basis for the accuracy of point cloud labeling.

[0062] Exemplarily, there are 10 point clouds of the object to be labeled corresponding to the pixel points in the viewing cone (assuming they are a1, a2...a10), which are sorted in order from small to large according to the depth value (such as the z coordinate value), namely a1, a3, a5, a2, a4, a10, a8, a9, a7, and a6. Assuming the preset number is 5, the first 5 point clouds in the sorting are a1, a3, a5, a2, and a4. Then, the average of the depth values ​​of these 5 point clouds is calculated to obtain the point cloud corresponding to the average value (for example, a2). A labeling plane perpendicular to the ground is drawn through the point cloud, and the three-dimensional coordinate data of the object to be labeled is determined according to the labeling plane and the preset labeling box ratio, where the preset labeling box ratio is, for example, the size ratio of the x, y, and z values.

[0063] In the above embodiment, the two-dimensional image is transformed into the range of the three-dimensional viewing cone to obtain the point cloud within the viewing cone, and then the point cloud within the viewing cone is calculated and operated accordingly. On the one hand, the scope of the point cloud search can be narrowed, and the calculation amount and complexity of the point cloud search can be reduced. On the other hand, the point cloud within the viewing cone of the object to be labeled is operated, and the geometric accuracy of the point cloud is combined to process the point cloud data, so that the obtained three-dimensional coordinate data of the object to be labeled is more accurate, thereby improving the accuracy of the point cloud annotation of the object to be labeled.

[0064] In summary, the point cloud annotation method provided by the embodiment of the present disclosure uses the annotation box in the two-dimensional image as a reference annotation to assist in three-dimensional annotation to determine the position of the object to be annotated and the range of the object to be annotated in the image. For the annotation of some objects to be annotated in low-density point clouds, the accuracy of point cloud annotation positioning can be improved, and the time for annotators to determine the position of objects in the point cloud can be saved, thereby improving the annotation efficiency. The size of the point cloud annotation box can be adjusted to make fine adjustments to a certain extent, which can further improve the accuracy of the annotation.

[0065] Exemplary Devices

[0066] Figure 5 is a schematic structural block diagram of a point cloud annotation device provided by the first embodiment of the present disclosure. Figure 5 As shown, the point cloud annotation device of the embodiment of the present disclosure may include: an acquisition module 51 , a first annotation module 52 , a second annotation module 53 and an adjustment module 54 .

[0067] The acquisition module 51 is used to acquire a first image, where the first image is a two-dimensional image containing a point cloud of an object to be labeled.

[0068] The first labeling module 52 is used to label the object to be labeled in the first image to obtain a first labeling frame of the object to be labeled.

[0069] The second annotation module 53 is used to determine the second annotation frame according to the first annotation frame and the preset direction data of the first image, wherein the second annotation frame contains the point cloud of the object to be annotated.

[0070] The adjustment module 54 is used to adjust the size of the second annotation frame to obtain a third annotation frame.

[0071] Figure 6 is a schematic structural block diagram of a point cloud annotation device provided in the second embodiment of the present disclosure. Figure 6 As shown, the first annotation module 52 may further include a detection unit 521 and a first annotation box determination unit 522 .

[0072] The detection unit 521 is used to detect the frame selection information of the object to be labeled in the first image;

[0073] The first annotation box determining unit 522 is configured to generate the first annotation box according to the box selection information, wherein the first annotation box includes the point cloud of the object to be annotated.

[0074] Figure 7 It is a schematic structural block diagram of a point cloud annotation device provided in the third embodiment of the present disclosure.

[0075] like Figure 7 As shown, the second annotation module 53 may further include a point cloud direction determination unit 531 , a coordinate data determination unit 532 , and a second annotation box determination unit 533 .

[0076] The point cloud direction determining unit 531 is used to determine the direction of the point cloud of the object to be labeled according to the preset direction data of the first image.

[0077] The coordinate data determining unit 532 is used to determine the three-dimensional coordinate data of the point cloud of the object to be annotated based on the two-dimensional coordinate data of the first annotation frame.

[0078] The second annotation frame determining unit 533 is used to determine the second annotation frame according to the three-dimensional coordinate data of the point cloud of the object to be annotated and the direction of the point cloud of the object to be annotated, and the second annotation frame includes the point cloud of the object to be annotated.

[0079] Furthermore, the second annotation frame determination unit 533 may include: a stereo frame generation subunit (not shown in the figure), which is used to generate a stereo frame according to the three-dimensional coordinate data of the point cloud of the object to be annotated; a second annotation frame determination subunit (not shown in the figure), which is used to project the stereo frame onto the point cloud of the object to be annotated based on the direction of the point cloud of the object to be annotated, so as to obtain the second annotation frame.

[0080] In some embodiments, the coordinate data determination unit 532 may include: a first determination subunit (not shown in the figure), used to determine an index array, the values ​​of the elements of the index array are all first numerical values, and the number of the elements is the same as the number of point clouds of the object to be labeled; a second determination subunit (not shown in the figure), used to determine the viewing cone of the image of the object to be labeled in the first labeling box based on the two-dimensional coordinate data of the first labeling box and the index array; a third determination subunit (not shown in the figure), used to determine the point cloud of the object to be labeled corresponding to the pixel points in the viewing cone; a fourth determination subunit (not shown in the figure), used to determine the three-dimensional coordinate data of the object to be labeled based on the point cloud.

[0081] Furthermore, the second determination subunit is further used to: determine the point cloud of the object to be labeled that is included in the two-dimensional coordinate data range of the first labeling box; set the value of the element of the index array corresponding to other point clouds included in the first labeling box and located outside the point cloud of the two-dimensional coordinate data range to a second value; detect the first coordinate value and the second coordinate value in the first labeling box, wherein the positions of the first coordinate value and the second coordinate value in the first labeling box are in a diagonal relationship; determine the viewing cone of the image of the object to be labeled based on the first coordinate value, the second coordinate value and the point cloud whose value of the element of the index array is the first value.

[0082] Furthermore, the fourth determination subunit is further used to: sort the depth values ​​of the point cloud in ascending order to determine a preset number of point clouds in the depth value sorting from the point cloud; determine the average value of the depth values ​​of the preset number of point clouds to obtain the point cloud corresponding to the average value; determine a marking surface perpendicular to the ground through the point cloud; determine the three-dimensional coordinate data of the object to be marked based on the marking surface and the preset marking box ratio.

[0083] Exemplary Electronic Devices

[0084] Figure 8 A block diagram of an electronic device according to an embodiment of the present disclosure is illustrated.

[0085] like Figure 8 As shown, the electronic device 800 includes one or more processors 801 and a memory 802 .

[0086] The processor 801 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 800 to perform desired functions.

[0087] The memory 802 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 801 may run the program instructions to implement the point cloud annotation method of each embodiment of the present disclosure described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.

[0088] In one example, the electronic device 800 may further include: an input device 803 and an output device 804 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0089] For example, the input device 803 may be the above-mentioned camera or microphone, microphone array, etc., for capturing input signals of images or sound sources. When the electronic device is a stand-alone device, the input device 803 may be a communication network connector for receiving the collected input signals from the neural network processor.

[0090] In addition, the input device 803 may also include, for example, a keyboard, a mouse, and the like.

[0091] The output device 804 can output various information to the outside, including the determined output voltage, output current information, etc. The output device 804 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0092] Of course, to simplify, Figure 8 Only some of the components related to the present disclosure in the electronic device 800 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 800 may also include any other appropriate components.

[0093] Exemplary computer program products and computer-readable storage media

[0094] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the point cloud annotation method according to various embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.

[0095] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0096] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enables the processor to execute the steps of the point cloud annotation method according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.

[0097] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable 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 above.

[0098] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0099] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0100] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0101] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0102] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A point cloud annotation method, include: Acquire a first image, where the first image is a two-dimensional image containing a point cloud of an object to be annotated, and the first image also includes preset direction data of the object to be annotated; Annotating the object to be annotated in the first image to obtain a first annotation frame of the object to be annotated; Determine three-dimensional coordinate data according to the two-dimensional coordinate data of the first annotation frame and the preset direction data of the first image, and determine a second annotation frame based on the three-dimensional coordinate data, wherein the second annotation frame contains a point cloud of the object to be annotated; The second annotation frame is resized to obtain a third annotation frame.

2. The method according to claim 1, in, The step of labeling the object to be labeled in the first image to obtain a first labeling frame of the object to be labeled includes: Detecting frame selection information of the object to be labeled in the first image; The first annotation box is generated according to the box selection information, wherein the first annotation box includes the point cloud of the object to be annotated.

3. The method according to claim 1, in, The step of determining three-dimensional coordinate data according to the two-dimensional coordinate data of the first annotation frame and the preset direction data of the first image, and determining a second annotation frame based on the three-dimensional coordinate data, wherein the point cloud containing the object to be annotated in the second annotation frame includes: Determining the direction of the point cloud of the object to be labeled according to preset direction data of the first image; Determine the three-dimensional coordinate data of the point cloud of the object to be annotated based on the two-dimensional coordinate data of the first annotation frame; The second annotation frame is determined according to the three-dimensional coordinate data of the point cloud of the object to be annotated and the direction of the point cloud of the object to be annotated, and the second annotation frame contains the point cloud of the object to be annotated.

4. The method according to claim 3, in, The determining the second annotation frame according to the three-dimensional coordinate data of the point cloud of the object to be annotated and the direction of the point cloud of the object to be annotated comprises: Generate a stereoscopic frame according to the three-dimensional coordinate data of the point cloud of the object to be labeled; Based on the direction of the point cloud of the object to be annotated, the stereoscopic frame is projected onto the point cloud of the object to be annotated to obtain the second annotation frame.

5. The method according to claim 3, in, The determining of the three-dimensional coordinate data of the point cloud of the object to be annotated based on the two-dimensional coordinate data of the first annotation frame includes: Determine an index array, wherein the values ​​of the elements of the index array are all first values, and the number of the elements is the same as the number of the point clouds of the object to be annotated; Determine the viewing cone of the image of the object to be labeled in the first labeling frame based on the two-dimensional coordinate data of the first labeling frame and the index array; Determine a point cloud of the object to be labeled corresponding to the pixel points in the viewing cone; The three-dimensional coordinate data of the object to be labeled is determined according to the point cloud.

6. The method according to claim 5, in, The determining of the view cone of the image of the object to be labeled in the first labeling frame based on the two-dimensional coordinate data of the first labeling frame and the index array comprises: Determine a point cloud of the object to be annotated contained in the two-dimensional coordinate data range of the first annotation frame; Setting the values ​​of the elements of the index array corresponding to other point clouds contained in the first annotation frame and outside the point cloud of the two-dimensional coordinate data range to second values; Detecting a first coordinate value and a second coordinate value in a first annotation frame, wherein positions of the first coordinate value and the second coordinate value in the first annotation frame are in a diagonal relationship; The viewing cone of the image of the object to be labeled is determined based on the first coordinate value, the second coordinate value, and a point cloud whose element value of the index array is a first numerical value.

7. The method according to claim 5, in, Determining the three-dimensional coordinate data of the object to be annotated according to the point cloud includes: Sorting the depth values ​​of the point clouds in ascending order to determine a preset number of point clouds in the depth value sorting from the point clouds; Determine an average value of the depth values ​​of the pre-set number of point clouds to obtain a point cloud corresponding to the average value; Determine a marking surface perpendicular to the ground through the point cloud; The three-dimensional coordinate data of the object to be labeled is determined based on the labeled surface and a preset labeling frame ratio.

8. A point cloud annotation device, include: An acquisition module, configured to acquire a first image, wherein the first image is a two-dimensional image including a point cloud of an object to be annotated, and the first image also includes preset direction data of the object to be annotated; A first labeling module, used for labeling the object to be labeled in the first image to obtain a first labeling frame of the object to be labeled; A second annotation module, configured to determine three-dimensional coordinate data according to the two-dimensional coordinate data of the first annotation frame and the preset direction data of the first image, and determine a second annotation frame based on the three-dimensional coordinate data, wherein the second annotation frame contains a point cloud of the object to be annotated; The adjustment module is used to adjust the size of the second annotation frame to obtain a third annotation frame.

9. A computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the point cloud annotation method described in any one of claims 1 to 7.

10. An electronic device, wherein the electronic device include: processor; a memory for storing instructions executable by the processor; The processor is used to execute the point cloud annotation method described in any one of claims 1 to 7.