Vehicle lane determination method and device, storage medium and vehicle

By acquiring obstacle information and adjusting vehicle posture for gridded processing, the problem of inaccurate narrow passage width measurement when the vehicle front is not parallel to the road boundary is solved, realizing accurate determination of narrow passage width under different postures, and improving the safety and accuracy of narrow passage passage.

CN120828813BActive Publication Date: 2026-11-27MOMENTA (SUZHOU) TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410473690.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-19
Publication Date
2026-11-27
Estimated Expiration
2044-04-19

AI Technical Summary

Technical Problem

Existing narrow lane width determination technologies only work when a vehicle is within the road and its front is parallel to the road boundary. This results in inaccurate narrow lane width measurements when the front of the vehicle is not parallel to the road boundary.

Method used

By acquiring obstacle information in front of the vehicle, adjusting the vehicle's posture, performing gridding processing on the narrow passage detection area, determining the target obstacle and its location information, and calculating the final narrow passage width based on the grid information, the system can adapt to narrow passage detection under different vehicle postures.

Benefits of technology

Without requiring vehicles to be located within the road and parallel to the road boundary, the width of narrow passages can be accurately determined, providing a reliable basis for judging whether vehicles can pass through narrow passages and improving the safety and accuracy of passage through narrow passages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120828813B_ABST
    Figure CN120828813B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a method and device for determining a narrow lane for a vehicle, a storage medium and a vehicle. The method comprises: obtaining obstacle information in front of the vehicle; adjusting a posture of the vehicle to obtain a narrow lane detection area of the vehicle in each posture; performing rasterization processing on each narrow lane detection area to obtain a plurality of grids divided in each narrow lane detection area and position information of each grid; determining a target obstacle and position information of the target obstacle based on the obstacle information and the position information of each grid; and obtaining a final narrow lane width based on the position information of the target obstacle in each grid of each narrow lane detection area. The narrow lane width is obtained by processing the narrow lane detection areas obtained in different postures of the vehicle. Thus, the narrow lane width can be accurately determined without limiting the vehicle to be located in a road and parallel to a road boundary, thereby providing an accurate basis for subsequent determination of whether the vehicle can pass through the narrow lane.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle driving assistance technology, and more specifically to a method, device, storage medium, and vehicle for determining narrow driving lanes. Background Technology

[0002] Obstacles on the road (such as illegally parked vehicles) can narrow sections of the road, creating narrow passages. Inexperienced drivers may not be able to accurately judge the width of these narrow passages, which can easily lead them to drive into passages that are impassable, resulting in collisions with the obstacles.

[0003] To address these issues, narrow passage width determination technology has emerged. Currently, the principle behind existing narrow passage width determination technology is to collect road data in front of the vehicle while it is positioned within the road and its front is parallel to the road boundary. This data is then processed to determine the width of the narrow passage in front of the vehicle. By comparing the narrow passage width with the vehicle's width, it can be determined whether the vehicle can pass through the narrow passage.

[0004] However, existing narrow lane width determination techniques only work when the vehicle is within the road and its front is parallel to the road boundary. When the front of the vehicle is not parallel to the road boundary, the obtained narrow lane width is inaccurate. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide a method, apparatus, storage medium, and vehicle for determining a narrow passage for a vehicle to travel on, in order to solve the problem that existing narrow passage width determination technologies are only applicable when the vehicle is located within the road and the front of the vehicle is parallel to the road boundary, while when the front of the vehicle is not parallel to the road boundary, the obtained narrow passage width is inaccurate.

[0006] In a first aspect, embodiments of the present invention provide a method for determining a narrow passage for vehicle travel, the method comprising:

[0007] Obtain information about obstacles in front of the vehicle;

[0008] Adjust the vehicle's attitude to obtain the narrow passage detection area of ​​the vehicle under each attitude;

[0009] Each of the narrow channel detection regions is rasterized to obtain multiple grids divided within each narrow channel detection region and the position information of each grid.

[0010] Based on the obstacle information and the position information of each grid, the target obstacle and the position information of the target obstacle are determined, wherein the target obstacle is the obstacle that falls into each grid of each narrow passage detection area;

[0011] The final narrow passage width is obtained based on the position information of the target obstacle in each grid of each narrow passage detection area.

[0012] In one possible implementation, adjusting the vehicle's attitude to obtain the narrow passage detection area of ​​the vehicle in various attitudes includes:

[0013] Obtain the range of the vehicle's front-end rotation angle;

[0014] Within the range of the vehicle head rotation angle, the vehicle head is rotated in preset angular increments;

[0015] The area in front of the vehicle after each rotation is defined as the corresponding narrow passage detection area.

[0016] In one possible implementation, the step of rasterizing each of the narrow channel detection regions to obtain multiple grids divided within each narrow channel detection region and the position information of each grid includes:

[0017] A corresponding vehicle coordinate system is constructed within each of the narrow passage detection areas, wherein the direction of the first coordinate axis of the vehicle coordinate system is the direction in which the vehicle is facing, and the first coordinate axis coincides with the center line of the vehicle's front; the direction of the second coordinate axis of the vehicle coordinate system is the direction pointing to the left of the first coordinate axis and perpendicular to the first coordinate axis.

[0018] Along the first coordinate axis of the vehicle coordinate system, the corresponding narrow passage detection area is divided into grids, wherein the length of the grids gradually increases along the first coordinate axis of the vehicle coordinate system, and the width of the grids is the same.

[0019] Based on the vehicle coordinate system, the coordinate information of each vertex of each grid is determined to obtain the position information of each grid.

[0020] In one possible implementation, determining the target obstacle and its position information based on the obstacle information and the position information of each grid cell includes:

[0021] Based on the information of each obstacle, the coordinate information of each obstacle in each vehicle coordinate system is calculated;

[0022] The coordinate information of each obstacle in each vehicle coordinate system is compared with the coordinate information of each grid in the corresponding narrow passage detection area. The obstacles located within each grid are identified as target obstacles, and the coordinate information of the obstacles located within each grid is identified as the position information of the target obstacles.

[0023] In one possible implementation, obtaining the final narrow passage width based on the position information of the target obstacle in each grid of each narrow passage detection region includes:

[0024] Based on the coordinate information of the target obstacle in each grid of each narrow passage detection area, the initial narrow passage width of each grid of each narrow passage detection area is determined;

[0025] The initial narrow widths of each grid in each narrow detection region are compared to determine the minimum initial narrow width as the narrow width of the corresponding narrow detection region.

[0026] The widths of each of the narrow detection regions are compared to determine the largest narrow width as the final narrow width.

[0027] In one possible implementation, the coordinate information of the target obstacle includes a first coordinate value and a second coordinate value of the target obstacle; determining the initial narrow width of each grid in each narrow passage detection region based on the coordinate information of the target obstacle in each grid of each narrow passage detection region includes:

[0028] The second coordinate values ​​of the target obstacles in the first grid of each narrow passage detection area and the second coordinate values ​​of the target obstacles in the grids adjacent to the first grid are sorted to obtain a corresponding sequence of second coordinate values; wherein, the first grid is any grid of the narrow passage detection area.

[0029] Calculate the difference between two adjacent second coordinate values ​​in the second coordinate value sequence and the corresponding median;

[0030] Based on all the differences and the median, the initial narrow width of the first grid is determined;

[0031] Any cell in the remaining cells of the narrow detection area is designated as the new first cell, and the above steps are repeated until there are no remaining cells in the narrow detection area.

[0032] In one possible implementation, determining the initial narrow channel width of the first grid based on all the differences and the median includes:

[0033] Determine whether each difference is greater than the width of the vehicle. If so, determine that there is a passable narrow passage and determine the number of differences greater than the width of the vehicle as the number of passable narrow passages. If not, determine the maximum difference as the initial narrow passage width of the first grid.

[0034] If the number of passable narrow passages is greater than 1, then the distance between the median value corresponding to the difference greater than the width of the vehicle and the first coordinate axis is calculated, and the difference corresponding to the median value with the smallest distance is determined as the initial narrow passage width of the first grid; otherwise, the difference is determined as the initial narrow passage width of the first grid.

[0035] In one possible implementation, after obtaining the final narrow passage width based on the position information of the target obstacle in each grid of each narrow passage detection region, the process includes:

[0036] The final narrow passage width is compared with the width of the vehicle to determine the narrow passage status.

[0037] In one possible implementation, comparing the final narrow passage width with the width of the vehicle to determine the narrow passage state includes:

[0038] If the difference between the final narrow passage width and the width of the vehicle is less than a first preset value, then the narrow passage is determined to be an impassable state.

[0039] If the difference between the final narrow passage and the width of the vehicle is greater than the first preset value and less than the second preset value, then the narrow passage is determined to be a narrow passable state.

[0040] If the difference between the final narrow passage and the width of the vehicle is greater than the second preset value, then the narrow passage is determined to be passable.

[0041] In one possible implementation, after comparing the final narrow passage width with the width of the vehicle to determine the narrow passage state, the method further includes:

[0042] If the narrow passage is in an impassable state, a message indicating that it is impassable will be sent.

[0043] If the narrow passage is in a narrow but passable state, then send a prompt message indicating that the narrow passage is passable.

[0044] If the narrow passage is passable, no notification message will be sent.

[0045] Secondly, embodiments of the present invention provide a device for determining a narrow passage for vehicle travel, comprising:

[0046] The acquisition module is used to acquire information about obstacles in front of the vehicle;

[0047] The attitude adjustment module is used to adjust the attitude of the vehicle to obtain the narrow passage detection area of ​​the vehicle under various attitudes.

[0048] A rasterization module is used to perform rasterization processing on each of the narrow channel detection regions to obtain multiple grids divided within each narrow channel detection region and the position information of each grid.

[0049] The target obstacle determination module is used to determine the target obstacle and its position information based on the obstacle information and the position information of each grid, wherein the target obstacle is the obstacle that falls into each grid of each narrow passage detection area;

[0050] The narrow passage width determination module is used to obtain the final narrow passage width based on the position information of the target obstacle in each grid of each narrow passage detection area.

[0051] Thirdly, embodiments of the present invention provide a vehicle including the aforementioned vehicle travel narrow passage determination device.

[0052] Fourthly, embodiments of the present invention provide a storage medium storing at least one executable instruction, which causes a processor to perform the operation corresponding to the above-described method for determining a narrow passage for vehicle travel.

[0053] According to embodiments of the present invention, a method, apparatus, storage medium, and vehicle for determining a narrow passage for a vehicle are provided. The method involves: acquiring obstacle information in front of the vehicle; adjusting the vehicle's posture to obtain narrow passage detection areas for each posture; performing rasterization processing on each narrow passage detection area to obtain multiple grids within each narrow passage detection area and the position information of each grid; determining the target obstacle and its position information based on the obstacle information and the position information of each grid; and obtaining the final narrow passage width based on the position information of the target obstacle in each grid of each narrow passage detection area. This method obtains the narrow passage width by processing the narrow passage detection areas obtained from different vehicle postures. This allows for accurate determination of the narrow passage width without requiring the vehicle to be located within the road and parallel to the road boundary, thus providing an accurate basis for subsequent determination of whether the vehicle can pass through the narrow passage. Attached Figure Description

[0054] The following drawings, which are included as part of the embodiments of the present invention, are used to understand the invention. The drawings illustrate embodiments of the invention and their descriptions, serving to explain the principles of the invention.

[0055] In the attached image:

[0056] Figure 1 A flowchart illustrating a method for determining a narrow passage for vehicle travel according to an optional embodiment of the present invention;

[0057] Figure 2 for Figure 1The flowchart of step S102 in the document;

[0058] Figure 3 for Figure 1 The flowchart of step S103 in the process;

[0059] Figure 4 for Figure 1 The flowchart of step S104 in the process;

[0060] Figure 5 This is a scene diagram of a narrow detection area rasterized according to an optional embodiment of the present invention;

[0061] Figure 6 for Figure 1 Flowchart of step S105;

[0062] Figure 7 for Figure 6 Flowchart of step S501;

[0063] Figure 8 for Figure 7 Flowchart of step S603;

[0064] Figure 9 This is a schematic diagram of a device for determining a narrow passage for a vehicle according to an optional embodiment of the present invention. Detailed Implementation

[0065] In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the invention. However, it will be apparent to those skilled in the art that the invention can be practiced without one or more of these details. In other instances, certain technical features well-known in the art have not been described in order to avoid obscuring the invention.

[0066] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms “comprising” and / or “including” are used in this specification, they indicate the presence of the stated features, integrals, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or combinations thereof.

[0067] Exemplary embodiments according to the present invention will now be described in more detail with reference to the accompanying drawings. However, these exemplary embodiments may be implemented in many different forms and should not be construed as being limited to the embodiments set forth herein. It should be understood that these embodiments are provided so that the disclosure of the invention is thorough and complete, and that the concept of these exemplary embodiments is fully conveyed to those skilled in the art.

[0068] Firstly, such as Figure 1 As shown, this embodiment of the invention provides a method for determining a narrow passage for a vehicle to travel, including:

[0069] Step S101: Obtain information about obstacles in front of the vehicle.

[0070] In this embodiment of the invention, the vehicles include, but are not limited to, passenger cars and commercial vehicles. Common types of passenger cars include, but are not limited to, sedans, sports utility vehicles, and multi-person commercial vehicles. Common types of commercial vehicles include, but are not limited to, pickup trucks, minivans, dump trucks, cargo trucks, tractor units, trailers, and mining vehicles.

[0071] Obstacles are objects that affect vehicle movement, such as vehicles parked on the road or walls. Obstacle information includes, but is not limited to, the position information of the obstacle in a specific coordinate system, which can be the world coordinate system, the image coordinate system of the detected image, etc. Information about obstacles in front of the vehicle can be obtained by an obstacle detection sensor installed in front, such as a lidar sensor. In specific applications, the results detected by the lidar can be converted into a unified form, for example, converting the obstacles detected by the lidar into obstacle points. Specifically, in one implementation, the four edges of the lidar output are uniformly sampled, and the sampled points are used as obstacle points. In another implementation, the scattered points output by the lidar are used as obstacle points. In yet another implementation, obstacle contour points are used as obstacle points.

[0072] Step S102: Adjust the vehicle's attitude to obtain the narrow passage detection area of ​​the vehicle in each attitude.

[0073] Adjusting the vehicle's posture allows the front of the vehicle to form different angles with the road boundary. In other words, among the postures obtained by adjusting the vehicle, there can be postures where the front of the vehicle is parallel to the road boundary, and there can also be postures where the front of the vehicle is not parallel to the road boundary.

[0074] The narrow passage detection area is the area located in front of the vehicle's front end under the corresponding vehicle posture. However, the narrow passage detection area varies depending on the vehicle's posture.

[0075] Step S103: Perform rasterization processing on each narrow channel detection area to obtain multiple grids divided within each narrow channel detection area and the position information of each grid.

[0076] Step S104: Based on obstacle information and the position information of each grid, determine the target obstacle and its position information, wherein the target obstacle is the obstacle that falls into each grid of each narrow passage detection area.

[0077] By comparing obstacle information with the position information of each grid, the accuracy of target obstacle identification is improved, thereby improving the accuracy of narrow passage width calculation.

[0078] Step S105: Based on the position information of the target obstacle in each grid of each narrow passage detection area, the final narrow passage width is obtained.

[0079] In this embodiment, the narrow passage width is obtained by processing the narrow passage detection area obtained from different vehicle postures. This allows for accurate determination of the narrow passage width without restricting the vehicle to be located within the road and parallel to the road boundary, thus providing an accurate basis for subsequent determination of whether the vehicle can pass through the narrow passage.

[0080] Specifically, in the above embodiments, such as Figure 2 As shown, step S102 includes:

[0081] Step S201: Obtain the range of the vehicle's front rotation angle.

[0082] The range of angles the vehicle's front can rotate can be set according to actual conditions. In practical applications, the range of angles the vehicle's front can rotate is based on the angle between the vehicle's orientation and the x-axis of the geographic coordinate system, and is obtained by increasing or decreasing within a certain range. For example, if the angle between the vehicle's orientation and the x-axis of the geographic coordinate system is 0°, then the range of angles the vehicle's front can rotate is [-30°, 30°], that is, the range of angles the vehicle's front can rotate is between an angle of 30° between the vehicle's orientation and the x-axis of the geographic coordinate system and an angle of -30° between the vehicle's orientation and the x-axis of the geographic coordinate system.

[0083] Step S202: Within the range of the vehicle head rotation angle, rotate the vehicle head in preset angle steps.

[0084] The preset angle step size can be set by the staff themselves, and this implementation does not impose strict limitations.

[0085] In one implementation, the preset angle step size is 5°. Assuming the range of the vehicle's front rotation angle is [-30°, 30°], then the vehicle needs to be rotated 12 times so that the vehicle's front orientation forms angles of 30°, 25°, 20°, 15°, 10°, 5°, 0°, -5°, -10°, -15°, -20°, -25°, and -30° with the x-axis of the geographic coordinate system, respectively.

[0086] Step S203: Determine the area in front of the vehicle after each rotation as the corresponding narrow passage detection area.

[0087] The area in front of the vehicle after each rotation is defined as the corresponding narrow passage detection area, thereby obtaining the narrow passage detection area of ​​the vehicle front at multiple angles, which improves the accuracy of the final narrow passage width obtained subsequently.

[0088] Specifically, in the above embodiments, such as Figure 3 As shown, step S103 includes:

[0089] Step S301: Construct a corresponding vehicle coordinate system within each narrow passage detection area. The first coordinate axis of the vehicle coordinate system is oriented towards the front of the vehicle and coincides with the centerline of the front of the vehicle. The second coordinate axis of the vehicle coordinate system is oriented to the left of the first coordinate axis and is perpendicular to the first coordinate axis.

[0090] like Figure 5 As shown, the vehicle coordinate system is based on the current orientation of the vehicle's front as the direction of the first coordinate axis (i.e., the x-axis), and the direction of the second coordinate axis (i.e., the y-axis) is to the left of the first coordinate axis and perpendicular to the first coordinate axis.

[0091] It is understandable that, since the vehicle's frontal orientation is different for each narrow lane detection area, the orientation of the vehicle's coordinate system is also different for each narrow lane detection area.

[0092] Step S302: Divide the corresponding narrow passage detection area into grids along the first coordinate axis of the vehicle coordinate system, wherein the length L of the grid gradually increases along the first coordinate axis of the vehicle coordinate system, and the width W of the grid is the same for all grids.

[0093] In practical applications, areas close to the front of the vehicle are not divided into grids. For example, grids are divided within a range of 4 meters from the front of the vehicle. This reduces the number of grids, thereby reducing the amount of data processing and improving data processing efficiency.

[0094] The length L of the grid is gradually increased along the first coordinate axis of the vehicle coordinate system. That is, the farther the grid is from the front of the vehicle, the longer the length L is; the closer the grid is to the front of the vehicle, the shorter the length L is. This grid division can improve the accuracy of determining the width of the narrow passage.

[0095] To facilitate the calculation of the initial narrow channel width of each grid cell, the centerline of each grid cell is aligned with the first coordinate axis.

[0096] Step S303: Based on the vehicle coordinate system, determine the coordinate information of each vertex of each grid to obtain the position information of each grid.

[0097] In this system, the units of the first and second coordinate axes of the vehicle coordinate system are the same as the units of the vehicle width, which facilitates the comparison between the width of the narrow passage and the width of the vehicle. Generally, the first coordinate axis, the second coordinate axis, and the vehicle width are all in meters.

[0098] By determining the coordinates of each fixed point in each grid, it is easier to compare them with the positions of obstacles, thus enabling faster identification of obstacles (i.e., target obstacles) and their locations within each grid, and also improving the accuracy of target obstacle identification.

[0099] Specifically, in the above embodiments, such as Figure 4 As shown, step S104 includes:

[0100] Step S401: Based on the information of each obstacle, calculate the coordinate information of each obstacle in each vehicle coordinate system.

[0101] The obstacle information obtained in step S101 includes the position information of each obstacle in the characteristic coordinate system. The specific coordinate system can be the world coordinate system, the image coordinate system of the detection result image, etc. Therefore, by using the position information of the obstacle in the specific coordinate system, that is, the coordinate information in the characteristic coordinate system, and the transformation matrix between the specific coordinate system and the respective vehicle coordinate system, the coordinate information of each obstacle in its respective vehicle coordinate system can be obtained.

[0102] In this step, the coordinate information of each obstacle in each vehicle coordinate system is calculated, thereby unifying the coordinates of each obstacle and the coordinates of each vertex of each grid in the vehicle coordinate system. This facilitates the comparison of the coordinates of each obstacle with the vertex coordinates of each grid, and enables the rapid and accurate identification of obstacles located in each grid.

[0103] Step S402: Compare the coordinate information of each obstacle in each vehicle coordinate system with the coordinate information of each grid in the corresponding narrow passage detection area, identify the obstacles located within each grid as target obstacles, and identify the coordinate information of the obstacles located within each grid as the position information of the target obstacles.

[0104] For example, with Figure 5Taking grid a1 in the narrow passage detection area as an example, assuming the coordinates of each vertex of grid a1 in the vehicle coordinate system of the detection area are (5, 2), (5, -2), (4, 2), (4, -2), if the coordinates of an obstacle in the vehicle coordinate system of the detection area are (5.5, 0), and the coordinate of its first coordinate axis (i.e., the x-axis of the vehicle coordinate system) is 5.5, which is outside the range of grid a1, then the obstacle is determined not to be within grid a1. The coordinates of each vertex of grid a2 are (5, 2.2), (5, -2.2), (6, 2.2), (6, -2.2), and the first and second coordinate values ​​of the obstacle both fall within the range of grid a2. Therefore, the obstacle can be determined to be a target obstacle that falls within grid a2, and the position information of the target obstacle is the coordinates of the obstacle in the vehicle coordinate system, i.e., (5.5, 0).

[0105] Specifically, in the above embodiments, such as Figure 6 As shown, step S105 includes:

[0106] Step S501: Based on the coordinate information of the target obstacle in each grid of each narrow passage detection area, determine the initial narrow passage width of each grid in each narrow passage detection area.

[0107] Step S502: Compare the initial narrow widths of each grid in each narrow detection region to determine the minimum initial narrow width as the narrow width of the corresponding narrow detection region.

[0108] The minimum initial narrow width in each narrow detection area is used to determine the narrow width of that narrow detection area. In other words, the narrowest area width in each narrow detection area is determined as the narrow width of that detection area, thereby improving the accuracy of the narrow width determined for each narrow detection area.

[0109] Step S503: Compare the narrow widths of each narrow detection area to determine the largest narrow width as the final narrow width.

[0110] For example, assuming the width of each narrow passage detection area is 2m, 1.8m, 0.5m, 3m, 0.8m, 0.3m, 1.2m, 1.1m, 1.6m, 2.1m, 0.6m, 0.1m, and 1.9m, then the final narrow passage width is 2m.

[0111] The widths of the narrow passages in each narrow passage detection area are compared, and the largest narrow passage width is selected as the final narrow passage width. This ensures that if a vehicle cannot pass through the final narrow passage, there are no other narrow passages that the vehicle can pass through, thereby improving the accuracy of subsequent vehicle passage determination.

[0112] Furthermore, in the above embodiments, such as Figure 7 As shown, step S501 includes:

[0113] Step S601: Sort the second coordinate values ​​of the target obstacles in the first grid of each narrow passage detection area and the second coordinate values ​​of the target obstacles in the grids adjacent to the first grid to obtain the corresponding second coordinate value sequence.

[0114] The first grid is any grid within the narrow passage detection area. The coordinate information of the target obstacle includes the first coordinate value and the second coordinate value of the target obstacle, that is, the x-axis coordinate value and y-axis coordinate value of the target obstacle in the vehicle coordinate system of the narrow passage detection area where the first grid is located.

[0115] A cell adjacent to the first cell is the cell immediately next to the first cell. Figure 5 Taking the narrow detection area shown as an example, if grid a1 is the first grid, then grid a2 is the adjacent grid of grid a1. If grid a2 is the first grid, then grid a1 and grid a3 are the adjacent grids of grid a2.

[0116] The second coordinate values ​​of the target obstacle in the first grid and the second coordinate values ​​of the target obstacle in the grid adjacent to the first grid can be arranged in descending order or in ascending order.

[0117] Taking grid a1 as the first grid as an example, suppose there are two target obstacles in grid a1: target obstacle b1 with coordinates (4.5, 1.8) and target obstacle b2 with coordinates (4.3, 0.2); and three target obstacles in grid a2: target obstacle b3 with coordinates (5.2, 0.5), target obstacle b4 with coordinates (5.6, -1.3), and target obstacle b5 with coordinates (5.5, -2). Then, arranging the second coordinate values ​​of each target obstacle in descending order, the resulting sequence of second coordinate values ​​is (1.8, 0.5, 0.2, -1.3, -2).

[0118] Step S602: Calculate the difference between two adjacent second coordinate values ​​and the corresponding median value in the second coordinate value sequence.

[0119] Taking the second coordinate sequence in the previous step as an example, the second coordinate sequence is (1.8, 0.5, 0.2, -1.3, -2). Then the difference between two adjacent second coordinate values ​​is 1.3, 0.3, 1.5, 0.7; the median of two adjacent second coordinate values ​​is 1.15, 0.35, -0.75, -1.65.

[0120] Step S603: Determine the initial narrow width of the first grid based on all differences and the median.

[0121] Step S604: Determine any one of the remaining grid cells in the narrow channel detection area as the new first grid cell, and repeat the above steps until there are no remaining grid cells in the narrow channel detection area.

[0122] Each grid cell in each narrow channel detection area is processed according to steps S601-S603 to obtain the initial narrow channel width of each grid cell in each narrow channel detection area.

[0123] In this embodiment, by sorting the second coordinate values ​​of the target obstacles in the first grid of each narrow passage detection area and the second coordinate values ​​of the target obstacles in the grids adjacent to the first grid, and by sorting the resulting sequence of second coordinate values, the initial narrow passage width can be accurately determined even when obstacles on both sides of the road are misaligned, thereby making the final determined narrow passage width more accurate.

[0124] Specifically, in the above embodiments, such as Figure 8 As shown, step S603 includes:

[0125] Step S701: Determine whether each difference is greater than the width of the vehicle. If yes, proceed to step S702; otherwise, proceed to step S703.

[0126] Step S702: Determine that there are passable narrow passages, and determine the number of differences greater than the width of the vehicle as the number of passable narrow passages.

[0127] For example, assuming the second coordinate sequence is (1.8, 0.5, 0.2, -1.3, -2), the difference between two adjacent second coordinate values ​​is 1.3, 0.3, 1.5, 0.7; the vehicle width is 1.2m, so the differences 1.3 and 1.5 are both greater than the vehicle width, thus determining that there is a passable narrow passage and that there are two passable narrow passages.

[0128] In another example, exemplarily, suppose the second coordinate sequence is (1, 0.5, 0.2, -1.3, -2), then the difference between two adjacent second coordinate values ​​is 0.5, 0.3, 1.5, 0.7, and the vehicle width is 1.2m. Then only 1.5m is greater than the vehicle width, thus determining that there is a passable narrow passage, and the number of passable narrow passages is one.

[0129] Step S703: Determine the maximum difference as the initial narrow width of the first grid.

[0130] For example, suppose the second coordinate sequence is (1.8, 1, 0.1, -1.1, -2), and the difference between two adjacent second coordinate values ​​is 0.8, 0.9, 1, 0.9; the vehicle width is 1.2m, then all the differences are less than the vehicle width, so 1m is taken as the initial narrow width of the first grid.

[0131] Step S704: Determine whether the number of passable narrow passages is greater than 1. If yes, proceed to step S705; otherwise, proceed to step S706.

[0132] Step S705: Calculate the distance between the median value corresponding to the difference that is greater than the width of the vehicle and the first coordinate axis, and determine the difference corresponding to the median value with the smallest distance as the initial narrow width of the first grid.

[0133] Continuing with the example in step S702, the second coordinate sequence is (1.8, 0.5, 0.2, -1.3, -2). The differences between two adjacent second coordinate values ​​are 1.3, 0.3, 1.5, and 0.7; the medians between two adjacent second coordinate values ​​are 1.15, 0.35, -0.75, and -1.65. Among these, the median corresponding to the difference of 1.3 is 1.15, and the median corresponding to the difference of 1.5 is -0.75. Therefore, the narrow path with a difference of 1.5 is closest to the first coordinate axis (i.e., the x-axis of the vehicle coordinate system). Thus, 1.5m is used to determine the initial narrow path of the first grid.

[0134] In this step, if there are two or more passable narrow passages, the width of the passable narrow passage closest to the first coordinate axis (i.e., the x-axis of the vehicle coordinate system) is determined as the initial narrow passage of the first grid.

[0135] Step S706: Determine the difference as the initial narrow channel width of the first grid.

[0136] Continuing with the example in step S702, assuming the second coordinate sequence is (1, 0.5, 0.2, -1.3, -2), then the difference between two adjacent second coordinate values ​​is 0.5, 0.3, 1.5, 0.7. Therefore, the difference of 1.5m, which is greater than the vehicle width of 1.2m, is determined as the initial narrow width of the first grid.

[0137] In this step, if there is only one passable narrow passage, that passable narrow passage is determined as the initial narrow passage of the first grid.

[0138] Furthermore, in the above embodiment, step S105 is followed by:

[0139] Step S801: Compare the final narrow passage width with the vehicle width to determine the narrow passage status.

[0140] By comparing the final width of the narrow passage with the width of the vehicle, it is determined whether the narrow passage is suitable for vehicle passage. This allows the driver to accurately determine whether the vehicle can pass through the narrow passage and how to pass through it based on the narrow passage conditions.

[0141] Specifically, step S801 includes:

[0142] Step S901: If the difference between the final width of the narrow passage and the width of the vehicle is less than the first preset value, then the narrow passage is determined to be impassable.

[0143] The first preset value can be set by staff according to the actual situation, and this embodiment does not impose strict limitations. In one implementation, the first preset value is 0.5m.

[0144] For example, if the final width of the narrow passage is 1.5m, the width of the vehicle is 1.2m, and the first preset value is 0.5m, then the difference between the final width of the narrow passage and the width of the vehicle is 0.3m. If the difference is less than 0.5m, then the narrow passage is determined to be impassable.

[0145] In this step, the narrow passage that is larger than the vehicle width and whose difference from the vehicle width is less than the first preset value is determined as an impassable narrow passage. This way, the driver knows that he cannot drive through the narrow passage, thereby effectively preventing the driver from driving into the narrow passage and colliding with the obstacle, thus improving the safety of passage.

[0146] Step S902: If the difference between the final narrow passage and the width of the vehicle is greater than the first preset value and less than the second preset value, then the narrow passage is determined to be a narrow passable state.

[0147] The second preset value can be set by staff according to the actual situation, and this embodiment does not impose strict limitations. In one implementation, the second preset value is 1.5m.

[0148] For example, if the final width of the narrow passage is 2m, the width of the vehicle is 1.2m, the first preset value is 0.5m, and the second preset value is 1.5m, then the difference between the final width of the narrow passage and the width of the vehicle is 0.8m. If the difference is greater than 0.5m and less than 1.5m, then the narrow passage is determined to be a narrow but passable state.

[0149] In this step, the narrow passage that is larger than the vehicle width and whose difference from the vehicle width is greater than a first preset value but less than a second preset value is defined as a narrow passable passage. When the driver passes through this narrow passage, he can reduce his speed and increase his attention, thereby effectively avoiding collisions with obstacles in the narrow passage and improving the safety of passage.

[0150] Step S903: If the difference between the final narrow passage and the width of the vehicle is greater than the second preset value, then the narrow passage is determined to be passable.

[0151] For example, if the final width of the narrow passage is 3m, the width of the vehicle is 1.2m, and the second preset value is 1.5m, then the difference between the final width of the narrow passage and the width of the vehicle is 1.8m. If the difference is greater than 1.5m, then the narrow passage is determined to be passable.

[0152] In this step, the narrow passage that is larger than the vehicle width and whose difference from the vehicle width is greater than the second preset value is determined as a passable narrow passage. This allows the driver to pass through the narrow passage smoothly, thereby increasing the passage speed of the narrow passage.

[0153] Furthermore, in the above embodiments, step S801 is followed by:

[0154] Step S1001: If the narrow passage is in an impassable state, send an impassable prompt message.

[0155] The prompts include, but are not limited to, text messages and voice announcements.

[0156] When the narrow passage is deemed impassable, a warning message is sent to remind drivers not to drive into the narrow passage, thereby effectively preventing drivers from colliding with obstacles and improving traffic safety.

[0157] Step S1002: If the narrow passage is in a narrow but passable state, send a prompt message indicating that the narrow passage is passable.

[0158] When the narrow passage is in a narrow but passable state, a warning sound is sent to remind the driver to reduce speed and increase attention when driving through the narrow passage, thereby reducing the chance of collision with obstacles.

[0159] Step S1003: If the narrow passage is passable, no prompt message is sent.

[0160] When the narrow passage is passable, no prompt message needs to be sent. In other words, for narrow passages that are passable, drivers can drive normally and pass smoothly.

[0161] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0162] Secondly, such as Figure 9As shown, an embodiment of the present invention provides a device for determining a narrow passage for a vehicle, comprising:

[0163] The acquisition module 1101 is used to acquire obstacle information in front of the vehicle;

[0164] The attitude adjustment module 1102 is used to adjust the attitude of the vehicle to obtain the narrow passage detection area of ​​the vehicle under various attitudes.

[0165] The rasterization module 1103 is used to perform rasterization processing on each narrow channel detection area to obtain multiple grids divided within each narrow channel detection area and the position information of each grid.

[0166] The target obstacle determination module 1104 is used to determine the target obstacle and its position information based on obstacle information and the position information of each grid, wherein the target obstacle is the obstacle that falls into each grid of each narrow passage detection area;

[0167] The narrow passage width determination module 1105 is used to obtain the final narrow passage width based on the position information of the target obstacle in each grid of each narrow passage detection area.

[0168] According to an embodiment of the present invention, a vehicle driving narrow passage determination device obtains the narrow passage width by processing the narrow passage detection area obtained from different vehicle postures. In this way, it is not necessary to restrict the vehicle to be located in the road and parallel to the road boundary, so as to accurately determine the narrow passage width, thereby providing an accurate basis for subsequent determination of whether the vehicle can pass through the narrow passage.

[0169] Thirdly, embodiments of the present invention provide a vehicle including the aforementioned vehicle travel narrow passage determination device.

[0170] Fourthly, embodiments of the present invention provide a storage medium storing at least one executable instruction, which causes a processor to perform the operation corresponding to the above-described method for determining a narrow passage for vehicle travel.

[0171] The present invention has been described through the above embodiments. However, it should be understood that the above embodiments are for illustrative purposes only and are not intended to limit the invention to the scope of the described embodiments. Furthermore, those skilled in the art will understand that the present invention is not limited to the above embodiments, and many more variations and modifications can be made based on the teachings of the present invention, all of which fall within the scope of protection claimed by the present invention. The scope of protection of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for determining a narrow passage for vehicles, characterized in that, The method includes: Obtain information about obstacles in front of the vehicle; Adjust the vehicle's attitude to obtain the narrow passage detection area of ​​the vehicle under each attitude; Each of the narrow channel detection regions is rasterized to obtain multiple grids divided within each narrow channel detection region and the position information of each grid. Based on the obstacle information and the position information of each grid, the target obstacle and the position information of the target obstacle are determined, wherein the target obstacle is the obstacle that falls into each grid of each narrow passage detection area; Based on the position information of the target obstacle in each grid of each narrow passage detection area, the final narrow passage width is obtained; The adjustment of the vehicle's attitude to obtain the narrow passage detection area of ​​the vehicle under various attitudes includes: Obtain the range of the vehicle's front-end rotation angle; Within the range of the vehicle head rotation angle, the vehicle head is rotated in preset angular increments; The area in front of the vehicle after each rotation is defined as the corresponding narrow passage detection area.

2. The method according to claim 1, characterized in that, The step of rasterizing each narrow detection region to obtain multiple grids divided within each narrow detection region and the position information of each grid includes: A corresponding vehicle coordinate system is constructed within each of the narrow passage detection areas, wherein the direction of the first coordinate axis of the vehicle coordinate system is the direction in which the vehicle is facing, and the first coordinate axis coincides with the center line of the vehicle's front; the direction of the second coordinate axis of the vehicle coordinate system is the direction pointing to the left of the first coordinate axis and perpendicular to the first coordinate axis. Along the first coordinate axis of the vehicle coordinate system, the corresponding narrow passage detection area is divided into grids, wherein the length of the grids gradually increases along the first coordinate axis of the vehicle coordinate system, and the width of the grids is the same. Based on the vehicle coordinate system, the coordinate information of each vertex of each grid is determined to obtain the position information of each grid.

3. The method according to claim 2, characterized in that, The step of determining the target obstacle and its location information based on the obstacle information and the position information of each grid cell includes: Based on the information of each obstacle, the coordinate information of each obstacle in each vehicle coordinate system is calculated; The coordinate information of each obstacle in each vehicle coordinate system is compared with the coordinate information of each grid in the corresponding narrow passage detection area. The obstacles located within each grid are identified as target obstacles, and the coordinate information of the obstacles located within each grid is identified as the position information of the target obstacles.

4. The method according to claim 3, characterized in that, The final narrow passage width is obtained based on the position information of the target obstacle in each grid of each narrow passage detection region, including: Based on the coordinate information of the target obstacle in each grid of each narrow passage detection area, the initial narrow passage width of each grid of each narrow passage detection area is determined; The initial narrow widths of each grid in each narrow detection region are compared to determine the minimum initial narrow width as the narrow width of the corresponding narrow detection region. The widths of each of the narrow detection regions are compared to determine the largest narrow width as the final narrow width.

5. The method according to claim 4, characterized in that, The coordinate information of the target obstacle includes a first coordinate value and a second coordinate value of the target obstacle; determining the initial narrow width of each grid in each narrow passage detection area based on the coordinate information of the target obstacle in each grid of each narrow passage detection area includes: The second coordinate value of the target obstacle within the first grid of each narrow detection area, and The second coordinate values ​​of the target obstacles in the grid adjacent to the first grid are sorted to obtain a corresponding second coordinate value sequence; wherein, the first grid is any grid in the narrow passage detection area; Calculate the difference between two adjacent second coordinate values ​​in the second coordinate value sequence and the corresponding median; Based on all the differences and the median, the initial narrow width of the first grid is determined; Any cell in the remaining cells of the narrow detection area is designated as the new first cell, and the above steps are repeated until there are no remaining cells in the narrow detection area.

6. The method according to claim 5, characterized in that, Determining the initial narrow width of the first grid based on all the differences and the median includes: Determine whether each difference is greater than the width of the vehicle. If so, determine that there is a passable narrow passage and determine the number of differences greater than the width of the vehicle as the number of passable narrow passages. If not, determine the maximum difference as the initial narrow passage width of the first grid. If the number of passable narrow passages is greater than 1, then the distance between the median value corresponding to the difference greater than the width of the vehicle and the first coordinate axis is calculated, and the difference corresponding to the median value with the smallest distance is determined as the initial narrow passage width of the first grid; otherwise, the difference is determined as the initial narrow passage width of the first grid.

7. The method according to claim 1, characterized in that, The step of obtaining the final narrow passage width based on the position information of the target obstacle in each grid of each narrow passage detection region includes: The final narrow passage width is compared with the width of the vehicle to determine the narrow passage status.

8. The method according to claim 7, characterized in that, The step of comparing the final narrow passage width with the width of the vehicle to determine the narrow passage status includes: If the difference between the final narrow passage width and the width of the vehicle is less than a first preset value, then the narrow passage is determined to be an impassable state. If the difference between the final narrow passage and the width of the vehicle is greater than the first preset value and less than the second preset value, then the narrow passage is determined to be a narrow passable state. If the difference between the final narrow passage and the width of the vehicle is greater than the second preset value, then the narrow passage is determined to be passable.

9. The method according to claim 8, characterized in that, The step of comparing the final narrow passage width with the width of the vehicle to determine the narrow passage status further includes: If the narrow passage is in an impassable state, a message indicating that it is impassable will be sent. If the narrow passage is in a narrow but passable state, then send a prompt message indicating that the narrow passage is passable. If the narrow passage is passable, no notification message will be sent.

10. A device for determining a narrow passage for a vehicle, characterized in that, include: The acquisition module is used to acquire information about obstacles in front of the vehicle; The attitude adjustment module is used to adjust the attitude of the vehicle to obtain the narrow passage detection area of ​​the vehicle under various attitudes. A rasterization module is used to perform rasterization processing on each of the narrow channel detection regions to obtain multiple grids divided within each narrow channel detection region and the position information of each grid. The target obstacle determination module is used to determine the target obstacle and its position information based on the obstacle information and the position information of each grid, wherein the target obstacle is the obstacle that falls into each grid of each narrow passage detection area; The narrow passage width determination module is used to obtain the final narrow passage width based on the position information of the target obstacle in each grid of each narrow passage detection area; The attitude adjustment module is specifically used for: Obtain the range of the vehicle's front-end rotation angle; Within the range of the vehicle head rotation angle, the vehicle head is rotated in preset angular increments; The area in front of the vehicle after each rotation is defined as the corresponding narrow passage detection area.

11. A vehicle, characterized in that, Includes the vehicle travel narrow passage determination device as described in claim 10.

12. A storage medium, characterized in that, The storage medium stores at least one executable instruction that causes the processor to perform the operation corresponding to the method for determining the vehicle driving narrow passage as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Narrow road passing processing method and narrow road passing processing device

    CN115009305A

  • Narrow road passing method and device and vehicle

    CN117163068A