A road shoulder detection method, device and storage medium

By acquiring and processing three-dimensional point cloud data and image data, and extracting and filling road shoulder features, the problem of low road shoulder detection accuracy in the existing technology is solved, achieving accurate detection of road shoulders and improving the accuracy of automatic driving control.

CN113869129BActive Publication Date: 2024-10-01GUANGZHOU WERIDE TECH LTD CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111016619.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2024-10-01
Estimated Expiration
2041-08-31

AI Technical Summary

Technical Problem

The existing road shoulder detection method integrates the road shoulder and nearby obstacles into a non-driving obstacle area, resulting in low detection accuracy and difficulty in accurately detecting the road shoulder.

Method used

By obtaining the three-dimensional point cloud data and image data of the target area, extract the road shoulder features, project the three-dimensional point cloud data onto the road shoulder features, perform filling processing to obtain the road shoulder plane, and project it to the ground to obtain the road shoulder curve, improving detection accuracy. .

Benefits of technology

It achieves accurate detection of road shoulders, improves automatic driving control accuracy, and avoids safety issues caused by collisions between vehicles and road shoulders.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113869129B_ABST
    Figure CN113869129B_ABST
Patent Text Reader

Abstract

The present invention discloses a shoulder detection method, device and storage medium, wherein the method comprises: obtaining three-dimensional point cloud data and image data of a target area; extracting shoulder features in the image data; projecting the three-dimensional point cloud data onto the shoulder features to obtain three-dimensional shoulder data; filling the shoulder feature surface in the three-dimensional shoulder data to obtain a shoulder plane; and projecting the shoulder plane onto the ground to obtain a shoulder curve. The embodiment of the present invention obtains three-dimensional point cloud data and image data of a target area, extracts shoulder features in the image data, and obtains three-dimensional shoulder data by projecting the three-dimensional point cloud data onto the shoulder features, which is conducive to improving the accuracy of shoulder detection; and fills the shoulder feature surface based on the three-dimensional shoulder data to obtain a shoulder plane, and by projecting the shoulder plane onto the ground, the shoulder curve can be accurately obtained to avoid collision between the vehicle and the shoulder, thereby effectively improving the control accuracy of automatic driving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a road shoulder detection method, device and storage medium. Background Art

[0002] Shoulder detection technology can be applied to fields such as semantic mapping and autonomous driving. Existing shoulder detection methods mainly group and classify point cloud data collected in real time, and divide the shoulder and objects outside it into a group during the grouping and classification process to form an obstacle area that cannot be driven. Existing shoulder detection methods simply integrate the shoulder and its nearby obstacles to form an obstacle area, which makes it difficult to accurately detect the shoulder, resulting in low shoulder detection accuracy. Summary of the invention

[0003] The present invention provides a road shoulder detection method, device and storage medium to solve the problem that the existing road shoulder detection method integrates the road shoulder and its nearby obstacles to form an obstacle area, making it difficult to accurately detect the road shoulder, resulting in low accuracy of road shoulder detection.

[0004] An embodiment of the present invention provides a road shoulder detection method, comprising:

[0005] Acquire three-dimensional point cloud data and image data of the target area;

[0006] Extracting shoulder features from the image data;

[0007] Projecting the three-dimensional point cloud data onto the shoulder feature to obtain three-dimensional shoulder data;

[0008] Filling the shoulder feature surface in the three-dimensional shoulder data to obtain a shoulder plane;

[0009] The shoulder plane is projected onto the ground to obtain a shoulder curve.

[0010] Furthermore, the three-dimensional point cloud data of the target area is obtained by:

[0011] A radar device is used to obtain three-dimensional point cloud data of the target area in combination with calibration information of the radar device relative to the vehicle position and positioning information of the vehicle.

[0012] Furthermore, the extraction of shoulder features in the image data is specifically as follows:

[0013] Correcting the image data according to the parameters of the camera that captured the image data to obtain corrected image data;

[0014] The shoulder features marked in the rectified image data are obtained.

[0015] Furthermore, a deep learning method is used to construct a shoulder extraction model, and shoulder features in the image data are extracted based on the shoulder extraction model.

[0016] Furthermore, the three-dimensional point cloud data is projected onto the shoulder feature to obtain three-dimensional shoulder data, specifically:

[0017] The spatial relative relationship between the image data and the three-dimensional point cloud data is acquired according to the parameters of the camera, and the three-dimensional point cloud data is projected onto the shoulder feature according to the spatial relative relationship to obtain three-dimensional shoulder data.

[0018] Furthermore, the shoulder feature surface in the three-dimensional shoulder data is filled to obtain a shoulder plane, specifically:

[0019] Determining a ground line in the three-dimensional shoulder data according to a positional relationship between a point cloud in the three-dimensional shoulder data and a ground point cloud;

[0020] The outer side surface to be filled and the upper plane to be filled are formed according to the ground line, the outer side surface, the corner line and the upper plane, and the shoulder plane is obtained by filling the upper plane to be filled and the outer side surface to be filled.

[0021] Furthermore, the determining of the ground line in the three-dimensional shoulder data according to the positional relationship between the point cloud in the three-dimensional shoulder data and the ground point cloud is specifically as follows:

[0022] Filtering the three-dimensional shoulder data corresponding to the shoulders that are not within the preset height range in the three-dimensional shoulder data;

[0023] Dividing the filtered three-dimensional shoulder data according to a preset distance interval to obtain a plurality of point clouds corresponding to the three-dimensional shoulder data;

[0024] If a ground line point cloud is located outside the outermost point cloud among the point clouds, and the proportion of the ground line point clouds exceeding the outermost point cloud exceeds a preset threshold, the projections of the point clouds on the ground are taken as the ground line.

[0025] Furthermore, the outer side surface to be filled and the upper plane to be filled are formed according to the ground line, the outer side surface, the corner line and the upper plane, and the shoulder plane is obtained by filling the upper plane to be filled and the outer side surface to be filled, specifically:

[0026] Taking the average position point of the densely distributed point cloud as the upper plane point, taking the corner line as the upper plane line, and forming the upper plane to be filled with the upper plane points and the upper plane line;

[0027] The corner line and the ground line are projected on the ground at the same time, the line formed by the outer points in the projection image is used as the outer side surface line, the outer points of the densely distributed point cloud are used as the outer side surface points, and the outer side surface points and the outer side surface line form the outer side surface to be filled;

[0028] The upper plane to be filled and the outer side surface to be filled are subjected to shoulder filling to obtain a shoulder plane.

[0029] Furthermore, the shoulder filling is performed on the upper plane to be filled and the outer side surface to be filled to obtain the shoulder plane, specifically:

[0030] Taking the highest point of the upper plane to be filled as the cutoff point, filling the shoulder upward in a direction parallel to the ground to obtain the filled upper plane;

[0031] The outer side surface to be filled is filled with shoulders in a normal direction perpendicular to the ground and in a direction perpendicular to the line connecting the two outermost points, and the filling amount does not exceed a preset threshold value, so as to obtain a filled outer side surface; or the outermost point is used as a cutoff point, and the shoulders are filled in a normal direction perpendicular to the ground and in a direction perpendicular to the lane line, so as to obtain a filled outer side surface;

[0032] A shoulder plane is formed according to the filled upper plane and the filled outer side surface.

[0033] An embodiment of the present invention provides a road shoulder detection device, comprising:

[0034] A data acquisition module, used to acquire three-dimensional point cloud data and image data of the target area;

[0035] A feature extraction module, used to extract shoulder features from the image data;

[0036] A first projection module, used for projecting the three-dimensional point cloud data onto the shoulder feature to obtain three-dimensional shoulder data;

[0037] A data filling module, used for filling the shoulder feature surface in the three-dimensional shoulder data to obtain a shoulder plane;

[0038] The second projection module is used to project the shoulder plane onto the ground to obtain a shoulder curve.

[0039] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the road shoulder detection method as described above.

[0040] The embodiment of the present invention obtains three-dimensional point cloud data and image data of the target area, extracts shoulder features in the image data, and obtains three-dimensional shoulder data by projecting the three-dimensional point cloud data onto the shoulder features. The three-dimensional shoulder data has three-dimensional depth information, which is conducive to improving the accuracy of shoulder detection; and based on the three-dimensional shoulder data, the shoulder feature surface is filled to obtain a shoulder plane. By projecting the shoulder plane onto the ground, the shoulder curve can be accurately obtained to avoid collision between the vehicle and the shoulder, thereby effectively improving the control accuracy of autonomous driving. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 is a schematic flow chart of a road shoulder detection method provided by an embodiment of the present invention;

[0042] Figure 2 is a schematic diagram of a road shoulder plane provided by an embodiment of the present invention;

[0043] Figure 3 is a structural schematic diagram of a road shoulder detection device provided by an embodiment of the present invention;

[0044] Figure 4 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0046] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the feature. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0047] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0048] The shoulder detection method and device of the embodiment of the present invention can be applied to any vehicle, robot or vehicle traveling on the road, wherein the vehicle can be an ordinary car, a truck, a logistics vehicle, an unmanned vehicle or any other type of vehicle. A shoulder detection method provided by the embodiment of the present invention can accurately detect the shoulder curve in the road to achieve assisted driving and automatic driving.

[0049] See also Figure 1-2 In a first embodiment of the present invention, there is provided Figure 1 A road shoulder detection method shown includes:

[0050] S1, obtaining three-dimensional point cloud data and image data of the target area;

[0051] The target area is the environment around the vehicle. The embodiment of the present invention obtains three-dimensional point cloud data of the target area through a laser radar, that is, the three-dimensional point cloud data is obtained in combination with the calibration information of the laser radar relative to the vehicle's position. The three-dimensional point cloud data contains the three-dimensional spatial coordinate information of each laser reflection point around the vehicle.

[0052] In the embodiment of the present invention, the image data of the target area is collected by a camera installed on the vehicle. The image data can be collected by a single camera, or multiple cameras can be used to collect multiple image data, and then the multiple image data are stitched to obtain an image for extracting shoulder features. The camera in the embodiment of the present invention can be a forward-looking short-focus camera or a forward-looking long-focus camera. For example, a forward-looking long-focus camera is used to collect image data to increase the image shooting distance and improve the comprehensiveness of the road image. In addition, the specific area of ​​the target area can be adjusted according to the needs through the installation position and parameters of the camera and the laser radar.

[0053] The device for acquiring target three-dimensional point cloud data in the embodiment of the present invention includes but is not limited to a multi-line laser radar and a single-line laser radar, and any other type of device capable of acquiring point cloud data on the road surface.

[0054] It should be noted that, similar to the working principle of radar, LiDAR determines the distance by measuring the time difference and phase difference of laser signals, but its biggest advantage is that it can use Doppler imaging technology to create a clear 3D image of the target. LiDAR emits and receives laser beams, analyzes the return time after the laser encounters the target object, calculates the relative distance to the target object, and uses the three-dimensional coordinates, reflectivity, texture and other information of a large number of dense points on the surface of the target object collected in this process to quickly obtain the three-dimensional model of the measured target and various related data such as lines, surfaces, and bodies, establish a three-dimensional point cloud map, and draw an environmental map to achieve the purpose of environmental perception. Since the speed of light is very fast and the flight time may be very short, the measuring equipment is required to have very high precision. In terms of effect, the more dimensions (beams) of LiDAR, the higher the measurement accuracy and the higher the safety.

[0055] For example, in the case of using a multi-line laser radar, this step S1 can directly generate multiple laser scanning lines at different positions on the road surface. For example, in the case of using a single-line laser radar, the three-dimensional point cloud data of multiple laser scanning lines at multiple positions can be obtained by recording the single laser scanning line data obtained at different positions during the driving of the vehicle. For another example, in the case of using a camera, multiple scanning lines can be indirectly generated on the image data obtained by the camera, and the scanning point cloud data on each scanning line can be obtained. When the laser radar is used to scan the surrounding environment of the vehicle, ultrasonic errors may be caused by external factors, such as errors caused by the influence of surrounding light sources on the laser radar detector, errors caused by mechanical vibration during laser radar scanning, etc. These errors will cause the three-dimensional point cloud data obtained by the laser radar to usually contain hash points and isolated points. After obtaining the three-dimensional point cloud data of the target area, the embodiment of the present invention uses a point cloud filtering method to filter the three-dimensional point cloud data to improve the accuracy of the three-dimensional point cloud data. The point cloud filtering method of the embodiment of the present invention includes but is not limited to one of bilateral filtering, Gaussian filtering, conditional filtering, pass filtering, random sampling consistent filtering and Voxel Grid filtering.

[0056] S2, extracting shoulder features from image data;

[0057] The image data contains shoulder features, which can be extracted by directly annotating the shoulder features, or by identifying the shoulder features in the image data through deep learning. The shoulder is a strip structure with a certain width on both sides of the highway from the outer edge of the lane to the edge of the roadbed, including earth shoulders and hard shoulders. The shoulder features include the upper plane, the outer plane, the intersection line with the ground, and two plane corner lines. For shoulders of special shapes, the annotation content is the main characteristic surface of the shoulder, the intersection line with the ground, and the corner line.

[0058] S3, projecting the three-dimensional point cloud data onto the shoulder feature to obtain three-dimensional shoulder data;

[0059] In the embodiment of the present invention, the shoulder feature is extracted from the image data. In order to accurately project the three-dimensional point cloud data onto the shoulder feature, it is necessary to first obtain the spatial relative relationship between the three-dimensional point cloud data and the image data. According to the parameters of the camera used to shoot the image data, including the focal length, the size of each unit, the internal parameters of the position of the origin in the image coordinate system, and the external parameters of the rotation angle and translation in three dimensions, the spatial relative relationship between the image data and the three-dimensional point cloud data is obtained, and the three-dimensional point cloud data is projected onto the identified shoulder feature according to the spatial relative relationship to obtain the three-dimensional shoulder data with three-dimensional depth information.

[0060] S4, filling the shoulder feature surface in the three-dimensional shoulder data to obtain a shoulder plane;

[0061] In the embodiment of the present invention, the height of the shoulder in different three-dimensional shoulder data is different, and each shoulder height is detected, and the shoulder height is compared with the preset height range, and the shoulders outside the preset height range are filtered out to obtain the filtered three-dimensional shoulder data. For example, the shoulder height range in the three-dimensional shoulder data is 0-30 cm, and the preset height range is set to be greater than or equal to 10 cm. The shoulders with a shoulder height of 0-10 cm in the three-dimensional data are filtered out, and the shoulders with a height greater than or equal to 10 cm in the three-dimensional shoulder data are retained; the shoulder height in the three-dimensional shoulder data is 0-40 cm, and the preset height range is set to be greater than or equal to 15 cm. The shoulders with a shoulder height of 0-15 cm in the three-dimensional data are filtered out, and the shoulders with a height greater than or equal to 15 cm in the three-dimensional shoulder data are retained.

[0062] The shoulder feature surface includes a ground line, an outer side surface and an upper plane. The embodiment of the present invention obtains the upper plane to be filled and the outer side surface to be filled by modeling. Before the modeling process, the three-dimensional shoulder data is divided according to a certain interval, for example, the three-dimensional shoulder data is divided according to a distance interval of 3 cm, or divided according to a distance interval of 5 cm, or divided according to a distance interval of 10 cm. Determine whether the ground line needs to be updated based on the positional relationship between the point cloud obtained after the division and the ground line point cloud. If the ground line point cloud is closer to the outside than the point cloud obtained after the division, and the number of ground line point clouds compared to the point cloud after the division exceeds a certain threshold, for example, more than 10% of the total number of ground line point clouds, or more than 20% of the total number of ground line point clouds, or more than 30% of the total number of ground line point clouds, then take the projection of the filtered point cloud on the ground as the ground line to update the original ground line.

[0063] During modeling, the outer side surface to be filled and the upper plane to be filled are formed according to the ground line, the outer side surface, the corner line and the upper plane, and the shoulder plane is obtained by filling the upper plane to be filled and the outer side surface to be filled.

[0064] S5. Project the shoulder plane onto the ground to obtain a shoulder curve.

[0065] In an embodiment of the present invention, the shoulder plane is projected onto the ground, and a shoulder curve close to the side of the vehicle is selected in the shoulder plane in combination with the current position of the vehicle. The shoulder curve can be applied to driving scenarios such as side parking and side driving of the vehicle. It can not only effectively improve the accuracy of automatic driving control, but also avoid safety issues caused by collision between the vehicle and the shoulder during automatic driving, thereby effectively improving the safety of automatic driving of the vehicle.

[0066] In one embodiment, the three-dimensional point cloud data of the target area is obtained by:

[0067] A radar device is used to obtain three-dimensional point cloud data of the target area in combination with calibration information of the radar device relative to the vehicle's position and the vehicle's positioning information.

[0068] It should be noted that when the vehicle is driving automatically, the default road surface is a plane or a combination of multiple planes (where slopes, potholes on the road surface, and ramps on both sides of the perpendicular road surface all belong to different planes). Therefore, by scanning these planes with a laser radar, point cloud data in the direction of travel of the vehicle and on both sides of the direction of travel can be obtained. Among them, the laser radar is set on the roof of the motor vehicle through a laser radar fixing bracket, and in order to obtain better original three-dimensional point cloud data, the laser radar can be installed in a position horizontal to the direction of travel of the vehicle.

[0069] In an embodiment of the present invention, a laser radar is used to obtain three-dimensional point cloud data of the target area. The laser radar includes a mechanical laser radar and a solid-state laser radar. The mechanical laser radar controls the laser emission angle through a rotating component, and the solid-state laser radar controls the laser emission angle through an electronic component. The laser radar is rigidly connected to the vehicle, and the relative posture and displacement between the two are fixed. In order to establish the relative coordinate relationship between each laser radar, it is necessary to calibrate the installation of the laser radar and convert the laser radar data from the laser radar coordinates to the vehicle body coordinates. The embodiment of the present invention converts the laser radar data into the reference coordinates by establishing a vehicle centroid coordinate system, a radar reference coordinate system, and a vehicle-mounted laser radar coordinate system, and then uniformly converts it to the vehicle coordinate system to obtain calibration information relative to the vehicle position and the vehicle positioning information. The calibration of the external installation parameters of the laser radar is usually completed using an isosceles right triangle calibration plate and a square calibration plate. The installation parameters of the laser radar that need to be calibrated include the pitch angle, yaw angle, and roll angle of the laser radar.

[0070] In one embodiment, the external installation parameters of the laser radar are a pitch angle of 180°, a yaw angle of 0°, and a roll angle of 0°. The installation height can be adjusted according to the height of obstacles in front of the target area, and the lateral installation position is on the central axis of the vehicle.

[0071] In one embodiment, the shoulder features in the image data are extracted, specifically:

[0072] Correcting the image data according to the parameters of the camera that captured the image data to obtain corrected image data;

[0073] The parameters of the camera include but are not limited to the pitch angle, yaw angle, and distortion coefficient, and the distortion coefficient includes but is not limited to the radial distortion coefficient, the centrifugal distortion coefficient, and the thin-edge diameter distortion coefficient. Since the camera is affected by its own parameters when taking images, such as unclear image data caused by changes in the vehicle yaw angle, the image data is corrected through the camera parameters, and the accurate shoulder features in the corrected image can be obtained by shoulder feature annotation.

[0074] In one embodiment, when the device used to capture the image data of the target area is a common camera, the following formula is used to perform correction processing on the image data:

[0075]

[0076]

[0077] Among them, k1 is the radial distortion coefficient, p1 and p2 are the centrifugal distortion coefficients, s1 and s2 are the thin edge diameter distortion coefficients.

[0078] When the device used to capture the image data of the target area is a fisheye camera, the following formula is used to correct the image data:

[0079] θ d =θ(1+k1θ 2 +k2θ 4 +k3θ 6 +k4θ 8 )

[0080] Among them, k1, k2, k3 and k4 are the distortion coefficients of the fisheye camera, θ is the position after distortion, and θ d is the original position.

[0081] Get the shoulder features annotated in the rectified image data.

[0082] After obtaining the corrected image data, the present invention is implemented to obtain the shoulder features annotated in the corrected image data. Compared with the traditional manual annotation method, the embodiment of the present invention can effectively reduce the error caused by manual annotation, thereby improving the accuracy of shoulder feature annotation, which is conducive to improving the accuracy of shoulder detection. Exemplarily, the shoulder features include special-shaped shoulders and conventional-shaped shoulders.

[0083] Optionally, after obtaining the corrected image data, the embodiment of the present invention may also obtain a shoulder recognition model by performing deep learning on shoulder features, and obtain shoulder features in the corrected image data through the shoulder recognition model.

[0084] In the embodiment of the present invention, the point cloud of the acquired shoulder feature may contain a lot of noise. In order to further improve the accuracy of shoulder detection, denoising is performed after the shoulder feature is acquired.

[0085] In one embodiment, the three-dimensional point cloud data is projected onto the shoulder feature to obtain the three-dimensional shoulder data, specifically:

[0086] The spatial relative relationship between the image data and the three-dimensional point cloud data is obtained according to the parameters of the camera, and the three-dimensional point cloud data is projected onto the shoulder features according to the spatial relative relationship to obtain the three-dimensional shoulder data.

[0087] In the embodiment of the present invention, the parameters of the camera include the focal length, the size of each unit of the camera, and the internal parameters of the position of the camera origin in the image coordinate system, and the external parameters of the rotation angle and translation amount of the camera in three dimensions. The following formula is used to perform coordinate conversion according to the parameters of the camera:

[0088]

[0089] Among them, zc is the z-direction coordinate of the camera coordinate system, u and v are pixel coordinates, dX and dY are single pixel lengths, u0 and v0 are the pixel coordinates of the image origin, f is the focal length, R is the rotation matrix, t is the translation vector, and x, y, and z are world coordinates.

[0090] In one embodiment, the shoulder feature surface in the three-dimensional shoulder data is filled to obtain a shoulder plane, specifically:

[0091] According to the positional relationship between the point cloud in the three-dimensional shoulder data and the ground point cloud, the ground line in the three-dimensional shoulder data is determined;

[0092] In an embodiment of the present invention, the three-dimensional shoulder data has three-dimensional depth information of the shoulder, including height information of the shoulder. The height information of all shoulders in the target area can be obtained from the three-dimensional shoulder data. The height of the shoulder refers to the height of the shoulder above the ground. The laser beam emitted by the laser radar installed on the vehicle will mostly irradiate the ground, that is, a large part of the point cloud collected by the laser radar will belong to the ground. Therefore, the point cloud of the three-dimensional shoulder data is directly used as the point cloud for estimating the ground line, and the point cloud in the three-dimensional shoulder data with a shoulder height lower than a preset value is filtered out to subsequently determine the ground line.

[0093] The outer side surface to be filled and the upper plane to be filled are formed according to the ground line, the outer side surface, the corner line and the upper plane, and the shoulder plane is obtained by filling the upper plane to be filled and the outer side surface to be filled.

[0094] In an embodiment of the present invention, after the point cloud in the three-dimensional shoulder data is divided into blocks according to preset intervals, the average position points of the densely distributed point cloud are used as the upper plane surface points, and the corner lines are used as the upper plane surface lines, and the upper plane to be filled is formed by the above plane surface points and the upper plane surface lines; the corner lines and the ground lines are projected on the ground at the same time, and the line formed by the outer points in the projection image is used as the outer side surface line, and the outer points of the densely distributed point cloud are used as the outer side surface points, and the outer side surface points and the outer side surface lines are formed to be filled.

[0095] In one embodiment, the ground line in the three-dimensional shoulder data is determined according to the positional relationship between the point cloud in the three-dimensional shoulder data and the ground point cloud, specifically:

[0096] Filtering the three-dimensional shoulder data corresponding to the shoulders that are not within the preset height range in the three-dimensional shoulder data;

[0097] It should be noted that common shoulders include sidewalk stones, green belts, isolation fences, etc. In addition, common obstacles in the road environment include street lights, roadside trees, fire hydrants, trash cans, etc. Therefore, when detecting and identifying shoulders, it is necessary to find objects such as sidewalks, green belts, and isolation fences. The height of objects in the road environment can be roughly divided into three levels. The height of objects such as street lights and roadside trees is classified as high, the height of objects such as green belts, isolation fences, and fire hydrants is classified as medium, and the height of the shoulder stones next to the sidewalk is classified as low. Therefore, the height of the shoulder is used as a feature for screening shoulders.

[0098] In the embodiment of the present invention, the preset height range includes a minimum height threshold and a maximum height threshold, wherein the minimum height threshold is greater than or equal to 0. For example, if the height range of the shoulder in the three-dimensional shoulder data is 0-30 cm, the preset height range is set to be greater than or equal to 10 cm, the shoulders with a height of 0-10 cm in the three-dimensional data are filtered out, and the shoulders with a height greater than or equal to 10 cm in the three-dimensional shoulder data are retained; if the height of the shoulder in the three-dimensional shoulder data is 0-40 cm, the preset height range is set to be greater than or equal to 15 cm, the shoulders with a height of 0-15 cm in the three-dimensional data are filtered out, and the shoulders with a height greater than or equal to 15 cm in the three-dimensional shoulder data are retained.

[0099] Dividing the filtered three-dimensional shoulder data according to a preset distance interval to obtain a plurality of point clouds corresponding to the three-dimensional shoulder data;

[0100] If a ground line point cloud is located outside the outermost point cloud among several point clouds, and the proportion of ground line point clouds exceeding the outermost point cloud exceeds a preset threshold, the projections of the several point clouds on the ground are taken as the ground line.

[0101] In an embodiment of the present invention, the point cloud position corresponding to the three-dimensional shoulder data is compared with the point cloud position of the ground line. Under preset conditions, the projection of the point cloud corresponding to the three-dimensional shoulder data on the ground is used as a new ground line.

[0102] In one embodiment, the outer side surface to be filled and the upper plane to be filled are formed according to the ground line, the outer side surface, the corner line and the upper plane, and the shoulder plane is obtained by filling the upper plane to be filled and the outer side surface to be filled, specifically:

[0103] The average position point of the densely distributed point cloud is used as the upper plane point, and the corner line is used as the upper plane line, so that the upper plane points and the upper plane line form the upper plane to be filled;

[0104] In a preferred embodiment of the present invention, the density of the point cloud distribution is first determined. Specifically, the number of point clouds in each block is counted, and the blocks with more than a preset number of point clouds are regarded as dense blocks. The average position of the point cloud in the dense blocks is obtained as the upper plane surface point. For example, the density of the point cloud distribution is counted using a histogram statistical method. For another example, the point cloud position closest to the center point of the dense block is taken as the average position. For another example, a minimum circle that can contain all point clouds is drawn in the dense block, and the point cloud position closest to the center of the circle is taken as the average position.

[0105] The corner line and the ground line are projected on the ground at the same time, the line formed by the outer points in the projection image is used as the outer side surface line, the outer points of the densely distributed point cloud are used as the outer side surface points, and the outer side surface points and the outer side surface lines are used to form the outer side surface to be filled;

[0106] The upper plane to be filled and the outer side surface to be filled are filled with shoulders to obtain the shoulder plane.

[0107] In the embodiment of the present invention, in order to improve the accuracy of shoulder detection, modeling is performed through ground lines, outer side surfaces, and corner lines to construct an upper plane to be filled and an outer side surface to be filled.

[0108] See also Figure 2 , is a schematic diagram of a shoulder plane provided by an embodiment of the present invention. The shoulder plane has the side close to the road surface as the outer side, that is, when a vehicle is driving on the road surface, the side of the shoulder close to the vehicle is the outer side of the shoulder.

[0109] In one embodiment, the shoulder filling is performed on the upper plane to be filled and the outer side surface to be filled to obtain the shoulder plane, which is specifically:

[0110] The highest point of the upper plane to be filled is taken as the cutoff point, and the shoulder is filled upward in a direction parallel to the ground to obtain the filled upper plane;

[0111] In an embodiment of the present invention, other points of the upper plane to be filled can also be selected as cutoff points. For example, a position 1 cm lower than the highest point of the upper plane to be filled is used as the cutoff point, and the shoulder is filled in an upward direction parallel to the ground; for example, a position 3 cm lower than the highest point of the upper plane to be filled is used as the cutoff point, and the shoulder is filled in an upward direction parallel to the ground; for example, a position 5 cm lower than the highest point of the upper plane to be filled is used as the cutoff point, and the shoulder is filled in an upward direction parallel to the ground.

[0112] The outer side surface to be filled is filled with shoulders in a normal direction perpendicular to the ground and perpendicular to the direction of the line connecting the two last points, and the filling amount does not exceed a preset threshold value, so as to obtain a filled outer side surface; or the outermost point is used as a cutoff point, and the shoulders are filled in a normal direction perpendicular to the ground and perpendicular to the lane line direction, so as to obtain a filled outer side surface;

[0113] In the embodiment of the present invention, the preset threshold value of filling can be set by oneself, such as 0 to 10 cm, or the difference between the outermost point and the innermost point can be used as the filling threshold value;

[0114] In an embodiment of the present invention, other points on the outer side surface to be filled can also be selected as the cutoff point for filling. For example, the position 1 cm away from the outermost point of the outer side surface to be filled is used as the cutoff point for filling, and the shoulder is filled in the direction perpendicular to the road lane line from the direction perpendicular to the ground; for example, the position 3 cm away from the outermost point of the outer side surface to be filled is used as the cutoff point for filling, and the shoulder is filled in the direction perpendicular to the ground from the direction perpendicular to the road lane line; for example, the position 5 cm away from the outermost point of the outer side surface to be filled is used as the cutoff point for filling, and the shoulder is filled in the direction perpendicular to the ground from the direction perpendicular to the road lane line.

[0115] In an embodiment of the present invention, lane line data can be directly obtained using a map, or can be obtained by identifying image data collected by a camera, and lane lines can be detected by a laser radar. For example, lane lines are detected based on the density of radar scanning points. Specifically, the coordinates of the radar scanning points are obtained and converted into a grid map, and the grid map is mapped with the original data. It can be a direct coordinate grid map or a polar coordinate grid map. The selection is made according to the needs of post-processing. The polar coordinate grid map is directly used for lane line recognition, that is, the grid with multiple points mapped is considered to be a lane line point. Since the closer the polar coordinate grid distance is, the higher the grid accuracy is, the higher the accuracy of lane line recognition is, and the farther the distance is, the lower the grid accuracy is, resulting in lower accuracy in identifying lane lines. This method uses the density of points in the grid map to extract lane lines. The histogram statistics method can be used to obtain the point density. The histogram statistics method can quickly and intuitively count the point density. For another example, the laser radar is used to obtain different characteristics of shoulder height information or physical reflection information. The shoulder information is first detected, and the lane line position is calculated based on the distance from the shoulder to the lane line in combination with the known road width.

[0116] The shoulder plane is formed based on the filled upper plane and the filled outer side surface.

[0117] In the embodiment of the present invention, the filled upper plane and the filled outer side surface are spliced ​​together by plane splicing to form a shoulder plane.

[0118] In the above embodiment, by acquiring three-dimensional point cloud data and image data of the target area, the shoulder features in the image data are extracted, and the three-dimensional shoulder data is obtained by projecting the three-dimensional point cloud data onto the shoulder features. The three-dimensional shoulder data has three-dimensional depth information, which is beneficial to improving the accuracy of shoulder detection; and based on the three-dimensional shoulder data, the shoulder feature surface is filled and processed to obtain the shoulder plane. By projecting the shoulder plane onto the ground, the shoulder curve can be accurately obtained to avoid collision between the vehicle and the shoulder, thereby effectively improving the control accuracy of autonomous driving.

[0119] Based on the same inventive concept, the embodiment of the present invention further provides Figure 3 A road shoulder detection device is shown, comprising:

[0120] A data acquisition module 10 is used to acquire three-dimensional point cloud data and image data of a target area;

[0121] A feature extraction module 20, for extracting shoulder features from image data;

[0122] A first projection module 30 is used to project the three-dimensional point cloud data onto the shoulder feature to obtain three-dimensional shoulder data;

[0123] The data filling module 40 is used to fill the shoulder feature surface in the three-dimensional shoulder data to obtain the shoulder plane;

[0124] The second projection module 50 is used to project the shoulder plane onto the ground to obtain a shoulder curve.

[0125] In one embodiment, the three-dimensional point cloud data of the target area is obtained by:

[0126] A radar device is used to obtain three-dimensional point cloud data of the target area in combination with calibration information of the radar device relative to the vehicle's position and the vehicle's positioning information.

[0127] In one embodiment, the feature extraction module 20 is used to:

[0128] Correcting the image data according to the parameters of the camera that captured the image data to obtain corrected image data;

[0129] Get the shoulder features annotated in the rectified image data.

[0130] In one embodiment, the feature extraction module 20 is further used to:

[0131] A shoulder extraction model is constructed by adopting a deep learning method, and shoulder features in the image data are extracted according to the shoulder extraction model.

[0132] In one embodiment, the first projection module 30 is used to:

[0133] The spatial relative relationship between the image data and the three-dimensional point cloud data is obtained according to the parameters of the camera, and the three-dimensional point cloud data is projected onto the shoulder features according to the spatial relative relationship to obtain the three-dimensional shoulder data.

[0134] In one embodiment, the data filling module 40 is used to:

[0135] According to the positional relationship between the point cloud in the three-dimensional shoulder data and the ground point cloud, the ground line in the three-dimensional shoulder data is determined;

[0136] The outer side surface to be filled and the upper plane to be filled are formed according to the ground line, the outer side surface, the corner line and the upper plane, and the shoulder plane is obtained by filling the upper plane to be filled and the outer side surface to be filled.

[0137] In one embodiment, the data filling module 40 is further configured to:

[0138] Filtering the three-dimensional shoulder data corresponding to the shoulders that are not within the preset height range in the three-dimensional shoulder data;

[0139] Dividing the filtered three-dimensional shoulder data according to a preset distance interval to obtain a plurality of point clouds corresponding to the three-dimensional shoulder data;

[0140] If a ground line point cloud is located outside the outermost point cloud among several point clouds, and the proportion of ground line point clouds exceeding the outermost point cloud exceeds a preset threshold, the projections of the several point clouds on the ground are taken as the ground line.

[0141] In one embodiment, the data filling module 40 is further configured to:

[0142] The average position point of the densely distributed point cloud is used as the upper plane point, and the corner line is used as the upper plane line, so that the upper plane points and the upper plane line form the upper plane to be filled;

[0143] The corner line and the ground line are projected on the ground at the same time, the line formed by the outer points in the projection image is used as the outer side surface line, the outer points of the densely distributed point cloud are used as the outer side surface points, and the outer side surface points and the outer side surface lines are used to form the outer side surface to be filled;

[0144] The upper plane to be filled and the outer side surface to be filled are filled with shoulders to obtain the shoulder plane.

[0145] In one embodiment, the data filling module 40 is further configured to:

[0146] The highest point of the upper plane to be filled is taken as the cutoff point, and the shoulder is filled upward in a direction parallel to the ground to obtain the filled upper plane;

[0147] The outer side surface to be filled is filled with shoulders in a normal direction perpendicular to the ground and in a direction perpendicular to the line connecting the two outermost points, and the filling amount does not exceed a preset threshold value, so as to obtain a filled outer side surface; or the outermost point is used as a cutoff point, and the shoulders are filled in a normal direction perpendicular to the ground and in a direction perpendicular to the lane line, so as to obtain a filled outer side surface;

[0148] The shoulder plane is formed based on the filled upper plane and the filled outer side surface.

[0149] In one embodiment, a computer device is provided, such as Figure 4 As shown, the computer device includes a processor, a memory, a network interface and a sensor connected via a communication line. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement the road shoulder detection method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may implement the road shoulder detection method. It can be understood by those skilled in the art that Figure 4The structure shown is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0150] In one embodiment, the road shoulder detection device provided in the present application can be implemented in the form of a computer program. The computer program can be Figure 4 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the road shoulder detection device. The computer program composed of various program modules enables the processor to execute the steps of the road shoulder detection method in various embodiments of the present application described in this specification.

[0151] In some possible implementations, various aspects of a shoulder detection method provided by the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of a shoulder detection method according to various exemplary implementations of the present application described above in this specification.

[0152] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) 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 thereof.

[0153] A road shoulder detection program product of an embodiment of the present application may adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a computing device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0154] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0155] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0156] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including entity-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. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0157] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0158] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0159] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0160] The present application is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable shoulder detection device to produce a machine, so that the instructions executed by the processor of the computer or other programmable shoulder detection device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0161] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable road shoulder detection device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0162] These computer program instructions may also be loaded onto a computer or other programmable road shoulder detection device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions executed on the computer or other programmable device for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0163] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0164] The above are preferred embodiments of the present invention. It should be noted that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A road shoulder detection method, characterized in that: include: Acquire three-dimensional point cloud data and image data of the target area; Extracting shoulder features from the image data; Projecting the three-dimensional point cloud data onto the shoulder feature to obtain three-dimensional shoulder data; Filling processing is performed on the shoulder feature surface in the three-dimensional shoulder data to obtain a shoulder plane; the filling processing on the shoulder feature surface in the three-dimensional shoulder data to obtain a shoulder plane is specifically as follows: determining the ground line in the three-dimensional shoulder data according to the positional relationship between the point cloud in the three-dimensional shoulder data and the ground point cloud; forming an outer side surface to be filled and an upper plane to be filled according to the ground line, the outer side surface, the corner line and the upper plane, and obtaining the shoulder plane by filling the upper plane to be filled and the outer side surface to be filled; filtering the three-dimensional shoulder data corresponding to the shoulders that are not within a preset height range in the three-dimensional shoulder data; dividing the filtered three-dimensional shoulder data according to a preset distance interval to obtain a plurality of point clouds corresponding to the three-dimensional shoulder data ; If the ground line point cloud is located outside the outermost point cloud among the several point clouds, and the proportion of the ground line point clouds exceeding the outermost point cloud exceeds a preset threshold, the projections of the several point clouds on the ground are taken as the ground line; the average position point of the densely distributed point cloud is taken as the upper plane surface point, the corner line is taken as the upper plane surface line, and the upper plane surface points and the upper plane surface line are used to form the upper plane to be filled; the corner line and the ground line are projected on the ground at the same time, the line formed by the outer points in the projection image is taken as the outer side surface line, the outer points of the densely distributed point cloud are taken as the outer side surface points, and the outer side surface points and the outer side surface line are used to form the outer side surface to be filled; the upper plane to be filled and the outer side surface to be filled are shoulder filled to obtain the shoulder plane; The shoulder plane is projected onto the ground to obtain a shoulder curve.

2. The road shoulder detection method according to claim 1, characterized in that: The obtaining of the three-dimensional point cloud data of the target area is specifically as follows: A radar device is used to obtain three-dimensional point cloud data of the target area in combination with calibration information of the radar device relative to the vehicle position and positioning information of the vehicle.

3. The road shoulder detection method according to claim 1, characterized in that: The extracting of the shoulder features in the image data is specifically as follows: Correcting the image data according to the parameters of the camera that captured the image data to obtain corrected image data; The shoulder features marked in the rectified image data are obtained.

4. The road shoulder detection method according to claim 1, characterized in that: The extracting of the shoulder features in the image data is specifically as follows: A shoulder extraction model is constructed by adopting a deep learning method, and shoulder features in the image data are extracted according to the shoulder extraction model.

5. The road shoulder detection method according to claim 1, characterized in that: The three-dimensional point cloud data is projected onto the shoulder feature to obtain three-dimensional shoulder data, specifically: The spatial relative relationship between the image data and the three-dimensional point cloud data is acquired according to the parameters of the camera, and the three-dimensional point cloud data is projected onto the shoulder feature according to the spatial relative relationship to obtain the three-dimensional shoulder data.

6. The road shoulder detection method according to claim 1, characterized in that: The shoulder filling is performed on the upper plane to be filled and the outer side surface to be filled to obtain the shoulder plane, specifically: Taking the highest point of the upper plane to be filled as the cutoff point, filling the shoulder upward in a direction parallel to the ground to obtain the filled upper plane; The outer side surface to be filled is filled with shoulders in a normal direction perpendicular to the ground and in a direction perpendicular to the line connecting the two outermost points, and the filling amount does not exceed a preset threshold value, so as to obtain a filled outer side surface; or the outermost point is used as a cutoff point, and the shoulders are filled in a normal direction perpendicular to the ground and in a direction perpendicular to the lane line, so as to obtain a filled outer side surface; A shoulder plane is formed according to the filled upper plane and the filled outer side surface.

7. A road shoulder detection device, characterized in that: include: A data acquisition module, used to acquire three-dimensional point cloud data and image data of the target area; A feature extraction module, used to extract shoulder features from the image data; A first projection module, used for projecting the three-dimensional point cloud data onto the shoulder feature to obtain three-dimensional shoulder data; The data filling module is used to fill the shoulder feature surface in the three-dimensional shoulder data to obtain the shoulder plane; specifically used to: determine the ground line in the three-dimensional shoulder data according to the positional relationship between the point cloud in the three-dimensional shoulder data and the ground point cloud; form the outer side surface to be filled and the upper plane to be filled according to the ground line, the outer side surface, the corner line and the upper plane, and obtain the shoulder plane by filling the upper plane to be filled and the outer side surface to be filled; specifically used to: filter the three-dimensional shoulder data corresponding to the shoulders that are not within the preset height range in the three-dimensional shoulder data; divide the filtered three-dimensional shoulder data according to the preset distance interval to obtain a number of point clouds corresponding to the three-dimensional shoulder data; if the ground line point cloud is located within The outer side of the outermost point cloud among the several point clouds, and the proportion of the ground line point clouds beyond the outermost point cloud exceeds the preset threshold, the projections of the several point clouds on the ground are taken as the ground line; the average position point of the densely distributed point cloud is taken as the upper plane surface point, the corner line is taken as the upper plane surface line, and the upper plane surface points and the upper plane surface line are used to form the upper plane to be filled; the corner line and the ground line are projected on the ground at the same time, the line formed by the outer points in the projection image is taken as the outer side surface line, the outer points of the densely distributed point cloud are taken as the outer side surface points, and the outer side surface points and the outer side surface line are used to form the outer side surface to be filled; the upper plane to be filled and the outer side surface to be filled are shoulder filled to obtain the shoulder plane; The second projection module is used to project the shoulder plane onto the ground to obtain a shoulder curve.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the road shoulder detection method according to any one of claims 1 to 6.