A traffic road detection method based on millimeter wave radar images
The sliding window method and the point-based horizontal density algorithm are used to perform strong point screening and polynomial fitting on millimeter-wave radar images, which solves the problem of identifying road features in millimeter-wave radar images in the existing technology and realizes the detection of road features under harsh conditions. Road detection robustness and accurate driving decisions for autonomous driving.
Patent Information
- Application Number
- CN202410703712.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-03
AI Technical Summary
Existing computer vision road segmentation models are not yet mature enough to process millimeter-wave radar images, making it difficult to effectively identify road features, especially under different weather and lighting conditions.
The sliding window method is used to perform strong point detection and deduplication processing on millimeter-wave radar images. The set of strong points that contribute the most to the lane boundary is screened out through a point-based horizontal density algorithm, and polynomial fitting is performed to extract the road boundary.
It achieves the robustness of road detection under different weather and lighting conditions, improves the accuracy of self-driving smart cars in identifying road conditions and the safety of driving decisions.
Smart Images

Figure CN118276093B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of millimeter wave radar image processing, and in particular relates to a traffic road detection method based on millimeter wave radar images. Background Art
[0002] With the development of computer technology, sensor technology and various related technologies, the transportation field is gradually developing towards intelligence and informationization. Autonomous driving technology is a key technology in the field of intelligent transportation. It has the characteristics of multi-disciplinary and multi-field cross-integration, including but not limited to artificial intelligence technology, computer technology, sensor technology, automatic control technology, signal processing technology, automobile technology and electronic technology.
[0003] After the efforts of many researchers and years of development, the system of unmanned driving system has gradually matured, and its main framework can be divided into four functional modules: environmental perception, environmental modeling, decision-making and planning, and underlying control. Among them, environmental perception is the module used by unmanned intelligent vehicles to "see the world". It collects data through on-board sensors. After corresponding processing and analysis of the data, it can realize functions such as traffic road detection, positioning and motion estimation, vehicle identification and tracking, obstacle detection, traffic light identification, and traffic sign identification. The realization of environmental perception of unmanned intelligent vehicles is inseparable from on-board sensors. Commonly used sensors include: millimeter wave radar, laser radar, visible light camera, infrared camera, inertial navigation system, global positioning system, etc. These on-board sensors can obtain environmental information around the vehicle, and provide the unmanned intelligent vehicle with its own position and driving status, surrounding targets (pedestrians, vehicles, traffic signs, obstacles, etc.) and current road information. The surrounding environment information and traffic information obtained by the environmental perception system can help unmanned intelligent vehicles to control the driving direction and speed, and then realize the local path planning of the vehicle.
[0004] Millimeter-wave radar is a radar system that uses millimeter waves for ranging and imaging. Compared with visual cameras and lidars, it can adapt to a variety of weather conditions and is not affected by light. It can still provide reliable data in rain, snow, fog, night, etc. At the same time, millimeter-wave radar has good penetration ability, accurate ranging ability and strong anti-interference ability.
[0005] Road environment detection is the most basic and important environmental perception task, and road area extraction is the basis and prerequisite for realizing unmanned driving. Road boundaries are the dividing lines between road areas and non-road areas. They contain significant features that can be used for road detection tasks. Accurate road boundary positioning can ensure high-precision road segmentation.
[0006] There are many road segmentation models for computer vision at this stage, but the work on millimeter-wave radar images is not so mature. The road features in millimeter-wave radar images are very different from those in optical images. Even physically continuous features, such as road edges, appear as a group of bright spots or spots distributed along the roadside. Therefore, the recognition of radar features is crucial in automotive imaging systems. Summary of the invention
[0007] Purpose of the invention: The purpose of the present invention is to provide a method for detecting traffic roads based on millimeter wave radar images. Accurate traffic road detection is achieved, which is conducive to the development of autonomous driving smart cars.
[0008] Technical solution: A traffic road detection method based on millimeter wave radar images of the present invention comprises the following steps:
[0009] Step 1, collect the image of the target traffic road, and divide the image into four areas based on the center of the image, namely: the upper left area is defined as area 1, the lower left area is defined as area 2, the upper right area is defined as area 3 and the lower right area is defined as area 4; use a sliding window to detect strong points in each area;
[0010] Step 2: De-duplicate the strong points detected in each window, remove the duplicate strong points, and then obtain the influence range of the measuring vehicle through the center coordinates of the image and the radar resolution to obtain the range of the horizontal coordinate value;
[0011] Step 3: Merge the strong point sets of area 1 and area 2 into strong point set A, and merge the strong point sets of area 3 and area 4 into strong point set B; classify the strong points in strong point set B to obtain the right boundary point of the lane , Left boundary point of the opposite lane , right boundary point of the opposite lane and outliers ;
[0012] Step 4: For the strong point set A, , , Implement a strong point screening algorithm based on the horizontal density of points to obtain the set of strong points that contribute most to the lane boundary; let the set of strong points that contribute most to the left boundary of the lane be , the set of strong points that contributes most to the right boundary of the lane is , the set of strong points that contributes most to the left boundary of the opposite lane is , the set of strong points that contributes most to the right boundary of the opposite lane is ;
[0013] Step 5: Strong Point Set , , , Perform polynomial fitting respectively to obtain the left and right boundaries of the own lane and the opposite lane;
[0014] Step 6: Pass Clearly identify the left edge of the lane, by Clearly identify the right edge of your lane, by Clearly identify the left boundary of the oncoming lane by Clear the right edge of the oncoming lane; fill and The area between them is filled with and The area between the two lanes is used to obtain the opposite lane, thereby realizing the detection of the target traffic road.
[0015] Furthermore, in step 1, the specific operation of the sliding window is: for area 1, the window first slides to the left and then slides upward; for area 2, the window first slides to the left and then slides downward; for area 3, the window first slides to the right and then slides upward; for area 4, the window first slides to the right and then slides downward.
[0016] Furthermore, in step 1, the detection of the strong points specifically includes the following steps:
[0017] Step 1.1: Use the adaptive thresholding algorithm to obtain the binary image. Traverse all the pixels of the input grayscale image and select a value of The local area of the grayscale mean in the local area is calculated ,in, Represents pixel Gray value, if the pixel value is greater than , then the pixel is set as the foreground, otherwise it is set as the background. If the pixel is at the boundary of the image, the part beyond the boundary needs to be filled to finally obtain a binary image;
[0018] Step 1.2: Use the 8-connected connected component detection algorithm to detect connected areas. First, initialize the label array. and mapping table , and initialize the current label , then for the foreground pixel in the binary image, get the labels of its neighboring pixels. If all labels are 0, mark the current pixel as the current label. It needs to be added by one, otherwise, take the smallest label among the adjacent labels as the label of the current pixel, and update the mapping table to map the adjacent labels to the smallest label. Update the label mapping while ensuring that each connected component uses the smallest label, and finally output the label array ;
[0019] Step 1.3, obtain the maximum pixel value point in the connected area according to the following formula, and define it as the strong point to be detected:
[0020]
[0021] in, Represents the Unicom component detection algorithm, represents the entire image, Represents the horizontal coordinate value, Represents the vertical coordinate value, Represents pixel value.
[0022] Furthermore, in step 2, the range of the horizontal coordinate value is , which is calculated as follows:
[0023]
[0024]
[0025] in, is the width of the image, is the actual impact width of the set measuring vehicle, is the resolution, if the horizontal coordinate value of the strong point conform to , then delete the point.
[0026] Furthermore, in step 2, the strong points detected in each window are deduplicated. When the traffic road is a bridge traffic road, since the bridge traffic road is in a straight state, the strong points within the range of horizontal coordinate values are not boundary strong points of the straight bridge road, and therefore are deleted.
[0027] Furthermore, step 3 specifically includes the following steps:
[0028] Step 3.1: Calculate the center point of the image based on the size of the image , let the width of the image be , Gao Wei , then , ;
[0029] Step 3.2: Determine the perpendicular bisector of the image based on the center point ;
[0030] Step 3.3: Traverse the strong point set , calculate the horizontal distance from each strong point to the perpendicular bisector, that is, the horizontal coordinate offset value , ,in, Represents a strong point where strong points are concentrated The horizontal coordinate value of is the number of strong points corresponding to the strong point set;
[0031] Step 3.4: Given the horizontal distance classification bin , classify the strong point as the right boundary point of the lane according to the horizontal coordinate offset value of the strong point , Left boundary point of the opposite lane , right boundary point of the opposite lane and outliers : , , , .
[0032] Furthermore, step 4 specifically includes the following steps:
[0033] Step 4.1: Initialize the most dense sub-strong point set Empty, the number of points in the densest sub-strong point set 0, set the size of the dense interval manually according to needs ;
[0034] Step 4.2: Concentrate the strong points on the minimum horizontal coordinates As the starting point of the current interval , then the end point of the current interval is ;
[0035] Step 4.3: Calculate the number of points in the current interval And store the points in the current interval into middle go;
[0036] Step 4.4, calculate the density of the current interval: ;
[0037] Step 4.5: If , then update and ;
[0038] Step 4.6: Set the current point Increase the interval size and repeat the above steps until the current point Equal to or exceed the maximum horizontal coordinate of the original strong point concentration ;
[0039] Step 4.7: Obtain the sub-strong point set with the most densely distributed strong points horizontally , the strong points in this sub-strong point set are the strong points that contribute the most to the detection of road boundaries.
[0040] Furthermore, step 5 specifically includes the following steps:
[0041] Step 5.1: Traverse the strong point set and find all vertical coordinate values The same strengths , and count the number of strong points within it , and then the horizontal coordinate values of these strong points and vertical coordinate values Perform averaging, that is , , and then obtain a new strong point, and use the new strong point to replace the corresponding vertical coordinate value The same strong point eventually forms a new vertical coordinate value without duplication A collection of strong points;
[0042] Step 5.2: Assume a strong point set ,in, and The relationship satisfies the function , ;
[0043] Step 5.3: Because the bridge traffic road scenario is a straight-line situation, a first-order polynomial function is selected, that is, a linear fitting is performed:
[0044] ,in, is the slope, is the intercept;
[0045] Step 5.4: Use the least squares method to implement polynomial fitting, find the partial derivative of the error sum of squares of the entire point set and set it to 0:
[0046]
[0047] in, ;
[0048] Step 5.5: , , , then the sum of square errors of the entire point set is expressed as: , we can get ,make , can be obtained , and we get: , get the fitted polynomial coefficients and related functions;
[0049] Step 5.6: Strong point set , , , Carry out the above steps respectively to realize linear fitting and obtain the road boundary set , , , .
[0050] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages:
[0051] (1) The millimeter-wave radar used for road feature recognition in the present invention is more robust than optical cameras under different weather and lighting conditions, and can detect traffic roads even at night or in bad weather conditions;
[0052] (2) The present invention proposes a global strong point detection algorithm that is more in line with the characteristics of millimeter wave radar images, and extracts feature points that can express traffic road information;
[0053] (3) According to the distribution characteristics of the strong points in the millimeter wave radar image, the present invention proposes a strong point set optimization algorithm based on the horizontal density of the point set to obtain the strong point that contributes most to the lane boundary;
[0054] (4) By detecting traffic roads, the present invention enables autonomous driving smart cars equipped with millimeter-wave radar to more accurately identify road conditions, make more precise driving decisions, improve driving safety and stability, and thus promote the vigorous development of artificial intelligence in the field of transportation. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 A schematic diagram of a workflow of a method for simultaneously separating a radar breathing signal and a heartbeat signal in an embodiment of the present invention;
[0056] Figure 2 The schematic diagram of the workflow for strong point detection using the partition sliding window method;
[0057] Figure 3 Schematic diagram of the workflow of the adaptive thresholding algorithm;
[0058] Figure 4 Schematic diagram of the workflow of the connected region detection algorithm;
[0059] Figure 5 Schematic diagram of the workflow of the duplicate point screening algorithm for vertical coordinate value 𝒚;
[0060] Figure 6 This is the detection result of the bridge traffic road in the straight-ahead state. DETAILED DESCRIPTION
[0061] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0062] The present invention provides a method for detecting traffic roads based on millimeter wave radar images. The entire working process is as follows: Figure 1 As shown in the figure, the steps of autonomous driving millimeter wave radar image traffic road detection are as follows:
[0063] Step 1: Divide the image into four regions based on the center of the image, namely the upper left region (region 1), the lower left region (region 2), the upper right region (region 3), and the lower right region (region 4). Then use a sliding window to detect strong points in each region, and the window of each region starts to slide from the center of the original image. For region 1, the window slides to the left first and then slides up. For region 2, the window slides to the left first and then slides down. For region 3, the window slides to the right first and then slides up. For region 4, the window slides to the right first and then slides down;
[0064] Step 2: De-duplicate the strong points detected in each window and remove the duplicate strong points. Then, the influence range of the measuring vehicle is obtained through the center coordinates of the image and the radar resolution, and the range of the horizontal coordinate value is obtained. Since the traffic condition of the bridge is straight ahead, The strong points inside are definitely not the boundary strong points of the straight bridge road and can be deleted;
[0065] Step 3: Merge the strong point sets of area 1 and area 2 into strong point set A, and merge the strong point sets of area 3 and area 4 into strong point set B. Classify the strong points in strong point set B to obtain the right boundary point of the lane. , Left boundary point of the opposite lane , right boundary point of the opposite lane and outliers ;
[0066] Step 4: For the strong point set A, , , Implement a strong point screening algorithm based on the horizontal density of points to obtain the set of strong points that contribute most to the lane boundary. Let the set of strong points that contribute most to the left boundary of the lane be , the set of strong points that contributes most to the right boundary of the lane is , the set of strong points that contributes most to the left boundary of the opposite lane is , the set of strong points that contributes most to the right boundary of the opposite lane is ;
[0067] Step 5: Strong Point Set , , , Perform polynomial fitting respectively to obtain the left and right boundaries of the own lane and the opposite lane;
[0068] Step 6 The left boundary of the lane is clearly defined. The right boundary of the lane is clearly defined. The left boundary of the oncoming lane is clearly defined. The right edge of the oncoming lane is clearly defined. and The area between them is then filled with self-driving lanes. and The area between the two lanes is the opposite lane. So far, the detection of traffic roads in the straight-ahead bridge scene has been realized.
[0069] Step 1 uses the partition sliding window method to detect strong points. The flow chart is as follows: Figure 2 , specifically including the following steps:
[0070] Step 1.1: Use the adaptive thresholding algorithm to obtain the binary image. The workflow diagram is as follows: Figure 3 , traverse all pixels of the input grayscale image, and select a size of The local area of the grayscale mean in the local area is calculated ,in, Represents pixel Gray value, if the pixel value is greater than , then the pixel is set as the foreground, otherwise it is set as the background. If the pixel is at the boundary of the image, the part beyond the boundary needs to be filled to finally obtain a binary image;
[0071] Step 1.2: Use the 8-connected connected component detection algorithm to detect the connected area. The workflow diagram is as follows: Figure 4 , first initialize the label array and mapping table , and initialize the current label , then for the foreground pixel in the binary image, get the labels of its neighboring pixels. If all labels are 0, mark the current pixel as the current label. It needs to be added by one, otherwise, take the smallest label among the adjacent labels as the label of the current pixel, and update the mapping table to map the adjacent labels to the smallest label. Update the label mapping while ensuring that each connected component uses the smallest label, and finally output the label array ;
[0072] Step 1.3, obtain the maximum pixel value point in the connected area according to the following formula, and define it as the strong point to be detected: ,in, Represents the Unicom component detection algorithm, represents the entire image, Represents the horizontal coordinate value, Represents the vertical coordinate value, Represents pixel value.
[0073] The range of horizontal coordinate values mentioned in step 2 The calculation is as follows: , ,in, is the width of the image, is the actual impact width of the set measuring vehicle, is the resolution, if the horizontal coordinate value of the strong point conform to , then delete the point.
[0074] Step 3 involves the classification of strong points, which specifically includes the following steps:
[0075] Step 3.1: Calculate the center point of the image based on the size of the image , let the width of the image be , Gao Wei , then , ;
[0076] Step 3.2: Determine the perpendicular bisector of the image based on the center point ;
[0077] Step 3.3: Traverse the strong point set , calculate the horizontal distance from each strong point to the perpendicular bisector, that is, the horizontal coordinate offset value , ,in, Represents a strong point where strong points are concentrated The horizontal coordinate value of is the number of strong points corresponding to the strong point set;
[0078] Step 3.4: Given the horizontal distance classification bin , classify the strong point as the right boundary point of the lane according to the horizontal coordinate offset value of the strong point , Left boundary point of the opposite lane , right boundary point of the opposite lane and outliers : , , , .
[0079] Step 4 involves a strong point screening algorithm based on the horizontal density of points, which specifically includes the following steps:
[0080] Step 4.1: Initialize the most dense sub-strong point set Empty, the number of points in the densest sub-strong point set 0, set the size of the dense interval manually according to needs ;
[0081] Step 4.2: Concentrate the strong points on the minimum horizontal coordinates As the starting point of the current interval , then the end point of the current interval is ;
[0082] Step 4.3: Calculate the number of points in the current interval And store the points in the current interval into middle go;
[0083] Step 4.4, calculate the density of the current interval: ;
[0084] Step 4.5: If , then update and ;
[0085] Step 4.6: Set the current point Increase the interval size and repeat the above steps until the current point Equal to or exceed the maximum horizontal coordinate of the original strong point concentration ;
[0086] Step 4.7: Obtain the sub-strong point set with the most densely distributed strong points horizontally , the strong points in this sub-strong point set are the strong points that contribute the most to the detection of road boundaries.
[0087] Step 5 involves polynomial fitting of the strong point set, thereby realizing the detection of the traffic road boundary, which specifically includes the following steps:
[0088] Step 5.1: Traverse the strong point set and find all vertical coordinate values The same strengths , and count the number of strong points within it , and then the horizontal coordinate values of these strong points and vertical coordinate values Perform averaging, that is , , and then obtain a new strong point, and use the new strong point to replace the corresponding vertical coordinate value The same strong point eventually forms a new vertical coordinate value without duplication The workflow diagram of this step is Figure 5 ;
[0089] Step 5.2: Assume a strong point set ,in, and The relationship satisfies the function , ;
[0090] Step 5.3: Because the bridge traffic road scenario is a straight-line situation, a first-order polynomial function is selected, that is, a linear fitting is performed:
[0091] ,in, is the slope, is the intercept;
[0092] Step 5.4: Use the least squares method to implement polynomial fitting, find the partial derivative of the error sum of squares of the entire point set and set it to 0:
[0093] ,in, ;
[0094] Step 5.5: , , , then the sum of square errors of the entire point set can be expressed as: , we can get ,make , can be obtained , and we get: , thus the fitted polynomial coefficients and related functions are obtained;
[0095] Step 5.6: Strong point set , , , Carry out the above steps respectively to realize linear fitting and obtain the road boundary set , , , .
[0096] In a further embodiment, the present invention realizes the detection of bridge traffic roads, and the detection results are as follows: Figure 6 shown.
[0097] The specific implementation scheme described above further describes in detail the purpose, technical scheme and beneficial effects of the present invention. It should be understood that the above is only a specific implementation scheme of the present invention and is not intended to limit the scope of the present invention. Any equivalent changes and modifications made by any technician in the field without departing from the concept and principle of the present invention should fall within the scope of protection of the present invention.
Claims
1. A traffic road detection method based on millimeter wave radar images, characterized in that: The following steps are involved: Step 1, collect the image of the target traffic road, and divide the image into four areas based on the center of the image, namely: the upper left area is defined as area 1, the lower left area is defined as area 2, the upper right area is defined as area 3 and the lower right area is defined as area 4; use a sliding window to detect strong points in each area; The detection of the strong points specifically comprises the following steps: Step 1.1: Use the adaptive thresholding algorithm to obtain the binary image, traverse all the pixels of the input grayscale image, select a local area of size window_size with each pixel as the center, and then calculate the grayscale mean in the local area. Where I(i) represents the grayscale value of pixel i. If the pixel value is greater than local_value, the pixel is set as the foreground, otherwise it is set as the background. If the pixel is at the boundary of the image, the part beyond the boundary needs to be filled to finally obtain a binary image. Step 1.2: Use the 8-connected connected component detection algorithm to detect connected areas. First, initialize the label array label and mapping table mapping, and initialize the current label current_label = 1. Then, for the foreground pixel in the binary image, obtain the labels of its adjacent pixels. If all labels are 0, mark the current pixel as the current label, and current_label needs to be increased by 1. Otherwise, take the smallest label among the adjacent labels as the label of the current pixel, and update the mapping table to map the adjacent labels to the smallest label. Update the label mapping while ensuring that each connected component uses the smallest label, and finally output the label array label. Step 1.3, obtain the maximum pixel value point in the connected area according to the following formula, and define it as the strong point to be detected: Where f(·) represents the interconnected component detection algorithm, I(x, y, value pixel ) represents the entire image, x represents the horizontal coordinate value, y represents the vertical coordinate value, value pixel Represents pixel value; Step 2: De-duplicate the strong points detected in each window, remove the duplicate strong points, and then obtain the influence range of the measuring vehicle through the center coordinates of the image and the radar resolution to obtain the range of the horizontal coordinate value; In step 2, the range of the horizontal coordinate value is [x1, x2], which is calculated as follows: Among them, width is the width of the image, wid car is the actual influence width of the set measuring vehicle, resolution is the resolution, if the horizontal coordinate value x of the strong point meets x1≤x≤x2, then delete the point; Step 3, merge the strong point sets of area 1 and area 2 into strong point set A, and merge the strong point sets of area 3 and area 4 into strong point set B; classify the strong points in strong point set B to obtain the right boundary point P1 of the own lane, the left boundary point P2 of the opposite lane, the right boundary point P3 of the opposite lane and the outlier P4; Step 3 specifically includes the following steps: Step 3.1: Calculate the center point of the image (x center ,y center ), let the width of the image be width and the height be height, then we have Step 3.2: Determine the perpendicular bisector of the image based on the center point l(x)=x center ; Step 3.3, traverse the strong point set P, calculate the horizontal distance from each strong point to the perpendicular bisector, that is, the horizontal coordinate offset value D = {d1, d2, ..., d n }, d i =|x i -x center |, where x i represents the horizontal coordinate value of the strong point i in the strong point set, and n is the number of strong points in the corresponding strong point set; Step 3.4: Given horizontal distance classification bins bins = [0, bin1, bin2, bin3, ∞], classify the strong points into the right boundary point P1 of the self-lane, the left boundary point P2 of the opposite lane, the right boundary point P3 of the opposite lane and the outlier point P4 according to the horizontal coordinate offset value of the strong points: P1 = P (0≤d i <bin1)、P2=P(bin1≤d i <bin2)、P3=P(bin2≤d i <bin3)、P4=P(bin3≤d i ); Step 4: Implement a strong point screening algorithm based on the horizontal density of points on the strong point sets A, P1, P2, and P3 to obtain the strong point set that contributes most to the lane boundary; let the strong point set that contributes most to the left boundary of the lane be P EL , the set of strong points that contributes most to the right boundary of the lane is P ER , the strong point set that contributes most to the left boundary of the opposite lane is P OL , the strong point set that contributes most to the right boundary of the opposite lane is P OR ; Step 4 specifically includes the following steps: Step 4.1: Initialize the densest sub-strong point set max_points_interval_set to be empty, the densest sub-strong point set point count max_points_count to 0, and manually set the dense interval size interval according to the needs size ; Step 4.2: Concentrate the strong points on the minimum horizontal coordinate x min As the starting point x of the current interval current , then the end point of the current interval is x current +interval size ; Step 4.3: Calculate the number of points p in the current interval count And store the points in the current interval into points_in_interval; Step 4.4, calculate the density of the current interval: Step 4.5: If p count >max_points_count, then update max_points_count and max_points_interval; Step 4.6: Set the current point x current Increase the interval size and repeat the above steps until the current point x current Equal to or exceed the maximum horizontal coordinate x of the original strong point concentration max ; Step 4.7, obtaining the sub-strong point set max_points_interval_set with the most densely distributed strong points horizontally, and the strong points in the sub-strong point set are the strong points with the greatest contribution to the detection of the road boundary; Step 5: For the strong point set P EL , P ER , P OL , P OR Polynomial fitting is performed respectively to obtain the left and right boundaries of the own lane and the opposite lane; Step 5 specifically includes the following steps: Step 5.1: Traverse the set of strong points and find all strong points P with the same vertical coordinate value y. equal , and count the number of strong points within it Then the horizontal coordinate values x and vertical coordinate values y of these strong points are averaged, that is, Then, new strong points are obtained, and the corresponding strong points with the same vertical coordinate value y are replaced with the new strong points, and finally a new set of strong points without repeated vertical coordinate value y is formed; Step 5.2: Assume that the strong point set P = {(x1, y1), (x2, y2), ..., (x n ,y n )}, where x i and i The relationship satisfies the function f(x i )=y i , i=1,2,...,n; Step 5.3: Because the bridge traffic road scenario is a straight-line situation, a first-order polynomial function is selected, that is, a linear fitting is performed: f(x i , a0, a1) = a1x i +a0, where a1 is the slope and a0 is the intercept; Step 5.4: Use the least squares method to implement polynomial fitting, find the partial derivative of the error sum of squares of the entire point set and set it to 0: Where k = 0, 1; Step 5.5: The sum of square errors of the entire point set is expressed as: E = (XA-Y) T (XA-Y)=(A T X T -Y T )(XA-Y)=A T X T XA-A T X T YY T XA+Y T Y, the derivative is make X T XA=X T Y, the solution is: A=(X T X) -1 X T Y, get the fitted polynomial coefficients and related functions; Step 5.6: For the strong point set P EL , P ER , P OL , P OR Carry out the above steps respectively to realize linear fitting and obtain the road boundary set L EL , L ER , L OL , L OR ; Step 6: Through L EL Clearly identify the left boundary of the lane and pass L ER Clearly identify the right edge of your lane and pass L OL Clear the left boundary of the oncoming lane by L OR Clear the right boundary of the oncoming lane; fill L EL and L ER The area between them is filled with L OL and L IR The area between the two lanes is used to obtain the opposite lane, thereby realizing the detection of the target traffic road.
2. The method for detecting traffic roads based on millimeter wave radar images according to claim 1, characterized in that: In step 1, the specific operation of the sliding window is: for area 1, the window first slides to the left and then slides upward; for area 2, the window first slides to the left and then slides downward; for area 3, the window first slides to the right and then slides upward; for area 4, the window first slides to the right and then slides downward.
3. The method for detecting traffic roads based on millimeter wave radar images according to claim 1, characterized in that: In step 2, the strong points detected in each window are deduplicated. When the traffic road is a bridge traffic road, since the bridge traffic road is in a straight state, the strong points within the range of the horizontal coordinate value are not boundary strong points of the straight bridge road, so they are deleted.
