Road edge detection method and device
Patent Information
- Application Number
- CN202380011298.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-09
- Publication Date
- 2024-09-13
AI Technical Summary
When the existing intelligent driving system detects road edges, the detection system based on preset rules has limited generalization capabilities and cannot accurately detect complex irregular road edges. Especially in the case of low road edges or large curvature curves, it is easy to lose Partial location information.
Using multi-frame point cloud data based on time series, the point cloud data is segmented and verified through the image segmentation network and edge point network, and the target raster map and target key points are obtained to improve the detection accuracy of road edges.
It improves the accuracy and real-time performance of road edge detection, can more accurately characterize complex road edges, and enhances the path planning and obstacle avoidance decision-making capabilities of the intelligent driving system.
Smart Images

Figure CN118647902A
Abstract
Description
Road edge detection method and device Technical Field
[0001] The present application relates to the field of intelligent driving technology, and in particular to a road edge detection method and device. Background Art
[0002] With the advancement of science and technology and the application of artificial intelligence, intelligent driving systems have experienced rapid development and widespread application. To improve vehicle driving safety and avoid collisions, intelligent driving systems must constantly detect the road edges (i.e., the boundaries of the drivable area) of the vehicle's current path to make accurate path planning and obstacle avoidance decisions.
[0003] Typically, intelligent driving systems use LiDAR to detect roadside edges. Specifically, the system first uses LiDAR to acquire 3D point cloud data of the vehicle's driving environment. Then, using a pre-set rule-based detection system, the system extracts roadside features using the geometric position and temporal matching information from the 3D point cloud data. Finally, the system uses a fixed fitting equation to determine the roadside edge based on these features.
[0004] However, due to the limited generalization ability of the detection system based on preset rules and the fact that the road edges are complex and irregular, the location information of the road edges is easily lost through fixed equation fitting. Therefore, the road edges cannot be accurately detected.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a road edge detection method and device, which can determine target key points representing road edges based on time-series multi-frame point cloud data of a vehicle driving environment, so as to improve the accuracy of detecting road edges in a vehicle driving environment.
[0007] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0008] In a first aspect, a road edge detection method is provided, comprising: a road edge detection device acquiring n frames of point cloud data of a vehicle's driving environment, wherein the n frames of point cloud data include at least point cloud data of a road edge, wherein the road edge is the boundary of a drivable area in the driving environment, and n is an integer greater than 1. The road edge detection device segments each frame of the n frames of point cloud data to obtain n frames of first images, wherein the first value corresponding to each pixel in the first image is used to indicate the category of the corresponding point cloud, wherein the category includes at least a road edge. The road edge detection device acquires a target grid map based on the n frames of the first images, wherein the target grid map includes multiple grids corresponding one-to-one to each pixel in the first image, and the second value corresponding to each grid is used to represent the probability that the pixel corresponding to the grid belongs to the road edge. The road edge detection device determines target key points based on the first value corresponding to each pixel in the n frames of the first image and the second value corresponding to each grid in the target grid map, wherein the target key points are used to represent the road edge.
[0009] In this method, a road edge detection device can determine multiple frames of first images containing pixels indicating road edges based on n frames of time-sequential point cloud data of the vehicle's driving environment. Then, a target grid map is obtained based on the n frames of first images. Finally, the road edge detection device combines the first values corresponding to each pixel in the n frames of first images with the second values corresponding to each grid in the target grid map to obtain target key points representing the road edge. This method improves the accuracy of road edge detection.
[0010] In combination with the first aspect, in an optional implementation, the road edge detection device obtains a target grid map based on n frames of first images, including: the road edge detection device creates an initial grid map, and each grid in the initial grid map is set with a third value. The road edge detection device uses the n frames of first images to update the third value of the initial grid map to obtain a target grid map. In this implementation, the road edge detection device first creates an initial grid map, and then updates the third value corresponding to the initial grid map based on the n frames of first images to obtain a target grid map. The second value in the target grid map is the second value accumulated after the n frames of first images are closer, and the target grid map has a higher confidence in depicting the vehicle's driving environment. In this way, the accuracy of the road edge detection device in determining the road edge based on the target grid map can be improved.
[0011] In conjunction with the first aspect, in an optional implementation, the n frames of point cloud data are point cloud data acquired at n moments, and the n frames of first images correspond one-to-one to the n moments. The road edge detection device then uses the n frames of first images to update the third value of the initial raster map to obtain a target raster map, including: the road edge detection device repeatedly performs the following process: using the i-th frame of the n frames of first images, updating the raster map corresponding to the i-1th moment to obtain the raster map corresponding to the i-th moment, until the raster map corresponding to the n-th moment is obtained. Wherein, the value of i is [1, n]. When i is equal to 1, the raster map corresponding to the i-1th moment is the initial raster map; the target raster map is the raster map corresponding to the n-th moment. In this way, the road edge detection device can use the n frames of first images to update the raster map in sequence based on the time sequence to improve the accuracy of the target raster map obtained by the road edge detection device.
[0012] In conjunction with the first aspect, in an optional implementation, a road edge detection device uses the i-th first image among n frames of first images to update a grid map corresponding to the i-1th moment to obtain a grid map corresponding to the i-th moment. This includes: the road edge detection device converts the grid map corresponding to the i-1th moment to the vehicle's own vehicle coordinate system at the i-th moment through an affine transformation. The road edge detection device updates the values corresponding to each grid in the affine-transformed grid map corresponding to the i-1th moment based on the first values corresponding to each pixel in the i-th first image to obtain the grid map corresponding to the i-th moment. In this implementation, the road edge detection device sequentially converts the grid map to the vehicle's own vehicle coordinate system at each moment through an affine transformation during the updating of the values corresponding to each grid in the grid map. In this manner, the road edge detection device can accurately update the values corresponding to each grid in the grid map using the first values corresponding to each pixel in each frame of the first image, thereby improving the accuracy of the target grid map.
[0013] In combination with the first aspect, in an optional implementation, the target key points include: multiple feature points belonging to multiple different road edge segments. The road edge detection device determines the target key points based on the first value corresponding to each pixel point in the n-frame first image and the second value corresponding to each grid in the target grid map, including: the road edge detection device determines clustering information based on the second value corresponding to each grid in the target grid map, and the clustering information includes the position information of multiple feature points corresponding to different road edge segments. The road edge detection device determines the initial feature points based on the first value corresponding to each pixel point in each first frame of the n-frame first image, and the initial feature points include the pixel points in each first frame of the first image whose first value indicates that the category of the corresponding point cloud is road edge. The road edge detection device determines the multiple feature points corresponding to multiple different road edge segments based on the initial feature points and the clustering information. In this implementation, when the target key points include: multiple feature points belonging to multiple different road edge segments, the road edge detection can accurately determine the multiple feature points corresponding to the multiple different road edge segments based on the initial feature points and clustering information, thereby improving the accuracy of the road edge detection device in determining the target key points.
[0014] In conjunction with the first aspect, in an optional implementation, a road edge detection device determines clustering information based on the second value corresponding to each grid in the target grid image, including: determining a binary image of the target grid image based on the second value corresponding to each grid in the target grid image; assigning a fourth value to pixels in the binary image corresponding to grids whose second values in the target grid image satisfy a first condition, and assigning a fifth value to pixels corresponding to grids whose second values in the target grid image do not satisfy the first condition; representing the road edge; forming a connected domain of adjacent pixels in the binary image corresponding to the fourth value to obtain multiple connected domains, each of which corresponds one-to-one to multiple different road edge segments; and determining clustering information based on the multiple connected domains. In this implementation, the road edge detection device can determine the clustering information by determining the binary image of the target grid image and then determining the clustering information based on the connected domains in the binary image. In this way, the accuracy of the road edge detection device in determining clustering information can be improved.
[0015] In conjunction with the first aspect, in one optional implementation, the initial feature points are pixels that have been verified by an edge point network. The edge point network verifies whether the pixels are road edge feature points and verifies their positional offset; the edge point network is a convolutional neural network. This improves the efficiency and accuracy of the road edge detection device's verification of pixel points for road edge feature points and positional offset verification.
[0016] In conjunction with the first aspect, in one optional implementation, multiple feature points within the target keypoints that belong to the same road edge segment are arranged in a monotonically increasing or monotonically decreasing order based on the magnitude of their yaw angles. The yaw angle is the angle between the line connecting the vehicle and the feature point and the vehicle's forward direction. In this way, the road edge detection device can determine ordered target keypoints for more accurate road edge characterization.
[0017] In conjunction with the first aspect, in an optional implementation, the method further includes: the road edge detection device determining, for each feature point in the target feature, a yaw angle of the feature point based on the position information of the feature point and the position information of the vehicle. In this way, the road edge detection device can accurately determine the yaw angle of the feature point based on the position information of the feature point and the position information of the vehicle, thereby further improving the accuracy of the arrangement order of multiple feature points belonging to the same road edge segment in the target key point.
[0018] In conjunction with the first aspect, in an optional implementation, the method further includes: the road edge detection device sampling multiple feature points corresponding to each road edge segment in a plurality of different road edge segments according to a first preset rule. The first preset rule includes at least one of the following: when multiple feature points are collinear, extracting feature points at both ends of the line segment; or extracting feature points whose distance from the vehicle is less than a first threshold. In this implementation, the road edge detection device can sample multiple feature points of the same road edge segment according to the first preset rule to reduce the data volume of target key points and improve the efficiency of further processing of the target key points.
[0019] In conjunction with the first aspect, in an optional implementation, the feature point corresponding to each of the multiple road edge segments satisfies a second preset rule. The second preset rule includes at least one of the following: the second value corresponding to the grid corresponding to the feature point is greater than a second threshold, the position of the feature point is within a first preset range, and the height difference between the feature point and other feature points within its preset neighborhood is greater than a third threshold. In this implementation, the road edge detection device can filter multiple feature points in the multiple road edge segments according to the second preset rule. This can improve the accuracy of the road edge detection device in detecting road edges.
[0020] In conjunction with the first aspect, in one optional implementation, the number of feature points corresponding to each of the multiple road edge segments is greater than a fourth threshold. In this implementation, the road edge detection device can filter the multiple road edge segments, retaining those road edge segments whose number of feature points exceeds the fourth threshold. This can improve the accuracy of road edge detection by the road edge detection device.
[0021] In conjunction with the first aspect, in an optional implementation, the road edge detection device segments each frame of n frames of point cloud data to obtain n frames of first images, including: the road edge detection device inputs each frame of n frames of point cloud data into an image segmentation network to obtain the n frames of first images, where the image segmentation network is a convolutional neural network. This can improve the efficiency and accuracy of the road edge detection device in obtaining the n frames of first images.
[0022] In a second aspect, a road edge detection device is provided, comprising: an acquisition module and a processing module. The acquisition module is configured to acquire n frames of point cloud data of a vehicle's driving environment, wherein the n frames of point cloud data include at least point cloud data of a road edge, where a road edge is the boundary of a drivable area in the driving environment, and n is an integer greater than 1. The processing module is configured to segment each frame of the n frames of point cloud data to obtain n frames of first images, wherein the first value corresponding to each pixel in the first image indicates the category of the corresponding point cloud, wherein the category includes at least a road edge. The processing module is further configured to acquire a target grid map based on the n frames of the first image, wherein the target grid map includes multiple grids corresponding one-to-one to each pixel in the first image, and the second value corresponding to each grid in the grid indicates the probability that the pixel corresponding to the grid belongs to a road edge. The processing module is further configured to determine target key points based on the first value corresponding to each pixel in the n frames of the first image and the second value corresponding to each grid in the target grid map, wherein the target key points are used to represent the road edge.
[0023] In conjunction with the second aspect, in an optional implementation, the processing module obtains a target grid map based on n frames of first images, including: a road edge detection device creates an initial grid map, each grid in the initial grid map is assigned a third value; and the road edge detection device uses the n frames of first images to update the third value of the initial grid map to obtain the target grid map.
[0024] In conjunction with the second aspect, in an optional implementation, the n frames of point cloud data are point cloud data acquired at n moments, and the n frames of first images correspond one-to-one to the n moments. The processing module then uses the n frames of first images to update the third value of the initial raster map to obtain a target raster map, including: the processing module repeatedly performs the following process: using the i-th frame of the n frames of first images, updating the raster map corresponding to the i-1th moment to obtain the raster map corresponding to the i-th moment, until the raster map corresponding to the n-th moment is obtained. Wherein, the value of i is [1, n]. When i is equal to 1, the raster map corresponding to the i-1th moment is the initial raster map; the target raster map is the raster map corresponding to the n-th moment.
[0025] In conjunction with the second aspect, in an optional implementation, the processing module uses the i-th first image among n frames of first images to update the grid map corresponding to the i-1th moment to obtain the grid map corresponding to the i-th moment, including: the processing module converts the grid map corresponding to the i-1th moment to the vehicle coordinate system of the vehicle at the i-th moment through an affine transformation. The processing module updates the values corresponding to each grid in the grid map corresponding to the i-1th moment after the affine transformation based on the first values corresponding to each pixel in the i-th first image to obtain the grid map corresponding to the i-th moment.
[0026] In combination with the second aspect, in an optional implementation, the target key points include: multiple feature points belonging to multiple different road edge segments. The processing module determines the target key points based on the first value corresponding to each pixel point in the n-frame first image and the second value corresponding to each grid in the target grid map, including: the processing module determines clustering information based on the second value corresponding to each grid in the target grid map, and the clustering information includes the position information of multiple feature points corresponding to different road edge segments. The processing module determines the initial feature points based on the first value corresponding to each pixel point in each first frame of the n-frame first image, and the initial feature points include the pixel points in each first frame of the first image whose first value indicates that the category of the corresponding point cloud is road edge. The processing module determines the multiple feature points corresponding to multiple different road edge segments based on the initial feature points and the clustering information.
[0027] In conjunction with the second aspect, in an optional implementation, the processing module determines clustering information based on the second value corresponding to each grid in the target grid image, including: the processing module determines a binary image of the target grid image based on the second value corresponding to each grid in the target grid image; the pixels in the binary image corresponding to the grids whose second value in the target grid image satisfies the first condition are assigned a fourth value, and the pixels corresponding to the grids whose second value in the target grid image does not satisfy the first condition are assigned a fifth value; the pixels corresponding to the grids that meet the first condition are used to represent the road edge; the processing module groups the adjacent pixels corresponding to the fourth value in the binary image into a connected domain to obtain multiple connected domains, the multiple connected domains corresponding one-to-one to multiple different road edge segments; the processing module determines clustering information based on the multiple connected domains. In conjunction with the second aspect, in an optional implementation, the initial feature points are pixel points that have been verified by an edge point network. The edge point network has the function of verifying whether the pixel points are road edge feature points and verifying position offset; the edge point network is a convolutional neural network.
[0028] In conjunction with the second aspect, in one optional implementation, multiple feature points belonging to the same road edge segment within the target keypoints are arranged in monotonically increasing or monotonically decreasing order based on the magnitude of their yaw angles. The yaw angle is the angle between the line connecting the vehicle and the feature point and the vehicle's forward direction.
[0029] In combination with the second aspect, in an optional implementation, the processing module is further configured to: for each feature point in the target feature, determine the yaw angle of the feature point according to position information of the feature point and position information of the vehicle.
[0030] In conjunction with the second aspect, in an optional implementation, the processing module is further configured to: the road edge detection device samples multiple feature points corresponding to each road edge segment in the multiple different road edge segments according to a first preset rule. The first preset rule includes at least one of the following: when multiple feature points are collinear, extracting feature points at both ends of the line segment; and extracting feature points whose distance from the vehicle is less than a first threshold.
[0031] In conjunction with the second aspect, in an optional implementation, a feature point corresponding to each of the plurality of road edge segments satisfies a second preset rule. The second preset rule includes at least one of the following: a second value corresponding to a grid cell corresponding to the feature point is greater than a second threshold, a position of the feature point is within a first preset range, and a height difference between the feature point and other feature points within a preset neighborhood of the feature point is greater than a third threshold.
[0032] In combination with the second aspect, in an optional implementation manner, the number of feature points corresponding to each road edge segment in the plurality of road edge segments is greater than a fourth threshold.
[0033] In combination with the second aspect, in an optional implementation method, the processing module segments each frame of point cloud data in n frames of point cloud data respectively to obtain n frames of first images, including: the processing module inputs each frame of point cloud data in n frames of point cloud data into the image segmentation network respectively to obtain n frames of first images, and the image segmentation network is a convolutional neural network.
[0034] In a third aspect, an intelligent driving system is provided, comprising: a road edge detection device; the road edge detection device is used to execute the method as described in the first aspect and any one of its optional methods.
[0035] In a fourth aspect, an electronic device is provided, comprising: a memory, one or more processors; the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method as described in the first aspect above and any one of its optional methods.
[0036] In a fifth aspect, a computer-readable storage medium is provided, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method as described in the first aspect and any one of its optional methods.
[0037] In a sixth aspect, a computer program product is provided, which, when executed on a computer, enables the computer to execute the method according to the first aspect and any one of its optional methods.
[0038] It can be understood that the beneficial effects that can be achieved by the road edge detection device of the second aspect, the intelligent driving system of the third aspect, the electronic device of the fourth aspect, the computer-readable storage medium of the fifth aspect, and the computer program product of the sixth aspect can be referred to the beneficial effects of the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] FIG1 is a flow chart of an existing method for detecting road edges provided by the related art;
[0040] FIG2 is a schematic diagram of a vehicle structure according to an embodiment of the present application;
[0041] FIG3 is a schematic diagram of the system architecture of an intelligent driving system according to an embodiment of the present application;
[0042] FIG4 is a schematic diagram showing the principle of a road edge detection method according to an embodiment of the present application;
[0043] FIG5 is a schematic flow chart of a road edge detection method according to an embodiment of the present application;
[0044] FIG6 is a schematic diagram of a first image according to an embodiment of the present application;
[0045] FIG7 is a schematic diagram of accumulating a first image according to an embodiment of the present application;
[0046] FIG8 is a schematic flow chart of a method for updating a grid map according to an embodiment of the present application;
[0047] FIG9 is a schematic diagram showing a principle of determining target key points according to an embodiment of the present application;
[0048] FIG10 is a flow chart of a method for determining target key points according to an embodiment of the present application;
[0049] FIG11 is a schematic diagram of filtering initial feature points by a curb detection device according to an embodiment of the present application;
[0050] FIG12 is a schematic diagram of a road edge detection device filtering road edge segments according to an embodiment of the present application;
[0051] FIG13 is a schematic diagram of a yaw angle shown in an embodiment of the present application;
[0052] FIG14 is a schematic diagram of sampling sorted initial feature points according to an embodiment of the present application;
[0053] FIG15 is a schematic diagram of a target key point shown in an embodiment of the present application;
[0054] FIG16 is a schematic diagram of the composition of a curb detection device according to an embodiment of the present application;
[0055] FIG17 is a schematic diagram showing the composition of a chip system according to an embodiment of the present application. DETAILED DESCRIPTION
[0056] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship. For example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit differences. At the same time, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.
[0057] With the advancement of science and technology and the application of artificial intelligence, intelligent driving systems have experienced rapid development and widespread application. To improve vehicle driving safety and avoid collisions, intelligent driving systems must constantly detect the road edges (i.e., the boundaries of the drivable area) of the vehicle's current path to make accurate path planning and obstacle avoidance decisions.
[0058] For example, intelligent driving systems can obtain road edge information from high-precision maps (e.g., centimeter-level accuracy). However, building high-precision maps not only requires significant labor to annotate road edges, but also introduces some human-induced errors. Furthermore, the real-world road environment is subject to real-time changes, such as road edge offsets, making real-time synchronization with high-precision maps difficult.
[0059] Therefore, to improve the real-time availability of roadside edge information, intelligent driving systems can incorporate lidar (LiDAR) to detect roadside edges along the road the vehicle is traveling on. LiDAR is a common sensor in vehicles, and the point cloud data it outputs can accurately depict three-dimensional information about the vehicle's surroundings. Specifically, Figure 1 is a flowchart of a roadside edge detection method provided by related art. As shown in Figure 1, the intelligent driving system first uses lidar to acquire three-dimensional point cloud data of the vehicle's driving environment. Then, using a detection system based on preset rules, the intelligent driving system sequentially generates a bird's-eye view (BEV) grid map from the three-dimensional point cloud data, filters out ground and moving objects based on the BEV grid map, extracts roadside edge features based on the geometric position of the three-dimensional point cloud data, extracts roadside line segments based on the roadside features, and clusters the roadside line segments. Finally, the intelligent driving system uses a fixed fitting equation to determine the roadside edge based on the clustered roadside line segments.
[0060] However, due to the limited generalization ability of the detection system based on preset rules, when the road edge is complex and irregular, the position information of the road edge is easily lost through fixed equation fitting. For example, when detecting low road edges, in the process of filtering out the ground, the plane is usually fitted by the point cloud height distribution, but the actual road surface is not a simple horizontal plane, and there will be unevenness. Therefore, in order to filter out the ground, the threshold parameter in the filtering process will be set to a larger range, so that for low road edges (for example, 10 cm), they are easily filtered out as road surfaces, causing the final road edge detection result to lose this part of the low road edge. For another example, when detecting the road edge of a large curvature curve, or when there are objects such as water barriers and roadblocks at the road edge, the road edge result obtained by fitting a straight line equation or a polynomial equation is prone to lose some position information and cannot accurately express the actual road edge, resulting in the inability to accurately detect the road edge.
[0061] In order to solve the problem of being unable to accurately detect the road edge. An embodiment of the present application provides a road edge detection method, which can determine a segmented image including the road edge based on multi-frame point cloud data based on a time series of the vehicle driving environment. Then, a target grid map is obtained based on the segmented image to determine the clustering information of the road edge, and then the cumulative road edge points are determined in combination with the segmented image. Finally, the accumulated road edge points are sorted and processed to obtain ordered target road edge points (or target key points) for characterizing the road edge in the vehicle driving environment. This method can construct a target grid map through multi-frame point cloud data based on a time series of the vehicle driving environment to obtain accurate clustering information of the road edge, and further obtain complete road edge points. In this way, the accuracy of detecting the road edge can be improved.
[0062] The following describes the solution provided by the embodiments of the present application in conjunction with the accompanying drawings.
[0063] Referring to FIG. 2 , FIG. 2 is a schematic diagram illustrating the architecture of a vehicle according to an embodiment of the present application. As shown in FIG. 2 , vehicle 10 may include various subsystems, such as a travel system 110 , a sensor system 120 , a control system 130 , one or more peripheral devices 140 , a power source 150 , a computer system 160 , and a user interface 170 . Alternatively, vehicle 10 may include more or fewer subsystems, and each subsystem may include multiple components. Furthermore, each subsystem and component of vehicle 10 may be interconnected via wired or wireless connections.
[0064] The propulsion system 110 includes components that provide powered motion for the vehicle 10. In one embodiment, the propulsion system 110 includes an engine 111, a transmission 112, an energy source 113, and wheels 114. The engine 111 can be an internal combustion engine, an electric motor, an air compression engine, or another combination of engines, such as a hybrid engine consisting of a gasoline engine and an electric motor, or a hybrid engine consisting of an internal combustion engine and an air compression engine. The engine 111 converts the energy source 113 into mechanical energy.
[0065] Examples of energy source 113 include gasoline, diesel, other petroleum-based fuels, propane, other compressed gas-based fuels, ethanol, solar panels, batteries, and other sources of electricity. Energy source 113 may also provide energy to other systems of vehicle 10.
[0066] The transmission 112 can transmit mechanical power from the engine 111 to the wheels 114. The transmission 112 may include a gearbox, a differential, and a drive shaft. In one embodiment, the transmission 112 may also include other components, such as a clutch. The drive shaft may include one or more shafts that can be coupled to one or more wheels 114.
[0067] The sensor system 120 may include several sensors that sense information about the environment surrounding the vehicle 10. For example, the sensor system 120 includes a positioning system 121 (the positioning system may be a global positioning system (GPS), a BeiDou system, or other positioning systems), an inertial measurement unit (IMU) 122, a radar 123, a lidar 124, and a camera 125. Sensor data from one or more of these sensors may be used to detect objects and their corresponding characteristics (position, shape, direction, speed, etc.). This detection and recognition is a key function for the safe operation of the autonomous driving of the vehicle 10.
[0068] Positioning system 121 may be used to estimate the geographic location of vehicle 10. IMU 122 is used to sense changes in position and orientation of vehicle 10 based on inertial acceleration. In one embodiment, IMU 122 may be a combination of an accelerometer and a gyroscope.
[0069] Radar 123 may utilize radio signals to sense objects within the surrounding environment of vehicle 10. In some embodiments, in addition to sensing objects, radar 123 may also be used to sense the speed and / or heading of an object.
[0070] LiDAR 124 may utilize laser light to sense objects in the environment in which vehicle 10 is located. In some embodiments, LiDAR 124 may include one or more laser sources, a laser scanner, and one or more detectors, among other system components.
[0071] In some embodiments of the present application, the lidar 124 may be used to obtain point cloud data of the vehicle's driving environment.
[0072] The camera 125 may be used to capture images of the environment surrounding the vehicle 10, as well as multiple images within the vehicle cockpit. In some embodiments of the present application, the images of the environment surrounding the vehicle 10 include, but are not limited to, one or more images of unoccupied parking spaces, occupied parking spaces, vehicles, people, obstacles, and the like.
[0073] The camera 125 may be a still camera or a video camera. For example, the camera 125 may be one or more of a long-range camera, a medium-range camera, a short-range camera, a fisheye camera, etc. The present application does not impose any restrictions on the type of the camera 125.
[0074] The control system 130 may control the operation of the vehicle 10 and its components. The control system 130 may include various elements, such as a steering system 131 , a throttle 132 , a brake unit 133 , and an intelligent driving system 134 .
[0075] The steering system 131 is operable to adjust the forward direction of the vehicle 10. For example, in one embodiment, it may be a steering wheel system.
[0076] The throttle 132 is used to control the operating speed of the engine 111 and, in turn, the speed of the vehicle 10 .
[0077] The brake unit 133 is used to control the vehicle 10 to decelerate.
[0078] In some embodiments of the present application, as shown in FIG3 , the intelligent driving system 134 includes a static environment perception system, a dynamic perception system, and a planning and control system. The static and dynamic environment perception systems can construct a model of the current road environment based on road environment data acquired by the sensor system 120, including, for example, static road structure information and dynamic target information. The planning and control system can implement intelligent driving of the vehicle based on the model of the current road environment.
[0079] The static environment perception system includes a road edge detection device (hereinafter referred to as the road edge detection device), a lane line detection device, and a traffic light detection device. The road edge detection device can be used to output the location information of road edge points, which is used by the static environment perception system to determine road structure information.
[0080] In some embodiments of the present application, the roadside detection device has image segmentation and edge point verification functions. In some implementations, the roadside detection device can implement the image segmentation and edge point verification functions using an image segmentation network and an edge point network, respectively. Specifically, the image segmentation network can output a BEV segmentation map based on point cloud data collected by the lidar 124, and the edge point network can verify whether pixels in the BEV segmentation map are roadside feature points and verify their position offset.
[0081] Vehicle 10 interacts with external sensors, other vehicles, other computer systems, or users via peripheral devices 140. Peripheral devices 140 may include a wireless communication system 141, an onboard computer 142, a microphone 143, and / or a speaker 144. In some embodiments, peripheral devices 140 provide a means for a user of vehicle 10 to interact with user interface 170.
[0082] The wireless communication system 141 may communicate wirelessly with one or more devices directly or via a communication network.
[0083] Power source 150 may provide power to various components of vehicle 10 .
[0084] Some or all functions of the vehicle 10 are controlled by a computer system 160. The computer system 160 may include at least one processor 161 that executes instructions 1621 stored, for example, in a data storage device 162. The computer system 160 may also be a plurality of computing devices that control individual components or subsystems of the vehicle 10 in a distributed manner.
[0085] Processor 161 can be any conventional processor, such as a CPU or ASIC or other hardware-based processor's dedicated equipment. Although Fig. 3 functionally illustrates a processor, data storage device and other elements in the same physical housing, those skilled in the art will appreciate that the processor, computer system, or data storage device can actually include multiple processors, computer systems, or data storage devices stored in the same physical housing, or can include multiple processors, computer systems, or data storage devices stored in different physical housings. For example, the data storage device can be a hard drive, or can be located at other storage media different from the physical housing. Therefore, reference to a processor or computer system will be understood to include reference to a set of processors or computer systems or data storage devices that can operate in parallel, or reference to a set of processors or computer systems or data storage devices that can not operate in parallel. Different from using a single processor to perform the steps described herein, each of some components such as steering assembly and deceleration assembly can have its own processor, and the processor only performs the calculation related to the function of the component.
[0086] In various aspects described herein, the processor can be located remotely from the vehicle and in wireless communication with the vehicle. In other aspects, some of the processes described herein are performed on a processor disposed within the vehicle while others are performed by a remote processor, including taking the necessary steps to perform a single maneuver.
[0087] In some embodiments, data storage device 162 may include instructions 1621 (e.g., program logic) that may be executed by processor 161 to perform various functions of vehicle 10, including those described above. Data storage device 162 may also include additional instructions, including instructions for sending data to, receiving data from, interacting with, and / or controlling one or more of travel system 110, sensor system 120, control system 130, and peripherals 140.
[0088] In addition to the instructions 1621, the data storage device 162 may also store data such as road maps, route information, the vehicle's location, direction, speed, and other such vehicle data, as well as other information. This information may be used by the vehicle 10 and the computer system 160 during operation of the vehicle 10 in autonomous, semi-autonomous, and / or manual modes.
[0089] User interface 170 is used to provide information to or receive information from a user of vehicle 10. Optionally, user interface 170 may interact with one or more input / output devices within the set of peripherals 140, such as one or more of wireless communication system 141, onboard computer 142, microphone 143, and speaker 144.
[0090] Computer system 160 may control vehicle 10 based on information acquired from various subsystems (eg, travel system 110 , sensor system 120 , and control system 130 ) and information received from user interface 170 .
[0091] Alternatively, one or more of the above components may be installed or associated separately from the vehicle 10. For example, the data storage device 162 may be partially or completely separate from the vehicle 10. The above components may be coupled together for communication via wired and / or wireless means.
[0092] Optionally, the above components are only an example. In actual applications, the components in the above modules may be added or deleted according to actual needs. Figure 2 should not be understood as a limitation to the embodiments of the present application.
[0093] The vehicle 10 may be a car, truck, motorcycle, bus, boat, airplane, helicopter, lawn mower, recreational vehicle, amusement park vehicle, construction equipment, tram, golf cart, train, and cart, etc., and the embodiments of the present application do not impose any particular limitation.
[0094] The road edge detection method provided in the embodiment of the present application can be applied to the road edge detection device in the static environment perception system as shown in Figure 3. As shown in Figure 4, the road edge detection device can segment the multi-frame point cloud data based on the time series of the vehicle driving environment through the image segmentation network to determine the segmented image including the road edge. Then, based on the segmented image based on the vehicle positioning information, the cumulative static image (or target grid image) is determined to determine the clustering information of the road edge. Based on the clustering information of the road edge and the edge point network, the cumulative road edge points (or initial feature points) are determined. Finally, the accumulated road edge points are clustered to obtain edge segments, and the edge segments are filtered, sorted, sampled, and other processing is performed to obtain ordered target road edge points (or target key points).
[0095] The following describes the road edge detection method provided by the embodiment of the present application, taking the use of a road edge detection device to detect the road edge of a vehicle as an example. FIG5 is a flow chart of a road edge detection method according to the embodiment of the present application. As shown in FIG5 , the method may include the following steps S101-S104:
[0096] S101. A roadside detection device obtains n frames of point cloud data of a vehicle driving environment.
[0097] In an embodiment of the present application, the roadside detection device obtains n frames of point cloud data corresponding to n moments, where n is an integer greater than 1. Each frame of point cloud data in the n frames of point cloud data is composed of multiple scanning points obtained by scanning the vehicle's driving environment, and each scanning point includes the three-dimensional coordinate information of the scanning point. The point cloud data can be used to characterize the vehicle's driving environment. Among them, the point cloud data at least includes point cloud data of the road edge points, so as to determine the road edge in the vehicle's driving environment, that is, the boundary of the vehicle's drivable area. Exemplarily, the road edge may include: shoulders, guardrails, green plants (such as green belts, roadside trees, etc.).
[0098] In some embodiments, the curb detection device can acquire point cloud data via a sensor system. For example, the curb detection device can acquire point cloud data via a laser radar (LiDAR). LiDAR can directly and omnidirectionally scan objects in the vehicle's driving environment without contacting them, obtaining information such as the three-dimensional coordinates of the object's surface to form point cloud data.
[0099] S102 : The curb detection device segments each frame of n frames of point cloud data to obtain n frames of first images.
[0100] Specifically, because the vehicle driving environment typically includes not only road edges but also road surfaces and dynamic objects, the point cloud data acquired by the road edge detection device may also include point cloud data of non-road edges, such as road surfaces and dynamic objects. To detect road edges, the road edge detection device can segment each frame of n frames of point cloud data, classify the road elements represented by the point cloud data, and generate a segmented image, i.e., a first image. The image information of this first image includes a first value corresponding to each pixel, which indicates the category of the point cloud corresponding to each pixel.
[0101] In some embodiments, the curb detection device can segment each frame of point cloud data in n frames of point cloud data separately through an image segmentation network. Specifically, the curb detection device can input each frame of point cloud data in n frames of point cloud data into the image segmentation network to obtain a corresponding first image. In order to facilitate accurate detection of the road edge, the first image output by the image segmentation network is under BEV. Each pixel in the first image corresponds to a first value, which represents the category of the corresponding point cloud under BEV, for example, the categories include road edge and non-road edge. In this way, not only can the processing efficiency and accuracy of the curb detection device for segmenting point cloud data be improved, but also the breadth of application scenarios of the curb detection device for detecting road edges can be improved.
[0102] In some embodiments, the image segmentation network is a convolutional neural network. Specifically, the image segmentation network can employ a fully convolutional neural network (FCN), UNet, PSPNet, or UNet++. By training the image segmentation network with sample data including road edges, the network can be equipped with the ability to output a BEV segmentation map based on point cloud data, thereby improving the network's generalization capabilities.
[0103] In an exemplary embodiment, when the point cloud types include road edges and non-road edges, the first value may be 0 or 1. In the first image, the point cloud category corresponding to the pixel corresponding to the first value of 1 is road edges, and the point cloud category corresponding to the pixel corresponding to the first value of 0 in the first image is non-road edges.
[0104] In another example, when the point cloud types include: road edges and non-road edges, and the road edge types specifically include shoulders, guardrails, and green plants, the first value can also be one of 0, 1, 2, and 3. In the first image, the point cloud category corresponding to the pixel corresponding to the first value of 0 is road surface, the point cloud category corresponding to the pixel corresponding to the first value of 1 is shoulder in the road edge, the point cloud category corresponding to the pixel corresponding to the first value of 2 is guardrail in the road edge, and the point cloud category corresponding to the pixel corresponding to the first value of 3 is green plants in the road edge. It should be noted that when each frame of point cloud data is segmented separately, the segmentation category can be set according to actual needs.
[0105] Figure 6 is a schematic diagram of a first image according to an embodiment of the present application. As shown in Figure 6 , the first image includes road elements such as road edges, road surfaces, and greenery. For example, the point cloud category corresponding to pixels in display area 501 of the first image is road edge, the point cloud category corresponding to pixels in display area 502 of the first image is road surface, and the point cloud category corresponding to pixels in display area 503 of the first image is greenery. This shows that the first image can effectively indicate different point cloud categories based on the first values corresponding to each pixel, facilitating the road edge detection device to further detect the road edge.
[0106] S103. The roadside detection device obtains a target grid map based on n frames of first images.
[0107] In an embodiment of the present application, the roadside detection device may sequentially map n frames of a first image onto a grid map, and update the second value corresponding to each grid in the grid map based on the first value corresponding to each pixel in the first image, thereby obtaining a target grid map. The target grid map includes a plurality of grids corresponding one-to-one to each pixel in the first image, each grid corresponding to a second value representing the probability that the pixel corresponding to the grid belongs to a roadside.
[0108] In some embodiments, as shown in Figure 6, a single-frame first image may have pixels that are dense near the vehicle and sparse far away, and may also be obscured, resulting in the roadside detection device being unable to obtain a complete and accurate first image. Figure 7 is a schematic diagram of a cumulative first image shown in an embodiment of the present application. As shown in Figure 7, the image is accumulated from three frames of first images. It can be seen that the pixel density in the cumulative first image shown in Figure 7 is denser, the image is more complete, and it can more realistically represent the vehicle's driving environment, thereby facilitating more accurate determination of the roadside edge.
[0109] Therefore, in an embodiment of the present application, the curb detection device can accumulate n frames of first image data in chronological order to obtain a cumulative grid image, namely, a target grid image. This can increase the density and completeness of the pixels in the first image, thereby improving the confidence level of the target grid image determined from the n frames of first image data in depicting the vehicle's driving environment, thereby accurately describing the vehicle's actual driving environment and improving the accuracy of the curb detection device in detecting road edges. Specifically, the implementation method for the curb detection device to obtain the target grid image based on n frames of first image data may include:
[0110] First, the curb detection device creates an initial grid map.
[0111] Specifically, the curb detection device creates an initial grid map, in which grids in the initial grid map correspond one-to-one to pixels in the first image. Each grid in the initial grid map is assigned a corresponding initial value, i.e., a third value. For example, the third value corresponding to each grid in the initial grid map can be set to 0. For another example, the third value corresponding to each grid in the initial grid map can be set to 0.5.
[0112] Then, the curb detection device uses the n frames of first images to update the third value corresponding to each grid in the initial grid map to obtain a target grid map.
[0113] Specifically, since the n frames of point cloud data are acquired at n moments in time, the n frames of first images also correspond one-to-one to the n moments in time. The curb detection device can sequentially update the third value corresponding to the initial grid image using the first image corresponding to each moment in time, in the order of the n moments, to obtain the target grid image.
[0114] In some embodiments, the above-mentioned roadside detection device updates the third value corresponding to the initial grid map, and the process of obtaining the target grid map is a dynamic update process, that is, the roadside detection device updates the third value corresponding to each grid in the initial grid map in sequence according to n frames of first images.
[0115] In some embodiments, the roadside detection device may repeatedly perform the following process to update the third value corresponding to the initial grid map. Specifically, the roadside detection device uses the i-th first image among the n-frame first images to update the grid map corresponding to the i-1th time point to obtain the grid map corresponding to the i-th time point, and so on until the grid map corresponding to the n-th time point is obtained. Here, the value of i is [1, n]. When i is 1, the grid map corresponding to the i-1th time point is the initial grid map, and the target grid map is the grid map corresponding to the n-th time point.
[0116] In one implementation, as shown in FIG8 , the roadside detection device uses the i-th first image among n first image frames to update the grid map corresponding to the i-1th time point to obtain the grid map corresponding to the i-th time point. This includes: the roadside detection device converts the grid map corresponding to the i-1th time point to the vehicle coordinate system at the i-th time point through an affine transformation. The roadside detection device then updates the values corresponding to each grid in the affine-transformed grid map corresponding to the i-1th time point based on the first values corresponding to each pixel in the i-th first image to obtain the grid map corresponding to the i-th time point.
[0117] For example, a method in which a roadside detection device updates the third value corresponding to an initial raster image based on three first image frames is used as an example. The three first image frames are first image 1, first image 2, and first image 3, corresponding to time t1, time t2, and time t3, respectively, with t3 > t2 > t1. Specifically, the method in which the roadside detection device updates the third value corresponding to the initial raster image based on the three first image frames to obtain a target raster image includes steps S201-S206:
[0118] S201. The roadside detection device converts the initial grid image to the vehicle coordinate system at time t1.
[0119] Specifically, the curb detection device can translate and rotate the initial grid image according to the positioning information of the vehicle's own vehicle coordinate system at time t1 through affine transformation, so as to convert the initial grid image to the vehicle's own vehicle coordinate system at time t1. The own vehicle coordinate system is a coordinate system established with the current moment (e.g., moment t1) of the vehicle in the time dimension as the origin and the position of the vehicle at the current moment (e.g., moment t1) as the origin in space, that is, a coordinate system established with the vehicle at this moment and place as the origin. The conversion of the grid image can be achieved through the own vehicle coordinate system. The positioning information of the vehicle's own vehicle coordinate system can include position coordinates x, y, z for translation transformation, and quaternions for rotation transformation. In this way, the curb detection device can accurately convert the initial grid image to the vehicle's own vehicle coordinate system at time t1 according to the positioning information of the own vehicle coordinate system.
[0120] S202. The curb detection device updates the third value corresponding to each grid in the initial grid map according to the first value corresponding to each pixel point in the first image 1, and obtains the grid map corresponding to the time t1, which is the grid map after the curb detection device updates the initial grid map according to the first image 1.
[0121] S203 . The roadside detection device converts the grid image corresponding to time t1 to the vehicle coordinate system at time t2 .
[0122] S204. The roadside detection device updates the numerical value corresponding to each grid in the grid map corresponding to the time t1 according to the first value corresponding to each pixel point in the first image 2, and obtains the grid map corresponding to the time t2, which is the grid map after the roadside detection device updates the grid map corresponding to the time t1 according to the first image 2.
[0123] S205 . The roadside detection device converts the grid image corresponding to time t2 to the vehicle's own vehicle coordinate system at time t3 .
[0124] S206: The curb detection device updates the values corresponding to each grid in the grid map corresponding to time t2 based on the first values corresponding to each pixel in first image 3, thereby obtaining a target grid map corresponding to time t3 (i.e., the target grid map). This target grid map is the grid map updated by the curb detection device based on the first image 3 from the grid map corresponding to time t2. The grid map corresponding to time t3 is also equivalent to the grid map updated by the curb detection device based on the first image 1, the first image 2, and the first image 3 from the initial grid map.
[0125] In some embodiments, in the above S202, S204 and S206, the curb detection device may update the numerical value corresponding to each grid in the grid image according to the first value corresponding to each pixel point of the first image based on the Bayes principle.
[0126] Specifically, in an exemplary embodiment, when the point cloud categories include road edges and non-road edges, in the initial grid image, for each grid, the road edge detection device can use p(s=1) to represent the probability that the grid is a road edge, and use p(s=0) to represent the probability that the grid is a non-road edge, where the sum of p(s=1) and p(s=0) is 1.
[0127] In some embodiments, the roadside detection device may use the ratio of p(s=1) to p(s=0) to represent the second value Odd(s) corresponding to the grid. Specifically, the expression of the second value Odd(s) is:
[0128]
[0129] According to the segmentation result z of the first image (that is, the first value corresponding to each pixel in the first image), the second value Odd(s) corresponding to the grid is updated. The updated second value Odd(s|z) is:
[0130]
[0131] Among them, according to the Bayesian formula, the expressions of p(s=1|z) and p(s=0|z) can be determined as follows:
[0132]
[0133]
[0134] Furthermore, the updated second value Odd(s|z) can also be expressed as:
[0135]
[0136] For ease of processing, we take the logarithm of both sides of the equation, that is, we use logOdd(s) to represent the second value corresponding to the grid. Then the updated second value logOdd(s|z) is:
[0137]
[0138] Among them, in the embodiments of this application, The result includes road edge A and non-road edge B, then for road edge A:
[0139]
[0140] For non-road edge B:
[0141]
[0142] Furthermore, in order to simplify the expression, we use S + Represents the updated second value corresponding to the grid, S - Represents the second value of the grid before the update, and the updated expression is:
[0143]
[0144] The roadside detection device can update the second value corresponding to the grid in the grid image according to the corresponding first value in the first image through the following expression.
[0145] S + =S - +A, or, S + =S - +B.
[0146] In another exemplary embodiment, when the point cloud categories include road edges and non-road edges, where road edges specifically include shoulders, guardrails, and green plants, in the initial grid map, for each grid, p(s=0) can be used to represent the probability that the grid is a non-road edge, p(s=1) can be used to represent the probability that the grid is a shoulder, p(s=2) can be used to represent the probability that the grid is a guardrail, and p(s=3) can be used to represent the probability that the grid is a green belt. The sum of p(s=0), p(s=1), p(s=2), and p(s=3) is 1.
[0147] In some embodiments, for each grid, the roadside detection device may use the sum of p(s=1), p(s=2), and p(s=3) to represent the probability p′(s=1) that the grid is a roadside, and use p(s=0) to represent the probability that the grid is not a roadside. The expression of the second value Odd(s) can then be:
[0148]
[0149] The road edge detection device can adopt the above embodiment. When the point cloud category includes road edges and non-road edges, the road edge detection device updates the values corresponding to each grid in the raster image according to the first image, and determines the updated second value S corresponding to each grid in the raster image. + , which is used to represent the probability that the pixel corresponding to the grid belongs to the road edge.
[0150] In some embodiments, we continue to take the case where the point cloud categories include road edges and non-road edges, where the road edges specifically include shoulders, guardrails, and green plants as an example. Each grid in the target grid map can also correspond to multiple second values, and the multiple second values respectively represent the numerical values of the pixel points corresponding to the grid belonging to each point cloud type. For example, the second value a is used to represent the probability that the pixel point corresponding to the grid belongs to the shoulder, the second value b is used to represent the probability that the pixel point corresponding to the grid belongs to the guardrail, and the second value c is used to represent the probability that the pixel point corresponding to the grid belongs to the green plant. The road edge detection device can also update the multiple second values corresponding to each grid in the target grid map according to the first value corresponding to each pixel point of the first image.
[0151] For example, taking the update of the second value a by the curb detection device as an example, for each grid, the curb detection device can use p(s=1) to represent the probability that the grid is a shoulder, and use the sum of p(s=0), p(s=2), and p(s=3) to represent the probability p′(s=0) that the grid is a non-shoulder. Then, the expression of the second value a can be:
[0152]
[0153] The road edge detection device can adopt the above embodiment. When the point cloud category includes road edges and non-road edges, the road edge detection device updates the values corresponding to each grid in the raster image according to the first image, and determines the updated second value corresponding to each grid in the raster image. The method for updating the second value b and the second value c by the roadside detection device is similar to the method for updating the second value a, and will not be described in detail here.
[0154] In this way, the curb detection device can accurately and efficiently update the second value corresponding to each grid in the grid image according to the first image through the above method.
[0155] S104 , the curb detection device determines the target key point according to the first value corresponding to each pixel point in the n-frame first image and the second value corresponding to each grid in the target grid image.
[0156] Specifically, the road edge detection device can determine the pixel point corresponding to the grid whose probability value reaches the road edge threshold in the first image based on the first value corresponding to each pixel point in the n-frame first image and the second value corresponding to each grid in the target grid image. The pixel point is the road edge point, that is, the target key point. The target key point can be used to characterize the road edge.
[0157] In some embodiments, FIG9 is a schematic diagram of a principle for determining a target key point according to an embodiment of the present application, and FIG10 is a flow chart of a method for determining a target key point according to an embodiment of the present application. In conjunction with FIG9 and FIG10 , the above S104 can be specifically implemented by the following S1041-S1045:
[0158] S1041. The roadside detection device determines clustering information according to the second value corresponding to each grid in the target grid map.
[0159] Specifically, because the second value corresponding to a grid can be used to represent the probability that the pixel corresponding to that grid is a road edge, the road edge detection device can determine the grids whose corresponding pixels are road edges based on the second values corresponding to each grid in the target grid image, thereby obtaining clustering information for the road edge. In one implementation, the road edge clustering information includes the position information of the pixels in the first image, that is, the position information of the grids whose corresponding pixels are road edges in the target grid image. This facilitates the road edge detection device to determine the pixels in the first image based on this position information.
[0160] In one implementation, the second value range corresponding to the grid can be set to 0 to 1. The closer the second value corresponding to the grid is to 1, the higher the probability that the pixel corresponding to the grid is a road edge. The closer the second value corresponding to the grid is to 0, the lower the probability that the pixel corresponding to the grid is a road edge. Exemplarily, the road edge detection device can determine whether the pixel corresponding to the grid is a road edge based on a preset probability threshold, and further determine the clustering information of the road edge. Taking a probability threshold of 0.9 as an example, if the second value corresponding to the grid is equal to or greater than 0.9, it can be determined that the pixel corresponding to the grid is a road edge.
[0161] In another implementation, when a grid corresponds to multiple second values, the category of the point cloud corresponding to the pixel point corresponding to the grid can be characterized according to the largest second value therein. Continuing with the above embodiment, the grid corresponds to three second values, namely, second value a, second value b, and second value c. When the second value a is the largest, it represents that the pixel point corresponding to the grid belongs to the shoulder on the edge of the road; when the second value b is the largest, it represents that the pixel point corresponding to the grid belongs to the guardrail on the edge of the road; and when the second value c is the largest, it represents that the pixel point corresponding to the grid belongs to the green plant on the edge of the road. In this way, the clustering information can also include the category information of each pixel point, so as to further determine the category information of the target key point and improve the breadth of application of the target key point.
[0162] In some embodiments, the above S1041 can be implemented by the following S10411-S10413:
[0163] S10411. The curb detection device determines a binary image of the target grid image according to the second value corresponding to each grid in the target grid image.
[0164] The fourth value corresponds to the pixel points in the binary image whose second value in the target raster image satisfies the first condition, and the fifth value corresponds to the pixel points in the target raster image whose second value does not satisfy the first condition. The pixel points corresponding to the raster that satisfies the first condition are used to represent the road edge. The first condition may be that the second value corresponding to the raster is greater than or equal to a probability threshold, or may be that the second value corresponding to the raster is within a preset probability threshold.
[0165] For example, in a binary image, a pixel with a fourth value of 1 can represent a road edge point, and a pixel with a fifth value of 0 can represent a non-road edge point. The curb detection device can determine the value corresponding to the pixel point in the binary image corresponding to each grid in the target grid image based on the second value corresponding to each grid in the target grid image and a preset probability threshold. For example, taking the probability threshold as 0.8 as an example, if the second value corresponding to the grid is equal to or greater than 0.8, the value corresponding to the pixel point in the binary image corresponding to the grid is set to 1, that is, the fourth value; if the second value corresponding to the grid is less than 0.8, the first value corresponding to the pixel point in the binary image corresponding to the grid is set to 0, that is, the fifth value. In this way, the curb detection device can convert the target grid image into a binary image.
[0166] S10412. The road edge detection device groups adjacent pixel points whose first value is the fourth value into a connected domain in the binary image to obtain multiple connected domains. The multiple connected domains correspond one-to-one to multiple different road edge segments.
[0167] Specifically, the road edge detection device regards the first values in the binary image as the fourth value (for example, the first values are all 1), and the adjacent pixel points as a connected domain, so as to determine the clustering information of the road edge.
[0168] S10413: The roadside detection device determines clustering information based on the multiple connected domains, wherein the clustering information includes the position information of each pixel point in the connected domain in the binary image, that is, the position information of multiple feature points corresponding to different roadside segments.
[0169] In this way, through the above S10411-S10413, the roadside detection device determines the clustering information according to the second value corresponding to each grid in the target grid map.
[0170] S1042: The curb detection device determines an initial feature point based on a first value corresponding to each pixel point of each first image frame in n frames of the first image.
[0171] Specifically, the road edge detection device may determine, based on the segmentation results of the point cloud data and according to the first values corresponding to each pixel in each of the n frames of the first image, pixels corresponding to the road edge category as initial road edge points, i.e., initial feature points. The initial feature points include pixels in each frame of the first image whose first values indicate that the corresponding point cloud category is road edge.
[0172] In some embodiments, in order to improve the accuracy of the initial feature points, the road edge detection device can verify the pixel points corresponding to the road edge in each of the n frames of the first image, so as to obtain more accurate initial feature points.
[0173] Specifically, first, the curb detection device determines the first feature point based on the first value corresponding to each pixel point in each of the n frames of the first image. The first feature point is the pixel point corresponding to the point cloud category of the road edge in the first image. Then, the curb detection device verifies whether the first feature point is a road edge feature point and verifies the position offset, that is, the curb detection device judges the first feature point again to determine whether the first feature point is the road edge. And the curb detection device determines the position offset of the first feature point relative to the actual true position based on the position information of the first feature point and the prior knowledge of the offset, so as to realize the position offset verification of the first feature point. Among them, the prior knowledge of the offset can be determined by the curb detection device based on the sample data of the road edge and the true value of the position of the road edge.
[0174] In some embodiments, the roadside detection device can verify whether the first feature point in the first image is a road edge feature point and verify the position offset through the edge point network. Specifically, the roadside detection device can input the first feature point into the edge point network to obtain the first feature point that passes the binary classification verification, and the position offset of the first feature point after passing the binary classification verification. The roadside detection device can further obtain an initial feature point with more accurate position information based on the position information (such as x, y coordinate values) and position offset (such as the offset of the x coordinate value and the offset of the y coordinate value) of the first feature point extracted from the first image. In this way, not only can the processing efficiency and accuracy of the roadside detection device in performing the road edge binary classification verification and position offset verification on the first feature point in the first image be improved, but also the breadth of application scenarios of the roadside detection device in detecting road edges can be improved.
[0175] In some embodiments, the edge point network may be a convolutional neural network. The edge point network is trained using sample data including road edges and true position data of the road edges, so that the edge point network is capable of verifying whether a first feature point in a first image is a road edge feature point and verifying its position offset, and outputting the first feature point that passes the verification and the position offset of the first feature point.
[0176] It should be noted that the curb detection device may execute the above-mentioned S1041 and S1042 simultaneously, or may execute S1041 first and then S1042, or may execute S1042 first and then S1041.
[0177] S1043: The road edge detection device determines a plurality of different road edge segments based on the initial feature points and the clustering information, wherein each road edge segment corresponds to a plurality of feature points.
[0178] In the embodiment of the present application, the curb detection device can cluster the initial feature points based on the obtained clustering information. That is, based on the clustering information, the initial feature points belonging to the same connected area are grouped as a set (or road edge segment). The initial feature points within each road edge segment can be used as target key points, and all road edge segments can collectively represent the road edge. This facilitates the curb detection device to accurately determine the location of the road edge, thereby further improving the accuracy of the curb detection device in detecting the road edge.
[0179] In some embodiments, in order to improve the accuracy of the initial feature points determined by the roadside detection device. Before S1043, the roadside detection device can also filter the initial feature points according to the second preset rule. As shown in Figure 9, after determining the initial feature points, the roadside detection device can also filter the initial feature points according to the first filtering rule (i.e., the second preset rule) to remove invalid initial feature points, so that the feature points corresponding to each road edge segment in the road edge segment meet the second preset rule, so as to further improve the accuracy of the roadside detection device in determining the target key points. Specifically, the second preset rule may include at least one of the following: the second value corresponding to the grid corresponding to the initial feature point is greater than the second threshold, the position of the initial feature point is within the first preset range, or the height difference between the feature point and other initial feature points in the preset neighborhood of the initial feature point is greater than the third threshold.
[0180] In one example, the roadside detection device can remove the initial feature points corresponding to the grid whose second value is less than the probability threshold (i.e., the second threshold) based on the second value corresponding to the grid corresponding to the initial feature point and a preset second threshold, that is, remove the initial feature points with a lower probability of being the road edge. In the case where the closer the second value corresponding to the grid is to 1, the greater the possibility that the initial feature point corresponding to the grid is the road edge, the second threshold can be preset to 0.9, for example. The larger the preset second threshold, the higher the probability that the initial feature point after filtering is the road edge, but there may be a situation where the number of initial feature points after filtering is small. Therefore, the specific value of the second threshold can be preset according to actual needs.
[0181] In another example, the curb detection device may further remove initial feature points located outside the first preset range based on the first preset range and the position information of the initial feature points. The first preset range may, for example, be a user-preset field of view (FOV) range, i.e., a FOV range that meets actual application requirements. By removing initial feature points outside the FOV range, the curb detection device not only reduces the amount of initial feature point data but also improves the accuracy of the curb detection device in determining the initial feature points.
[0182] In another example, the roadside detection device can also remove other initial feature points whose height differences are less than a height difference threshold (i.e., a third threshold) based on the height difference between the initial feature point and other initial feature points in the preset neighborhood of the initial feature point, that is, remove initial feature points that may be road surfaces. Specifically, the roadside detection device obtains all other initial feature points within the preset neighborhood of the initial feature point. Then, the roadside detection device determines the height difference between each other initial feature point and the initial feature point. Finally, the roadside detection device removes other initial feature points whose height differences are less than the third threshold. Among them, the smaller the preset third threshold, the higher the probability that the filtered initial feature point is the edge of the road. Specifically, the third threshold can be preset according to actual needs.
[0183] In some embodiments, as shown in FIG11 , FIG11 is a schematic diagram of a roadside detection device filtering initial feature points according to an embodiment of the present application. As shown in FIG11 (1), the diagram includes 60 initial feature points. After the roadside detection device filters the initial feature points according to the first preset rule, as shown in FIG11 (2), the diagram includes 36 filtered initial feature points. The probability that the filtered initial feature points are road edges is higher, thereby improving the accuracy of the roadside detection device in determining the initial feature points.
[0184] In some embodiments, the curb detection device may further filter the road edge segments according to a second filtering rule (i.e., a third preset rule), removing invalid road edge segments and feature points (i.e., initial feature points) in the road edge segments to obtain road edge segments that meet the third preset rule, thereby further improving the accuracy of the curb detection device in determining road edge segments. Specifically, the third preset rule may include: the number of feature points corresponding to the road edge segment is greater than a fourth threshold.
[0185] In one example, the curb detection device can filter road edge segments based on the number of feature points they include, removing road edge segments where the number of feature points corresponding to the road edge segments is less than a fourth threshold (e.g., 10). Since road edge segments with fewer feature points generally have a lower probability of being road edges, removing road edge segments with fewer feature points by the curb detection device can improve the accuracy of the curb detection device in determining road edge segments.
[0186] In some embodiments, the third preset rule may further include at least one of the second preset rules. The specific implementation method can refer to the second preset rule described above and is not further described here. In this way, the initial feature points in the road edge segment can be filtered, thereby improving the accuracy of the road edge detection device in determining the road edge segment.
[0187] In some embodiments, as shown in FIG12, FIG12 is a schematic diagram of a road edge detection device according to an embodiment of the present application filtering road edge segments. As shown in FIG12 (1), the figure includes 5 road edge segments and 60 initial feature points. After the road edge detection device filters the initial feature points according to the second preset rule, as shown in FIG12 (2), the figure includes 2 road edge segments and 30 initial feature points. The probability that the filtered road edge segments are road edges is higher, thereby improving the accuracy of the road edge detection device in determining the road edge segments.
[0188] S1044: The road edge detection device sorts the feature points in each of the multiple road edge segments.
[0189] In some embodiments, to enable target key points to more accurately represent the actual roadside, the roadside detection device may further sort the feature points in each of a plurality of different roadside segments to obtain ordered target key points. Specifically, the roadside detection device determines a roadside segment based on the feature points and clustering information. The roadside segment includes unordered feature points clustered according to the clustering information. The roadside detection device may sort the unordered feature points in the roadside segment according to a preset sorting rule to obtain the target key points.
[0190] In some embodiments, the preset sorting rule adopted by the roadside detection device may be: the roadside detection device sorts the feature points based on the vehicle's forward direction and the angle of the line connecting the vehicle and the feature point (hereinafter referred to as the yaw angle of the feature point), according to the rule of monotonous change of the yaw angle. Specifically, the roadside detection device may determine the yaw angle of the feature point in the road edge segment based on the position information of the feature point in the road edge segment and the position information of the vehicle. As shown in FIG13 , the yaw angle (θ) is the angle of the line connecting the vehicle and the feature point in the road edge segment. The angle with the vehicle's forward direction (positive x direction). The roadside detection device can sort the feature points in the roadside segment according to the yaw angle of the feature points in the roadside segment according to the rule of monotonically changing yaw angle, that is, in a monotonically increasing or monotonically decreasing order, to obtain the target key points.
[0191] In one implementation, the roadside detection device can determine the yaw angle of the feature point by using the atan2(y, x) function. The atan2(y, x) function can be used to determine the yaw angle of the feature point with the origin (i.e., the vehicle) as the starting point and pointing to (x, y).
[0192] The angle between the ray of the feature point (i.e., the angle between the positive direction of the x-axis (i.e., the vehicle's forward direction) on the coordinate plane. Specifically, the expression of the atan2(y, x) function is:
[0193]
[0194] The above (x, y) represents the coordinates of the feature point in a coordinate system with the vehicle as the origin and the vehicle's forward direction as the positive x-axis. For example, the curb detection device can perform a coordinate system transformation on the coordinates of the feature point based on the location information of the feature point to obtain the (x, y) of the feature point. In this way, the curb detection device can determine the yaw angle of the feature point using the atan2(y, x) function, thereby improving the efficiency and accuracy of determining the yaw angle of the feature point.
[0195] S1045. The road edge detection device samples the sorted feature points in each of the multiple different road edge segments to obtain target key points.
[0196] In some practical application scenarios, since the sorted feature points in each road edge segment are obtained by the road edge detection device performing road edge detection processing based on multi-frame point cloud data, there will be a large number of feature points, resulting in a large amount of data for the target key points. Therefore, in order to reduce the amount of data for the target key points and improve the efficiency of subsequent processing of the target key points. In some embodiments, as shown in Figure 9, after the road edge detection device sorts the initial feature points in the road edge segment according to a preset sorting rule, the method further includes: the road edge detection device samples the sorted initial feature points according to the sorting rule (i.e., the first preset rule), extracts feature points according to the first preset rule, and obtains the target key points. Among them, the first preset rule includes at least one of the following: when multiple feature points are collinear, extracts feature points at both ends of the line segment; extracts feature points whose distance from the vehicle is less than a first threshold.
[0197] In one example, the roadside detection device can sample feature points based on the collinearity of the sorted feature points in each roadside segment. Specifically, the roadside detection device first determines the collinearity of the feature points based on the position information of the feature points. In the case where multiple feature points are collinear (i.e., in the same straight line segment), the feature points at both ends of the straight line segment are connected, which can represent the roadside represented by the multiple feature points. Therefore, the roadside detection device can extract the feature points at both ends of the straight line segment as the sampled feature points. In this way, the roadside detection device can reduce the amount of data of the target key points without losing the roadside features.
[0198] In another example, the curb detection device can sample feature points based on the distance between the sorted feature points and the vehicle in each roadside segment. In one implementation, the curb detection device can sequentially determine the distance between the feature points and the vehicle in sorted order, retaining the feature points with the smallest distance to the vehicle—that is, the feature points closest to the vehicle, potentially posing a higher collision risk—as the sampled feature points. In this way, the curb detection device can reduce the amount of data collected for target key points while simultaneously identifying them as posing a collision risk.
[0199] In another implementation, the roadside detection device can also determine the feature point with the smallest distance from the vehicle based on the angle between the line connecting the feature point and the next feature point in each roadside segment and the line connecting the feature point and the origin of the vehicle's own coordinate system, as the feature point after sampling. As shown in Figure 14, the current feature point is feature point 1, and according to the sorting order, the next sampling point is feature point 2 or feature point 3. The line connecting feature point 1 and feature point 2 The line connecting feature point 1 and the origin of the vehicle's own coordinate system The angle between them is β. The line connecting feature point 1 and feature point 3 The line connecting feature point 1 and the origin of the vehicle's own coordinate system The angle between them is α, and β is less than α, which means that feature point 2 is closer to the vehicle than feature point 3, that is, feature point 2 is retained as the feature point after sampling, that is, the target key point.
[0200] In some embodiments, FIG15 is a schematic diagram of a target key point obtained after sampling shown in an embodiment of the present application. As shown in FIG15 , the roadside detection device samples the feature points sorted as shown in FIG15 (1) to obtain the target key points shown in FIG15 (2). It can be seen that the number of target key points obtained after sampling by the roadside detection device is less than the number of target key points before sampling, and the amount of data of the target key points is effectively reduced. In addition, the target key point sample obtained after sampling can effectively characterize the characteristics of the road edge, ensuring the accuracy of the road edge detection device in detecting the road edge.
[0201] In some embodiments, when the point cloud categories include road edges and non-road edges, where road edges specifically include multiple categories, such as shoulders, guardrails, and greenery, the road edge detection device can also determine the specific category information of the road edge represented by the target key point based on the clustering information determined in S1041. This facilitates processing based on the specific category information of the target key point, thereby increasing the applicability of the target key point determined by the road edge detection device.
[0202] It is understandable that, in order to realize the above functions, the above-mentioned curb detection device includes hardware structures and / or software modules corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0203] In the embodiment of the present application, the functional modules of the roadside detection device can be grouped according to the above-mentioned method example. For example, each functional module can be grouped according to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the grouping of modules in the embodiment of the present application is schematic and is only a logical functional grouping. In actual implementation, there may be other grouping methods.
[0204] Figure 16 is a schematic diagram of the structure of a curb detection device 200 according to an embodiment of the present application. This curb detection device 200 can be used to implement the functions of the curb detection device in the above-described method embodiment, thereby also achieving the beneficial effects of the above-described method embodiment. In the embodiment of the present application, the curb detection device 200 includes: an acquisition module 201 and a processing module 202.
[0205] The acquisition module 201 is configured to acquire n frames of point cloud data of the vehicle driving environment, wherein the n frames of point cloud data at least include point cloud data of a road edge, where the road edge is the boundary of a drivable area in the driving environment, and n is an integer greater than 1.
[0206] A processing module 202 is configured to segment each frame of the n frames of point cloud data to obtain n frames of first images, wherein a first value corresponding to each pixel in the first image is used to indicate a category of the corresponding point cloud, and the category includes at least a road edge;
[0207] The processing module 202 is further configured to obtain a target grid map based on the n frames of the first image, wherein the target grid map includes a plurality of grids corresponding to each pixel in the first image, and the second value corresponding to the grid is used to represent the probability that the pixel corresponding to the grid is a road edge;
[0208] The processing module 202 is further configured to determine target key points based on first values corresponding to each pixel in the n frames of the first image and second values corresponding to each grid in the target grid image, where the target key points are used to represent road edges.
[0209] An embodiment of the present application also provides an intelligent driving system, which may include: the above-mentioned roadside detection device 200.
[0210] An embodiment of the present application further provides an electronic device, which may include: a display screen, a memory, and one or more processors. The display screen, memory, and processor are coupled. The memory is used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device can perform the various functions or steps performed by the curb detection device in the above-mentioned method embodiment. Of course, the electronic device includes but is not limited to the above-mentioned display screen, memory, and one or more processors. For example, the structure of the electronic device can refer to the structure of the electronic device shown in Figure 3.
[0211] The aforementioned memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM), or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory can be independent and connected to the processor via a communication line. The memory can also be integrated with the processor.
[0212] The embodiment of the present application also provides a chip system, which can be applied to the electronic device in the aforementioned embodiment. As shown in Figure 17, the chip system includes at least one processor 301 and at least one interface circuit 302. The processor 301 can be the processor in the above-mentioned electronic device. The processor 301 and the interface circuit 302 can be interconnected through a line. The processor 301 can receive and execute computer instructions from the memory of the above-mentioned electronic device through the interface circuit 302. When the computer instructions are executed by the processor 301, the electronic device can execute the various steps performed by the curb detection device in the above-mentioned embodiment. Of course, the chip system can also include other discrete components, which is not specifically limited in the embodiment of the present application.
[0213] An embodiment of the present application also provides a computer-readable storage medium for storing computer instructions for running the above-mentioned curb detection device.
[0214] An embodiment of the present application also provides a computer program product, including computer instructions for running the above-mentioned curb detection device.
[0215] Among them, the electronic device, chip system, computer storage medium or computer program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0216] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0217] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0218] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0219] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0220] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0221] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A road edge detection method, It is characterized in that include: Acquire n frames of point cloud data of a vehicle driving environment, wherein the n frames of point cloud data at least include point cloud data of a road edge, wherein the road edge is a boundary of a drivable area in the driving environment, and n is an integer greater than 1; Segmenting each frame of the n frames of point cloud data to obtain n frames of first images, wherein a first value corresponding to each pixel point in the first image is used to indicate a category of a corresponding point cloud, and the category at least includes the road edge; Acquire a target grid map according to the n frames of the first image, wherein the target grid map includes a plurality of grids corresponding to each pixel point in the first image, and the second value corresponding to the grid is used to represent the probability that the pixel point corresponding to the grid belongs to the road edge; According to the first value corresponding to each pixel point in the n-frame first image and the second value corresponding to each grid in the target grid image, a target key point is determined, and the target key point is used to characterize the road edge.
2. The method according to claim 1, It is characterized in that The step of acquiring a target grid image according to the n frames of first images comprises: Creating an initial grid map, wherein each grid in the initial grid map is set with a third value; The third value of the initial grid map is updated using the n frames of first images to obtain the target grid map.
3. The method according to claim 2, It is characterized in that The n frames of point cloud data are point cloud data acquired at n moments, and the n frames of first images correspond one-to-one to the n moments; The step of updating the third value of the initial grid image by using the n-frame first image to obtain the target grid image comprises: Repeat the following process: using the i-th first image of the n-th first image, updating the grid image corresponding to the i-1-th moment to obtain the grid image corresponding to the i-th moment, until obtaining the grid image corresponding to the n-th moment; Among them, the value of i is [1, n]. When i is equal to 1, the grid image corresponding to the i-1th moment is the initial grid image; the target grid image is the grid image corresponding to the nth moment.
4. The method according to claim 3, It is characterized in that The step of using the i-th first image of the n-th first image frames to update the grid image corresponding to the i-1-th moment to obtain the grid image corresponding to the i-th moment includes: The grid image corresponding to the i-1th moment is converted to the vehicle coordinate system of the vehicle at the i-th moment through affine transformation; According to the first value corresponding to each pixel point in the i-th frame first image, the numerical value corresponding to each grid in the grid image corresponding to the i-1th moment after affine transformation is updated to obtain the grid image corresponding to the i-th moment.
5. The method according to any one of claims 1 to 4, It is characterized in that The target key points include: a plurality of feature points belonging to a plurality of different road edge segments; Determining a target key point according to a first value corresponding to each pixel point in the n-frame first image and a second value corresponding to each grid in the target grid image includes: Determining clustering information according to the second value corresponding to each grid in the target grid map, wherein the clustering information includes location information of a plurality of feature points corresponding to the different road edge segments; Determine initial feature points according to first values corresponding to pixels of each of the n frames of first images, wherein the initial feature points include pixels of which the first value in each of the first images indicates that the category of the corresponding point cloud is the road edge; A plurality of feature points corresponding to the plurality of different road edge segments are determined according to the initial feature points and the clustering information.
6. The method according to claim 5, It is characterized in that Determining clustering information according to the second value corresponding to each grid in the target grid map includes: According to the second value corresponding to each grid in the target grid map, a binary image of the target grid map is determined; the pixel points corresponding to the grids in the binary image whose second value in the target grid map satisfies the first condition correspond to the fourth value, and the pixel points corresponding to the grids in the target grid map whose second value does not satisfy the first condition correspond to the fifth value; the pixel points corresponding to the grids satisfying the first condition are used to represent the road edge; The adjacent pixel points corresponding to the fourth value in the binary image are grouped into a connected domain to obtain a plurality of connected domains, wherein the plurality of connected domains correspond one-to-one to the plurality of different road edge segments; The clustering information is determined according to the multiple connected domains.
7. The method according to claim 5 or 6, It is characterized in that The initial feature points are pixel points that have been verified by the edge point network; The edge point network has the function of checking whether the pixel point is a road edge feature point and checking the position offset; the edge point network is a convolutional neural network.
8. The method according to any one of claims 5 to 7, It is characterized in that The multiple feature points in the target key points belonging to the same road edge segment are arranged in a monotonically increasing or monotonically decreasing order according to the size of the yaw angle of the feature points; the yaw angle is the angle between the line connecting the vehicle and the feature point and the forward direction of the vehicle.
9. The method according to any one of claims 5 to 8, It is characterized in that Also includes: Sampling a plurality of feature points corresponding to each road segment in the plurality of different road edge segments according to a first preset rule; The first preset rule includes at least one of the following: when the multiple feature points are collinear, extracting feature points at both ends of a line segment; extracting feature points whose distance to the vehicle is less than a first threshold.
10. The method according to any one of claims 5 to 9, It is characterized in that The feature point corresponding to each road edge segment of the plurality of road edge segments satisfies a second preset rule; The second preset rule includes at least one of the following: the second value corresponding to the grid corresponding to the feature point is greater than the second threshold, the position of the feature point is within the first preset range, and the height difference between the feature point and other feature points in the preset neighborhood of the feature point is greater than the third threshold.
11. The method according to any one of claims 5 to 10, It is characterized in that The number of feature points corresponding to each road edge segment of the plurality of road edge segments is greater than a fourth threshold.
12. The method according to any one of claims 1 to 11, It is characterized in that The step of segmenting each frame of the n frames of point cloud data to obtain n frames of first images comprises: Each frame of point cloud data in the n frames of point cloud data is input into an image segmentation network to obtain the n frames of first images, and the image segmentation network is a convolutional neural network.
13. A road edge detection device, It is characterized in that include: Acquisition module and processing module; The acquisition module is used to acquire n frames of point cloud data of the vehicle driving environment, wherein the n frames of point cloud data at least include point cloud data of a road edge, and the road edge is a boundary of a drivable area in the driving environment, and n is an integer greater than 1; The processing module is used to segment each frame of the n frames of point cloud data to obtain n frames of first images, wherein the first value corresponding to each pixel in the first image is used to indicate the category of the corresponding point cloud, and the category at least includes the road edge; The processing module is further used to obtain a target grid map according to the n frames of the first image, wherein the target grid map includes a plurality of grids corresponding to each pixel point in the first image, and the second value corresponding to the grid is used to represent the probability that the pixel point corresponding to the grid belongs to the road edge; The processing module is further used to determine target key points according to first values corresponding to each pixel in the n-frame first image and second values corresponding to each grid in the target grid image, wherein the target key points are used to characterize the road edge.
14. An intelligent driving system, It is characterized in that include: A road edge detection device; the road edge detection device is used to execute the method as described in any one of claims 1-12.
15. An electronic device, It is characterized in that include: A memory and one or more processors; the memory is coupled to the processor; wherein the memory stores computer program code, the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1-12.
16. A computer-readable storage medium, It is characterized in that The method comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 12.
17. A computer program product, It is characterized in that When the computer program product is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 12.
Citation Information
Cited By
Unmanned aerial vehicle landing system, unmanned aerial vehicle landing control method and unmanned aerial vehicle
CN120044979A
Drone landing system, drone landing control method, and drone
CN120044979B
Boundary identification method and edge cutting method
CN121806837A
