Image depth labeling method and device, medium and equipment

By performing point cloud data density and de-occlusion processing on the image, the problem of low accuracy of image depth truth value obtained by lidar is solved, and efficient and accurate image depth labeling is achieved.

CN118968462APending Publication Date: 2024-11-15SHANGHAI ANTING HORIZON INTELLIGENT TRANSP TECHNOLOGY CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410995425.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The image depth truth value obtained based on lidar in the prior art is easily affected by environmental factors, resulting in low accuracy of image depth annotation results.

Method used

By determining the multi-frame image and its corresponding point cloud data and positioning information, the dense processing is performed based on the point cloud data, the occlusion points are removed, and the target dense point cloud data after de-occlusion is obtained, thereby realizing automatic labeling of image depth.

Benefits of technology

It improves the efficiency and accuracy of image depth labeling, reduces the cost of labeling, and enhances the effectiveness of labeling results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118968462A_ABST
    Figure CN118968462A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an image depth marking method and device, a medium and equipment, and the method comprises the steps: determining multiple frames of images, and first point cloud data and positioning information corresponding to each frame of image; based on the first point cloud data and the positioning information corresponding to each frame of image, determining dense point cloud data under a camera coordinate system corresponding to each frame of image; performing de-occlusion processing on the dense point cloud data corresponding to each frame of image to obtain de-occluded target dense point cloud data corresponding to each frame of image; and according to the target dense point cloud data corresponding to each frame of image, determining a depth labeling result corresponding to each frame of image. According to the embodiment of the invention, automatic marking of the image depth can be realized through point cloud data densification, the marking efficiency of the image depth is effectively improved, and the marking cost is greatly reduced. And the accuracy and effectiveness of an image depth marking result can be further improved by performing de-occlusion processing on the dense point cloud data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to computer vision technology, and in particular to a method, device, medium and equipment for labeling image depth. Background Art

[0002] In intelligent driving scenarios, vision-based obstacle detection, segmentation and other visual tasks can provide three-dimensional obstacle information for downstream decision-making. Vision-based obstacle detection and segmentation usually rely on image depth estimation, and image depth estimation is usually implemented based on deep learning models. The training of deep learning models often requires a large number of training images (or sample images) and the true depth values ​​corresponding to the training images. In related technologies, image depth annotation is usually achieved with the assistance of LiDAR. However, the true depth value of the image obtained based on LiDAR is easily affected by environmental factors, resulting in low accuracy of the true depth value of the image. Summary of the invention

[0003] The embodiments of the present disclosure provide a method, apparatus, medium and device for annotating image depth, which can improve the efficiency of image depth annotation, reduce annotation costs, and improve the accuracy of annotation results.

[0004] A first aspect of an embodiment of the present disclosure provides a method for annotating image depth, including: determining multiple frames of images, and first point cloud data and positioning information corresponding to each frame of image; determining dense point cloud data in a camera coordinate system corresponding to each frame of image based on the first point cloud data and the positioning information corresponding to each frame of image; performing de-occlusion processing on the dense point cloud data corresponding to each frame of image to obtain de-occluded target dense point cloud data corresponding to each frame of image; and determining depth annotation results corresponding to each frame of image based on the target dense point cloud data corresponding to each frame of image.

[0005] According to a second aspect of the embodiments of the present disclosure, there is provided an image depth annotation device, comprising: a first processing module for determining multiple frames of images, and first point cloud data and positioning information corresponding to each frame of images; a second processing module for determining dense point cloud data in a camera coordinate system corresponding to each frame of images based on the first point cloud data and the positioning information corresponding to each frame of images; a third processing module for performing de-occlusion processing on the dense point cloud data corresponding to each frame of images to obtain de-occluded target dense point cloud data corresponding to each frame of images; and a fourth processing module for determining the depth annotation result corresponding to each frame of images according to the target dense point cloud data corresponding to each frame of images.

[0006] According to a third aspect of the embodiments 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 image depth labeling method described in any of the above embodiments of the present disclosure.

[0007] According to a fourth aspect of the embodiments of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing executable instructions of the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the image depth annotation method described in any of the above embodiments of the present disclosure.

[0008] A fifth aspect of the embodiments of the present disclosure provides a computer program product. When instructions in the computer program product are executed by a processor, the image depth labeling method provided by any of the above embodiments of the present disclosure is executed.

[0009] Based on the image depth annotation method, device, medium and equipment provided by the above-mentioned embodiments of the present disclosure, when multiple frames of images and the first point cloud data and positioning information corresponding to each frame of image are determined, based on the first point cloud data and positioning information corresponding to each frame of image, the dense point cloud data in the camera coordinate system corresponding to each frame of image can be determined; then, the dense point cloud data corresponding to each frame of image can be de-occluded to obtain the de-occluded target dense point cloud data corresponding to each frame of image; and then, the depth annotation results corresponding to each frame of image can be determined according to the target dense point cloud data corresponding to each frame of image. Combined with the densification of point cloud data, automatic annotation of image depth is realized, which effectively improves the annotation efficiency of image depth and greatly reduces the annotation cost. And by de-occluding the dense point cloud data, the accuracy and effectiveness of the image depth annotation results can be further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 This is an exemplary application scenario of the image depth annotation method provided by the present disclosure;

[0011] Figure 2 is a flowchart of a method for marking image depth provided by an exemplary embodiment of the present disclosure;

[0012] Figure 3 is a flowchart of a method for marking image depth provided by another exemplary embodiment of the present disclosure;

[0013] Figure 4 is a flowchart of a method for marking image depth provided by yet another exemplary embodiment of the present disclosure;

[0014] Figure 5is a flowchart of a method for marking image depth provided by another exemplary embodiment of the present disclosure;

[0015] Figure 6 is a flowchart of a method for marking image depth provided by yet another exemplary embodiment of the present disclosure;

[0016] Figure 7 is a flowchart of a method for marking image depth provided by another exemplary embodiment of the present disclosure;

[0017] Figure 8 is a flowchart of a method for marking image depth provided by yet another exemplary embodiment of the present disclosure;

[0018] Fig. 9 is a schematic diagram of a neighborhood range of a current projection point provided by an exemplary embodiment of the present disclosure;

[0019] Fig.10 is a flowchart of a method for marking image depth provided by an exemplary embodiment of the present disclosure;

[0020] Fig.11 is a structural schematic diagram of an image depth annotation device provided by an exemplary embodiment of the present disclosure;

[0021] Fig.12 is a structural schematic diagram of an image depth annotation device provided by another exemplary embodiment of the present disclosure;

[0022] Fig.13 is a structural schematic diagram of an image depth annotation device provided by yet another exemplary embodiment of the present disclosure;

[0023] Fig.14 is a structural schematic diagram of an image depth annotation device provided by another exemplary embodiment of the present disclosure;

[0024] Fig.15 It is a structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] To explain the present disclosure, example embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. It should be understood that the present disclosure is not limited to the example embodiments.

[0026] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.

[0027] SUMMARY OF THE DISCLOSURE

[0028] In the process of realizing the present disclosure, the inventors found that in the related art, image depth annotation is usually achieved with the assistance of laser radar. However, the true value of image depth obtained based on laser radar is easily affected by environmental factors, resulting in low accuracy of the true value of image depth, which makes the image depth annotation result of the related art low in accuracy.

[0029] Exemplary Overview

[0030] Figure 1 This is an exemplary application scenario of the image depth annotation method provided by the present disclosure. Figure 1 As shown, in order to achieve image depth estimation, the image depth annotation device 11 of the present invention can be used to perform the image depth annotation method of the present invention to obtain multiple frames of images and corresponding depth truth values ​​(and depth annotation results). Specifically, when multiple frames of images and the first point cloud data and positioning information corresponding to each frame of image are determined, based on the first point cloud data and positioning information corresponding to each frame of image, the dense point cloud data in the camera coordinate system corresponding to each frame of image can be determined; then, the dense point cloud data corresponding to each frame of image can be de-occluded to obtain the target dense point cloud data after de-occlusion corresponding to each frame of image; and then, the depth annotation results corresponding to each frame of image can be determined according to the target dense point cloud data corresponding to each frame of image. The annotated multiple frames of image are used as sample images and input into the training device 12 of the image depth estimation model for training the image depth estimation model. After the training, the trained image depth estimation model is obtained. Then, the trained image depth estimation model can be deployed to the image depth estimation device 13 of the terminal device. The terminal device can be, for example, any mobile terminal device. The mobile terminal device can include a vehicle-mounted terminal (or vehicle-mounted computing platform), a drone terminal, a mobile phone, a tablet, and other devices equipped with a camera. The image depth estimation device 13 can perform depth estimation on the image collected by the terminal device in real time to obtain a depth estimation result of the image. The depth estimation result of the image can be used for the detection of objects in the image, the three-dimensional reconstruction of the object, etc. For example, in the fields of intelligent driving and drone driving, the depth estimation result of the image can be used for the detection of obstacles, the three-dimensional reconstruction of obstacles, etc. The image depth annotation method disclosed in the present invention is not limited to intelligent driving scenarios, but can also be used in any other scenarios where image depth estimation is required.

[0031] Exemplary Methods

[0032] Figure 2 FIG. 1 is a flow chart of a method for labeling image depth provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic devices, such as servers, terminal devices, etc. Figure 2As shown, the method of the embodiment of the present disclosure may include the following steps:

[0033] Step 201, determining multiple frames of images and first point cloud data and positioning information corresponding to each frame of image.

[0034] Among them, the multi-frame image may include images collected at multiple time points (or moments) within a certain time period. That is, the multi-frame image has a certain time sequence. The first point cloud data corresponding to each frame of the image may be point cloud data synchronized with the frame of the image. The first point cloud data may be point cloud data obtained by laser radar scanning, or point cloud data obtained by other sensors. For example, point cloud data is obtained based on a depth camera, a binocular camera, etc. The embodiments of the present disclosure are not limited. The positioning information may be information collected by the positioning sensor, which can be used to determine the position information of the mobile terminal device (or mobile device, mobile terminal) at the time of image acquisition. The mobile terminal device may be a vehicle, a mobile robot, a drone, or other device equipped with an image sensor or a point cloud sensor. Exemplarily, the positioning sensor may include an inertial measurement unit (Inertial Measurement Unit, referred to as: IMU), a wheel speed meter, a global positioning system (Global Positioning System, referred to as: GPS), etc.

[0035] In some optional embodiments, the execution subject of the image depth annotation method of the embodiment of the present disclosure may be a server, a terminal device, or a vehicle-mounted computing platform (vehicle-mounted terminal) on a mobile terminal device (the embodiment of the present disclosure is described using a vehicle as an example). If the execution subject is a terminal device other than a server or a vehicle, the image captured by the camera on the vehicle, the first point cloud data captured by the point cloud sensor on the vehicle, and the positioning information captured by the positioning sensor on the vehicle can be obtained. Based on the data collected by various sensors on the vehicle within a specified time period, multiple frames of images and the first point cloud data and positioning information corresponding to each frame of the image are determined.

[0036] Step 202: Based on the first point cloud data and positioning information corresponding to each frame of image, dense point cloud data in the camera coordinate system corresponding to each frame of image is determined.

[0037] The camera coordinate system corresponding to each frame image refers to the coordinate system of the camera that captured the frame image. The position and posture of the camera coordinate system in the global coordinate system changes with the movement of the camera. Therefore, the position and posture of the camera coordinate system corresponding to different frames of images may be different. The global coordinate system can be the world coordinate system, the camera coordinate system at the starting time, the vehicle coordinate system at the starting time, etc., without specific limitation.

[0038] In some optional embodiments, each frame image can be used as the current frame image, and the first point cloud data corresponding to the current frame image, the first point cloud data of one or more frames before the current frame (referred to as the historical frames of the current frame), and the first point cloud data of one or more frames after the current frame (referred to as the future frames of the current frame) can be combined to determine the dense point cloud data in the camera coordinate system corresponding to the current frame image. The first point cloud data of different frames can be unified into the local coordinate system or camera coordinate system of the current frame according to the positioning information, and the point cloud data of the current frame can be densified according to the multi-frame point cloud data in the unified coordinate system to obtain the dense point cloud data corresponding to the current frame image. The local coordinate system can be the coordinate system of the sensor that collects the point cloud data or the coordinate system of the mobile terminal device (such as a vehicle) where the sensor is located. For example, the local coordinate system can be a laser radar coordinate system or a vehicle coordinate system (Vehicle Coordinate System, referred to as: VCS).

[0039] In some optional embodiments, if the first point cloud data is point cloud data collected by a laser radar, motion distortion removal can be performed on the first point cloud data corresponding to each frame of image, and each point in the first point cloud data can be aligned to the same timestamp to eliminate or reduce the distortion caused by the movement of the vehicle during the laser radar scanning process.

[0040] In some optional embodiments, the dense point cloud data in the camera coordinate system corresponding to each frame image may also be the dense point cloud data after noise points are filtered out, so as to improve the accuracy and effectiveness of the dense point cloud data.

[0041] Step 203 , performing de-occlusion processing on the dense point cloud data corresponding to each frame image, to obtain the de-occluded target dense point cloud data corresponding to each frame image.

[0042] Among them, de-occlusion processing refers to removing points that meet the occlusion conditions in dense point cloud data. The occlusion conditions can be set according to the perspective occlusion properties after the point cloud data is reprojected to the image. The reason why there may be occluded points in dense point cloud data is that dense point cloud data is obtained by combining the densification of point clouds of multiple frames, and the camera perspectives of different frames may be different. Points that can be seen in the previous frame image may not be seen in the image of the next frame. Therefore, when any frame image is used as the current frame image, points in the point cloud of frames other than the current frame may be occluded in the current frame image.

[0043] In some optional embodiments, an occlusion condition can be set according to the projection point of the dense point cloud data in the current frame image, combined with the nature of the change in the depth value of the projection point within a certain neighborhood range, and whether each point in the dense point cloud data is occluded is determined according to the occlusion condition, and the occluded points are filtered out to obtain the target dense point cloud data after de-occlusion. For example, the occlusion condition can be that the depth value of the projection point within a certain neighborhood range will not mutate. If the depth value of a certain projection point mutates relative to the minimum depth value within the neighborhood range, it is considered that the point corresponding to the projection point is occluded. Based on this, de-occlusion processing is achieved.

[0044] In some optional embodiments, based on the posture of the camera corresponding to the current frame image, the camera can observe each point in the dense point cloud data corresponding to the current frame image to determine the visibility of each point, and then remove invisible points according to the visibility of each point to achieve de-occlusion processing.

[0045] In some optional embodiments, the projection point of each pixel projected to the current frame image can be determined based on the projection point set of the dense point cloud data corresponding to the current frame image in the current frame image. For any pixel, if the pixel corresponds to multiple projection points, the point with the smallest depth value among the multiple projection points is retained, and the point with a larger depth value is removed to achieve de-occlusion processing. The specific de-occlusion processing method is not limited.

[0046] Step 204 : Determine the depth annotation results corresponding to each frame of image according to the target dense point cloud data corresponding to each frame of image.

[0047] Among them, the depth annotation result corresponding to each frame of image may include the depth value (or true depth value) corresponding to each pixel in the frame of image. For each frame of image, the target dense point cloud data corresponding to the frame of image is the point cloud data in the camera coordinate system corresponding to the frame of image. Therefore, the Z coordinate (i.e., the coordinate axis where the camera optical axis is located) of the point in the target dense point cloud data can represent the depth value of the point. According to the pixel coordinates of the projection points of each point in the target dense point cloud data in the frame of image, the depth value corresponding to the corresponding pixel of the frame of image can be obtained, thereby obtaining the depth annotation result corresponding to the frame of image.

[0048] In some optional embodiments, for each frame image, if the target dense point cloud data is projected onto the frame image, there are some pixels in the frame image that have no corresponding projection points, that is, the corresponding depth values ​​of these pixels cannot be determined. The depth value of the pixel can be calculated by the depth values ​​of the neighboring pixels of the pixel. For example, when the depth values ​​of the neighboring pixels are close, the depth value of the pixel is calculated by interpolation to obtain the depth value corresponding to each pixel in the frame image.

[0049] In some optional embodiments, if each frame of image is a binocular image, the depth annotation result corresponding to the frame of image may include a disparity map of the frame of image.

[0050] In some optional embodiments, if each frame of image includes images from multiple perspectives, the depth annotation result corresponding to the frame of image may include the depth value of each pixel in the image from at least one perspective. For example, for a surround perception system, the same physical space point may be observed in images from one or more perspectives, and the depth annotation result of the image from each perspective can be obtained by projecting the target dense point cloud data onto the image from each perspective.

[0051] The image depth annotation method provided in this embodiment can determine the dense point cloud data in the camera coordinate system corresponding to each frame of image based on the first point cloud data and positioning information corresponding to each frame of image, when multiple frames of image are determined, and the first point cloud data and positioning information corresponding to each frame of image are determined; then, the dense point cloud data corresponding to each frame of image can be de-occluded to obtain the de-occluded target dense point cloud data corresponding to each frame of image; and then, the depth annotation results corresponding to each frame of image can be determined according to the target dense point cloud data corresponding to each frame of image. Combined with the densification of point cloud data, automatic annotation of image depth is realized, which effectively improves the annotation efficiency of image depth and greatly reduces the annotation cost. And by de-occluding the dense point cloud data, the accuracy and effectiveness of the image depth annotation results can be further improved.

[0052] Figure 3 It is a flowchart of a method for labeling image depth provided by another exemplary embodiment of the present disclosure.

[0053] In some optional embodiments, in the above Figure 2 Based on the embodiment shown, Figure 3 As shown, step 202 of determining the dense point cloud data in the camera coordinate system corresponding to each frame of image based on the first point cloud data and positioning information corresponding to each frame of image may include:

[0054] Step 2021, determine the point cloud semantic segmentation results and point cloud target detection results corresponding to each first point cloud data.

[0055] Among them, the point cloud semantic segmentation result corresponding to any first point cloud data may include the semantic type (or semantic category) of each point in the first point cloud data. The semantic type may include static scene types such as roads, trees, buildings, traffic signs, and dynamic object types such as vehicles (other vehicles around the vehicle), pedestrians, and cyclists. The point cloud target detection result may include a three-dimensional detection box for each object (or target) detected in the first point cloud data. The point cloud semantic segmentation result and the point cloud target detection result may be obtained in any feasible manner in the relevant technology. For example, the first point cloud data is semantically segmented by a point cloud semantic segmentation model to obtain the point cloud semantic segmentation result corresponding to the first point cloud data, and the first point cloud data is target detected by a point cloud target detection model to obtain the point cloud target detection result corresponding to the first point cloud data. The specific method is not limited in the embodiments of the present disclosure.

[0056] In some optional embodiments, target tracking may also be performed on the point cloud target detection results to obtain tracking results for each object, and an association relationship between objects in the point cloud target detection results of each frame may be established for subsequent point cloud densification of dynamic objects.

[0057] Step 2022: Based on the point cloud semantic segmentation results and point cloud target detection results corresponding to each first point cloud data, determine the first static scene point cloud data and the first dynamic object point cloud data corresponding to each first point cloud data.

[0058] The first static scene point cloud data is a collection of points belonging to the static scene in the first point cloud data. The static scene refers to the scene composed of static objects around the vehicle. The first dynamic object point cloud data is the point cloud data belonging to the dynamic objects in the first point cloud data. The first dynamic object point cloud data may include point cloud data corresponding to each dynamic object in the first point cloud data. For example, the first dynamic object point cloud data may include one or more of the point cloud data corresponding to each other vehicle, the point cloud data corresponding to each pedestrian, and the point cloud data corresponding to each cyclist.

[0059] In some optional embodiments, for each first point cloud data, point cloud data belonging to each object can be extracted from the first point cloud data according to the point cloud target detection result and the point cloud semantic segmentation result, and point cloud data corresponding to each dynamic object can be determined according to the object type and the preconfigured object type belonging to the dynamic object, so as to obtain the first dynamic object point cloud data. The point cloud data in the first point cloud data except the point cloud data of all dynamic objects can be used as the first static scene point cloud data. Alternatively, the point cloud data corresponding to each static object can be determined according to the object type and the preconfigured object type belonging to the static object, as the first static scene point cloud data.

[0060] Step 2023: Based on the first static scene point cloud data and positioning information corresponding to each first point cloud data, determine the first position information of the local coordinate system corresponding to each first point cloud data.

[0061] Among them, the local coordinate system corresponding to any first point cloud data refers to the coordinate system of the sensor that collects the first point cloud data or the coordinate system of the mobile terminal device where the sensor is located. The coordinate system of the sensor that collects the first point cloud data can be, for example, a laser radar (Lidar) coordinate system. The coordinate system of the mobile terminal device can be, for example, a vehicle coordinate system. The first position information of the local coordinate system refers to the position and posture information of the local coordinate system in the global coordinate system. The first position information may include position and posture. The position can be expressed as a translation vector of the local coordinate system relative to the global coordinate system, and the posture can be expressed as a rotation matrix of the local coordinate system relative to the global coordinate system. Alternatively, the first position information of the local coordinate system corresponding to any first point cloud data can be expressed as the relative position and posture information of the local coordinate system of the frame relative to the previous frame. Combined with the position and posture information of the local coordinate system of the starting frame in the global coordinate system, the position and posture information of the local coordinate system of each frame in the global coordinate system can be obtained. The specific representation method of the first position information is not limited.

[0062] In some optional embodiments, since the position and posture of the static object in the global coordinate system remains unchanged, the accurate position and posture information (i.e., the first position and posture information) of the local coordinate system of each frame can be determined by a pre-configured positioning algorithm based on the first static scene point cloud data of multiple frames and the positioning information corresponding to each frame. The positioning algorithm may include, for example, a point cloud simultaneous positioning and mapping (SLAM) algorithm and its various improved algorithms, other implementable positioning algorithms, etc. For example, the first static scene point cloud data, IMU data, GPS data, and wheel speed meter data of each frame are input into the point cloud SLAM algorithm for position and posture optimization, and the optimized position and posture information of each frame is obtained as the first position and posture information.

[0063] Step 2024, taking any frame image as the target image, based on each first static scene point cloud data, each first dynamic object point cloud data and each first pose information, determine the dense point cloud data in the camera coordinate system corresponding to the target image.

[0064] Among them, according to the first bit pose information of the local coordinate system of each frame, the conversion relationship between the local coordinate systems of each frame can be established to achieve the unification of the coordinate systems of the first static scene point cloud data and the first dynamic object point cloud data of different frames, that is, the first static scene point cloud data and the first dynamic object point cloud data of each frame can be transferred from their respective local coordinate systems to the local coordinate system of the target frame (i.e., the frame corresponding to the target image), so as to facilitate the point cloud densification of the target frame through the point cloud data of multiple frames to obtain the dense point cloud data of the target frame. Then, the dense point cloud data in the camera coordinate system corresponding to the target image can be obtained through the coordinate conversion between the local coordinate system and the camera coordinate system.

[0065] This embodiment obtains the first static scene point cloud data and the first dynamic object point cloud data of each frame by separating the dynamic and static point clouds, and then locates the position information of the local coordinate system of each frame in the global coordinate system through the first static scene point cloud data, which can avoid the adverse effects of the positioning of the dynamic object point cloud data due to the movement of the dynamic object, and improve the accuracy of the first position information of each frame. Then, the conversion relationship between the local coordinate systems of each frame is established through the first position information, which helps to unify the coordinate systems of the point cloud data of different frames and provide an effective reference basis for the densification of the point cloud data corresponding to each frame image.

[0066] Figure 4 It is a flowchart of a method for marking image depth provided by yet another exemplary embodiment of the present disclosure.

[0067] In some optional embodiments, such as Figure 4 As shown, step 2024 takes any frame image as the target image, and determines the dense point cloud data in the camera coordinate system corresponding to the target image based on each first static scene point cloud data, each first dynamic object point cloud data and each first pose information, which may include:

[0068] Step 20241: Based on each first pose information, motion dedistortion processing is performed on each first point cloud data to obtain dedistorted second point cloud data corresponding to each first point cloud data.

[0069] Among them, motion distortion removal (also known as motion compensation) is used to remove the distortion caused by the movement of the movable device during the laser radar scanning process. Since the laser point data is not obtained instantaneously during the process of scanning and obtaining point cloud data, the laser measurement is accompanied by the movement of the movable device. When the laser frame rate is low, the movement of the movable device cannot be ignored. For example, when the scanning frequency of the laser radar is 5Hz, the time difference between the beginning and the end of a frame of data is 200 milliseconds (ms). If the movable device walks at a speed of 0.5 meters per second (m / s) and scans the object in front, there is a certain difference between the measured distance of the tail and the measured distance of the head after 200ms. It can be seen that the difference is caused by the movement of the movable device, which is called motion distortion. Motion distortion removal is to eliminate this motion distortion. The first pose information of each frame is the pose information of the local coordinate system at the starting time point of the frame. The time difference of each point in the first point cloud data of the frame relative to the starting point is determined according to the rotation parameters (such as rotation speed) of the laser radar, and the pose change of the laser radar is determined according to the time difference. According to the pose change, each point in the first point cloud data is unified to the first pose information, so that each point in the second point cloud data after dedistortion is the coordinate of the local coordinate system at a unified time point. Through motion dedistortion, the distortion caused by the movement of the movable device to the point cloud data is eliminated or reduced, and the accuracy and effectiveness of the point cloud data are further improved. The specific method of point cloud data motion compensation can adopt any feasible method in the relevant technology, and the embodiments of the present disclosure are not limited.

[0070] Step 20242, based on the correspondence between each second point cloud data and each first point cloud data, determine the second static scene point cloud data corresponding to each first static scene point cloud data in the second point cloud data, and the second dynamic object point cloud data corresponding to each first dynamic object point cloud data in the second point cloud data.

[0071] Each second point cloud data is point cloud data after time alignment (i.e., motion compensation) of the corresponding first point cloud data. The points in the second point cloud data have a one-to-one correspondence with the points in the first point cloud data, and the semantic type of the points will not change. Therefore, the second static scene point cloud data corresponding to the first static scene point cloud data in the second point cloud data can be determined based on the correspondence between the second point cloud data and the first point cloud data and the points corresponding to the first static scene point cloud data in the first point cloud data. Similarly, the second dynamic object point cloud data corresponding to each first dynamic object unit data in the second point cloud data can be determined.

[0072] In some optional embodiments, each point in the first point cloud data may carry a point identifier. In various subsequent processing processes, each point is marked with the point identifier to facilitate determining the correspondence between the points in the second point cloud data and the points in the first point cloud data, as well as the correspondence between the points in the first static scene point cloud data and the points in the first point cloud data and the second point cloud data.

[0073] In some optional embodiments, the points in the first point cloud data may also be marked with semantic types, static scenes, dynamic objects, etc., and these marks may be carried in various subsequent processing processes, so that the second static scene point cloud data corresponding to the first static scene point cloud data and the second dynamic object point cloud data corresponding to the first dynamic object point cloud data in the second point cloud data may be determined directly from the second point cloud data based on the marks.

[0074] Step 20243, taking any frame image as the target image, and determining the dense static scene point cloud data corresponding to the target image based on each second static scene point cloud data.

[0075] In some optional embodiments, each frame of image can be used as a target image in turn, and the dense static scene point cloud data corresponding to the target image can be determined based on the second static scene point cloud data of multiple frames, so as to obtain the dense static scene point cloud data corresponding to each frame of image. The multiple frames of second static scene point cloud data can be all or part of the second static scene point cloud data in each second static scene point cloud data. For example, for a target frame corresponding to a target image, the dense static scene point cloud data corresponding to the target image can be determined based on the second static scene point cloud data of the target frame and the second static scene point cloud data of a certain number of frames before and after the target frame. The number of frames before and after the target frame can be determined according to at least one of a time range and a distance range, and the distance refers to the movement distance of a laser radar or a movable device.

[0076] In some optional embodiments, each second static scene point cloud data used to determine the dense static scene point cloud data of the target image may be uniformly converted to a local coordinate system or a camera coordinate system corresponding to the target image to obtain the dense static scene point cloud data corresponding to the target image. That is, the dense static scene point cloud data corresponding to the target image may be point cloud data in a local coordinate system at a corresponding time point of the target image, or may be point cloud data in a camera coordinate system.

[0077] Step 20244: Determine the dense dynamic object point cloud data corresponding to the target image based on each second dynamic object point cloud data.

[0078] In some optional embodiments, the second dynamic object point cloud data of all frames or part of the frames may be used to determine the dense dynamic object point cloud data corresponding to the target image. In the case of partial frames, the second dynamic object point cloud data of the target frame corresponding to the target image and the second dynamic object point cloud data of a certain number of frames before and after the target frame may be used to determine the dense dynamic object point cloud data corresponding to the target image. The number of frames before and after the target frame may be determined based on at least one of a time range and a distance range, and the distance refers to the movement distance of a laser radar or a movable device. The dense dynamic object point cloud data corresponding to the target image may be point cloud data in a local coordinate system corresponding to the target image, or may be point cloud data in a camera coordinate system corresponding to the target image. The local coordinate system and the camera coordinate system may be converted to each other.

[0079] In some optional embodiments, since the dynamic object will move over time, that is, the position and posture of the dynamic object in the global coordinate system will change, when determining the dense dynamic object point cloud data corresponding to the target image through the second dynamic object point cloud data of multiple frames, the influence of the movement of the dynamic object needs to be considered, and the distortion caused by the movement of the dynamic object to the densification of the dynamic object can be eliminated or reduced by the dynamic object motion dedistortion. Optionally, for each frame before the target frame (referred to as the historical frame of the target frame), the state of the point cloud data of the dynamic object of the historical frame when moving to the target frame can be calculated by the motion model, and for each frame after the target frame (referred to as the future frame of the target frame), the state of the point cloud data of the dynamic object of the future frame at the target frame can also be calculated by the motion model, thereby obtaining the point cloud data of the second dynamic object point cloud data of multiple frames unified in the target frame corresponding to the target image, realizing the densification of the dynamic object point cloud of the target image in a unified coordinate system, and obtaining the dense dynamic object point cloud data corresponding to the target image. Other dedistortion methods can also be used to eliminate the adverse effects of the movement of the dynamic object on the densification of the dynamic object of a certain frame.

[0080] Step 20245, based on the dense static scene point cloud data and the dense dynamic object point cloud data corresponding to the target image, determine the dense point cloud data in the camera coordinate system corresponding to the target image.

[0081] Among them, the dense static scene point cloud data and the dense dynamic object point cloud data corresponding to the target image can be fused to obtain the dense point cloud data corresponding to the target image.

[0082] In some optional embodiments, if the dense static scene point cloud data and the dense dynamic object point cloud data corresponding to the target image are point cloud data in the local coordinate system corresponding to the target image, the dense static scene point cloud data and the dense dynamic object point cloud data corresponding to the target image can be fused and converted to the camera coordinate system through the conversion relationship between the local coordinate system and the camera coordinate system to obtain the dense point cloud data in the camera coordinate system corresponding to the target image. If the dense static scene point cloud data and the dense dynamic object point cloud data corresponding to the target image are point cloud data in the camera coordinate system corresponding to the target image, the dense static scene point cloud data and the dense dynamic object point cloud data corresponding to the target image can be fused to obtain the dense point cloud data corresponding to the target image.

[0083] This embodiment can effectively eliminate or reduce the distortion caused by the movement of the movable device for scanning and collecting the point cloud data by performing motion dedistortion processing on the first point cloud data, thereby improving the accuracy and effectiveness of the point cloud data. Then, the static scene point cloud of the target image is densified by the second static scene point cloud data in the dedistorted multi-frame second point cloud data, and the dynamic object point cloud of the target image is densified by the second dynamic object point cloud data in the multi-frame second point cloud data. The dense point cloud data corresponding to the target image is obtained by the dense static scene point cloud data and the dense dynamic object point cloud data, which effectively realizes the densification of the point cloud data corresponding to the target image and provides effective dense point cloud data for the depth annotation of the target image.

[0084] In some optional embodiments, determining the dense static scene point cloud data corresponding to the target image based on each second static scene point cloud data in step 20243 may include:

[0085] According to the target frame corresponding to the target image, multiple frames of target second static scene point cloud data within a preset range of the target frame are determined from each second static scene point cloud data; the preset range includes at least one of a preset time range and a preset distance range; based on each target second static scene point cloud data, the dense static scene point cloud data corresponding to the target image is determined.

[0086] Among them, the preset time range may include a first duration (or first number of frames) and a second duration (or second number of frames) with reference to the target time point corresponding to the target frame. The first duration represents the duration before the target time point, and the second duration represents the duration after the target time point, for example, the first duration is t1 milliseconds or the first number of frames is M frames. The second duration is t2 milliseconds or the second number of frames is N frames. The first duration and the second duration may be the same or different. The first number of frames M and the second number of frames N may be the same or different. The preset distance range may include a first distance threshold and a second distance threshold with reference to the position P of the local coordinate system corresponding to the target frame, the first distance threshold represents the distance before the target frame position, and the second distance threshold represents the distance segment after the target frame position. For example, the preset distance range is [-D1, D2]. Specifically, the distance between the local coordinate systems of each frame can be calculated based on the first position pose information of the local coordinate system of each frame. According to the distance of the local coordinate system of each frame and the preset distance range, and the preset time range, the second static scene point cloud data of the multi-frame target participating in the densification of the static scene point cloud of the target image is determined. Then, the coordinate system of the second static scene point cloud data of each target is unified, for example, uniformly converted to the local coordinate system or camera coordinate system corresponding to the target image, and the point cloud data of the second static scene point cloud data of each target in the unified coordinate system are fused to obtain dense static scene point cloud data corresponding to the target image.

[0087] In some optional embodiments, multiple frames of target second static scene point cloud data can be comprehensively determined from each second static scene point cloud data based on a preset time range and a preset distance range to ensure the timeliness of the second static scene point cloud data involved in densification relative to the target image.

[0088] This embodiment determines multi-frame target second static scene point cloud data participating in the densification of the static scene point cloud of the target frame from each second static scene point cloud data through at least one of the time range and the distance range, which can effectively ensure the timeliness of the second static scene point cloud data participating in the densification relative to the target image, thereby improving the effectiveness of the dense static scene point cloud data of each frame.

[0089] In some optional embodiments, determining the dense static scene point cloud data corresponding to the target image based on the second static scene point cloud data of each target may include:

[0090] For any target second static scene point cloud data, determine the position change of the first pose information corresponding to the target second static scene point cloud data relative to the first pose information corresponding to the target second static scene point cloud data of the previous frame; in response to the position change being less than a position change threshold, eliminate the target second static scene point cloud data; based on the remaining target second static scene point cloud data, determine the dense static scene point cloud data corresponding to the target image.

[0091] Among them, the position change threshold can be set to any value according to actual needs. According to the first pose information corresponding to the target second static scene point cloud data of each frame, the distance between the first pose information corresponding to the target second static scene point cloud data of each adjacent frame can be calculated to obtain the position change of the first pose information corresponding to each frame of the target second static scene point cloud data relative to the first pose information corresponding to the target second static scene point cloud data of the previous frame of the frame. That is, the distance between the first pose information corresponding to each frame of the target second static scene point cloud data relative to the first pose information corresponding to the target second static scene point cloud data of the previous frame of the frame (the distance between the first pose information of two adjacent frames) is used as the position change. If the position change is less than the position change threshold, it means that the laser radar movement is too small, which is easy to cause a high repetition rate of the target second static scene point cloud data of the two frames, resulting in data redundancy. Therefore, the target second static scene point cloud data with a position change less than the position change threshold is eliminated to reduce the number of repeated points of the static scene point cloud data. Then, based on the remaining target second static scene point cloud data, the dense static scene point cloud data corresponding to the target image is determined by normalizing the coordinate system, converting the local coordinate system and the camera coordinate system, etc.

[0092] This embodiment can effectively avoid or reduce repeated static scene point cloud data by eliminating target second static scene point cloud data whose position change is less than a position change threshold, thereby improving the effectiveness of dense static scene point cloud data and reducing the amount of calculation in subsequent processing flows.

[0093] In some optional embodiments, step 20244 determines dense dynamic object point cloud data corresponding to the target image based on each second dynamic object point cloud data, including:

[0094] Based on each second dynamic object point cloud data and the tracking result of the dynamic object, a point cloud data sequence of the dynamic object corresponding to the target image is determined; based on the point cloud data sequence of the dynamic object corresponding to the target image, dense dynamic object point cloud data corresponding to the target image is determined.

[0095] Among them, the tracking results of dynamic objects may include a tracking identifier corresponding to each dynamic object. The tracking identifier is used to indicate the correspondence between the dynamic object and the dynamic object of the previous frame. The trajectory of each dynamic object can be effectively maintained according to the tracking results. The point cloud data sequence of the dynamic object may include the point cloud data corresponding to the dynamic object in each frame in which the dynamic object can be detected. The dynamic object corresponding to the target image may refer to the dynamic object that can be detected in the point cloud data of the corresponding frame of the target image. The length of the point cloud data sequence of the dynamic object can be determined according to the life cycle of the dynamic object. The life cycle of a dynamic object refers to the period from the first detection of the dynamic object to the disappearance of the dynamic object from the observation range of the laser radar.

[0096] In some optional embodiments, the tracking identification of the dynamic object can be obtained by performing target tracking on the point cloud target detection result. The specific target tracking method is not limited.

[0097] In some optional embodiments, the number of dynamic objects may be one or more, and each dynamic object may have a corresponding point cloud data sequence. In the case of multiple dynamic objects, for each dynamic object, based on the point cloud data sequence of the dynamic object, the dense point cloud data of the dynamic object in the target frame may be determined. Then, the dense point cloud data of the multiple dynamic objects in the target frame are fused to obtain the dense dynamic object point cloud data corresponding to the target image.

[0098] In some optional embodiments, the target second dynamic object point cloud data within the preset range can be determined from each second dynamic object point cloud data according to the preset range. Based on the target second dynamic object point cloud data within the preset range and the tracking result of the dynamic object, the point cloud data sequence of the dynamic object corresponding to the target image is determined to ensure the timeliness of the point cloud data sequence of the dynamic object.

[0099] In this embodiment, the point cloud data sequence of the dynamic object corresponding to the target image is determined through the tracking results of the dynamic object, so as to facilitate the densification of the point cloud data of the dynamic object in the target frame with the multi-frame point cloud data of the dynamic object, effectively realize the densification of the point cloud of the dynamic object in the target image, and improve the density of the point cloud data of the dynamic object in the target frame. Since each frame can be used as a target frame, the density of the point cloud data of the dynamic object in each frame can be improved.

[0100] In some optional embodiments, the point cloud target detection result includes a three-dimensional detection box of each detected object; and determining dense dynamic object point cloud data corresponding to the target image based on a point cloud data sequence of a dynamic object corresponding to the target image may include:

[0101] For each point cloud data sequence of a dynamic object, each frame of object point cloud data in the point cloud data sequence is converted to the coordinate system of the three-dimensional detection frame of the dynamic object in the frame to obtain a converted first object point cloud data sequence; the coordinate system of the three-dimensional detection frame is a coordinate system with the center point of the three-dimensional detection frame as the origin; point cloud registration is performed on the first object point cloud data of each frame in the first object point cloud data sequence of the dynamic object to obtain a registered second object point cloud data sequence; based on the registered second object point cloud data sequence of each dynamic object, the dense dynamic object point cloud data corresponding to the target image is determined.

[0102] Among them, the three-dimensional detection frame of the object can be a stereoscopic detection frame in the local coordinate system. The three-dimensional detection frame can be obtained from the aforementioned point cloud target detection results. The dynamic object can be determined from the detected objects according to the mapping relationship between the semantic type and the dynamic object. The coordinate system of the three-dimensional detection frame (which can be called the box coordinate system) is a coordinate system that satisfies the left-hand system or the right-hand system with the center point of the three-dimensional detection frame as the origin and the direction of the three-dimensional detection frame away from the local coordinate system (i.e., the forward direction) as the x-axis. For each dynamic object, the point cloud data sequence of the dynamic object may include one or more frames of point cloud data of the dynamic object (i.e., object point cloud data). Based on the position and posture of the three-dimensional detection frame of each frame in the local coordinate system (or camera coordinate system), the conversion relationship between the local coordinate system (or camera coordinate system) and the coordinate system of the three-dimensional detection frame can be determined, and based on the conversion relationship, the frame object point cloud data is converted to the coordinate system of the three-dimensional detection frame of the dynamic object in the frame, and the converted object point cloud data of the frame is obtained. Based on this, the converted first object point cloud data sequence corresponding to the point cloud data sequence of the dynamic object can be obtained. Point cloud registration can be implemented based on the point cloud registration algorithm of the relevant technology. For example, point cloud registration can be implemented based on the ICP (Iterative Closest Point) algorithm or any other implementable point cloud registration algorithm. The specific point cloud registration algorithm is not limited. By performing point cloud registration on the first object point cloud data of each frame in the first object point cloud data sequence of the dynamic object, the posture optimization of the first object point cloud data of each frame is achieved, and the registered second object point cloud data sequence is obtained. Then, each frame of the second object point cloud data in the registered second object point cloud data sequence can be converted to the local coordinate system (or camera coordinate system) of the corresponding frame, and the dense point cloud data of the dynamic object in the target frame can be obtained by unifying and fusion of the multi-frame coordinate systems. In the case of multiple dynamic objects, the dense point cloud data of each dynamic object can be combined to obtain the dense dynamic object point cloud data corresponding to the target image.

[0103] This embodiment converts each frame of object point cloud data in the point cloud data sequence of the dynamic object into the three-dimensional detection frame coordinate system of the corresponding frame, and optimizes the posture of the first object point cloud data in the multi-frame three-dimensional detection frame coordinate system of the dynamic object through point cloud registration, thereby eliminating or reducing the adverse effect of inconsistent point cloud distribution within the three-dimensional detection frame on the densification of the dynamic object point cloud, and improving the accuracy and effectiveness of the point cloud data of the dynamic object in the historical frame and future frame of the target frame after conversion to the target frame.

[0104] In some optional embodiments, the dense static scene point cloud data and the dense dynamic object point cloud data are point cloud data in a local coordinate system of a frame corresponding to the target image, and the local coordinate system is a lidar coordinate system or a self-vehicle coordinate system.

[0105] Determining the dense point cloud data in the camera coordinate system corresponding to the target image based on the dense static scene point cloud data and the dense dynamic object point cloud data corresponding to the target image in step 20245 may include:

[0106] The dense static scene point cloud data and the dense dynamic object point cloud data are fused to obtain fused dense point cloud data; the fused dense point cloud data is converted to a camera coordinate system corresponding to a target image to obtain dense point cloud data in the camera coordinate system corresponding to the target image.

[0107] Among them, the dense static scene point cloud data and the dense dynamic object point cloud data are point cloud data in the same coordinate system (lidar coordinate system or vehicle coordinate system). The points in the dense static scene point cloud data can be merged with the points in the dense dynamic object point cloud data to achieve the fusion of point cloud data and obtain fused dense point cloud data. Then, according to the conversion relationship between the local coordinate system and the camera coordinate system, the fused dense point cloud data in the local coordinate system can be converted to the camera coordinate system corresponding to the target image to obtain the dense point cloud data in the camera coordinate system corresponding to the target image.

[0108] In some optional embodiments, the dense static scene point cloud data and the dense dynamic object point cloud data may be first converted to the camera coordinate system corresponding to the target image, and then fused to obtain the dense point cloud data in the camera coordinate system corresponding to the target image. The specific execution order is not limited.

[0109] This embodiment effectively obtains dense point cloud data in the camera coordinate system corresponding to the target image by fusing dense static scene point cloud data and dense dynamic object point cloud data corresponding to the target image and converting the coordinate system, thereby providing accurate and effective dense point cloud data for depth annotation of the target image.

[0110] In some optional embodiments, after performing motion dedistortion processing on each first point cloud data based on each first pose information to obtain dedistorted second point cloud data corresponding to each first point cloud data, the method further includes:

[0111] Based on the first time information corresponding to any frame image and the second time information of the second point cloud data corresponding to any frame image, determine the second posture information corresponding to the second point cloud data under the first time information; convert the second point cloud data to the local coordinate system corresponding to the second posture information to obtain the third point cloud data, and use the third point cloud data as the second point cloud data.

[0112] Among them, the first time information corresponding to each frame of image may refer to the timestamp of collecting the frame of image. The second time information of each frame of second point cloud data may refer to the timestamp of collecting the second point cloud data. In the actual data collection process, even if the sensors are time synchronized, errors in the time synchronization software or hardware may cause certain differences in the timestamps of the actual data collected by different sensors. In order to further improve the accuracy of image depth annotation, the second point cloud data after motion de-distortion can be further aligned to the timestamp corresponding to the target image to obtain the third point cloud data, and ensure the consistency of the timestamps of the point cloud data and the image. Then, the third point cloud data is used as the second point cloud data, and steps 20422 to 20425 are executed to obtain dense point cloud data corresponding to each frame of image.

[0113] In some optional embodiments, the change in the position and posture of the local coordinate system from the second time information to the first time information can be calculated based on the difference between the second time information and the first time information, and then the second position and posture information of the second point cloud data under the first time information can be obtained based on the change in the position and posture and the first position and posture information. The change in the position and posture can be determined based on the positioning information. Alternatively, the second position and posture information corresponding to the second point cloud data under the first time information can be determined by interpolation based on the first position and posture information of two adjacent frames, the time interval of two adjacent frames, and the difference between the second time information and the first time information.

[0114] This embodiment can further improve the time consistency between the point cloud data and the image by aligning the second point cloud data to the timestamp of the corresponding image, thereby further improving the accuracy of image depth annotation.

[0115] Figure 5 It is a flowchart of a method for marking image depth provided by yet another exemplary embodiment of the present disclosure.

[0116] In some optional embodiments, the method of the embodiment of the present disclosure may further include:

[0117] Step 301, determining the image semantic segmentation results corresponding to each frame image.

[0118] The image semantic segmentation result corresponding to each frame of image may include the semantic type corresponding to each pixel in the frame of image. The semantic segmentation of the image may be implemented using any semantic segmentation algorithm or model in the related art, which is not limited in the embodiments of the present disclosure.

[0119] Step 204 of determining the depth annotation results corresponding to each frame of image according to the target dense point cloud data corresponding to each frame of image may include:

[0120] Step 2041, for each frame of image, according to the image semantic segmentation result corresponding to the frame of image and the semantic type of each point in the target dense point cloud data corresponding to the frame of image, a semantic consistency check is performed on the target dense point cloud data to obtain the semantic consistency status corresponding to each point in the target dense point cloud data.

[0121] Among them, the semantic consistency check refers to checking whether the semantic type of each pixel in the frame image is the same as the semantic type of the point projected to the pixel in the target dense point cloud data. The semantic type of each pixel in the image semantic segmentation result represents the semantic type of the physical space point corresponding to the pixel perceived by the image, and the semantic type of each point in the target dense point cloud data represents the semantic type of the corresponding physical space point perceived by the laser radar. If the image perception result and the laser radar perception result are both accurate, the image perception semantic type of the same physical space point should be consistent with the laser radar perception semantic type. Based on this, each point in the target dense point cloud data corresponding to each frame image can be reprojected into the frame image, and the semantic type of the projection point pixel corresponding to the point can be determined. The semantic type of the point and the semantic type of the corresponding projection point pixel are compared, and the semantic consistency state corresponding to the point is obtained according to the comparison result. If the semantic type of the point is the same as the semantic type of the corresponding projection point pixel, the semantic consistency state corresponding to the point is determined to be consistent, otherwise the semantic consistency state corresponding to the point is determined to be inconsistent. By traversing each point, the semantic consistency state corresponding to each point in the target dense point cloud data can be obtained.

[0122] Step 2042 , filtering out points with inconsistent semantic consistency status in the target dense point cloud data, to obtain semantically consistent target dense point cloud data.

[0123] Among them, each point in the target dense point cloud data with an inconsistent semantic consistency state can be removed from the target dense point cloud data, and the remaining points constitute the semantically consistent target dense point cloud data.

[0124] Step 2043, determining the depth annotation result corresponding to the frame image according to the semantically consistent target dense point cloud data.

[0125] The specific operation of determining the depth annotation result corresponding to the frame image according to the semantically consistent target dense point cloud data is similar to the specific operation of determining the depth annotation result corresponding to the frame image according to the target dense point cloud data corresponding to each frame image in the above embodiment. For example, the semantically consistent target dense point cloud data of each frame can be used as the above target dense point cloud data, and the depth annotation result corresponding to each frame image can be determined according to the method of the above embodiment. No further details will be given here.

[0126] This embodiment performs a semantic consistency check on the semantic types of points in the target dense point cloud data corresponding to each frame of the image and the semantic types of the image pixels, and eliminates semantically inconsistent points, thereby further improving the accuracy and effectiveness of the dense point cloud data of the image, thereby further improving the accuracy of the image depth annotation results.

[0127] Figure 6 It is a flowchart of a method for marking image depth provided by yet another exemplary embodiment of the present disclosure.

[0128] In some optional embodiments, based on any of the above embodiments, determining the dense point cloud data in the camera coordinate system corresponding to each frame of image based on the first point cloud data and positioning information corresponding to each frame of image in step 202 may include:

[0129] Step 202a: Based on the first point cloud data and positioning information corresponding to each frame image, determine the first dense point cloud data in the local coordinate system corresponding to each frame image.

[0130] Among them, the local coordinate system is the lidar coordinate system or the vehicle coordinate system.

[0131] In some optional embodiments, the first dense point cloud data can be obtained as follows: determine the point cloud semantic segmentation results and point cloud target detection results corresponding to each first point cloud data (for details, refer to the above step 2021); based on the point cloud semantic segmentation results and point cloud target detection results corresponding to each first point cloud data, determine the first static scene point cloud data and the first dynamic object point cloud data corresponding to each first point cloud data (for details, refer to the above step 2022); based on the first static scene point cloud data and positioning information corresponding to each first point cloud data, determine The first pose information of the local coordinate system corresponding to each first point cloud data (for details, please refer to the above-mentioned step 2023); take any frame image as the target image, and determine the first dense point cloud data in the local coordinate system corresponding to the target image based on each first static scene point cloud data, each first dynamic object point cloud data and each first pose information. For details, please refer to steps 20241 to 20244, as well as step 20245, which includes fusing the dense static scene point cloud data and the dense dynamic object point cloud data to obtain fused dense point cloud data as the first dense point cloud data.

[0132] Step 202b: performing noise filtering on the first dense point cloud data corresponding to each frame image to obtain filtered second dense point cloud data corresponding to each frame image.

[0133] Among them, noise filtering can refer to filtering out points below the ground, outliers in the air, etc., to further improve the accuracy and effectiveness of dense point cloud data.

[0134] In some optional embodiments, a ground plane can be fitted in the first dense point cloud data by using any plane fitting algorithm, and points below the ground plane can be filtered out. The plane fitting algorithm can be, for example, principal component analysis (PCA), random sample consensus (RANSAC) algorithm, or any other algorithm. The specific plane fitting algorithm is not limited.

[0135] In some optional embodiments, aerial outliers may be filtered out by density clustering or the like.

[0136] Step 202c: convert the second dense point cloud data corresponding to each frame image into the camera coordinate system corresponding to each frame image, so as to obtain the dense point cloud data in the camera coordinate system corresponding to each frame image.

[0137] The coordinate system of the second dense point cloud data is consistent with that of the first dense point cloud data. Therefore, according to the conversion relationship between the local coordinate system corresponding to each frame image and the camera coordinate system, the second dense point cloud data corresponding to the frame image can be converted to the camera coordinate system corresponding to the frame image to obtain the dense point cloud data in the camera coordinate system corresponding to the frame image. There is a preconfigured fixed conversion relationship between the local coordinate system and the camera coordinate system.

[0138] This embodiment can further improve the accuracy and effectiveness of dense point cloud data by filtering noise points on the first dense point cloud data in the local coordinate system corresponding to each frame of image obtained, thereby improving the accuracy of image depth annotation results.

[0139] In some optional embodiments, after obtaining the dense point cloud data in the camera coordinate system corresponding to the target image in step 2024, the dense point cloud data in the camera coordinate system may be noise filtered, and the dense point cloud data after the noise is filtered out may be used as the dense point cloud data in the camera coordinate system corresponding to the target image.

[0140] Figure 7 It is a flowchart of a method for marking image depth provided by yet another exemplary embodiment of the present disclosure.

[0141] In some optional embodiments, based on any of the above embodiments, Figure 7 As shown, step 203 performs de-occlusion processing on the dense point cloud data corresponding to each frame image to obtain the de-occluded target dense point cloud data corresponding to each frame image, which may include:

[0142] Step 2031, taking any frame image as a target image, projecting the dense point cloud data corresponding to the target image onto the target image, and obtaining a projection point set corresponding to the dense point cloud data.

[0143] Among them, according to the intrinsic parameters of the camera, the dense point cloud data in the camera coordinate system corresponding to the target image can be projected (or reprojected) to the pixel coordinate system of the target image to obtain the projection point corresponding to each point in the dense point cloud data on the target image. The projection points corresponding to all points constitute the projection point set corresponding to the dense point cloud data.

[0144] Step 2032, according to the depth value and the depth variation threshold value corresponding to each projection point in the projection point set, de-occlusion processing is performed on the dense point cloud data to obtain the target dense point cloud data corresponding to the target image.

[0145] Among them, the depth value corresponding to each projection point can be determined by the coordinates of the point corresponding to the projection point in the dense point cloud data. For example, the Z coordinate of a point in the dense point cloud data in the camera coordinate system represents the depth of the point relative to the camera. Therefore, the depth value corresponding to the projection point can be obtained based on the Z coordinate. The depth change threshold can be set according to actual needs. The depth change threshold can be a preconfigured fixed value. For example, the depth change threshold can be 1 meter, 2 meters, etc. Alternatively, the depth change threshold can be determined by a function that changes with depth, and the function can be a function that decreases with increasing depth. Specifically, the dense point cloud data can be de-occluded based on the relationship between the depth value change of the projection point within a certain neighborhood and the depth change threshold, and the target dense point cloud data corresponding to the target image can be obtained.

[0146] This embodiment projects the dense point cloud data onto the target image to obtain the projection point corresponding to each point in the dense point cloud data, and combines the depth value of the projection point and the depth change threshold to effectively implement the de-occlusion processing of the dense point cloud data, thereby effectively improving the accuracy and effectiveness of the dense point cloud data.

[0147] Figure 8 It is a flowchart of a method for marking image depth provided by yet another exemplary embodiment of the present disclosure.

[0148] In some optional embodiments, such as Figure 8 As shown, step 2032 performs de-occlusion processing on the dense point cloud data according to the depth values ​​and depth variation thresholds corresponding to each projection point in the projection point set to obtain the target dense point cloud data corresponding to the target image, which may include:

[0149] Step 20321, traverse the projection points in the projection point set in order of depth value from small to large, and determine the currently traversed projection point as the current projection point.

[0150] Among them, during the traversal process, the projection point with the smallest depth value among the remaining untraversed points in the projection point set can be determined as the current projection point each time. Since the purpose of the traversal is to remove the obscured projection points, the projection point set is constantly changing during the traversal process, and the obscured projection points are constantly removed. For example, the point with the smallest depth value in the projection point set obtained in step 2031 is determined as the current projection point for the first time. According to the subsequent steps, the obscured projection points that meet the neighborhood range in the projection point set are removed, and the above-mentioned projection point set is updated with the projection point set after the obscured projection points are removed. Then, the projection point with the smallest depth value among the remaining untraversed points in the updated projection point set is determined as the current projection point for the second time, and the obscured projection points that meet the neighborhood range are removed according to the following steps. By analogy, the traversal of the projection points in the projection point set is realized, and the removed obscured projection points will not be traversed.

[0151] Step 20322, based on the neighborhood pixel threshold, determine the neighborhood range corresponding to the current projection point.

[0152] Among them, the neighborhood pixel threshold represents the number of neighborhood pixels extending around the current projection point. The neighborhood range is the pixel area range centered on the current projection point. For example, the neighborhood pixel threshold can be set to 1, 2, 3, .... Then the neighborhood range corresponding to the current projection point is the neighborhood range of (i+1+i)*(i+1+i) centered on the current projection point, and i represents the neighborhood pixel threshold. For example, i=3, then the neighborhood range is a 7*7 pixel area range centered on the current projection point.

[0153] In some optional embodiments, the neighborhood pixel threshold may be a preconfigured value, or the neighborhood pixel threshold may be determined in real time according to a preconfigured neighborhood pixel threshold determination rule. The determination rule may be a mapping function regarding the depth value of the current projection point. The setting principle of the mapping function is that the near is large and the far is small, that is, the smaller the depth value of the current projection point (indicating that the distance between the spatial point corresponding to the current projection point and the camera is closer), the larger the neighborhood pixel threshold, and conversely, the larger the depth value of the current projection point (indicating that the distance between the spatial point corresponding to the current projection point and the camera is farther), the smaller the neighborhood pixel threshold.

[0154] Step 20323, determine the change in the depth value of any other projection point in the neighborhood range of the projection point set relative to the depth value of the current projection point; based on the change in the depth value and the depth change threshold, determine whether any other projection point is blocked.

[0155] The other projection points are projection points other than the current projection point within the neighborhood. The state of whether the other projection points are blocked can include two states: blocked and unblocked.

[0156] In some optional embodiments, each other projection point within the neighborhood can be traversed to determine the change in the depth value of each other projection point relative to the depth value of the current projection point. Then, based on the magnitude relationship between the change in the depth value of the other projection point relative to the depth value of the current projection point and the depth change threshold, determine whether the other projection point is blocked. If the change in the depth value of the other projection point is greater than the depth change threshold, determine that the other projection point is blocked, otherwise it can be determined that the other projection point is not blocked.

[0157] Step 20324, remove other blocked projection points within the neighborhood from the projection point set, obtain the projection point set after removing the blocked projection points, and update the projection point set with the projection point set after removing the blocked projection points.

[0158] If the current projection point does not meet the preset condition, the process returns to step 20321. Updating the projection point set with the projection point set after removing the blocked projection point may refer to using the projection point set after removing the blocked projection point as the above projection point set, and then determining the current projection point from the projection point set after removing the blocked projection point when determining the current projection point next time, which can avoid the blocked projection point being traversed, thereby improving processing efficiency.

[0159] For example, Fig. 9 FIG. 1 is a schematic diagram of the neighborhood range of the current projection point provided by an exemplary embodiment of the present disclosure. Fig. 9 As shown in the figure, the neighborhood pixel threshold is 3, then the neighborhood range corresponding to the current projection point P0 is a 7*7 pixel area centered on the pixel where the current projection point P0 is located. The gray dots represent other projection points P1 that fall within the neighborhood range. If the change in the depth value of P1 relative to the depth value of P0 is greater than the depth change threshold, it is determined that P1 is blocked and P1 is removed from the projection point set. Traverse every other projection point within the neighborhood, eliminate all other blocked projection points within the neighborhood, and use the projection point set after eliminating the blocked projection points as the projection point set. If the current projection point P0 is not the last projection point in the projection point set, continue to execute step 20321, traverse the next projection point in the order of depth value from small to large, that is, use the point with the smallest depth value among the remaining untraversed projection points in the updated projection point set as the currently traversed projection point, determine the traversed projection point as the current projection point, and eliminate all blocked projection points within the neighborhood of the current projection point according to the above process, and so on, until the current projection point is the last projection point (that is, the projection point set is traversed), and obtain the projection point set after eliminating the blocked projection points. Since each time a projection point is traversed, the occluded projection point is eliminated from the projection point set, when traversing the next projection point in the projection point set, the next current projection point is determined based on the updated projection point set, then the eliminated occluded projection point is no longer in the updated projection point set, and therefore the eliminated projection point will not be used as the current projection point, thereby reducing subsequent unnecessary calculations of the occluded projection points and improving processing efficiency.

[0160] Step 20325, in response to the current projection point satisfying a preset condition, the target dense point cloud data is determined from the dense point cloud data corresponding to the target image according to the projection point set after removing the blocked projection points.

[0161] Wherein, the preset condition is that the current projection point is the last projection point or the second to last projection point in the projection point set. Because there are no other projection points in the neighborhood of the last projection point, steps 20322 to 20324 may not be performed. In this case, the projection point set after removing the obscured projection point is the projection point set after removing the obscured projection point in the processing of the previous current projection point.

[0162] In some optional embodiments, the blocked projection points in the projection point set can be removed while the points corresponding to the blocked projection points in the dense point cloud data can be removed. Then, after traversing the projection point set, the target dense point cloud data after the de-blocking processing can be obtained.

[0163] This embodiment projects the dense point cloud data of each frame image onto the frame image, traverses the projection points in ascending order of depth value according to the reprojected projection point set, and effectively removes the occluded projection points according to the change in the depth value of the projection points in the neighborhood of the traversed current projection point, thereby solving the problem of perspective occlusion in the target frame image when multi-frame point cloud fusion occurs, and further improving the effectiveness and accuracy of image depth annotation using dense point cloud data.

[0164] In some optional embodiments, Fig.10 FIG. 1 is a flowchart of a method for labeling image depth provided by an exemplary embodiment of the present disclosure. Fig.10 As shown, the process of the method may include the following steps:

[0165] Step 401, the sensor collects images, and the first point cloud data and positioning information corresponding to the images in time synchronization. The sensor includes a laser radar 14, a camera 15, an IMU 16, a wheel speed meter 17 and a GPS 18. In practical applications, the determination of positioning information is not limited to IMU 16, a wheel speed meter 17 and GPS 18. This is just an exemplary implementation. This step can be performed in a vehicle-mounted terminal. That is, the vehicle-mounted terminal controls each sensor to collect data within a certain period of time, and obtains time-aligned multi-frame images and the first point cloud data and positioning information corresponding to each frame of the image through time synchronization.

[0166] Step 402: perform point cloud segmentation on the first point cloud data to obtain a point cloud semantic segmentation result corresponding to the first point cloud data.

[0167] Step 403: perform three-dimensional object detection and tracking on the first point cloud data to obtain a point cloud target detection result and a target tracking result corresponding to the first point cloud data.

[0168] Step 404: perform image segmentation on the image to obtain an image semantic segmentation result.

[0169] It should be noted that step 402, step 403, and step 404 are performed in no particular order.

[0170] Step 405, separating the static scene and dynamic object point clouds, that is, determining the first static scene point cloud data and the first dynamic object point cloud data according to the point cloud semantic segmentation result and the point cloud target detection result.

[0171] Step 406: Obtain the first position information of the local coordinate system corresponding to the first point cloud data through point cloud SLAM. The local coordinate system is, for example, a laser radar coordinate system or a vehicle coordinate system.

[0172] Step 407, based on the first pose information, motion dedistortion and time compensation are performed on the first point cloud data. For motion dedistortion, refer to the above-mentioned embodiment. Time compensation refers to aligning the timestamp of the laser radar with the timestamp of the camera. That is, according to the first time information of the image and the second time information of the point cloud data after motion dedistortion (i.e., the second point cloud data), the second pose information of the local coordinate system under the first time information is determined, the second point cloud data is converted to the local coordinate system corresponding to the second pose information, and the converted point cloud data is used as the second point cloud data.

[0173] Step 408, determine the range of the historical frame and future frame corresponding to the target frame according to the travel distance. The target frame can be any frame in the multiple frames. The travel distance refers to the position change of the laser radar. The historical frame is the frame before the target frame in the multiple frames, and the future frame is the frame after the target frame in the multiple frames. The range of the historical frame and future frame is the preset range mentioned above. In practical applications, the range of the historical frame and future frame can also be determined in combination with the travel distance and time.

[0174] Step 409 , determining dense static scene point cloud data of the target frame according to the static scene point cloud data within the future frame range of the historical frame (ie, the target second static scene point cloud data within the preset range).

[0175] Step 410, based on the dynamic object point cloud data within the future frame range of the historical frame (i.e., the second dynamic object point cloud data), determine the point cloud data sequence of the dynamic object. Specifically, based on the first dynamic object point cloud data, the corresponding relationship between the first point cloud data and the second point cloud data after motion de-distortion and time compensation, determine the second dynamic object point cloud data, based on the second dynamic object point cloud data and the future frame range of the historical frame, obtain the second dynamic object point cloud data within the range, and based on the second dynamic object point cloud data within the range and the target tracking result, obtain the point cloud data sequence of the dynamic object.

[0176] Step 411 , determining dense dynamic object point cloud data of a target frame according to the point cloud data sequence of the dynamic object.

[0177] Step 412, dynamic and static dense point cloud fusion, to obtain dense point cloud data of the target frame. That is, the dense static scene point cloud data of the target frame obtained in step 409 and the dense dynamic object point cloud data of the target frame obtained in step 411 are fused to obtain dense point cloud data of the target frame. The fusion process may include the merging of point cloud data, or the merging of point cloud data and the conversion of coordinate systems. That is, the dense point cloud data of the target frame may be dense point cloud data in the laser radar coordinate system or the self-vehicle coordinate system (that is, the first dense point cloud data mentioned above), or it may be dense point cloud data converted to the camera coordinate system. There is a preconfigured conversion relationship between the laser radar coordinate system, the self-vehicle coordinate system and the camera coordinate system, which can be converted as needed during the processing process. In the case of time alignment, the specific coordinate system of the point cloud data is not limited.

[0178] Step 413, filtering the dense point cloud data for noise. That is, filtering the dense point cloud data for noise to obtain filtered dense point cloud data. If the dense point cloud data is the first dense point cloud data, the filtered dense point cloud data is the second dense point cloud data mentioned above.

[0179] Step 414, de-occlusion processing, that is, de-occlusion processing is performed on the filtered dense point cloud data to obtain the de-occluded target dense point cloud data.

[0180] Step 415 , check the semantic consistency of the image point cloud to obtain semantically consistent target dense point cloud data.

[0181] Step 416 , determining the true depth value of the image of the target frame (ie, the depth annotation result corresponding to the image of the target frame) based on the semantically consistent target dense point cloud data.

[0182] It should be noted that in the embodiments of the present disclosure, the execution order of de-occlusion processing, noise filtering, semantic consistency check, and conversion from the local coordinate system to the camera coordinate system for the dense point cloud data corresponding to each frame of image is not limited.

[0183] The image depth annotation method of the disclosed embodiment does not rely on the CAD model for depth annotation, does not rely on manual intervention, uses multi-frame point clouds to perform dense depth annotation on a single frame image, realizes automatic annotation of image depth, effectively improves annotation efficiency, and greatly reduces annotation costs. Secondly, the method disclosed in the present invention takes into account the occlusion relationship between the laser radar and the image, performs de-occlusion processing, and further improves the accuracy of the image depth annotation results. Thirdly, the disclosed embodiment takes into account the different characteristics of static scenes and dynamic objects, and performs densification respectively to further improve the accuracy of dense point cloud data. Thirdly, the disclosed embodiment also considers the motion distortion problem caused by the movement of the movable device to the point cloud data, and realizes the time alignment of the midpoints of each frame of point cloud data through motion de-distortion processing. And time compensation is performed for the timestamp difference between the laser radar and the camera to ensure the synchronization of the dense point cloud data and the image timestamp. In addition, the semantic consistency check is performed using image semantics and point cloud semantics, which helps to obtain more refined depth annotation results.

[0184] The above-mentioned embodiments of the present disclosure may be implemented separately or in any combination without conflict. The specific configuration may be based on actual needs and the present disclosure does not limit this.

[0185] Any image depth annotation method provided in the embodiments of the present disclosure may be executed by any appropriate device with data processing capabilities, including but not limited to: a terminal device and a server, etc. Alternatively, any image depth annotation method provided in the embodiments of the present disclosure may be executed by a processor, such as the processor executing any image depth annotation method mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in a memory. This will not be described in detail below.

[0186] Exemplary Devices

[0187] Fig.11 FIG. 1 is a schematic diagram of a structure of an image depth annotation device provided by an exemplary embodiment of the present disclosure. The device of this embodiment can be used to implement the corresponding method embodiment of the present disclosure, such as Fig.11 The device shown may include: a first processing module 51 , a second processing module 52 , a third processing module 53 and a fourth processing module 54 .

[0188] The first processing module 51 is used to determine multiple frames of images and first point cloud data and positioning information corresponding to each frame of image.

[0189] The second processing module 52 is used to determine the dense point cloud data in the camera coordinate system corresponding to each frame of image based on the first point cloud data and positioning information corresponding to each frame of image.

[0190] The third processing module 53 is used to perform de-occlusion processing on the dense point cloud data corresponding to each frame image, so as to obtain the de-occluded target dense point cloud data corresponding to each frame image.

[0191] The fourth processing module 54 is used to determine the depth annotation result corresponding to each frame of image according to the target dense point cloud data corresponding to each frame of image.

[0192] Fig.12 It is a structural schematic diagram of an image depth annotation device provided by another exemplary embodiment of the present disclosure.

[0193] In some optional embodiments, in the above Fig.11 Based on the embodiment shown, Fig.12 As shown, the second processing module 52 may include:

[0194] The first processing unit 521 may be used to determine the point cloud semantic segmentation results and the point cloud target detection results corresponding to each first point cloud data.

[0195] The second processing unit 522 can be used to determine the first static scene point cloud data and the first dynamic object point cloud data corresponding to each first point cloud data based on the point cloud semantic segmentation results and the point cloud target detection results corresponding to each first point cloud data.

[0196] The third processing unit 523 can be used to determine the first position information of the local coordinate system corresponding to each first point cloud data based on the first static scene point cloud data and positioning information corresponding to each first point cloud data.

[0197] The fourth processing unit 524 can be used to take any frame image as a target image, and determine the dense point cloud data in the camera coordinate system corresponding to the target image based on each first static scene point cloud data, each first dynamic object point cloud data and each first pose information.

[0198] In some optional embodiments, the fourth processing unit 524 may be specifically configured to:

[0199] Based on each first pose information, motion dedistortion processing is performed on each first point cloud data to obtain the dedistorted second point cloud data corresponding to each first point cloud data; according to the corresponding relationship between each second point cloud data and each first point cloud data, the second static scene point cloud data corresponding to each first static scene point cloud data in the second point cloud data, and the second dynamic object point cloud data corresponding to each first dynamic object point cloud data in the second point cloud data are determined; taking any frame image as the target image, based on each second static scene point cloud data, the dense static scene point cloud data corresponding to the target image is determined; based on each second dynamic object point cloud data, the dense dynamic object point cloud data corresponding to the target image is determined; based on the dense static scene point cloud data and the dense dynamic object point cloud data corresponding to the target image, the dense point cloud data in the camera coordinate system corresponding to the target image is determined.

[0200] In some optional embodiments, the fourth processing unit 524 may be specifically configured to:

[0201] According to the target frame corresponding to the target image, multiple frames of target second static scene point cloud data within a preset range of the target frame are determined from each second static scene point cloud data; the preset range includes at least one of a preset time range and a preset distance range; based on each target second static scene point cloud data, the dense static scene point cloud data corresponding to the target image is determined.

[0202] In some optional embodiments, the fourth processing unit 524 may be specifically configured to:

[0203] For any target second static scene point cloud data, determine the position change of the first pose information corresponding to the target second static scene point cloud data relative to the first pose information corresponding to the target second static scene point cloud data of the previous frame; in response to the position change being less than a position change threshold, eliminate the target second static scene point cloud data; based on the remaining target second static scene point cloud data, determine the dense static scene point cloud data corresponding to the target image.

[0204] In some optional embodiments, the fourth processing unit 524 may be specifically configured to:

[0205] Based on each second dynamic object point cloud data and the tracking result of the dynamic object, a point cloud data sequence of the dynamic object corresponding to the target image is determined; based on the point cloud data sequence of the dynamic object corresponding to the target image, dense dynamic object point cloud data corresponding to the target image is determined.

[0206] In some optional embodiments, the point cloud target detection result includes a three-dimensional detection box of each detected object; the fourth processing unit 524 can be specifically used to:

[0207] For each point cloud data sequence of a dynamic object, each frame of object point cloud data in the point cloud data sequence is converted to the coordinate system of the three-dimensional detection frame of the dynamic object in the frame to obtain a converted first object point cloud data sequence; the coordinate system of the three-dimensional detection frame is a coordinate system with the center point of the three-dimensional detection frame as the origin; point cloud registration is performed on the first object point cloud data of each frame in the first object point cloud data sequence of the dynamic object to obtain a registered second object point cloud data sequence; based on the registered second object point cloud data sequence of each dynamic object, the dense dynamic object point cloud data corresponding to the target image is determined.

[0208] In some optional embodiments, the dense static scene point cloud data and the dense dynamic object point cloud data are point cloud data in the local coordinate system of the corresponding frame of the target image, and the local coordinate system is a laser radar coordinate system or a self-vehicle coordinate system. The fourth processing unit 524 can be specifically used for:

[0209] The dense static scene point cloud data and the dense dynamic object point cloud data are fused to obtain fused dense point cloud data; the fused dense point cloud data is converted to a camera coordinate system corresponding to a target image to obtain dense point cloud data in the camera coordinate system corresponding to the target image.

[0210] In some optional embodiments, after performing motion dedistortion processing on each first point cloud data based on each first pose information to obtain the dedistorted second point cloud data corresponding to each first point cloud data, the fourth processing unit 524 may also be used to:

[0211] Based on the first time information corresponding to any frame image and the second time information of the second point cloud data corresponding to any frame image, determine the second posture information corresponding to the second point cloud data under the first time information; convert the second point cloud data to the local coordinate system corresponding to the second posture information to obtain the third point cloud data, and use the third point cloud data as the second point cloud data.

[0212] In some optional embodiments, such as Fig.12 As shown, the device of the embodiment of the present disclosure may also include:

[0213] The fifth processing module 55 may be used to determine the image semantic segmentation results corresponding to each frame of image.

[0214] The fourth processing module 54 may include: a semantic checking unit 541 , a filtering unit 542 and a fifth processing unit 543 .

[0215] The semantic checking unit 541 can be used to perform a semantic consistency check on the target dense point cloud data for each frame of image, based on the image semantic segmentation result corresponding to the frame of image and the semantic type of each point in the target dense point cloud data corresponding to the frame of image, to obtain the semantic consistency status corresponding to each point in the target dense point cloud data.

[0216] The filtering unit 542 may be used to filter out points with inconsistent semantic consistency status in the target dense point cloud data to obtain semantically consistent target dense point cloud data.

[0217] The fifth processing unit 543 may be configured to determine a depth annotation result corresponding to the frame image according to the semantically consistent target dense point cloud data.

[0218] Fig.13 is a schematic diagram of the structure of an image depth annotation device provided by yet another exemplary embodiment of the present disclosure.

[0219] In some optional embodiments, based on any of the above embodiments, Fig.13 As shown, the second processing module 52 may include: a sixth processing unit 52a, a noise filtering unit 52b and a coordinate conversion unit 52c.

[0220] The sixth processing unit 52a may be configured to determine first dense point cloud data in a local coordinate system corresponding to each frame of image based on the first point cloud data and positioning information corresponding to each frame of image.

[0221] Among them, the local coordinate system is the lidar coordinate system or the vehicle coordinate system.

[0222] The noise filtering unit 52b can be used to perform noise filtering on the first dense point cloud data corresponding to each frame image, so as to obtain filtered second dense point cloud data corresponding to each frame image.

[0223] The coordinate conversion unit 52c can be used to convert the second dense point cloud data corresponding to each frame image into the camera coordinate system corresponding to each frame image, so as to obtain the dense point cloud data in the camera coordinate system corresponding to each frame image.

[0224] In some optional embodiments, the sixth processing unit 52a can be specifically used to: determine the point cloud semantic segmentation results and point cloud target detection results corresponding to each first point cloud data; determine the first static scene point cloud data and the first dynamic object point cloud data corresponding to each first point cloud data based on the point cloud semantic segmentation results and the point cloud target detection results corresponding to each first point cloud data; determine the first position information of the local coordinate system corresponding to each first point cloud data based on the first static scene point cloud data and positioning information corresponding to each first point cloud data; take any frame image as the target image, and determine the dense point cloud data in the local coordinate system corresponding to the target image based on each first static scene point cloud data, each first dynamic object point cloud data and each first position information as the first dense point cloud data. The local coordinate system is a laser radar coordinate system or a self-vehicle coordinate system.

[0225] Fig.14 It is a structural schematic diagram of an image depth annotation device provided by yet another exemplary embodiment of the present disclosure.

[0226] In some optional embodiments, based on any of the above embodiments, Fig.14 As shown, the third processing module 53 may include: a re-projection unit 531 and a de-occlusion processing unit 532 .

[0227] The reprojection unit 531 can be used to take any frame image as a target image, project the dense point cloud data corresponding to the target image onto the target image, and obtain a projection point set corresponding to the dense point cloud data.

[0228] The de-occlusion processing unit 532 can be used to perform de-occlusion processing on the dense point cloud data according to the depth value and the depth change threshold value corresponding to each projection point in the projection point set, so as to obtain the target dense point cloud data corresponding to the target image.

[0229] In some optional embodiments, the de-occlusion processing unit 532 may be specifically used for:

[0230] According to the order of depth value from small to large, the projection points in the projection point set are traversed, and the currently traversed projection point is determined as the current projection point; based on the neighborhood pixel threshold, the neighborhood range corresponding to the current projection point is determined; the change amount of the depth value of any other projection point in the projection point set located in the neighborhood range relative to the depth value of the current projection point is determined; based on the change amount of the depth value and the depth change threshold, whether any other projection point is blocked is determined; other projection points are projection points other than the current projection point in the neighborhood range; other blocked projection points in the neighborhood range are removed from the projection point set to obtain a projection point set after removing the blocked projection points, and the projection point set is updated with the projection point set after removing the blocked projection points; in response to the current projection point satisfying the preset condition, the target dense point cloud data is determined from the dense point cloud data corresponding to the target image according to the projection point set after removing the blocked projection points. If the current projection point does not meet the preset condition, return to the step of traversing the projection points in the projection point set according to the order of depth value from small to large, and determining the currently traversed projection point as the current projection point.

[0231] The beneficial technical effects corresponding to the exemplary embodiment of the present device can be found in the corresponding beneficial technical effects of the above exemplary method section, which will not be repeated here.

[0232] Exemplary Electronic Devices

[0233] Fig.15 It is a structural diagram of an electronic device provided by an embodiment of the present disclosure, including at least one processor 91 and a memory 92.

[0234] The processor 91 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 90 to perform desired functions.

[0235] The memory 92 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. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. 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 91 may execute one or more computer program instructions to implement the methods and / or other desired functions of the various embodiments of the present disclosure described above.

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

[0237] The input device 93 may also include, for example, a keyboard, a mouse, a touch screen, a microphone, various sensors, and the like. Sensors may include, for example, image sensors (such as cameras, cameras, etc.), laser radars, millimeter-wave radars, ultrasonic radars, positioning sensors, pressure sensors, air quality sensors, temperature sensors, and the like. Image sensors, laser radars, millimeter-wave radars, ultrasonic radars, and the like may be used to sense the surrounding environment, i.e., to detect dynamic and static objects in the surrounding environment. Dynamic and static objects may include, for example, static objects such as lane lines, curbs, arrows, signs, trees, and buildings, as well as dynamic objects such as surrounding vehicles, pedestrians, and cyclists. Positioning sensors are used to realize the positioning of movable devices (such as self-vehicles, robots, etc.) where electronic devices are located. Positioning sensors may include, for example, inertial measurement units (Inertial Measurement Unit, referred to as: IMU), global positioning systems (Global Positioning System, referred to as: GPS), and the like. Pressure sensors may be used to detect seat pressure. Temperature sensors may be used to detect the temperature in the vehicle cabin. Air quality sensors may be used to detect the air quality in the vehicle cabin.

[0238] The output device 94 can output various information to the outside, and may include, for example, a display, a speaker, a printer, a communication network and its connected remote output devices, etc.

[0239] Of course, to simplify, Fig.15 Only some of the components related to the present disclosure in the electronic device 90 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 90 may also include any other appropriate components.

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

[0241] In addition to the above methods and devices, embodiments of the present disclosure may also provide a computer program product, including computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the methods of various embodiments of the present disclosure described in the above “Exemplary Methods” section.

[0242] 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.

[0243] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the processor executes the steps in the method of various embodiments of the present disclosure described in the above “Exemplary Method” section.

[0244] Computer readable storage media 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 is, for example, but not limited to, a system, device or device including 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.

[0245] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and cannot be considered as necessary for each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, rather than limitation, and the above details do not limit the present disclosure to being implemented by adopting the above specific details.

[0246] Those skilled in the art may make various changes and modifications to the present disclosure without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present disclosure claims and their equivalents, the present disclosure is also intended to include these modifications and variations.

Claims

1. A method for marking image depth, comprising: Determine multiple frames of images, and first point cloud data and positioning information corresponding to each frame of image; Determine, based on the first point cloud data and the positioning information corresponding to each frame of image, dense point cloud data in a camera coordinate system corresponding to each frame of image; Performing de-occlusion processing on the dense point cloud data corresponding to each frame image to obtain de-occluded target dense point cloud data corresponding to each frame image; Determine the depth annotation results corresponding to each frame of image according to the target dense point cloud data corresponding to each frame of image.

2. The method according to claim 1, wherein: The de-occlusion processing is performed on the dense point cloud data corresponding to each frame image to obtain the de-occluded target dense point cloud data corresponding to each frame image, including: Taking any frame image as a target image, projecting the dense point cloud data corresponding to the target image onto the target image, and obtaining a projection point set corresponding to the dense point cloud data; According to the depth value and the depth variation threshold value respectively corresponding to each projection point in the projection point set, the dense point cloud data is de-occluded to obtain the target dense point cloud data corresponding to the target image.

3. The method according to claim 2, wherein: The de-occlusion processing is performed on the dense point cloud data according to the depth value and the depth variation threshold value respectively corresponding to each projection point in the projection point set to obtain the target dense point cloud data corresponding to the target image, including: Traversing the projection points in the projection point set in the order of depth values ​​from small to large, and determining the currently traversed projection point as the current projection point; Based on the neighborhood pixel threshold, determine the neighborhood range corresponding to the current projection point; Determine the change in depth value of any other projection point in the projection point set located within the neighborhood relative to the depth value of the current projection point; determine whether any other projection point is blocked based on the change in depth value and the depth change threshold; the other projection point is a projection point other than the current projection point within the neighborhood; Eliminate other blocked projection points within the neighborhood from the projection point set to obtain a projection point set after eliminating the blocked projection points, and update the projection point set with the projection point set after eliminating the blocked projection points; In response to the current projection point satisfying a preset condition, the target dense point cloud data is determined from the dense point cloud data corresponding to the target image according to a projection point set after removing blocked projection points.

4. The method according to any one of claims 1 to 3, wherein: The step of determining dense point cloud data in a camera coordinate system corresponding to each frame of image based on the first point cloud data and the positioning information corresponding to each frame of image includes: Determine the point cloud semantic segmentation results and the point cloud target detection results respectively corresponding to each of the first point cloud data; Based on the point cloud semantic segmentation results and the point cloud target detection results respectively corresponding to each of the first point cloud data, determine the first static scene point cloud data and the first dynamic object point cloud data respectively corresponding to each of the first point cloud data; Determine first position information of the local coordinate system corresponding to each of the first point cloud data based on the first static scene point cloud data and the positioning information respectively corresponding to each of the first point cloud data; Any frame image is taken as a target image, and based on each of the first static scene point cloud data, each of the first dynamic object point cloud data and each of the first pose information, the dense point cloud data in the camera coordinate system corresponding to the target image is determined.

5. The method according to claim 4, wherein: The step of determining the dense point cloud data in the camera coordinate system corresponding to the target image based on each of the first static scene point cloud data, each of the first dynamic object point cloud data and each of the first pose information comprises: Based on each of the first posture information, performing motion dedistortion processing on each of the first point cloud data to obtain dedistorted second point cloud data corresponding to each of the first point cloud data; Determine, according to the corresponding relationship between each of the second point cloud data and each of the first point cloud data, the second static scene point cloud data corresponding to each of the first static scene point cloud data in the second point cloud data, and the second dynamic object point cloud data corresponding to each of the first dynamic object point cloud data in the second point cloud data; Determining dense static scene point cloud data corresponding to the target image based on each of the second static scene point cloud data; Determining dense dynamic object point cloud data corresponding to the target image based on each of the second dynamic object point cloud data; Based on the dense static scene point cloud data and the dense dynamic object point cloud data corresponding to the target image, the dense point cloud data in the camera coordinate system corresponding to the target image is determined.

6. The method according to claim 5, wherein: The step of determining the dense static scene point cloud data corresponding to the target image based on each of the second static scene point cloud data includes: According to the target frame corresponding to the target image, determining multiple frames of target second static scene point cloud data within a preset range of the target frame from each of the second static scene point cloud data; the preset range includes at least one of a preset time range and a preset distance range; Based on the second static scene point cloud data of each target, the dense static scene point cloud data corresponding to the target image is determined.

7. The method according to claim 6, wherein: The step of determining the dense static scene point cloud data corresponding to the target image based on the second static scene point cloud data of each target includes: For any of the target second static scene point cloud data, determine the position change amount of the first pose information corresponding to the target second static scene point cloud data relative to the first pose information corresponding to the previous frame of target second static scene point cloud data; In response to the position change being less than a position change threshold, removing the target second static scene point cloud data; Based on the remaining target second static scene point cloud data, the dense static scene point cloud data corresponding to the target image is determined.

8. The method according to claim 5, wherein: The step of determining the dense dynamic object point cloud data corresponding to the target image based on each of the second dynamic object point cloud data includes: Determine a point cloud data sequence of the dynamic object corresponding to the target image based on each of the second dynamic object point cloud data and the tracking result of the dynamic object; Based on the point cloud data sequence of the dynamic object corresponding to the target image, dense dynamic object point cloud data corresponding to the target image is determined.

9. The method according to claim 8, wherein: The point cloud target detection result includes a three-dimensional detection frame of each detected object; The step of determining dense dynamic object point cloud data corresponding to the target image based on the point cloud data sequence of the dynamic object corresponding to the target image comprises: For each point cloud data sequence of a dynamic object, convert each frame of object point cloud data in the point cloud data sequence into a coordinate system of a three-dimensional detection frame of the dynamic object in the frame, to obtain a converted first object point cloud data sequence; the coordinate system of the three-dimensional detection frame is a coordinate system with the center point of the three-dimensional detection frame as the origin; Performing point cloud registration on each frame of first object point cloud data in the first object point cloud data sequence of the dynamic object to obtain a registered second object point cloud data sequence; Based on the registered second object point cloud data sequence of each dynamic object, the dense dynamic object point cloud data corresponding to the target image is determined.

10. The method according to claim 5, wherein: The dense static scene point cloud data and the dense dynamic object point cloud data are point cloud data in a local coordinate system of a frame corresponding to the target image, and the local coordinate system is a laser radar coordinate system or a self-vehicle coordinate system; The step of determining the dense point cloud data in the camera coordinate system corresponding to the target image based on the dense static scene point cloud data and the dense dynamic object point cloud data corresponding to the target image comprises: Fusing the dense static scene point cloud data and the dense dynamic object point cloud data to obtain fused dense point cloud data; The fused dense point cloud data is converted to a camera coordinate system corresponding to the target image to obtain the dense point cloud data in the camera coordinate system corresponding to the target image.

11. The method according to claim 5, wherein: After performing motion dedistortion processing on each of the first point cloud data based on each of the first posture information to obtain dedistorted second point cloud data corresponding to each of the first point cloud data, the method further includes: Determine, based on first time information corresponding to any frame of image and second time information of second point cloud data corresponding to any frame of image, second position information corresponding to the second point cloud data at the first time information; The second point cloud data is converted into a local coordinate system corresponding to the second posture information to obtain third point cloud data, and the third point cloud data is used as the second point cloud data.

12. The method according to claim 4, wherein: The method further comprises: Determine the image semantic segmentation results corresponding to each frame image; Determining the depth annotation results corresponding to each frame of image according to the target dense point cloud data corresponding to each frame of image includes: For each frame of image, according to the image semantic segmentation result corresponding to the frame of image and the semantic type of each point in the target dense point cloud data corresponding to the frame of image, a semantic consistency check is performed on the target dense point cloud data to obtain the semantic consistency state corresponding to each point in the target dense point cloud data; Filtering out points with inconsistent semantic consistency states in the target dense point cloud data to obtain semantically consistent target dense point cloud data; According to the semantically consistent target dense point cloud data, the depth annotation result corresponding to the frame image is determined.

13. The method according to any one of claims 1 to 3, wherein: The step of determining dense point cloud data in a camera coordinate system corresponding to each frame of image based on the first point cloud data and the positioning information corresponding to each frame of image includes: Based on the first point cloud data and the positioning information corresponding to each frame image, determine the first dense point cloud data in the local coordinate system corresponding to each frame image; the local coordinate system is a laser radar coordinate system or a vehicle coordinate system; Noise filtering is performed on the first dense point cloud data corresponding to each frame image to obtain filtered second dense point cloud data corresponding to each frame image; The second dense point cloud data corresponding to each frame image is converted to a camera coordinate system corresponding to each frame image, so as to obtain dense point cloud data in the camera coordinate system corresponding to each frame image.

14. A device for marking image depth, comprising: A first processing module, used to determine multiple frames of images and first point cloud data and positioning information corresponding to each frame of image; A second processing module is used to determine dense point cloud data in a camera coordinate system corresponding to each frame of image based on the first point cloud data and the positioning information corresponding to each frame of image; The third processing module is used to perform de-occlusion processing on the dense point cloud data corresponding to each frame image, so as to obtain the target dense point cloud data after de-occlusion corresponding to each frame image; The fourth processing module is used to determine the depth annotation results corresponding to each frame of image according to the target dense point cloud data corresponding to each frame of image.

15. A computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program is used to execute the method according to any one of claims 1 to 13.

16. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1-13 above.

Citation Information

Cited By

  • Target labeling method, electronic equipment and storage medium

    CN119206724A

  • Target marking method, electronic device and storage medium

    CN119206724B

  • Depth label data generation method and device, storage medium and electronic equipment

    CN120852914A

  • A point cloud and image registration quality evaluation method and device, electronic equipment and storage medium

    CN122760647A