Method for detecting drivable area, electronic device, non-volatile readable storage medium and vehicle

By extracting the drivable area boundary point coordinates and obstacle attribute information in the vehicle environment target image, combined with the neural network model and loss function optimization, the drivable area boundary is directly constructed, which solves the time-consuming and complex detection problems in the existing technology. problem, achieving efficient drivable area detection.

CN118570768APending Publication Date: 2024-08-30BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410722745.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing drivable area detection methods are time-consuming and complex, requiring post-processing steps to determine drivable area boundaries.

Method used

By obtaining the vehicle environment target image, extracting the drivable area boundary point coordinate information and obstacle attribute information, using the neural network model to construct the drivable area boundary, and optimizing the boundary through the triangle intersection ratio loss function and the global average pooling layer, directly Obtain class attribute information of obstacles at the boundary points of the drivable area to reduce detection complexity.

Benefits of technology

It improves the efficiency and accuracy of drivable area detection, reduces detection time and complexity, avoids post-processing steps, and achieves real-time control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570768A
    Figure CN118570768A
Patent Text Reader

Abstract

The invention discloses a method for detecting a drivable area, electronic equipment, a nonvolatile readable storage medium and a vehicle. The method for detecting the drivable area comprises the steps that a vehicle environment target image is acquired; obtaining coordinate information of boundary points of a drivable area and class attribute information of obstacles at the boundary points of the drivable area in the vehicle environment target image; and determining the drivable area according to the coordinate information of the boundary point of the drivable area and the class attribute information of the obstacle at the boundary point of the drivable area. By adopting the method, the detection efficiency of the driving area can be effectively improved, and meanwhile, the complexity of the detection process is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a method for detecting a drivable area, an electronic device, a non-volatile readable storage medium and a vehicle. Background Art

[0002] At present, the detection method of the drivable area is usually to directly segment the top view generated by splicing and transforming the surround fisheye image, and the segmentation method can be divided into two types. The first is to perform pixel-level point-to-point classification of the area, that is, first output multiple types of mask (mask image) areas according to the deep learning segmentation network, and then use post-processing to determine the boundary points of the drivable area and the class information to which they belong. This method is non-end-to-end and the detection method is very time-consuming; the second is instance center classification and dense distance regression in the polar coordinate system. Specifically, the pixel points in the top view are converted to polar coordinates, and then the center point of each instance in the top view is classified to determine whether each instance belongs to the drivable area. Then, the dense distance regression is used to predict the distance from each pixel point to the boundary of the drivable area to determine the boundary of the drivable area. However, this method still requires a post-processing step to determine the drivable area, which makes the drivable area detection very time-consuming and the detection process is also relatively complicated. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, one object of the present invention is to provide a method for detecting a drivable area, which can effectively improve the detection efficiency of the drivable area while reducing the complexity of the detection process.

[0004] A second objective of the present invention is to provide an electronic device.

[0005] A third objective of the present invention is to provide a non-volatile readable storage medium.

[0006] A fourth object of the present invention is to provide a vehicle.

[0007] In order to solve the above problems, an embodiment of the first aspect of the present invention provides a method for detecting a drivable area, the method comprising: acquiring a vehicle environment target image; obtaining coordinate information of the drivable area boundary points and class attribute information of obstacles at the drivable area boundary points in the vehicle environment target image; and determining the drivable area based on the coordinate information of the drivable area boundary points and the class attribute information of obstacles at the drivable area boundary points.

[0008] The method for detecting a drivable area according to an embodiment of the present invention forms a drivable area boundary through the boundary points of the drivable area, and then optimizes the drivable area boundary through the class attribute information of the obstacles at the boundary points of the drivable area. Thus, compared with the method of classifying each instance center or mask image area in the top view in the existing detection methods, in this application, the class attribute information of the obstacles at the boundary points of the drivable area is directly obtained, and the drivable area is constructed by using the coordinate information and class attribute information of the boundary points of the drivable area, and there is no need to determine the drivable area through post-processing, thereby reducing the detection time and complexity of the drivable area and effectively improving the detection efficiency of the drivable area.

[0009] In some embodiments, the vehicle environment target image is a top view.

[0010] In some embodiments, the top view is formed by splicing and converting multiple vehicle environment images.

[0011] In some embodiments, the top view is formed by splicing and converting the vehicle environment images collected by multiple surround-view fisheye cameras.

[0012] In some embodiments, after obtaining the top view, semantic features in the top view are extracted through the backbone network of the neural network model.

[0013] In some embodiments, the coordinate information of the boundary points of the drivable area includes the polar radius of the total number of preset sampling points in the polar coordinate system, where the center of the top view is used as the origin of the polar coordinate system, and the polar angle in the polar coordinate system is 2π / total number of preset sampling points.

[0014] In some embodiments, the neural network model further includes a fully connected layer, and the polar radius is obtained by using the semantic features as input through the fully connected layer.

[0015] In some embodiments, the fully connected layer uses the triangle intersection over union loss function constructed by adjacent polar radii to predict and supervise the polar radius.

[0016] In some embodiments, the triangle intersection over union loss function is a function of the maximum value of the predicted polar radius and the actual polar radius of the i-th sampling point, the minimum value of the predicted polar radius and the actual polar radius of the i-th sampling point, the maximum value of the predicted polar radius and the actual polar radius of the (i + 1)-th sampling point, and the minimum value of the predicted polar radius and the actual polar radius of the (i + 1)-th sampling point, where 0 ≤ i < N and N is the total number of sampling points.

[0017] In some embodiments, the triangle intersection over union loss function is expressed as follows:

[0018]

[0019] in, is the maximum value of the actual polar radius and the predicted polar radius of the ith sampling point, is the minimum value between the actual polar radius and the predicted polar radius of the ith sampling point, is the maximum value of the predicted polar radius and the actual polar radius of the (i+1)th sampling point, is the minimum value between the predicted polar radius and the actual polar radius of the (i+1)th sampling point, and N is the total number of sampling points.

[0020] In some embodiments, the neural network model also includes a global average pooling layer; the class attribute information of the obstacles at the boundary points of the drivable area is obtained by the global average pooling layer using the semantic features as input.

[0021] In some embodiments, the classification loss function of the global average pooling layer includes a constraint that adjacent grid classes are similar, so that the class attribute information of the obstacles at the boundary points of the movable area of ​​adjacent coordinate points obtained by the global average pooling layer is continuous.

[0022] In some embodiments, the classification loss function is a function of actual obstacle class attributes of the boundary points of the movable area, predicted obstacle attributes of the boundary points of the movable area, and the probability of the predicted obstacle class attributes.

[0023] In some embodiments, the classification loss function is expressed as follows:

[0024]

[0025] Among them, i is the actual obstacle class attribute of each drivable area boundary point, is the predicted obstacle class attribute for each drivable area boundary point, p i,j is the probability that the obstacle class attribute of the jth drivable area boundary point is the predicted obstacle class attribute, p i,j+1 is the probability that the obstacle class attribute of the j+1th drivable area boundary point is the predicted obstacle class attribute, c is the total number of predicted obstacle class attributes, and N is the total number of sampling points.

[0026] In some embodiments, the output layer of the backbone network is provided with a boundary optimization loss function, and the boundary optimization loss function is obtained based on the boundary information map of the top view extracted from the mask image.

[0027] In some embodiments, the boundary optimization loss function is a function of an actual boundary information map and a predicted boundary information map of the top view.

[0028] In some embodiments, the boundary optimization loss function is expressed as:

[0029]

[0030] Among them, pool represents the maximum pooling operation, y gt ∈[0,1] is the actual boundary information map, y pd ∈{0,1} is the predicted boundary information map, θ0 is a configurable pooling kernel, is the actual boundary information map after processing, is the processed predicted boundary information graph, epoch is the total rounds to be trained, t refers to the current number of iterations, α is an adjustable parameter, P is the boundary accuracy of the mask image, and R is the boundary recall rate of the mask image.

[0031] In some embodiments, the method further includes: obtaining coordinate information of the boundary point of the drivable area in a rectangular coordinate system obtained by converting the coordinate information of the boundary point of the drivable area in the polar coordinate system.

[0032] In some embodiments, the method further includes: obtaining a field of view image of the area of ​​interest in the overhead view; obtaining a rasterized image of the field of view image; counting the non-drivable areas in the rasterized image; and updating the non-drivable areas in multiple field of view images using a logarithmic strategy of a cartographer algorithm to obtain a drivable area image.

[0033] A second aspect of the present invention provides an electronic device, comprising: at least one processor; a memory communicatively connected to at least one of the processors; wherein the memory stores a computer program executable by at least one of the processors, and when at least one of the processors executes the computer program, the method for detecting a drivable area described in the above embodiment is implemented.

[0034] The electronic device according to the embodiment of the present invention can effectively improve the detection efficiency of the drivable area while reducing the complexity of the detection process by executing the method for detecting the drivable area according to the above embodiment.

[0035] A third aspect of the present invention provides a non-volatile readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for detecting a drivable area described in the above embodiment.

[0036] A fourth aspect of the present invention provides a vehicle, comprising: at least one image acquisition device and the electronic device described in the above embodiment, wherein the electronic device is connected to the at least one image acquisition device.

[0037] According to the vehicle of the embodiment of the present invention, the electronic device of the above embodiment can effectively improve the detection efficiency of the drivable area while reducing the complexity of the detection process.

[0038] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0040] Figure 1 is a flow chart of a method for detecting a drivable area according to an embodiment of the present invention;

[0041] Figure 2 is a schematic diagram of a neural network model according to an embodiment of the present invention;

[0042] 3(a) and (b) are respectively a mask image and a boundary information map outputted from a top view according to an embodiment of the present invention;

[0043] FIG3( c ) is a schematic diagram of expanding a boundary information graph according to an embodiment of the present invention;

[0044] Figure 4 is a flow chart of a method for detecting a drivable area according to another embodiment of the present invention;

[0045] Figure 5 is a structural block diagram of an electronic device according to an embodiment of the present invention;

[0046] Figure 6 is a structural block diagram of a vehicle according to an embodiment of the present invention.

[0047] Reference numerals:

[0048] Vehicle 20; electronic device 10;

[0049] Processor 1; memory 2; image acquisition device 3. DETAILED DESCRIPTION

[0050] Embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. Embodiments of the present invention are described in detail below.

[0051] In order to solve the above problems, a first embodiment of the present invention provides a method for detecting a drivable area. The method can effectively improve the detection efficiency of the drivable area while reducing the complexity of the detection process.

[0052] Reference below Figure 1The method for detecting a drivable area according to an embodiment of the present invention is described as follows: Figure 1 As shown, the method at least includes: step S1 to step S3.

[0053] Step S1, obtaining a vehicle environment target image.

[0054] Specifically, a vehicle environment target image is acquired by using multiple on-board surround-view cameras installed around the vehicle, wherein the vehicle environment target image is a surround-view image of the surrounding environment centered on the vehicle. The vehicle environment target image includes static objects such as road surface, guardrails, cones, stone piers, curbs, traffic signs, trees, and buildings, as well as dynamic obstacles such as pedestrians and other vehicles.

[0055] Step S2, obtaining coordinate information of boundary points of the drivable area and class attribute information of obstacles at the boundary points of the drivable area in the vehicle environment target image.

[0056] Specifically, the coordinate information of the boundary points of the drivable area and the class attribute information of the obstacles at the boundary points of the drivable area in the vehicle environment target image are obtained through the neural network model, wherein the drivable area is an area in the vehicle environment target image in which the vehicle can normally drive, excluding static objects and obstacles, the coordinate information of the boundary points of the drivable area may be polar coordinate information or rectangular coordinate information, and the class attribute information is the obstacle type at the boundary points of the drivable area, and the class attribute information includes vehicles, people, bicycles, motorcycles, plants, animals, static objects, and other classes.

[0057] Step S3, determining the drivable area according to the coordinate information of the boundary points of the drivable area and the class attribute information of the obstacles at the boundary points of the drivable area, so as to control the driving of the vehicle.

[0058] Specifically, for the drivable area detection task, it is not actually necessary to know the complete mask area of ​​each class. The focus is on the semantic class of the drivable area and the ground position of the obstacle on the boundary of the drivable area, which is distinguished from the non-ground position class to improve the accuracy of the drivable area boundary. Therefore, the drivable area is determined according to the coordinate information of the drivable area boundary point and the class attribute information of the obstacle at the boundary point of the drivable area, that is, the drivable area boundary is formed by the drivable area boundary points, and then the drivable area boundary is optimized by the class attribute information of the obstacle at the boundary point of the drivable area to ensure the accuracy of the drivable area boundary detection. When determining the drivable area boundary, the class attribute information of the obstacle at the boundary point of the drivable area is directly determined, and each instance or mask image area in the top view is no longer classified, thereby reducing the detection time and complexity of the drivable area and effectively improving the detection efficiency of the drivable area. After determining the drivable area, the vehicle is controlled to travel in the drivable area.

[0059] According to the method for detecting a drivable area according to an embodiment of the present invention, the boundary of the drivable area is formed by the boundary points of the drivable area, and then the boundary of the drivable area is optimized by the class attribute information of the obstacles at the boundary points of the drivable area. Therefore, compared with the existing detection method in which each instance center or mask image area is classified in the overhead view, the class attribute information of the obstacles at the boundary points of the drivable area is directly obtained in the present application, and then the coordinate information and class attribute information of the boundary points of the drivable area are used to construct the drivable area, and there is no need to determine the drivable area through post-processing, thereby reducing the detection time and complexity of the drivable area and effectively improving the detection efficiency of the drivable area.

[0060] In some embodiments, the vehicle environment object image is a top view.

[0061] In the example, the bird's-eye view is obtained by stitching and converting multiple vehicle environment images.

[0062] In some embodiments, the image stitching technology includes image registration and image fusion, and image registration is the basis of image fusion. For example, image registration may include: a configuration method based on image brightness information, a feature-based image registration method, and a registration method based on a transform domain according to different registration principles. Specifically, the image stitching process may include image preprocessing, image registration (using a certain matching strategy to find the corresponding position of the template or feature point in the image to be stitched in the reference image to determine the transformation relationship between the images), establishing a transformation model, unified coordinate transformation, and fusion reconstruction, that is, fusing the overlapping areas of the stitched images to obtain a smooth and seamless panoramic image of the stitching reconstruction.

[0063] Furthermore, the bird's-eye view may be obtained by stitching and converting vehicle environment images captured by multiple surround-view fisheye cameras.

[0064] Specifically, multiple surround-view fisheye images are collected by multiple on-board surround-view cameras installed around the vehicle, and then the multiple surround-view fisheye images are sent to an electronic device, which stitches and converts the multiple surround-view fisheye images into a vehicle environment target image, that is, stitching the overlapping areas of the multiple surround-view fisheye images to obtain the vehicle environment target image, or processing the multiple surround-view fisheye images through time alignment to a top view, i.e., the vehicle environment target image. In addition, the on-board surround-view camera can be a fisheye camera, a wide-angle camera, a wide-field camera, etc. There is no specific limitation on the number of fisheye cameras and their installation positions. For example, there can be 4 fisheye cameras and they are installed around the vehicle respectively.

[0065] In some embodiments, after obtaining the top view, i.e., the vehicle environment target image, Figure 2 As shown, the semantic features in the top view are extracted through the backbone network of the neural network model.

[0066] Specifically, in the related art, feature extraction is performed on the vehicle surrounding images collected by multiple cameras, and then the extracted features are converted into a top view. In the present application, after the multi-way surround fisheye images are spliced ​​and converted into a top view, the top view is passed through the backbone network of the neural network model to extract the semantic features in the top view, wherein the backbone network is used to extract the feature network of the input data, and the backbone network can be vgg16, ResNet and MobileNet, etc. The backbone network can be composed of several convolutional layers and activation layers, and there is no specific restriction on the number of convolutional layers and activation layers. For example, the backbone network can include five convolutional layers and five activation layers, that is, the top view, i.e., the vehicle environment target image, is used as the input data of the neural network model, and the semantic features in the top view are extracted through the backbone network, wherein the semantic features can be understood as feature information used to describe the content of the top view and the meaning of the objects in the top view, and the semantic features include objects, scenes or attributes in the top view. Therefore, in the present application, feature extraction is directly performed on the top view, instead of feature extraction on the multi-way surround fisheye images, which helps to improve the accuracy of semantic feature extraction.

[0067] In some embodiments, the coordinate information of the boundary points of the drivable area includes the polar radius of the total number of preset sampling points in the polar coordinate system, wherein the center of the top view is used as the origin of the polar coordinate system, and the interval angle between adjacent sampling points in the polar coordinate system is 2π / the total number of preset sampling points; the neural network model also includes a fully connected layer, and the polar radius can be obtained by using the semantic features as input through the fully connected layer.

[0068] Specifically, the polar radius is obtained by the following steps: the center of the top view is taken as the origin of the polar coordinate system, the horizontal right is the polar axis, and the clockwise direction is the positive direction. In order to ensure that the drivable area forms a complete closed area with a small error, the points on the boundary of the drivable area are sampled at equal intervals within the angle range [0,2π), that is, the interval angle is Discrete sampling is performed on the points on the boundary of the drivable area, where N is the total number of sampling points, and the coordinates of each sampling point can be expressed as (r i ,θ i ),in, Therefore, the drivable area boundary consists of a series of sampling points The polar angle θ i If it is set in advance, the boundary of the drivable area Simplified to That is, as long as the polar radius of the boundary points of the drivable area is calculated, the boundary points of the drivable area can be obtained. For the polar radius, in this application, it is obtained by a fully connected layer with semantic features as the input. That is, after extracting the semantic features in the top view through the backbone network, where the semantic features can be the boundary information of the drivable area, the semantic features are input into the fully connected layer (FFN) to directly regress the polar radii of the total number of preset sampling points. Thus, in this application, the boundary points of the drivable area are discretely sampled according to polar coordinates, which can reduce the number of boundary points constituting the drivable area, so as to significantly save memory space.

[0069] In some embodiments, such as Figure 2 As shown, a branch fully connected layer (FFN) is added to the top layer of the backbone network of the neural network model. The fully connected layer (FFN) uses the triangle intersection over union loss function constructed by adjacent polar radii to predict and supervise the polar radius. For example, the polar radius can be expressed as r1, r2,... rn.

[0070] Currently, in order to limit the positions of the boundary points of the drivable area, the L1 or L2 loss function is used to supervise the prediction. However, this strategy ignores the relationship between adjacent boundary points, which will lead to the lack of continuity of the coordinates of adjacent angular boundary points. To solve this problem, the triangle intersection over union (triangle IoU, TIoU) constructed by adjacent polar radii can be used to globally optimize the boundary points of the drivable area, that is, the polar radius distance of the boundary points of the drivable area is optimized through the triangle intersection over union loss function. Thus, in this application, the polar radius distance is regressed through the triangle intersection over union loss function, which can accurately represent the coordinates of the discretized boundary points of the drivable area, so as to better adapt to the large changes in adjacent sides of thin strip obstacle classes.

[0071] In the embodiment, the triangle intersection over union loss function can be a function of the maximum value between the predicted polar radius and the actual polar radius of the i-th sampling point, the minimum value between the predicted polar radius and the actual polar radius of the i-th sampling point, the maximum value between the predicted polar radius and the actual polar radius of the (i + 1)-th sampling point, and the minimum value between the predicted polar radius and the actual polar radius of the (i + 1)-th sampling point, where 0 ≤ i < N and N is the total number of sampling points. Among them, i = 0 represents the initial position, such as the sampling point when the polar angle is zero.

[0072] In some embodiments, This method can better match the complete drivable area with a limited number of discrete points. Since TIoU ∈ [0, 1] and the most ideal value of TIoU is 1, the triangle intersection over union loss function can be simplified to:

[0073]

[0074] Among them, is the maximum value of the actual polar radius and the predicted polar radius of the ith sampling point, that is, is the minimum value of the actual polar radius and the predicted polar radius of the ith sampling point, that is, is the maximum value of the predicted polar radius and the actual polar radius of the (i+1)th sampling point, is the minimum value between the predicted polar radius and the actual polar radius of the (i+1)th sampling point, and N is the total number of sampling points.

[0075] Specifically, in the training stage of the neural network model, in order to make the predicted value output by the neural network model as close to the true value as possible, the actual polar radius of each sampling point is obtained through the top view, and the top view is input into the neural network model to obtain the predicted polar radius of each sampling point. The triangle intersection loss function L is calculated by the actual polar radius and predicted polar radius of each sampling point. TIoU , and then through the triangle intersection loss function L TIoU The neural network model is trained, that is, the weight of each layer of the neural network model is adjusted by the difference between the actual polar radius and the predicted polar radius of each sampling point, until the predicted polar radius output by the fully connected layer of the neural network model approaches the actual polar radius, where the difference between the actual polar radius and the predicted polar radius can be calculated by the triangle intersection loss function L TIoU To measure, for example, the larger the result of the triangle intersection loss function, the greater the difference. Therefore, the training process of the neural network model is the process of reducing the triangle intersection loss function, that is, reducing the triangle intersection loss function L by reverse gradient calculation. TIoU The process is carried out to achieve the purpose of infinitely approaching the actual polar radius by the predicted polar radius. Therefore, through the training process of the neural network model, the polar radius distance predicted by the fully connected layer is made more accurate.

[0076] In some embodiments, Figure 2 As shown in FIG. 1 , the neural network model further includes a global average pooling layer (GAP), that is, a GAP branch is added to the top layer of the neural network backbone network to output the class attribute information of the obstacles at the boundary points of the drivable area; the class attribute information of the obstacles at the boundary points of the drivable area is obtained by using the global average pooling layer with semantic features as input, where the class attribute information can be represented as o1, o2, …, o n .

[0077] Specifically, a data set of images of various obstacle types encountered by the vehicle on the road is obtained, and then the neural network model is trained through the data set so that the global average pooling layer can learn the characteristics of each obstacle type. Thus, the class attribute information of the obstacles at the boundary points of the drivable area can be determined through the trained neural network model. That is to say, the top view, that is, the vehicle environment target image, is used as the input data of the neural network model, and the semantic features in the top view are extracted through the backbone network, wherein the semantic features may be the boundary information of the drivable area. The semantic features are then input into the global average pooling layer to obtain the class attribute information of the obstacles at the boundary points of the drivable area. Finally, the class attribute information of the obstacles at the boundary points of the drivable area is output through softmax (normalized exponential function). Thus, in the present application, the class attribute information of the obstacles at the boundary points of the drivable area is extracted, and the central class attribute information of the mask image is no longer extracted.

[0078] In some embodiments, the classification loss function of the global average pooling layer includes a constraint that adjacent grid classes are similar, so that the class attribute information of the obstacles at the boundary points of the movable area of ​​the adjacent coordinate points obtained by the global average pooling layer is continuous.

[0079] Specifically, in addition to the point-to-point pixel penalty in the segmentation map optimization process, the continuity of the obstacle class attributes between adjacent drivable area boundary points is taken into account. Therefore, the constraint condition that adjacent grid classes are similar is added on the basis of the loss function, so that the global average pooling layer ensures the consistency between adjacent grids when predicting the obstacle class attributes of each drivable area boundary point, so that the classification of the drivable area boundary points is more stable and accurate.

[0080] In an embodiment, the above classification loss function may be a function of the actual obstacle class attributes of the boundary points of the feasible area, the predicted obstacle attributes of the boundary points of the feasible area, and the probability of the predicted obstacle class attributes.

[0081] For example, in some embodiments, the classification loss function is expressed as follows:

[0082]

[0083] Among them, i is the actual obstacle class attribute of each drivable area boundary point, is the predicted obstacle class attribute for each drivable area boundary point, p i,j is the probability that the obstacle class attribute of the jth drivable area boundary point is the predicted obstacle class attribute, p i,j+1 is the probability that the obstacle class attribute of the j+1th drivable area boundary point is the predicted obstacle class attribute, c is the total number of predicted obstacle class attributes, and N is the total number of sampling points.

[0084] Specifically, in the training stage of the neural network model, in order to achieve the purpose of making the predicted value output by the neural network model as close to the true value as possible, the actual obstacle class attributes of each drivable area boundary point are obtained through the bird's-eye view, and the bird's-eye view is input into the neural network model to obtain the predicted obstacle class attributes of each drivable area boundary point. The weight of each layer of the neural network model is adjusted according to the error between the predicted obstacle class attributes and the actual obstacle class attributes of each drivable area boundary point, so that the predicted obstacle class attributes output by the global average pooling layer of the neural network model are close to the actual obstacle class attributes. On this basis, the constraint condition that adjacent grids are similar is added, that is, the consistency loss term is added as the classification loss function on the basis of the loss function to train the neural network model, so that the trained neural network model ensures the consistency between adjacent grids when predicting the obstacle class attributes of each drivable area boundary point.

[0085] In some embodiments, the output layer of the backbone network is provided with a boundary optimization loss function, which is obtained based on a boundary information map of a top view extracted from a mask image, wherein FIG3(a) is a mask image and FIG3(b) is a boundary information map.

[0086] Specifically, increasing the accuracy of extracting pixel points at the boundary of the drivable area in the top view can effectively improve the recognition effect of the drivable area. The boundary of the drivable area is determined by the semantic features of the vehicle environment target image, that is, the top view. The higher the semantic feature extraction ability of the top view, the more accurate the boundary of the drivable area. Based on this, in order to improve the accuracy of extracting pixel points at the boundary of the drivable area in the top view, auxiliary branches are added in the training stage of the neural network model. The neural network model is optimized through the auxiliary branches to enhance the main network's ability to extract semantic features of the top view. The auxiliary branches are Figure 2 In the dotted box area, the auxiliary branches can be five convolutional layers and five activation layers, that is, an additional boundary optimization loss function is added to the output layer (softmax) of the backbone network, wherein the boundary optimization loss function is obtained by calculating the actual boundary information map and the predicted boundary information map, and then the neural network model is trained by the boundary optimization loss function, that is, the weight of each layer of the neural network model is adjusted by the difference between the actual boundary information map and the predicted boundary information map, until the predicted boundary information map output by the five convolutional layers and the five activation layers of the neural network model is close to the actual boundary information map, wherein the difference between the predicted boundary information map and the actual boundary information map can be measured by the boundary optimization loss function, thereby, the mask image is input into the trained neural network model to obtain the boundary information map, and then the semantic feature extraction is performed through the boundary information map to improve the feature extraction capability.

[0087] In addition, when training from scratch, the predicted boundary information map will be very poor, and the extracted boundary error will be large at this moment. Therefore, during the training process of the neural network model, as the number of training times increases, the predicted boundary information map gradually approaches the actual boundary information map.

[0088] In an embodiment, the boundary optimization loss function may be a function of an actual boundary information map and a predicted boundary information map of the top view. Specifically, a specific boundary optimization loss function may be constructed based on actual training conditions and adjustment parameters.

[0089] For example, in some embodiments, the boundary optimization loss function is expressed as follows:

[0090]

[0091]

[0092] Among them, epoch is the total number of training times, t is the current number of iterations, α is an adjustable parameter, P is the boundary accuracy of the mask image, R is the recall rate of the mask image, pool is the maximum pooling operation, and y gt is the actual boundary information map, y pd To predict the boundary information map, θ is a configurable pooling kernel. is the actual boundary information map after pooling processing, is the predicted boundary information map after pooling processing, This is the expanded actual boundary information map. The expanded predicted boundary information map is shown in FIG3(c). The actual boundary information map is obtained through the top view, and the top view is input into the neural network model to obtain the predicted boundary information map. In addition, it should be noted that the purpose of the expanded predicted boundary information map and the actual boundary information map is to better calculate the Euclidean distance from each pixel to the boundary of the drivable area.

[0093] In some embodiments, the coordinate information of the boundary point of the drivable area in the polar coordinate system (r i ,θ i ) The coordinate information of the boundary points of the drivable area in the rectangular coordinate system (x i ,y i ).

[0094] x i =x c +r i *cosθ i

[0095] y i =y c +r i*sinθ i

[0096] Among them, (xc, yc) is the coordinate of the center point of the top view, r i is the polar radius distance of the i-th sampling point, θ i is the polar angle, r i It is obtained by taking semantic features as input through the fully connected layer.

[0097] In some embodiments, a field of view image of an area of ​​interest in a top view is obtained; a rasterized image of the field of view image is obtained; non-drivable areas in the rasterized image are counted; and the non-drivable areas in multiple field of view images are updated using a logarithmic strategy of a cartographer algorithm to obtain a drivable area image.

[0098] Specifically, after obtaining the drivable area, in order to display the drivable area on a map or display screen, the boundary points of the drivable area are converted from polar coordinates to rectangular coordinates, and the boundary points of the drivable area are rasterized and processed. In addition, due to the distortion and projection in the overhead view obtained by the on-board surround view camera, the proportion of non-drivable areas in the overhead view is higher than the actual drivable area. Therefore, when constructing a raster map through the drivable area, the projection of high obstacles will interfere with the map. In order to avoid the interference of the projection on the raster map, the present application intercepts the field of view image of the area of ​​interest in the overhead view, where The field of view image can be the field of view between the front and rear longitudinal axes of the vehicle, so as to reduce the interference of the obstacle height projection on the grid map, and then the field of view image is rasterized to obtain a rasterized image of the field of view image, and the non-drivable area in the rasterized image is counted, that is, the non-drivable area of ​​each grid is counted, and the ratio of the sum of pixels of the non-drivable area to the total pixels of the grid is calculated. The non-drivable area in multiple field of view images is updated by taking the logarithm of the cartographer algorithm to obtain a drivable area image, which can eliminate errors or non-real obstacle areas caused by unstable detection.

[0099] In an embodiment, the pixel value of each pixel point in the non-drivable area is 0, and the pixel value of each pixel point in the drivable area is 1.

[0100] Reference below Figure 4 The method for detecting a drivable area according to an embodiment of the present invention is illustrated by way of example, and the specific contents are as follows.

[0101] Step S4, obtaining multi-channel surround fisheye image data collected by four vehicle-mounted surround fisheye cameras.

[0102] Step S5, stitching and converting the multiple surround fisheye images into a top view.

[0103] Step S6, training the neural network model using the triangle intersection-to-union ratio loss function according to the top view, and then obtaining the polar radius distance of the boundary points of the drivable area and the class attribute information of the obstacles through the neural network model.

[0104] Step S7, taking the center of the top view as the origin of the polar coordinate system, sampling the boundary of the drivable area in the top view at a preset interval angle to obtain the boundary points of the drivable area, using the polar radius distance to obtain the coordinates of the boundary points of the drivable area, and counting the ratio of the number of pixels in the non-drivable area in each grid in the rasterized image to the total pixels.

[0105] Step S8, using a cartographer algorithm to take logarithms to update the non-drivable areas in the plurality of field of view images to obtain a drivable area image.

[0106] In addition, after obtaining the boundary coordinates of the drivable area, they are output to the planning map in angular order, and the mapping module then constructs a closed drivable area.

[0107] A second aspect of the present invention provides an electronic device 10, such as Figure 5 As shown, the electronic device 10 includes: at least one processor and a memory 2 communicatively connected to the at least one processor 1 .

[0108] The memory 2 stores a computer program that can be executed by at least one processor 1, and the at least one processor 1 implements the method for detecting a drivable area of ​​the above embodiment when executing the computer program. The electronic device may be a controller for automatic parking or intelligent driving.

[0109] It should be noted that the specific implementation method of the electronic device in the embodiment of the present invention is similar to the specific implementation method of the method for detecting the drivable area in any of the above embodiments of the present invention. Please refer to the description of the method part for details. In order to reduce redundancy, it will not be repeated here.

[0110] The electronic device according to the embodiment of the present invention can effectively improve the detection efficiency of the drivable area while reducing the complexity of the detection process by executing the method for detecting the drivable area according to the above embodiment.

[0111] A third aspect of the present invention provides a non-volatile readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for detecting a drivable area of ​​the above embodiment.

[0112] A fourth aspect of the present invention provides a vehicle, such as Figure 6 As shown, the vehicle 20 includes: at least one image acquisition device 3 and the electronic device 10 of the above embodiment.

[0113] The electronic device 10 is connected to at least one image acquisition device 3, and the image acquisition device may be a vehicle-mounted surround view camera.

[0114] According to the vehicle of the embodiment of the present invention, the electronic device of the above embodiment can effectively improve the detection efficiency of the drivable area while reducing the complexity of the detection process.

[0115] In the description of this specification, any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code including one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0116] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0117] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0118] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0119] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0120] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

[0121] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example.

[0122] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A method for detecting a drivable area, characterized in that: The method includes: Obtaining a target image of the vehicle environment; Obtaining coordinate information of boundary points of the drivable area and class attribute information of obstacles at the boundary points of the drivable area in the target image of the vehicle environment; Determining a drivable area based on the coordinate information of the boundary points of the drivable area and the class attribute information of obstacles at the boundary points of the drivable area for controlling the vehicle to travel.

2. The method according to claim 1, characterized in that The target image of the vehicle environment is a top view.

3. The method according to claim 2, characterized in that The top view is formed by stitching and converting multiple vehicle environment images.

4. The method according to claim 3, characterized in that The multiple vehicle environment images are collected by multiple panoramic fisheye cameras.

5. The method according to any one of claims 2 to 4, characterized in that: After obtaining the top view, semantic features in the top view are extracted through the backbone network of the neural network model.

6. The method according to claim 5, wherein The coordinate information of the boundary points of the drivable area includes the polar radius of the total number of preset sampling points in the polar coordinate system, where the center of the top view is used as the origin of the polar coordinate system, and the angular interval between adjacent sampling points in the polar coordinate system is 2π / total number of preset sampling points.

7. The method according to claim 6, wherein The neural network model further includes a fully connected layer, and the polar radius is obtained by taking the semantic features as input through the fully connected layer.

8. The method according to claim 7, characterized in that The fully connected layer uses a triangle intersection over union loss function constructed by adjacent polar radii to predict and supervise the polar radius.

9. The method according to claim 8, characterized in that The triangle intersection over union loss function is a function of the maximum value between the predicted polar radius and the actual polar radius of the i-th sampling point, the minimum value between the predicted polar radius and the actual polar radius of the i-th sampling point, the maximum value between the predicted polar radius and the actual polar radius of the (i + 1)-th sampling point, and the minimum value between the predicted polar radius and the actual polar radius of the (i + 1)-th sampling point, where 0 ≤ i < N and N is the total number of sampling points.

10. The method according to claim 9, characterized in that The triangle intersection over union loss function is expressed as in, is the maximum value of the actual polar radius and the predicted polar radius of the ith sampling point, is the minimum value between the actual polar radius and the predicted polar radius of the ith sampling point, is the maximum value of the predicted polar radius and the actual polar radius of the (i+1)th sampling point, is the minimum value between the predicted polar radius and the actual polar radius of the (i+1)th sampling point, and N is the total number of sampling points.

11. The method according to claim 5, wherein The neural network model further includes a global average pooling layer; The class attribute information of obstacles at the boundary points of the drivable area is obtained by taking the semantic features as input through the global average pooling layer.

12. The method according to claim 11, characterized in that The classification loss function of the global average pooling layer includes a constraint condition that classes of adjacent grids are similar, so that the class attribute information of obstacles at the boundary points of the feasible driving area of adjacent coordinate points obtained by the global average pooling layer is continuous.

13. The method according to claim 12, characterized in that The classification loss function is a function of the actual obstacle class attribute of the boundary points of the feasible driving area, the predicted obstacle attribute of the boundary points of the feasible driving area, and the probability of the predicted obstacle class attribute.

14. The method according to claim 13, characterized in that The classification loss function is expressed as follows: Among them, i is the actual obstacle class attribute of each drivable area boundary point, is the predicted obstacle class attribute for each drivable area boundary point, p i,j is the probability that the obstacle class attribute of the jth drivable area boundary point is the predicted obstacle class attribute, p i,j+1 is the probability that the obstacle class attribute of the j+1th drivable area boundary point is the predicted obstacle class attribute, c is the total number of predicted obstacle class attributes, and N is the total number of sampling points.

15. The method according to claim 5, characterized in that The output layer of the backbone network is provided with a boundary optimization loss function, and the boundary optimization loss function is obtained from the boundary information map of the top view extracted according to the mask image.

16. The method according to claim 15, characterized in that The boundary optimization loss function is a function of the actual boundary information map and the predicted boundary information map of the top view.

17. The method according to claim 16, characterized in that The boundary optimization loss function is expressed as: Among them, pool represents the maximum pooling operation, y gt ∈[0,1] is the actual boundary information map, y pd ∈{0,1} is the predicted boundary information map, θ0 is a configurable pooling kernel, is the actual boundary information map after processing, is the processed predicted boundary information graph, epoch is the total rounds to be trained, t refers to the current number of iterations, α is an adjustable parameter, P is the boundary accuracy of the mask image, and R is the boundary recall rate of the mask image.

18. The method according to claim 6, characterized in that The method further includes: obtaining coordinate information of boundary points of the drivable area in the rectangular coordinate system converted from the coordinate information of the boundary points of the drivable area in the polar coordinate system.

19. The method according to claim 18, characterized in that The method further includes: Obtaining a field of view image of a region of interest in the top view; Obtaining a rasterized image of the field of view image; Counting the non-drivable areas in the rasterized image; The non-drivable areas in the plurality of field of view images are updated by adopting a logarithmic strategy of a cartographer algorithm to obtain a drivable area image.

20. An electronic device, characterized in that: include: at least one processor; a memory communicatively coupled to at least one of the processors; Wherein, the memory stores a computer program that can be executed by at least one of the processors, and when at least one of the processors executes the computer program, the method for detecting a drivable area according to any one of claims 1 to 19 is implemented.

21. A non-volatile readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for detecting a drivable area according to any one of claims 1 to 19 is implemented.

22. A vehicle, characterized in that: include: At least one image acquisition device and the electronic device according to claim 20, wherein the electronic device is connected to the at least one image acquisition device.