[go: up one dir, main page]

CN116434171B - Strong light interference lane line detection method based on image restoration algorithm - Google Patents

Strong light interference lane line detection method based on image restoration algorithm

Info

Publication number
CN116434171B
CN116434171B CN202310325934.1A CN202310325934A CN116434171B CN 116434171 B CN116434171 B CN 116434171B CN 202310325934 A CN202310325934 A CN 202310325934A CN 116434171 B CN116434171 B CN 116434171B
Authority
CN
China
Prior art keywords
image
strong light
light interference
lane line
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310325934.1A
Other languages
Chinese (zh)
Other versions
CN116434171A (en
Inventor
杨志发
王龙
董朔
李宗尧
孙勃
马骎
于卓
田晶晶
孙宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jilin University
Original Assignee
Jilin University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jilin University filed Critical Jilin University
Priority to CN202310325934.1A priority Critical patent/CN116434171B/en
Publication of CN116434171A publication Critical patent/CN116434171A/en
Application granted granted Critical
Publication of CN116434171B publication Critical patent/CN116434171B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • G06V20/588Recognition of the road, e.g. of lane markings; Recognition of the vehicle driving pattern in relation to the road
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20092Interactive image processing based on input by user
    • G06T2207/20104Interactive definition of region of interest [ROI]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30248Vehicle exterior or interior
    • G06T2207/30252Vehicle exterior; Vicinity of vehicle
    • G06T2207/30256Lane; Road marking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)

Abstract

本发明提供一种基于图像修复算法的强光干扰车道线检测方法,属于图像处理和道路安全驾驶技术领域;包括以下步骤S1、视频隔帧抽取图像;S2、对抽取的图像进行ROI处理,并计算离散系数,若高于阈值,则进行S3,反之则进行S4;S3、利用inpaintCoherent算法消除强光干扰;S4、图像由RGB通道转换为HSV通道,并做全局均衡化处理;S5、进行灰度处理,再用LoG算子进行图像边缘检测,然后进行均值滤波处理;S6、基于均值滤波后的亮度均值和方差的阙值约束进行二值化处理;S7、用霍夫变换检测算法进行车道线检测,并进行离群值过滤,最小二乘法拟合,绘制出车道线。本发明可以有效提高在外界强光干扰下的车道线检测精度,避免将条状强光识别为车道线,提高道路行车安全性。

The present invention provides a method for detecting lane lines under strong light interference based on an image restoration algorithm, which belongs to the field of image processing and road safety driving technology. The method comprises the following steps: S1, extracting an image from a video frame; S2, performing ROI processing on the extracted image and calculating a discrete coefficient. If the coefficient is higher than a threshold, S3 is performed; otherwise, S4 is performed; S3, eliminating strong light interference using an inpaintCoherent algorithm; S4, converting the image from RGB channels to HSV channels and performing global equalization processing; S5, performing grayscale processing, then performing image edge detection using a LoG operator, and then performing mean filtering processing; S6, performing binarization processing based on a threshold constraint of the brightness mean and variance after mean filtering; S7, performing lane line detection using a Hough transform detection algorithm, performing outlier filtering, and least squares fitting to draw lane lines. The method can effectively improve the accuracy of lane line detection under external strong light interference, avoid identifying strip-shaped strong light as lane lines, and improve road driving safety.

Description

Strong light interference lane line detection method based on image restoration algorithm
Technical Field
The invention belongs to the technical field of image processing and road safety driving, and particularly relates to a strong light interference lane line detection method based on an image restoration algorithm.
Background
The lane line detection technology is one of important components of the current high-order automatic auxiliary driving of the vehicle, under the complex urban road environment or the blocked driving environment, strong sunlight passes through gaps of the blocking objects to form illumination projections with different shapes on the road surface to interfere with the lane line detection, particularly, the sunlight passes through the gaps to form strip-shaped strong light on the road surface, the lane line detection method based on camera observation is challenged, the vehicle passes through a scene of strong light interference, the strong light can interfere with the detection of the lane line to a certain extent to reduce the detection precision, and the safety of automatic driving and the driving safety of the road are affected.
The existing lane line detection method is under the environment with sufficient and soft illumination, the road is wide and free from shielding, and the lane line is obviously compared with the lane. However, in a complex road environment or a blocked driving environment, light forms a complex illumination projection on a lane through a gap of a blocking object above, and particularly a vehicle running under a viaduct is easily affected by strong light passing through the gap, and a linear strong light almost flush with a lane line is formed, which is a difficult challenge for lane line detection depending on a camera image detection technology. The existing lane line detection method is affected by the strong light interference, the situation that straight line strong light is mistakenly regarded as a lane line and the detected lane line deviates from reality occurs, the lane line detection accuracy is not high under the strong light interference environment, the existing lane line detection method ignores the illumination discrete coefficient of an image as a distinguishing image distinguishing standard when identifying whether the current image is the strong light environment or not, and in addition, the existing lane line detection method is subjected to strengthening treatment on the whole picture when facing the strong light interference, so that the identification condition of the lane line under the existence of the straight line strong light interference is not ideal.
Disclosure of Invention
The invention aims to provide a strong light interference lane line detection method based on an image restoration algorithm, which aims to solve the problem that the influence of strong light interference on lane line detection is not considered in the existing method.
In order to achieve the above purpose, the specific technical scheme of the strong light interference lane line detection method based on the image restoration algorithm is as follows:
The strong light interference lane line detection method based on the image restoration algorithm comprises the following steps of:
s1, acquiring a video image according to a monocular vision camera at the front part of a vehicle, extracting the image according to the real-time speed of the vehicle at intervals of frames, and processing the image into a png format;
Step S2, performing ROI processing on the extracted current frame image, performing filtering operation by using a binary mask, selecting a road part in the image as an interested region, calculating the brightness mean value and standard deviation of the ROI region, further calculating a discrete coefficient to be used as a judging condition of a strong light environment, if the calculated discrete coefficient is higher than a threshold value, performing step S3, and if the calculated discrete coefficient is smaller than or equal to the threshold value, performing step S4, wherein the brightness mean value and standard deviation are considered, and the brightness discrete coefficient is calculated, so that the discrete coefficient can effectively reflect the differentiation of brightness. Test calculation shows that the case discrete coefficient of the method is 0.97, the discrete coefficient of a normal road is 0.21, and the larger the discrete coefficient is, the larger the strong light interference is, the threshold value set by the method is 0.45, so that the image of the case is subjected to strong light interference. The method is suitable for strong lights with different shapes, and can effectively judge strong light interference;
And S3, calibrating a strong light interference area to generate a mask, carrying out image restoration by utilizing incoherent pixels in adjacent areas to eliminate strong light interference based on a rapid non-iterative image restoration method, traversing the restoration area only once by adopting a rapid pushing method, transmitting an image value along the coherence direction of the robust estimation of the structure tensor, namely eliminating the strong light interference by utilizing a inpaintCoherent algorithm, and normalizing the image by restoring the area of the strong light interference so as to detect the lane line. The existing lane line detection method does not consider image restoration, and the application range of the external sensing sensor of the vehicle can be wider by restoring the image, so that the reliability of the system is improved;
Step S4, converting the image from RGB channels to HSV channels, performing global equalization processing on each channel of the HSV channels, performing global equalization on color images, changing the brightness of each pixel in the image by changing the histogram of the image, enhancing the contrast of the image with smaller dynamic range, wherein the original image is not clear enough due to uneven brightness distribution, adopting global histogram equalization, converting the histogram of the original image into a uniformly distributed form, retaining the color information of the image, thereby achieving the effect of enhancing the integral contrast of the image, converting the RGB image format into HSV format, and performing histogram equalization on each channel, thereby realizing global histogram equalization. The method has the advantages that the color information of the image is reserved, and the global contrast is improved so that the image is clearer. Some of the existing lane line detection methods are histogram equalization, and color information is not reserved. The method can improve the reliability of the system;
step S5, gray processing is carried out on the enhanced image, further image edge detection is carried out by using a Gaussian-Laplacian operator (LAPLACIAN OFGAUSSIAN, LOG operator), the convolution kernel size is 5 multiplied by 5, and then average filtering processing is carried out on noise in the range of 3 multiplied by 3 of the image;
S6, calculating the mean value and variance of brightness after mean value filtering, constructing threshold constraint to perform binarization processing on the image and selecting an ROI image of a region to be detected;
And S7, carrying out lane line detection by using a Hough transform detection algorithm, classifying the detection result based on positive and negative slopes of the straight lines, filtering outliers, finding out the straight line endpoint with the farthest distance in each classification, carrying out straight line fitting, and drawing a lane line.
Further, in the step S1, the image is extracted according to the real-time speed of the vehicle at intervals and processed into png format, which comprises the following steps, and the following steps are sequentially performed:
Step S11, calculating and extracting real-time frame interval
The frame rate of the monocular vision camera is defined as f, and the real-time display speed of the vehicle is defined as v. In order to ensure the requirement of the real-time detection of the lane line in the running process of the vehicle, the calculated extraction real-time frame interval is as follows:
And step S12, extracting the current real-time image every t frames according to the calculated extraction real-time frame interval t, and processing the current real-time image into a png format.
Further, in the step S2, the calculation of the mean value and standard deviation of the brightness of the ROI area and further the calculation of the discrete coefficient as the condition for judging the strong light environment includes the following steps, which are sequentially performed:
Step S21, calculating a luminance mean value of the ROI area as mean_value, a standard deviation as std_value, and further calculating a discrete coefficient:
and S22, setting the discrete coefficient threshold value to be 0.45, if c is more than 0.45, performing step S3, and if c is less than or equal to 0.45, performing step S4.
Further, in the step S4, the image is converted from the RGB channel to the HSV channel and each HSV channel is subjected to equalization processing, and global equalization of the color image is performed, which includes the following steps:
S41, converting an image from an RGB channel to an HSV channel, and processing a V channel component to a range of [0,255 ];
Step S42, calculating the histogram distribution and frequency of V, calculating the cumulative distribution frequency of V, carrying out equalization treatment on the V channel component, and restoring to the range of [0,1], wherein the statistical frequency distribution formula and the equalization formula are as follows:
Wherein r k is the gray level number, M and N are the number of rows and columns of the number of pixel points, N k is the number of times the current gray value appears, L is the maximum gray level number, and s k is the equalized gray level number;
And S43, replacing the original un-equalized V-channel component with the equalized V-channel component, converting the image from the HSV space back to the RGB space, and outputting the equalized image.
Further, in the step S5, the 5×5 discrete convolution kernel of the image edge detection operator using the gaussian-laplacian operator is:
Because the Laplace operator has higher sensitivity to image noise, the image is firstly processed by Gaussian blur and then edge detection is carried out, so that a better detection effect can be realized.
Further, in the step S6, the mean value and variance of the brightness after the mean value filtering are calculated, a threshold constraint is constructed, the set threshold is the sum of the mean value and the variance, then binarization processing is performed, and the ROI image of the region to be detected is selected.
Further, the step S7 includes the following steps, and the following steps are sequentially performed:
Step S71, detecting lane lines through a Hough change straight line detection algorithm to obtain a structural body with end point coordinate information stored, calculating the slope of each straight line, storing the slope in a vector k, and removing outlier slopes through outlier filtering;
and S72, respectively storing the obtained slopes in two vectors according to positive and negative classifications, finding out two endpoints with the farthest longitudinal distance by traversing the longitudinal coordinates of the endpoints, performing straight line fitting, and drawing a lane line.
The strong light interference lane line detection method based on the image restoration algorithm has the following advantages:
1) According to the invention, by setting the region of interest (ROI), the corresponding brightness discrete coefficient is calculated, so that whether the current image is interfered by strong light or not can be effectively judged, and the image interfered by strong light enters an image restoration process.
2) According to the invention, the video image is acquired according to the monocular vision camera at the front part of the automobile, and the image is extracted according to the real-time speed of the automobile at intervals, so that the image to be processed can be reduced when the speed is lower, and the system calculation force can be reduced.
3) According to the invention, the Gaussian-Laplace operator with the convolution kernel size of 5 multiplied by 5 is used for detecting the image edge, and then the average filtering is carried out to process the noise in the range of 3 multiplied by 3 of the image, so that more accurate edge detection is realized on the image, and the influence of the noise on lane line detection is better avoided.
4) The invention can effectively improve the detection precision of the lane line under the interference of external strong light, avoid the false judgment of the lane line detection and improve the driving safety of the road.
Drawings
FIG. 1 is a flow chart of the present invention.
Fig. 2 is a schematic diagram of lane line detection to be interfered by strong light.
FIG. 3 is a schematic diagram of a selected ROI area for calculating discrete coefficients.
FIG. 4 is a schematic diagram of a selected mask to repair an area.
Fig. 5 is a schematic diagram of the image restoration after eliminating strong light interference.
Fig. 6 is a schematic diagram after HSV global equalization.
Fig. 7 is a schematic diagram after image edge detection using LoG operator with convolution kernel size of 5×5.
Fig. 8 is a schematic diagram after noise cancellation using mean filtering.
FIG. 9 is a diagram of a selected lane line detection area after binarization.
Fig. 10 is a schematic diagram of lane line detection and fitting on an original image.
Detailed Description
In order to better understand the purpose, structure and function of the present invention, the following describes in detail a strong light interference lane line detection method based on an image restoration algorithm with reference to the accompanying drawings.
As shown in figure 1, the method comprises the steps of firstly obtaining a video image according to a monocular vision camera at the front part of a vehicle, extracting the image according to the real-time speed of the vehicle, judging whether the current image has strong light interference or not through calculating a brightness discrete coefficient of a region of interest, carrying out image restoration processing on the current image if the current image has strong light interference, carrying out restoration processing on the image by demarcating a region to be restored, carrying out image edge detection on the image by a Gaussian-Laplace operator, enabling the convolution kernel size to be 3 multiplied by 3, carrying out binarization processing of a mean value filtering processing kernel based on threshold constraint of brightness mean value and variance after mean value filtering, and finally carrying out Hough transformation detection and slope-based clustering processing on marking lane lines.
Example 1:
As shown in fig. 1, the method for detecting the strong light interference lane line based on the image restoration algorithm provided by the embodiment of the invention comprises the following steps in sequence:
s1, acquiring a video image according to a monocular vision camera at the front part of a vehicle, extracting the image according to the real-time speed of the vehicle at intervals of frames, and processing the image into a png format;
the method specifically comprises the following steps:
Step S11, calculating and extracting real-time frame interval
The frame rate of the monocular vision camera is defined as f, and the real-time display speed of the vehicle is defined as v. In order to ensure the requirement of the real-time detection of the lane line in the running process of the vehicle, the calculated extraction real-time frame interval is as follows:
Step S12, extracting the current real-time image every t frames according to the calculated extraction real-time frame interval t, and processing the current real-time image into a png format, wherein the obtained image subjected to strong light interference is shown in fig. 2.
Step S2, performing ROI processing on the extracted current frame image, performing filtering operation by using a binary mask, selecting a road part in the image as an interested region, calculating the brightness mean value and standard deviation of the ROI region, further calculating a discrete coefficient to be used as a judging condition of a strong light environment, performing step S3 if the calculated discrete coefficient is higher than a threshold value, and performing step S4 if the calculated discrete coefficient is smaller than or equal to the threshold value to obtain the ROI region as shown in figure 3;
the method specifically comprises the following steps:
Step S21, calculating a luminance mean value of the ROI area as mean_value, a standard deviation as std_value, and further calculating a discrete coefficient:
and S22, setting the discrete coefficient threshold value to be 0.45, if c is more than 0.45, performing step S3, and if c is less than or equal to 0.45, performing step S4.
Step S3, calibrating a strong light interference area to generate a mask, and performing image restoration to eliminate strong light interference by utilizing incoherent pixels in adjacent areas based on a rapid non-iterative image restoration method, wherein the algorithm adopts a rapid pushing method, traverses the restoration area only once, and simultaneously transmits an image value along a coherent direction of a robust estimation of a structure tensor, namely, eliminates strong light interference by utilizing inpaintCoherent algorithm, so that an area to be restored is shown in figure 4, and is shown in figure 5 after performing image restoration to eliminate strong light interference;
S4, converting an image from an RGB channel to an HSV channel, performing global equalization processing on each channel of the HSV channel, performing global equalization on a color image, changing the brightness of each pixel in the image by changing the histogram of the image, enhancing the contrast of the image with smaller dynamic range, wherein the original image is not clear enough due to uneven brightness distribution, and adopting global histogram equalization, the histogram of the original image can be converted into a uniformly distributed form, and the color information of the image is reserved, so that the effect of enhancing the integral contrast of the image is achieved;
the method specifically comprises the following steps:
S41, converting an image from an RGB channel to an HSV channel, and processing a V channel component to a range of [0,255 ];
Step S42, calculating the histogram distribution and frequency of V, calculating the cumulative distribution frequency of V, carrying out equalization treatment on the V channel component, and restoring to the range of [0,1], wherein the statistical frequency distribution formula and the equalization formula are as follows:
Wherein r k is the gray level number, M and N are the number of rows and columns of the number of pixel points, N k is the number of times the current gray value appears, L is the maximum gray level number, and s k is the equalized gray level number;
Step S43, replacing the original V channel component with the equalized V channel component, converting the image from the HSV space back to the RGB space, outputting the equalized image, and obtaining the globally equalized image as shown in FIG. 6.
S5, carrying out gray level processing on the enhanced image, further carrying out image edge detection by using a Gaussian-Laplace operator, wherein the convolution kernel size is 5 multiplied by 5, and then carrying out mean value filtering processing on noise in the range of 3 multiplied by 3 of the image;
the 5×5 discrete convolution kernel for the image edge detection operator with the gaussian-laplace operator is:
Because the Laplace operator has higher sensitivity to image noise, the image is firstly processed by Gaussian blur and then edge detection is carried out, so that better detection effect can be realized, the image obtained after edge detection by the LoG operator is shown in figure 7, and the image obtained by mean filtering and noise elimination is shown in figure 8.
S6, calculating the mean value and variance of brightness after mean value filtering, constructing threshold constraint to perform binarization processing on the image and selecting an ROI image of a region to be detected;
and calculating the mean value and variance of the brightness after mean value filtering, constructing a threshold constraint, setting the threshold as the sum of the mean value and the variance, performing binarization processing, and selecting an ROI image of the region to be detected as shown in figure 9.
And S7, carrying out lane line detection by using a Hough transform detection algorithm, classifying the detection result based on positive and negative slopes of the straight lines, filtering outliers, finding out the straight line endpoint with the farthest distance in each classification, carrying out straight line fitting, and drawing a lane line.
The method specifically comprises the following steps:
Step S71, detecting lane lines through a Hough change straight line detection algorithm to obtain a structural body with end point coordinate information stored, calculating the slope of each straight line, storing the slope in a vector k, and removing outlier slopes through outlier filtering;
step S72, the obtained slopes are respectively stored in two vectors according to positive and negative classifications, two endpoints with the farthest longitudinal distance are found by traversing the longitudinal coordinates of the endpoints, straight line fitting is carried out, lane lines are drawn, and a fitted lane line detection image is obtained as shown in FIG. 10.
It will be understood that the application has been described in terms of several embodiments, and that various changes and equivalents may be made to these features and embodiments by those skilled in the art without departing from the spirit and scope of the application. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the application without departing from the essential scope thereof. Therefore, it is intended that the application not be limited to the particular embodiment disclosed, but that the application will include all embodiments falling within the scope of the appended claims.

Claims (7)

1. The strong light interference lane line detection method based on the image restoration algorithm is characterized by comprising the following steps of:
s1, acquiring a video image according to a monocular vision camera at the front part of a vehicle, extracting the image according to the real-time speed of the vehicle at intervals of frames, and processing the image into a png format;
Step S2, performing ROI processing on the extracted current frame image, performing filtering operation by using a binary mask, selecting a road part in the image as an interested region, calculating the brightness mean value and standard deviation of the ROI region, further calculating a discrete coefficient to be used as a judging condition of a strong light environment, performing step S3 if the calculated discrete coefficient is higher than a threshold value, and performing step S4 if the calculated discrete coefficient is smaller than or equal to the threshold value;
Step S3, calibrating a strong light interference area to generate a mask, performing image restoration by using incoherent pixels in adjacent areas to eliminate strong light interference, traversing the repair area only once by adopting a rapid propulsion method, and transmitting image values along the coherence direction of the robust estimation of the structure tensor to eliminate strong light interference;
s4, converting the image from an RGB channel to an HSV channel, and performing global equalization processing on each channel of the HSV channel to perform global equalization on the color image;
s5, carrying out gray level processing on the enhanced image, carrying out image edge detection by using a Gaussian-Laplacian operator, wherein the convolution kernel size is 5 multiplied by 5, and then carrying out mean value filtering processing on noise in the range of 3 multiplied by 3 of the image;
S6, calculating the mean value and variance of brightness after mean value filtering, constructing threshold constraint to perform binarization processing on the image and selecting an ROI image of a region to be detected;
And S7, carrying out lane line detection by using a Hough transform detection algorithm, classifying the detection result based on positive and negative slopes of the straight lines, filtering outliers, finding out the straight line endpoint with the farthest distance in each classification, carrying out straight line fitting, and drawing a lane line.
2. The method for detecting the strong light interference lane line based on the image restoration algorithm according to claim 1, wherein in the step S1, the image is extracted and processed into png format according to the real-time speed of the vehicle, comprising the following steps, and the following steps are sequentially performed:
Step S11, calculating and extracting real-time frame interval
Defining the frame rate of the monocular vision camera as f, the real-time display speed of the vehicle as v, and calculating the extraction real-time frame interval as follows:
And step S12, extracting the current real-time image every t frames according to the calculated extraction real-time frame interval t, and processing the current real-time image into a png format.
3. The method for detecting the strong light interference lane line based on the image restoration algorithm according to claim 1, wherein in the step S2, the mean value and standard deviation of the brightness of the ROI area are calculated so as to calculate the discrete coefficient for the judgment condition of the strong light environment, and the method comprises the following steps sequentially:
Step S21, calculating a luminance mean value of the ROI area as mean_value, a standard deviation as std_value, and further calculating a discrete coefficient:
and S22, setting the discrete coefficient threshold value to be 0.45, if c is more than 0.45, performing step S3, and if c is less than or equal to 0.45, performing step S4.
4. The method for detecting the lane line of the strong light interference based on the image restoration algorithm according to claim 1, wherein the step S3 eliminates the strong light interference by using inpaintCoherent algorithm.
5. The method for detecting the strong light interference lane line based on the image restoration algorithm according to claim 1, wherein in the step S4, the image is converted from the RGB channel to the HSV channel and each HSV channel is subjected to an equalization process, and the global equalization of the color image is performed, which comprises the following steps:
S41, converting an image from an RGB channel to an HSV channel, and processing a V channel component to a range of [0,255 ];
Step S42, calculating the histogram distribution and frequency of V, calculating the cumulative distribution frequency of V, carrying out equalization treatment on the V channel component, and restoring to the range of [0,1], wherein the statistical frequency distribution formula and the equalization formula are as follows:
Wherein r k is the gray level number, M and N are the number of rows and columns of the number of pixel points, N k is the number of times the current gray value appears, L is the maximum gray level number, and s k is the equalized gray level number;
and S43, replacing the non-equalized V-channel components with the equalized V-channel components, converting the image from the HSV space back to the RGB space, and outputting the equalized image.
6. The method for detecting a strong light interference lane line based on an image restoration algorithm according to claim 1, wherein in the step S5, a 5×5 discrete convolution kernel of the image edge detection operator using the gaussian-laplace operator is:
7. the method for detecting a strong light interference lane line based on an image restoration algorithm according to claim 1, wherein the step S7 includes the following steps, and the following steps are sequentially performed:
Step S71, detecting lane lines through a Hough change straight line detection algorithm to obtain a structural body with end point coordinate information stored, calculating the slope of each straight line, storing the slope in a vector k, and removing outlier slopes through outlier filtering;
and S72, respectively storing the obtained slopes in two vectors according to positive and negative classifications, finding out two endpoints with the farthest longitudinal distance by traversing the longitudinal coordinates of the endpoints, performing straight line fitting, and drawing a lane line.
CN202310325934.1A 2023-03-30 2023-03-30 Strong light interference lane line detection method based on image restoration algorithm Active CN116434171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310325934.1A CN116434171B (en) 2023-03-30 2023-03-30 Strong light interference lane line detection method based on image restoration algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310325934.1A CN116434171B (en) 2023-03-30 2023-03-30 Strong light interference lane line detection method based on image restoration algorithm

Publications (2)

Publication Number Publication Date
CN116434171A CN116434171A (en) 2023-07-14
CN116434171B true CN116434171B (en) 2025-09-16

Family

ID=87093745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310325934.1A Active CN116434171B (en) 2023-03-30 2023-03-30 Strong light interference lane line detection method based on image restoration algorithm

Country Status (1)

Country Link
CN (1) CN116434171B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118505677B (en) * 2024-07-08 2024-11-05 北京中航天佑科技有限公司 A traffic track deformation detection method, system, device and program product
CN120422848B (en) * 2025-03-20 2025-09-30 长安大学 A lane keeping method for autonomous sanitation vehicles under interference from large vehicle side lights

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107895151A (en) * 2017-11-23 2018-04-10 长安大学 Method for detecting lane lines based on machine vision under a kind of high light conditions
WO2020048027A1 (en) * 2018-09-06 2020-03-12 惠州市德赛西威汽车电子股份有限公司 Robust lane line detection method based on dynamic region of interest

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052921B (en) * 2017-12-27 2020-12-04 海信集团有限公司 Lane line detection method, device and terminal
AU2020102039A4 (en) * 2020-08-28 2020-10-08 Peng, Yue Miss A high-precision multi-targets visual detection method in automatic driving scene

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107895151A (en) * 2017-11-23 2018-04-10 长安大学 Method for detecting lane lines based on machine vision under a kind of high light conditions
WO2020048027A1 (en) * 2018-09-06 2020-03-12 惠州市德赛西威汽车电子股份有限公司 Robust lane line detection method based on dynamic region of interest

Also Published As

Publication number Publication date
CN116434171A (en) 2023-07-14

Similar Documents

Publication Publication Date Title
US8848978B2 (en) Fast obstacle detection
CN116434171B (en) Strong light interference lane line detection method based on image restoration algorithm
Wu et al. Lane-mark extraction for automobiles under complex conditions
CN104408460B (en) A kind of lane detection and tracking detection method
KR101403876B1 (en) Method and Apparatus for Vehicle License Plate Recognition
US20190340446A1 (en) Shadow removing method for color image and application
CN108921813B (en) Unmanned aerial vehicle detection bridge structure crack identification method based on machine vision
KR101717613B1 (en) The moving vehicle detection system using an object tracking algorithm based on edge information, and method thereof
EP3113107B1 (en) Static soiling detection and correction
CN104182983B (en) Highway monitoring video definition detection method based on corner features
CN114127784B (en) Method, computer program product, and computer readable medium for generating a mask for a camera stream
CN104809433A (en) Zebra stripe detection method based on maximum stable region and random sampling
CN112261390B (en) Vehicle-mounted camera equipment and image optimization device and method thereof
CN115471802A (en) Vehicle lane line detection method in weak light environment based on improved Canny algorithm
CN108537815B (en) Video image foreground segmentation method and device
CN105512641A (en) A method of calibrating dynamic pedestrians and vehicles in videos under rain and snow conditions using lidar scanning method
CN116152758A (en) Intelligent real-time accident detection and vehicle tracking method
CN110321828B (en) A front vehicle detection method based on binocular camera and vehicle bottom shadow
Balisavira et al. Real-time object detection by road plane segmentation technique for ADAS
CN118366107B (en) Irregular parking identification method on roads
CN112613456A (en) Small target detection method based on multi-frame differential image accumulation
CN113221739A (en) Monocular vision-based vehicle distance measuring method
CN111242051A (en) Vehicle identification optimization method and device and storage medium
CN109357977B (en) Smoke subregion space rechecking method based on time contact
CN115690162A (en) Method and device for detecting moving large target in fixed video

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant