Grid map construction method, device, computer equipment and storage medium

By generating a semantic splicing map of multiple images of the vehicle environment and dividing it into rasters, calculating obstacle probability values, and constructing a raster map with height information, the problem of high perception cost and inaccuracy in autonomous driving technology is solved and realized. More accurate environmental perception and cost-reducing effects.

CN118149797BActive Publication Date: 2024-09-13MAGIC VISION INTELLIGENT TECH (WUHAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410580875.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-09-13
Estimated Expiration
2044-05-11

AI Technical Summary

Technical Problem

In existing autonomous driving technology, the method of sensing the drivable area of ​​a vehicle is high-cost and inaccurate, especially the method based on lidar sensors is expensive. Deep learning semantic segmentation technology has noise and difficulty in identifying unlabeled objects. Traditional methods cannot accurately express suspended objects. obstacle.

Method used

By acquiring multiple images of the vehicle environment, we generate a semantic mosaic map and divide it into rasters. We calculate the obstacle probability value based on the coordinates and semantic types of the raster cells, determine the regional traffic status, and construct a raster map with height information to provide more accurate information. Accurate environmental perception information, reducing costs.

Benefits of technology

It achieves more accurate perception of the vehicle's drivable area, reduces costs, improves noise immunity, can identify irregular and suspended obstacles, and enhances the robustness of the autonomous driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118149797B
    Figure CN118149797B
Patent Text Reader

Abstract

The present invention relates to the technical field of autonomous driving, and discloses a grid map construction method, device, computer equipment and storage medium. The present invention obtains a semantic mosaic map based on multiple images of the environment in which a vehicle is located, performs grid division on the semantic mosaic map to obtain coordinates and semantic types corresponding to each grid unit, measures the probability that the grid unit is an obstacle based on the coordinates and semantic types of each grid unit, and obtains an obstacle probability value for each grid unit, thereby conveniently and quickly determining the regional traffic status of each grid unit, and finally obtains a grid map with height information based on the regional traffic status of each grid unit and the depth information of each pixel point in the semantic mosaic map, thereby providing more accurate information for vehicle autonomous driving, and does not require sensors to obtain data, which is lower in cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to a grid map construction method, device, computer equipment and storage medium. Background Art

[0002] Autonomous driving technology refers to the technology that allows vehicles to perceive the driving environment through their own sensors, independently decide on the driving path, and control the vehicle to reach the desired destination along the desired path without the need for human operation.

[0003] Similar to traditional driving, real-time perception and positioning of the vehicle's operating environment is the basis for the decision-making and control of the autonomous driving system. At present, there are usually the following methods for perceiving the drivable area: 1) Using lidar sensors to build environmental perception, but this method is limited by the expensive cost of radar sensors; 2) Directly using deep learning semantic segmentation technology to express the drivable area, but the results of direct network segmentation often have a lot of noise, and the expression of the drivable area will be inaccurate; 3) Deep learning networks often have to make inferences based on the labeled object categories, and cannot recognize unlabeled object categories; 4) Traditional drivable area expressions are all on a two-dimensional plane, and cannot express highly suspended obstacles. Summary of the invention

[0004] In view of this, the present invention provides a grid map construction method, apparatus, computer equipment and storage medium to solve the problems of high cost and inaccurate perception of the traditional method when perceiving the vehicle's drivable area.

[0005] In a first aspect, the present invention provides a method for constructing a grid map, the method comprising:

[0006] Acquire multiple images of the environment in which the vehicle is located, and obtain a semantic mosaic image and depth information of each pixel in the semantic mosaic image based on the multiple images;

[0007] Divide the semantic mosaic into grids to obtain multiple grid units and the coordinates and semantic types corresponding to each grid unit;

[0008] Obtain the obstacle probability value of each grid cell based on the coordinates and semantic type of each grid cell;

[0009] Based on the obstacle probability value of each grid cell, determine the regional traffic status of each grid cell;

[0010] A grid map is constructed based on the depth information and the regional traffic status corresponding to each grid unit.

[0011] Therefore, a semantic mosaic map is obtained based on multiple images of the vehicle's environment, and the semantic mosaic map is divided into grids to obtain the coordinates and semantic types corresponding to each grid unit. The probability of the grid unit being an obstacle is measured based on the coordinates and semantic types of each grid unit, and the obstacle probability value of each grid unit is obtained, so as to conveniently and quickly determine the regional traffic status of each grid unit. Finally, according to the regional traffic status of each grid unit and the depth information of each pixel in the semantic mosaic map, a grid map with height information is obtained, which provides more accurate information for vehicle autonomous driving, and does not require sensors to obtain data, which is lower in cost.

[0012] In an optional implementation, based on the coordinates and semantic type of each grid cell, an obstacle probability value of each grid cell is obtained, including:

[0013] Based on the semantic type corresponding to each grid cell, obtaining a first probability value corresponding to each grid cell;

[0014] Traversing each grid cell, calculating the Euclidean distance corresponding to the current grid cell based on the coordinates of the current grid cell and the coordinates of the adjacent grid cells, and obtaining a second probability value according to the Euclidean distance;

[0015] The obstacle probability value corresponding to each grid cell is obtained according to the first probability value and the second probability value corresponding to each grid cell.

[0016] Therefore, the obstacle probability value is obtained by fusing the first probability value and the second probability value to characterize the probability that the grid unit is an obstacle after multiple frames. The semantic information of each grid and the coordinate information of the adjacent grids are comprehensively considered, and the method has stronger resistance to noise and better robustness.

[0017] In an optional implementation, the semantic types include a drivable area, a dynamic obstacle, and a static obstacle, and different semantic types correspond to different probability weights; based on the semantic type corresponding to each grid unit, a first probability value corresponding to each grid unit is obtained, including:

[0018] For each grid cell, a first probability value corresponding to the grid cell is calculated based on the product of the probability weight corresponding to the semantic type of the grid cell and the preset obstacle probability.

[0019] Thus, the first probability value is calculated according to the semantic type of the grid unit, and the probability of each grid being an obstacle is preliminarily determined in combination with the semantic type of the grid unit.

[0020] In an optional implementation, obtaining the obstacle probability value corresponding to each grid cell according to the first probability value and the second probability value corresponding to each grid cell includes:

[0021] For each grid cell, calculating a first logarithmic ratio corresponding to a first probability value of the grid cell and a second logarithmic ratio corresponding to a second probability value of the grid cell;

[0022] For each grid cell, an obstacle probability value corresponding to the grid cell is obtained according to the first logarithmic ratio and the second logarithmic ratio.

[0023] Therefore, by fusing the first probability value and the second probability value of the grid, the probability that the grid unit is an obstacle after multiple frames is represented, thereby improving the accuracy of perception.

[0024] In an optional implementation, the semantic mosaic includes semantic information of each pixel; the semantic mosaic is grid-divided to obtain a plurality of grid units and coordinates and semantic types corresponding to each grid unit, including:

[0025] Divide the semantic mosaic into multiple grid units in a polar coordinate system, and obtain the coordinates of each grid unit;

[0026] According to the coordinates of each grid cell, the pixel coordinates of each grid cell are determined;

[0027] For each grid unit, the pixel point corresponding to the grid unit in the semantic mosaic map is determined according to the pixel coordinates of the grid unit, and the semantic type of the grid unit is obtained according to the semantic information of the pixel point.

[0028] Therefore, the semantic type of each grid unit is determined by dividing the semantic mosaic into multiple grid units in the polar coordinate system and fusing the semantic information of the pixels in the semantic mosaic, which effectively solves the noise problem caused by unstable segmentation.

[0029] In an optional implementation, determining the regional traffic status of each grid cell based on the obstacle probability value of each grid cell includes:

[0030] Traverse each grid cell, if it is detected that the obstacle probability value corresponding to the current grid cell is greater than the obstacle probability threshold, the regional traffic state of the current grid cell is determined to be an obstacle area; otherwise, the regional traffic state of the current grid cell is determined to be a drivable area.

[0031] Therefore, by comparing the obstacle probability value of each grid cell with the set obstacle probability threshold, the regional traffic status of each grid cell can be determined conveniently and quickly.

[0032] In an optional implementation, constructing a grid map according to the depth information and the regional traffic status corresponding to each grid unit includes:

[0033] According to the depth information, determine the height value corresponding to each grid unit;

[0034] According to the height value corresponding to each grid unit and the regional traffic status, a grid map including the drivable area, obstacle area and obstacle height value is constructed.

[0035] Therefore, by constructing a grid map including the drivable area, obstacle area and obstacle height values, it is convenient to represent unconventional obstacles and suspended obstacles that cannot be marked, so as to perceive more accurately and provide more precise map information for the vehicle.

[0036] In a second aspect, the present invention provides a grid map construction device, the device comprising:

[0037] An acquisition module, used to acquire multiple images of the environment in which the vehicle is located, and obtain a semantic mosaic image and depth information of each pixel in the semantic mosaic image based on the multiple images;

[0038] The first processing module is used to perform grid division on the semantic mosaic image to obtain a plurality of grid units and coordinates and semantic types corresponding to each grid unit;

[0039] The second processing module is used to obtain the obstacle probability value of each grid cell based on the coordinates and semantic type of each grid cell;

[0040] A third processing module is used to determine the regional traffic status of each grid cell based on the obstacle probability value of each grid cell;

[0041] The fourth processing module is used to construct a grid map according to the depth information and the regional traffic status corresponding to each grid unit.

[0042] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the raster map construction method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0043] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the grid map construction method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 is a schematic diagram of a flow chart of a grid map method according to an embodiment of the present invention;

[0046] Figure 2 is a scene schematic diagram of a grid map construction method according to an embodiment of the present invention;

[0047] Figure 3 is a schematic diagram of polar coordinate grid division according to an embodiment of the present invention;

[0048] Figure 4 is a flowchart of another grid map construction method according to an embodiment of the present invention;

[0049] Figure 5 is a structural block diagram of a grid map construction device according to an embodiment of the present invention;

[0050] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0052] Autonomous driving technology (also known as unmanned driving technology) refers to the technology that allows vehicles (or other vehicles) to perceive the driving environment through their own sensors, make autonomous decisions on driving paths, and control the vehicle to reach the desired destination along the desired path without the need for human operation. Autonomous driving technology is an integration of multiple technologies, mainly including real-time perception and positioning, motion path planning, communication and data interaction, and vehicle intelligent control.

[0053] As one of the most promising technologies in the world today, autonomous driving technology represents the strategic direction of the development of the automotive industry and has become a strategic commanding height in the new round of international and domestic scientific and technological revolutions and industrial transformation competition. Similar to traditional driving, real-time perception and positioning of the vehicle's operating environment is the basis for the decision-making and control of the autonomous driving system. Environmental perception mainly includes three aspects: road surface, static objects, and dynamic objects. These aspects can be uniformly expressed as the perception of the drivable area in the environment. The perception of dynamic and static target objects, especially the accurate identification of suspended obstacles, is very important for the perception of the drivable area of ​​autonomous driving, which is particularly relevant to the realization of functions such as obstacle avoidance and detour of autonomous driving.

[0054] To meet the requirements of real-time performance and reliability, autonomous vehicles are usually equipped with a variety of sensors such as visual cameras, inertial measurement units (IMUs), lidars, and wheel speed meters. For autonomous parking scenarios, visual cameras (such as fisheye cameras) are usually the basic configuration of autonomous vehicles, and they can perceive the most abundant external information, such as the color, structure, texture, and some semantic information (such as roads, pedestrians, traffic signs, etc.) of the surrounding scenery of the vehicle.

[0055] For the detection of drivable areas, mature solutions usually use 2D and 3D lidar sensors to accurately detect the distance of obstacles in the environment through radar point clouds and draw drivable areas in the environment. However, this solution is limited by the expensive hardware cost of sensors and is difficult to promote in the mass-produced passenger car market. Low-cost pure vision solutions use deep learning technology to detect the drivable area of ​​the current environment and express whether it is passable in the form of semantic pixels. The hardware cost of this solution is low, and the upper limit of the solution depends on the performance of the perception algorithm; but in common scenarios, due to light, object occlusion and uncommon objects that are difficult to identify, this method lacks robustness, and problems of false detection and missed detection occur frequently.

[0056] At present, the representation of the drivable area usually includes: 1) using lidar sensors to build environmental perception, but this method is limited by the expensive cost of radar sensors; 2) directly using deep learning semantic segmentation technology to express the drivable area, but the results of direct use of network segmentation often have a lot of noise, and the expression of the drivable area will be inaccurate; 3) deep learning networks often have to make inferences based on the labeled object categories, and cannot recognize unlabeled object categories; 4) traditional drivable area expressions are all on a 2D plane, which cannot express highly suspended obstacles.

[0057] Therefore, an embodiment of the present invention provides a grid map construction method, which divides the semantic mosaic map corresponding to the vehicle environment into grid units, determines the regional traffic status of the grid units based on probability, has strong anti-interference ability, and constructs a grid map according to the depth information in the semantic mosaic map, restores the height information of the grid units, and has a better representation of unconventional non-labeled objects and small suspended objects.

[0058] According to an embodiment of the present invention, a method embodiment of a grid map construction is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0059] In this embodiment, a grid map construction method is provided, which can be used for a computer device or electronic device, such as a computer, a vehicle computer, etc., to construct a grid map. Figure 1 is a flowchart of a method for constructing a grid map according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0060] Step S101, acquiring multiple images of the environment in which the vehicle is located, and obtaining a semantic mosaic image and depth information of each pixel in the semantic mosaic image based on the multiple images.

[0061] Specifically, four surround-view fisheye cameras are installed on the vehicle, such as Figure 2 As shown, they are placed in front of, behind, front left and front right of the vehicle body respectively, and multiple images of the vehicle surrounding environment are obtained by taking pictures from the front, back, left and right directions through four fisheye cameras. Next, the four images taken by the four fisheye cameras can be semantically segmented through the trained semantic segmentation network to obtain four semantic segmentation maps, each of which includes the semantic information of each pixel in the image. The four semantic segmentation maps are subjected to inverse perspective transformation IPM (Inverse Perspective Mapping) through the internal and external parameters of the camera, and the semantic pixels containing semantic information are reversely projected from the image plane to the ground plane centered on the vehicle to obtain a two-dimensional semantic mosaic map under the top view. It should be noted that the internal and external parameters of the four-way surround view fisheye camera need to be calibrated in advance.

[0062] For example, the four-way semantic segmentation map Stitching to get a two-dimensional semantic splicing graph , the resolution of the semantic mosaic is 640 pixels 640 pixels, corresponding to 12 m on the vehicle plane The resolution of a single pixel is 12 m. pixel.

[0063] Specifically, the Harris Corner Detection algorithm is used to extract Harris corner points from the four images taken by the four fisheye cameras, and the corner points at the same position between the two frames are tracked using the Lucas-Kanade Method for Optical Flow. The depth value of the tracked corner point is obtained by triangulation, and the pixel point is projected onto the plane of the vehicle at 12 m. The 12 m plane area is used to obtain the depth information of each pixel in the semantic mosaic.

[0064] Step S102 , grid-dividing the semantic mosaic graph to obtain a plurality of grid units and coordinates and semantic types corresponding to each grid unit.

[0065] Specifically, Figure 3 As shown, the semantic mosaic image is divided into multiple grid units in the polar coordinate system, and the polar coordinates, pixel coordinates and coordinates of each grid unit in the vehicle coordinate system are obtained. Based on the semantic information of the pixel points corresponding to the pixel coordinates, the semantic type of each grid unit is obtained.

[0066] In some optional implementations, the semantic types mainly include drivable areas, dynamic obstacles, and static obstacles, and the semantic information of pixel points may include lane lines, railings, pedestrians, vehicles, etc. For example, grid cells whose semantic information is lane lines may be used as drivable areas, grid cells whose semantic information is railings may be used as static obstacles, and grid cells whose semantic information is pedestrians and vehicles may be used as static obstacles, but the present invention is not limited thereto.

[0067] Step S103: Obtaining the obstacle probability value of each grid cell based on the coordinates and semantic type of each grid cell.

[0068] Specifically, the probability that the grid cell is an obstacle is measured according to the coordinates and semantic type of each grid cell to obtain an obstacle probability value.

[0069] Step S104: determining the regional traffic status of each grid cell based on the obstacle probability value of each grid cell.

[0070] Specifically, each grid cell can be traversed, and if it is detected that the obstacle probability value corresponding to the current grid cell is greater than the obstacle probability threshold, the area traffic state of the current grid cell is determined to be an obstacle area. Otherwise, if it is detected that the obstacle probability value corresponding to the current grid cell is not greater than the obstacle probability threshold, the area traffic state of the current grid cell is determined to be a drivable area. The obstacle probability threshold can be set according to the actual scene requirements.

[0071] Therefore, by comparing the obstacle probability value of each grid cell with the set obstacle probability threshold, the regional traffic status of each grid cell can be determined conveniently and quickly.

[0072] Step S105: construct a grid map according to the depth information and the regional traffic status corresponding to each grid unit.

[0073] Specifically, based on the depth information of each pixel in the semantic mosaic map, the height value of the corresponding grid unit in the vehicle coordinate system can be obtained. For grid units whose area traffic status is an obstacle area, the height of the obstacle can be further confirmed to obtain a grid map with height information, providing more accurate information for the use of autonomous driving drivable areas.

[0074] The grid map construction method provided by the embodiment of the present invention obtains a semantic mosaic map based on multiple images of the vehicle's environment, grid-divides the semantic mosaic map to obtain the coordinates and semantic types corresponding to each grid unit, measures the probability that the grid unit is an obstacle based on the coordinates and semantic types of each grid unit, and obtains the obstacle probability value of each grid unit, thereby conveniently and quickly determining the regional traffic status of each grid unit, and finally obtains a grid map with height information based on the regional traffic status of each grid unit and the depth information of each pixel in the semantic mosaic map, thereby providing more accurate information for vehicle autonomous driving, and does not require sensors to obtain data, which is lower in cost.

[0075] In this embodiment, a grid map construction method is provided, which can be used for a computer device or electronic device, such as a computer, a vehicle computer, etc., to construct a grid map. Figure 4 is a flowchart of a method for constructing a grid map according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:

[0076] Step S401, obtain multiple images of the environment in which the vehicle is located, and obtain a semantic mosaic image and depth information of each pixel in the semantic mosaic image based on the multiple images. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0077] Step S402 , grid-dividing the semantic mosaic graph to obtain a plurality of grid units and coordinates and semantic types corresponding to each grid unit.

[0078] Specifically, the coordinates also include pixel coordinates, and the semantic mosaic includes semantic information of each pixel point. The above step S402 includes:

[0079] Step S4021, dividing the semantic mosaic graph into a plurality of grid units in a polar coordinate system, and obtaining the coordinates of each grid unit.

[0080] It should be noted that, unless otherwise specified, the coordinates of the grid unit in the present invention refer to the coordinates of the grid unit in the vehicle body coordinate system.

[0081] For example, in the polar coordinate system, the resolution is 640 pixels. 640 pixel semantic mosaic Divide into multiple grid units. Among them, the angular resolution of the polar coordinate grid is , that is, semantic splicing graph Divide into 360 intervals by angle In the angular direction of each grid cell, the polar coordinate radius is 6 m and the radial resolution of the grid cell is , that is, to radially stitch the semantic map Divided into 60 intervals In summary, each grid cell can be uniquely represented by polar coordinates .

[0082] in, represents the polar coordinates of the grid cells, Represents the angle of the grid cell in the polar coordinate system, represents the radius of the grid cell in the polar coordinate system, represents the coordinate of the kth grid in the vehicle body coordinate system, x represents the horizontal coordinate of the grid unit in the vehicle body coordinate system, and y represents the vertical coordinate of the grid unit in the vehicle body coordinate system. The conversion formula between the coordinate of the grid unit and the polar coordinate is as follows:

[0083]

[0084] Step S4022, determining the pixel coordinates of each grid cell according to the coordinates of each grid cell.

[0085] For example, traversing each grid cell can obtain The corresponding pixel coordinates , where the conversion formula between grid unit coordinates and pixel coordinates is as follows:

[0086]

[0087] in, Represents the horizontal coordinate of the grid unit in the pixel coordinate system, Represents the vertical coordinate of the grid cell in the pixel coordinate system. Represents the pixel resolution in the semantic mosaic.

[0088] Step S4023, for each grid unit, determine the pixel point corresponding to the grid unit in the semantic mosaic map according to the pixel coordinates of the grid unit, and obtain the semantic type of the grid unit according to the semantic information of the pixel point.

[0089] Specifically, through pixel coordinates Access to semantic mosaic graph The corresponding pixel point in the grid is used to determine the semantic type of the grid unit according to the semantic information of the pixel point. Exemplarily, the semantic types include drivable areas, dynamic obstacles, and static obstacles.

[0090] Therefore, the semantic type of each grid unit is determined by dividing the semantic mosaic into multiple grid units in the polar coordinate system and fusing the semantic information of the pixels in the semantic mosaic, which effectively solves the noise problem caused by unstable segmentation.

[0091] Step S403: Obtaining the obstacle probability value of each grid cell based on the coordinates and semantic type of each grid cell.

[0092] Specifically, the coordinates include polar coordinates, and step S403 includes:

[0093] Step S4031: based on the semantic type corresponding to each grid cell, obtain a first probability value corresponding to each grid cell.

[0094] Specifically, the semantic types include drivable areas, dynamic obstacles, and static obstacles, and different semantic types correspond to different probability weights. For each grid unit, the first probability value corresponding to the grid unit is calculated based on the product of the probability weight corresponding to the semantic type of the grid unit and the preset obstacle probability, and the probability of each grid being an obstacle is preliminarily judged based on the semantic type of the grid unit.

[0095] Exemplarily, the probability value of each grid cell is first initialized to 0.5, and the first probability value of each grid cell is calculated according to the following formula:

[0096]

[0097] in, represents the preset obstacle probability, represents the first probability value of the grid cell, Represents the probability weight corresponding to the semantic type of the grid cell. The details can be as follows:

[0098]

[0099] Step S4032, traverse each grid cell, calculate the Euclidean distance corresponding to the current grid cell based on the coordinates of the current grid cell and the coordinates of the adjacent grid cells, and obtain the second probability value according to the Euclidean distance.

[0100] Specifically, according to the polar coordinates of the current grid , you can search for neighboring grids in the vicinity of the grid The number of neighborhood samples that can be set. , get the coordinate values ​​of adjacent grid cells . Calculate the Euclidean distance between the coordinates of all adjacent grid cells in the neighborhood and the current grid coordinate value , and directly calculate the mean of the Gaussian distribution based on the Euclidean distance , the second probability value of the current grid is obtained according to the following formula:

[0101]

[0102] in, represents the second probability value, represents the exponential function, express The square of .

[0103] Step S4033: Obtain the obstacle probability value corresponding to each grid cell according to the first probability value and the second probability value corresponding to each grid cell.

[0104] Specifically, the above step S4033 includes:

[0105] Step a1: for each grid cell, calculate a first logarithmic ratio corresponding to a first probability value of the grid cell and a second logarithmic ratio corresponding to a second probability value of the grid cell.

[0106] Specifically, the first probability value is obtained according to the following formula: The corresponding first logarithmic ratio And the second probability value The corresponding second logarithmic ratio :

[0107]

[0108]

[0109] Step a2: for each grid cell, obtain the obstacle probability value corresponding to the grid cell according to the first logarithmic ratio and the second logarithmic ratio.

[0110] Specifically, the obstacle probability value can be calculated according to the following formula:

[0111]

[0112] in, Represents the obstacle probability value.

[0113] Therefore, by fusing the first probability value and the second probability value of the grid, the probability that the grid unit is an obstacle after multiple frames is represented, thereby improving the accuracy of perception.

[0114] This embodiment obtains an obstacle probability value by fusing the first probability value and the second probability value to characterize the probability that the grid unit is an obstacle after multiple frames, and comprehensively considers the semantic information of each grid and the coordinate information of adjacent grids, so it has stronger resistance to noise interference and better robustness.

[0115] Step S404: Determine the regional traffic status of each grid cell based on the obstacle probability value of each grid cell. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0116] Step S405: construct a grid map according to the depth information and the regional traffic status corresponding to each grid unit.

[0117] Specifically, the above step S405 includes:

[0118] Step S4051, determining the height value corresponding to each grid unit according to the depth information.

[0119] Specifically, according to the depth information of each pixel in the semantic mosaic image and in combination with the correspondence between the pixel and the grid unit, the height value corresponding to each grid unit can be determined.

[0120] Step S4052: construct a grid map including a drivable area, an obstacle area, and obstacle height values ​​according to the height value corresponding to each grid unit and the regional traffic status.

[0121] Specifically, it is determined whether each grid is a drivable area or an obstacle area. If it is an obstacle area, the obstacle height value is determined according to the height value corresponding to the grid, so as to represent unconventional obstacles and suspended obstacles that cannot be marked on the grid map, thereby obtaining the range of the drivable area and the height values ​​corresponding to some obstacles, and constructing a grid map including the drivable area and obstacle height values, which allows more accurate perception and provides more precise map information for the vehicle.

[0122] In some optional embodiments, in order to facilitate the use and maintenance of the grid map, the first grid whose obstacle probability value is greater than the probability threshold is selected in each angular direction, and the front area of ​​the grid is represented as the drivable area, and the current and rear areas of the grid are both obstacle areas.

[0123] The grid map construction method provided in the present embodiment obtains a semantic mosaic map based on multiple images of the vehicle's environment, divides the semantic mosaic map into grids to obtain coordinates and semantic types corresponding to each grid unit, obtains a first probability value by calculating according to the semantic type of the grid unit, makes a preliminary judgment on the probability of each grid being an obstacle in combination with the semantic type of the grid unit, calculates a second probability value according to the coordinates of each grid unit, and fuses the first probability value and the second probability value to obtain an obstacle probability value to characterize the probability that the grid unit is an obstacle after multiple frames, and has stronger noise resistance, thereby determining the regional traffic status of each grid unit, and finally obtaining a grid map of the drivable area, obstacle area and obstacle height value according to the regional traffic status of each grid unit and the depth information of each pixel in the semantic mosaic map, intuitively representing unconventional obstacles that cannot be marked and suspended obstacles, providing more accurate information for vehicle automatic driving, and no sensors are required to obtain data, which is lower in cost.

[0124] The grid map construction method of the present invention is described in detail below with reference to a specific application example, which includes the following steps:

[0125] Step 1, data preprocessing: semantic pixel projection through IPM. Four surround fisheye cameras are installed on the vehicle, placed in front, rear, left front and right front of the vehicle body respectively. The four fisheye cameras are used to capture multiple images of the vehicle's surrounding environment from the front, rear, left and right directions. The four-way semantic segmentation map can be obtained through the internal and external parameters of the camera. The two-dimensional semantic mosaic image under the top view is obtained by inverse perspective transformation IPM That is, the four-way semantic segmentation map Splicing , the resolution of the semantic mosaic is 640 pixels 640 pixels, corresponding to 12 m on the vehicle plane The resolution of a single pixel is 12 m. m.

[0126] Step 2: Polar coordinate system grid unit division. In the polar coordinate system, the resolution is 640 pixels. 640 pixel semantic mosaic Divide into multiple grid units. Among them, the angular resolution of the polar coordinate grid is , that is, semantic splicing graph Divide into 360 intervals by angle In the angular direction of each grid cell, the polar coordinate radius is 6 m and the radial resolution of the grid cell is , that is, the semantic splicing graph is radially Divided into 60 intervals In summary, each grid cell can be uniquely represented by polar coordinates .

[0127] The conversion formula between grid cell coordinates and polar coordinates is as follows:

[0128]

[0129] Through the above calculation, we can get the grid cells in the polar coordinate system, and initialize the probability value of each grid cell to 0.5. By traversing each grid cell, we can get the semantic splicing map The corresponding pixel coordinates , where the conversion formula between grid unit coordinates and pixel coordinates is as follows:

[0130]

[0131] Step 3: Probabilistic fusion based on semantic information.

[0132] Step 3.1, traverse all grids and obtain the semantic type corresponding to the grid . By pixel coordinates Access to semantic mosaic graph The corresponding pixel point in the grid is used to determine the semantic type of the grid unit according to the semantic information of the pixel point. .

[0133] Step 3.2, calculate the first probability value of the grid:

[0134]

[0135] in, Represents the probability weight corresponding to the semantic type of the grid cell. The details can be as follows:

[0136]

[0137] Step 3.3, calculate the second probability value of the grid. According to the polar coordinates of the current grid , you can search for neighboring grids in the vicinity of the grid The number of neighborhood samples that can be set. , get the coordinate values ​​of adjacent grid cells . Calculate the Euclidean distance between the coordinates of all adjacent grid cells in the neighborhood and the current grid coordinate value , and directly calculate the mean of the Gaussian distribution based on the Euclidean distance , the second probability value of the current grid is obtained according to the following formula:

[0138]

[0139] Step 3.4, calculate the obstacle probability value of the grid. The first probability value is obtained according to the following formula: The corresponding first logarithmic ratio And the second probability value The corresponding second logarithmic ratio :

[0140]

[0141]

[0142] For each grid cell, the obstacle probability value corresponding to the grid cell is calculated according to the first logarithmic ratio and the second logarithmic ratio according to the following formula:

[0143]

[0144] The obstacle probability value Compared with the obstacle probability threshold, the area greater than the obstacle probability threshold is the obstacle area, and the area less than or equal to the obstacle probability threshold is the drivable area.

[0145] Step 4: Grid unit height information fusion. Harris corner points are extracted from the four images taken by the four fisheye cameras using the Harris corner point detection algorithm. The corner points at the same position between the two frames are tracked using the Lucas Kanade optical flow algorithm. The depth value of the tracked corner point is obtained by triangulation, and the pixel point is projected to the plane of the vehicle body at 12 m. The 12 m plane area is used to obtain the depth information of each pixel in the semantic mosaic.

[0146] Step 5, according to steps 1 to 4, the obstacle probability value of each grid being an obstacle in the polar coordinate system at the current moment, as well as the height information corresponding to some grid obstacles can be obtained. In order to facilitate the use and maintenance of the grid map, the first grid whose obstacle probability value is greater than the obstacle probability threshold is selected in each angle direction, which means that the front area of ​​the grid is a drivable area, and the current and rear areas are both obstacle areas. Through the above, the range of the drivable area in each direction in the polar coordinate system and the height values ​​corresponding to some obstacles can be obtained, thereby constructing a grid map.

[0147] The above application example uses the visual perception solution and semantic segmentation results to project semantic pixels onto the ground, divide the ground area into grid cells, and adjust the occupancy of the grid cells according to the probability update method, which has great anti-interference ability to semantic detection noise. At the same time, the depth information of the pixels (corner points) with large gradient transformation is restored and projected into the grid cells to express the height information of the corresponding grid. It has a good representation of unconventional non-labeled objects and small suspended objects, so as to facilitate the construction of a probabilistic grid map with height information. The perception of the drivable area of ​​complex dynamic and static scenes has been greatly improved from robustness to accuracy, and the drivable area of ​​autonomous driving is better expressed.

[0148] In addition, the present invention does not require lidar information and a high-performance computing platform, and can achieve both accurate and robust drivable area perception on low-cost hardware, with a wider range of applications.

[0149] In this embodiment, a grid map construction device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0150] This embodiment provides a grid map construction device, such as Figure 5 As shown, including:

[0151] An acquisition module 501 is used to acquire multiple images of the environment in which the vehicle is located, and obtain a semantic mosaic image and depth information of each pixel in the semantic mosaic image based on the multiple images;

[0152] The first processing module 502 is used to perform grid division on the semantic mosaic graph to obtain a plurality of grid units and coordinates and semantic types corresponding to each grid unit;

[0153] The second processing module 503 is used to obtain the obstacle probability value of each grid cell based on the coordinates and semantic type of each grid cell;

[0154] The third processing module 504 is used to determine the regional traffic status of each grid cell based on the obstacle probability value of each grid cell;

[0155] The fourth processing module 505 is used to construct a grid map according to the depth information and the regional traffic status corresponding to each grid unit.

[0156] In some optional implementations, the semantic mosaic includes semantic information of each pixel; the first processing module 502 is further used for:

[0157] Divide the semantic mosaic into multiple grid units in a polar coordinate system, and obtain the coordinates of each grid unit;

[0158] According to the coordinates of each grid cell, the pixel coordinates of each grid cell are determined;

[0159] For each grid unit, the pixel point corresponding to the grid unit in the semantic mosaic map is determined according to the pixel coordinates of the grid unit, and the semantic type of the grid unit is obtained according to the semantic information of the pixel point.

[0160] In some optional implementations, the second processing module 503 is further configured to:

[0161] Based on the semantic type corresponding to each grid cell, obtaining a first probability value corresponding to each grid cell;

[0162] Traversing each grid cell, calculating the Euclidean distance corresponding to the current grid cell based on the coordinates of the current grid cell and the coordinates of the adjacent grid cells, and obtaining a second probability value according to the Euclidean distance;

[0163] The obstacle probability value corresponding to each grid cell is obtained according to the first probability value and the second probability value corresponding to each grid cell.

[0164] In some optional implementations, the semantic types include drivable areas, dynamic obstacles, and static obstacles, and different semantic types correspond to different probability weights. The second processing module 503 is further used to:

[0165] For each grid cell, a first probability value corresponding to the grid cell is calculated based on the product of the probability weight corresponding to the semantic type of the grid cell and the preset obstacle probability.

[0166] In some optional implementations, the second processing module 503 is further configured to:

[0167] For each grid cell, calculating a first logarithmic ratio corresponding to a first probability value of the grid cell and a second logarithmic ratio corresponding to a second probability value of the grid cell;

[0168] For each grid cell, an obstacle probability value corresponding to the grid cell is obtained according to the first logarithmic ratio and the second logarithmic ratio.

[0169] In some optional implementations, the third processing module 504 is further configured to:

[0170] Traverse each grid cell, if it is detected that the obstacle probability value corresponding to the current grid cell is greater than the obstacle probability threshold, the regional traffic state of the current grid cell is determined to be an obstacle area; otherwise, the regional traffic state of the current grid cell is determined to be a drivable area.

[0171] In some optional implementations, the fourth processing module 505 is further configured to:

[0172] According to the depth information, determine the height value corresponding to each grid unit;

[0173] According to the height value corresponding to each grid unit and the regional traffic status, a grid map including the drivable area, obstacle area and obstacle height value is constructed.

[0174] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0175] The grid map construction device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0176] The embodiment of the present invention also provides a computer device having the above Figure 5 The grid map construction device shown.

[0177] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.

[0178] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0179] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0180] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0181] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0182] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0183] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0184] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0185] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for constructing a grid map, characterized in that: The method comprises: Acquire multiple images of the environment in which the vehicle is located, and obtain a semantic mosaic image and depth information of each pixel in the semantic mosaic image based on the multiple images; Performing grid division on the semantic mosaic graph to obtain a plurality of grid units and coordinates and semantic types corresponding to each grid unit; Obtain the obstacle probability value of each grid cell based on the coordinates and semantic type of each grid cell; Determining the regional traffic status of each grid cell based on the obstacle probability value of each grid cell; Constructing a grid map according to the depth information and the regional traffic status corresponding to each grid unit; Obtaining the obstacle probability value of each grid cell based on the coordinates and semantic type of each grid cell includes: Based on the semantic type corresponding to each grid cell, obtaining a first probability value corresponding to each grid cell; Traversing each grid cell, calculating the Euclidean distance corresponding to the current grid cell based on the coordinates of the current grid cell and the coordinates of the adjacent grid cells, and obtaining a second probability value according to the Euclidean distance; Obtaining an obstacle probability value corresponding to each grid cell according to the first probability value and the second probability value corresponding to each grid cell; The semantic types include drivable areas, dynamic obstacles and static obstacles, and different semantic types correspond to different probability weights; the first probability value corresponding to each grid unit is obtained based on the semantic type corresponding to each grid unit, including: For each grid cell, a first probability value corresponding to the grid cell is calculated based on the product of the probability weight corresponding to the semantic type of the grid cell and the preset obstacle probability; Obtaining the obstacle probability value corresponding to each grid cell according to the first probability value and the second probability value corresponding to each grid cell includes: For each grid cell, calculating a first logarithmic ratio corresponding to the first probability value of the grid cell and a second logarithmic ratio corresponding to the second probability value; For each grid cell, an obstacle probability value corresponding to the grid cell is obtained according to the first logarithmic ratio and the second logarithmic ratio.

2. The method according to claim 1, characterized in that The semantic mosaic includes semantic information of each pixel; the grid division of the semantic mosaic to obtain a plurality of grid units and coordinates and semantic types corresponding to each grid unit includes: Dividing the semantic mosaic into a plurality of grid units in a polar coordinate system to obtain coordinates of each grid unit; Determine the pixel coordinates of each grid cell according to the coordinates of each grid cell; For each grid unit, a pixel point corresponding to the grid unit in the semantic mosaic map is determined according to the pixel coordinates of the grid unit, and a semantic type of the grid unit is obtained according to the semantic information of the pixel point.

3. The method according to claim 2, characterized in that The determining of the regional traffic status of each grid cell based on the obstacle probability value of each grid cell includes: Traverse each grid cell, if it is detected that the obstacle probability value corresponding to the current grid cell is greater than the obstacle probability threshold, the regional traffic state of the current grid cell is determined to be an obstacle area; otherwise, the regional traffic state of the current grid cell is determined to be a drivable area.

4. The method according to any one of claims 1 to 3, characterized in that The step of constructing a grid map according to the depth information and the regional traffic status corresponding to each grid unit includes: Determine the height value corresponding to each grid unit according to the depth information; According to the height value corresponding to each grid unit and the regional traffic status, a grid map including the drivable area, obstacle area and obstacle height value is constructed.

5. A grid map construction device, characterized in that: The device comprises: An acquisition module, used to acquire multiple images of the environment in which the vehicle is located, and obtain a semantic mosaic image and depth information of each pixel in the semantic mosaic image based on the multiple images; A first processing module is used to perform grid division on the semantic mosaic graph to obtain a plurality of grid units and coordinates and semantic types corresponding to each grid unit; The second processing module is used to obtain the obstacle probability value of each grid cell based on the coordinates and semantic type of each grid cell; A third processing module is used to determine the regional traffic status of each grid cell based on the obstacle probability value of each grid cell; A fourth processing module, used for constructing a grid map according to the depth information and the regional traffic status corresponding to each grid unit; The second processing module is further used for: Based on the semantic type corresponding to each grid cell, obtaining a first probability value corresponding to each grid cell; Traversing each grid cell, calculating the Euclidean distance corresponding to the current grid cell based on the coordinates of the current grid cell and the coordinates of the adjacent grid cells, and obtaining a second probability value according to the Euclidean distance; Obtaining an obstacle probability value corresponding to each grid cell according to the first probability value and the second probability value corresponding to each grid cell; The semantic types include drivable areas, dynamic obstacles and static obstacles, and different semantic types correspond to different probability weights; the second processing module is further used for: For each grid cell, a first probability value corresponding to the grid cell is calculated based on the product of the probability weight corresponding to the semantic type of the grid cell and the preset obstacle probability; The second processing module is further used for: For each grid cell, calculating a first logarithmic ratio corresponding to the first probability value of the grid cell and a second logarithmic ratio corresponding to the second probability value; For each grid cell, an obstacle probability value corresponding to the grid cell is obtained according to the first logarithmic ratio and the second logarithmic ratio.

6. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the grid map construction method according to any one of claims 1 to 4 by executing the computer instructions.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the grid map construction method according to any one of claims 1 to 4.