CN114596551A - Vehicle-mounted forward-looking image crack detection method - Google Patents
Vehicle-mounted forward-looking image crack detection method Download PDFInfo
- Publication number
- CN114596551A CN114596551A CN202210201244.0A CN202210201244A CN114596551A CN 114596551 A CN114596551 A CN 114596551A CN 202210201244 A CN202210201244 A CN 202210201244A CN 114596551 A CN114596551 A CN 114596551A
- Authority
- CN
- China
- Prior art keywords
- crack
- image
- formula
- saliency
- color
- 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.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 59
- 238000000034 method Methods 0.000 claims abstract description 56
- 230000011218 segmentation Effects 0.000 claims abstract description 37
- 238000012545 processing Methods 0.000 claims abstract description 15
- 230000008569 process Effects 0.000 claims abstract description 4
- 238000000605 extraction Methods 0.000 claims description 11
- 238000006243 chemical reaction Methods 0.000 claims description 10
- 239000003086 colorant Substances 0.000 claims description 10
- 238000007781 pre-processing Methods 0.000 claims description 9
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000005315 distribution function Methods 0.000 claims description 4
- 238000011002 quantification Methods 0.000 claims description 4
- 230000008859 change Effects 0.000 claims description 3
- 238000012937 correction Methods 0.000 claims description 3
- 230000009466 transformation Effects 0.000 claims description 3
- 238000009499 grossing Methods 0.000 claims description 2
- 238000003709 image segmentation Methods 0.000 claims description 2
- 238000012797 qualification Methods 0.000 claims description 2
- 238000013139 quantization Methods 0.000 claims description 2
- 238000001914 filtration Methods 0.000 claims 1
- 201000010099 disease Diseases 0.000 abstract description 3
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 abstract description 3
- 241000196324 Embryophyta Species 0.000 abstract 1
- 238000005516 engineering process Methods 0.000 description 5
- 238000013527 convolutional neural network Methods 0.000 description 4
- 238000002474 experimental method Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 238000012549 training Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000010200 validation analysis Methods 0.000 description 2
- 101100153586 Caenorhabditis elegans top-1 gene Proteins 0.000 description 1
- 101100370075 Mus musculus Top1 gene Proteins 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/243—Classification techniques relating to the number of classes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/10—Internal combustion engine [ICE] based vehicles
- Y02T10/40—Engine management systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Molecular Biology (AREA)
- Computational Linguistics (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- Mathematical Physics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
本发明提供了一种车载前视图像裂缝检测的方法。该方法包括前视图像的路面语义分割、路面图像块分类、裂缝检测、裂缝类型判别与统计。本发明方法的处理过程没有近似,能有效避免杂草杂物对于路面检测的影响,在引入基于显著性检测的直方图灰度阈值分割算法后裂缝清晰便于提取,能适应复杂图像的裂缝检测,且具有普遍适用性,能广泛应用于路面病害检测领域。
The invention provides a method for detecting cracks in a vehicle-mounted front-view image. The method includes pavement semantic segmentation of front-view images, classification of pavement image blocks, crack detection, crack type discrimination and statistics. The processing process of the method of the invention is not approximate, and can effectively avoid the influence of weeds and debris on road surface detection. After introducing the histogram grayscale threshold segmentation algorithm based on saliency detection, the cracks are clear and easy to extract, and the crack detection of complex images can be adapted. And it has universal applicability and can be widely used in the field of pavement disease detection.
Description
技术领域technical field
本发明涉及道路病害检测技术领域,尤其是涉及一种车载前视图像裂缝检测的方法。The invention relates to the technical field of road disease detection, in particular to a method for detecting cracks in a vehicle-mounted front-view image.
背景技术Background technique
目前,前视路面图像具有背景纹理多样化、多目标性、光照环境复杂、采集场景复杂等特点,使得裂缝成为破损类型中最难识别的目标之一。车载相机前视拍摄,场景复杂,除公路外还包含道路建设的附属设施及路外环境背景;噪声复杂,包含诸如阴影、车道线、油斑和水渍等噪声;At present, forward-looking road images have the characteristics of diverse background textures, multi-targets, complex lighting environments, and complex collection scenes, which make cracks one of the most difficult targets to identify in damage types. The front-view shooting of the vehicle camera, the scene is complex, in addition to the highway, it also includes the auxiliary facilities of the road construction and the background of the off-road environment; the noise is complex, including noises such as shadows, lane lines, oil spots and water spots;
现如今的路面裂缝检测技术主要有三种:人工视觉检测、数字图像处理和三维激光检测方法。其中,人工视觉检测存在速度慢、效率低、风险高、综合性差等问题。基于图像处理的路面裂缝识别技术的检测步骤一般包含以下内容:首先通过车载相机采集裂缝图像,然后对采集图像进行预处理、裂缝检测与特征提取,得到裂缝类型、裂缝几何特征参数和损坏严重程度等信息(参考:蒋文波,罗秋容,张晓华.基于数字图像的混凝土道路裂缝检测方法综述[J].西华大学学报(自然科学版),2018(1):13.)。基于图像处理的路面裂缝检测技术以其准确性、安全性、鲁棒性和实时性成为路面裂缝检测领域的常用方法。基于三维激光的路面裂缝检测方法不受光照和阴影干扰,识别精度高,速度快;但是,对细小裂缝的检测效果差,硬件成本高,不能广泛应用。There are three main types of pavement crack detection technologies today: artificial vision detection, digital image processing and three-dimensional laser detection methods. Among them, artificial visual detection has problems such as slow speed, low efficiency, high risk, and poor comprehensiveness. The detection steps of pavement crack identification technology based on image processing generally include the following contents: first, the crack image is collected by the vehicle-mounted camera, and then the collected image is preprocessed, crack detection and feature extraction are performed to obtain the crack type, crack geometric characteristic parameters and damage severity. and other information (Reference: Jiang Wenbo, Luo Qiurong, Zhang Xiaohua. A review of concrete road crack detection methods based on digital images [J]. Journal of Xihua University (Natural Science Edition), 2018(1):13.). Pavement crack detection technology based on image processing has become a common method in the field of pavement crack detection due to its accuracy, safety, robustness and real-time performance. The three-dimensional laser-based pavement crack detection method is not disturbed by light and shadow, and has high recognition accuracy and fast speed; however, the detection effect of small cracks is poor, and the hardware cost is high, so it cannot be widely used.
因此,本文对基于车载前视图像路面裂缝检测技术的研究具有良好的理论意义和实际应用价值,可以为实时路面裂缝的监测提供更通用、更高效、更稳定、更智能的路面裂缝识别技术,也能为路面裂缝检测提供科学的评价体系和理论依据。Therefore, this paper has a good theoretical significance and practical application value for the research on the road crack detection technology based on the vehicle front-view image, which can provide a more general, more efficient, more stable and more intelligent road crack identification technology for the real-time monitoring of road surface cracks. It can also provide a scientific evaluation system and theoretical basis for pavement crack detection.
发明内容SUMMARY OF THE INVENTION
针对上述技术问题,本发明的目的在于克服已有技术的不足之处,提出一种车载前视图像裂缝检测的方法。该方法包括前视图像的路面语义分割、路面图像块分类、裂缝检测,裂缝类型判别与统计。In view of the above technical problems, the purpose of the present invention is to overcome the deficiencies of the prior art, and to propose a method for detecting cracks in a vehicle-mounted front-view image. The method includes pavement semantic segmentation of front-view images, classification of pavement image blocks, crack detection, crack type discrimination and statistics.
为实现上述目的,本发明提出了一种车载前视图像裂缝检测的方法,包括如下步骤:To achieve the above object, the present invention proposes a method for detecting cracks in a vehicle-mounted front-view image, comprising the steps of:
S1:对车载前视图像,采用CNN路面语义分割方法分离出路面和背景区域,得到路面图像;S1: For the vehicle front-view image, use the CNN road semantic segmentation method to separate the road surface and the background area, and obtain the road surface image;
S2:将步骤S1所得结果的路面图像划分为n×n规则大小的图像块,采用ResNet网络对图像块进行二分类,得到裂缝和非裂缝的路面图像块;S2: Divide the pavement image obtained in step S1 into n×n regular-sized image blocks, and use the ResNet network to perform binary classification on the image blocks to obtain cracked and non-cracked pavement image blocks;
S3:对步骤S2所得结果的裂缝路面图像块进行图像增强等预处理,采用改进HC显著性检测和灰度直方图阈值分割方法进行裂缝检测,得到裂缝分割图像;S3: Perform image enhancement and other preprocessing on the cracked pavement image block obtained in step S2, and use the improved HC saliency detection and gray histogram threshold segmentation method for crack detection to obtain a crack segmentation image;
S4:对步骤S3所得的裂缝检测图像进行数学形态学的裂缝轮廓提取,通过直方图投影法判别裂缝所属类型,建立二维坐标系计算裂缝的长度和宽度等信息。S4: Perform mathematical morphology crack contour extraction on the crack detection image obtained in step S3, determine the type of crack by histogram projection method, and establish a two-dimensional coordinate system to calculate information such as the length and width of the crack.
优选的,所述的步骤S3中的图像预处理方法包括图像灰度矫正处理、直方图均衡化处理及中值滤波去噪处理,改进HC显著性检测方法由HC显著性检测和细尺度增强两部分构成,检测后用灰度直方图阈值分割方法进行裂缝分割,包括以下内容:Preferably, the image preprocessing method in step S3 includes image grayscale correction processing, histogram equalization processing and median filter denoising processing. The improved HC saliency detection method consists of HC saliency detection and fine-scale enhancement. Part of the composition, after detection, the crack segmentation is performed by the grayscale histogram threshold segmentation method, including the following:
(1)基于HC的显著性检测:一个像素的显著值是通过与图像中的所有其它像素的色差来定义的,表达式如下:(1) HC-based saliency detection: The saliency value of a pixel is defined by the color difference from all other pixels in the image, and the expression is as follows:
式中,D(IK,II)是空间L·a·b中两个像素的颜色距离度量,上式经过扩展像素等级,可以得到每个颜色的显著值,公式如下:In the formula, D(I K , I I ) is the color distance metric of two pixels in the space L·a·b. After the above formula is extended by the pixel level, the salient value of each color can be obtained. The formula is as follows:
式中,c1是像素Ik中的颜色值,n是不同像素颜色的数量,fj是图像I中像素颜色Cj出现的频率,真彩色空间包含256*256*256种可能的颜色,比图像的总像素还多,计算代价高。将每个颜色通道量化为12个,颜色减少到12*12*12个,舍去低频出现的颜色,保留高频出现的颜色。RGB颜色空间量化的方法会产生瑕疵,为了减少误差,采用平滑操作用相似颜色显著值的加权平均替代每个颜色的显著值,但相似颜色需要在Lab颜色空间测量距离。令m=n/4个最近邻颜色来改善颜色c1的显著值,公式如下:where c 1 is the color value in pixel I k , n is the number of different pixel colors, f j is the frequency of pixel color C j in image I, and the true color space contains 256*256*256 possible colors, More than the total pixels of the image, computationally expensive. Quantize each color channel to 12, reduce the color to 12*12*12, discard the color that appears in low frequency, and keep the color that appears in high frequency. The quantization method of the RGB color space will produce flaws. In order to reduce the error, a smoothing operation is used to replace the salient value of each color with the weighted average of the salient values of similar colors, but similar colors need to measure the distance in the Lab color space. Let m = n/4 nearest neighbor colors to improve the saliency value of color c 1 , the formula is as follows:
式中,是颜色c和它的m个最近邻之间的距离;In the formula, is the distance between color c and its m nearest neighbors;
(2)细尺度显著性增强:细尺度显著性增强算法能降低图像噪声显著值。裂缝和背景纹理都具有一定的尺度,将路面裂缝图像变换到适合裂缝的尺度,会更加突显裂缝的局部特征,尺度变换公式如下:(2) Fine-scale saliency enhancement: The fine-scale saliency enhancement algorithm can reduce the saliency value of image noise. Both the crack and the background texture have a certain scale. Converting the pavement crack image to a scale suitable for the crack will highlight the local characteristics of the crack. The scale transformation formula is as follows:
It+1(x,y)=I(UN,t(x,y))×h(·)I t+1 (x,y)=I(U N,t (x,y))×h( )
式中,t表示图像尺度,t=0为原图像,UN,t(x,y)为t尺度下像素点(x,y)的周围M×N领域,h(·)为尺度变化核函数。裂缝尺度因图像分辨率的不同而改变,裂缝形状狭长窄小,尺度不应过细。取N=2,t=1;In the formula, t represents the image scale, t=0 is the original image, U N,t (x, y) is the M×N area around the pixel (x, y) at the t scale, h( ) is the scale change kernel function. The size of the fracture varies with the image resolution. The shape of the fracture is narrow, long and narrow, and the scale should not be too thin. Take N=2, t=1;
细尺度显著性增强算法模拟裂缝线性扩张过程。裂缝细尺度显著性增强公式如下:The fine-scale saliency enhancement algorithm simulates the linear expansion process of fractures. The fracture fine-scale saliency enhancement formula is as follows:
θ∈{0°,45°,90°,135°}θ∈{0°,45°,90°,135°}
式中,Iu为裂缝尺度图像的灰度均值。设Szu为显著性均值,wz(x,y)为点(x,y)处对应的显著性权重,公式如下:In the formula, I u is the gray mean value of the crack-scale image. Let S zu be the saliency mean, w z (x, y) be the corresponding saliency weight at point (x, y), the formula is as follows:
式中,GN,θ(x,y)是以点(x,y)为中心的θ方向的线性邻域的灰度值之和,N=3。设原图像像素点的数量为N,根据统计规律,候选点所占原图比例最多为10%,当候选点为裂缝时,周围长为L的线性邻域点无需再次筛选;In the formula, G N, θ (x, y) is the sum of the gray values of the linear neighborhood in the θ direction with the point (x, y) as the center, and N=3. Let the number of original image pixel points be N. According to statistical rules, the proportion of candidate points in the original image is at most 10%. When the candidate point is a crack, the linear neighborhood points with a surrounding length of L do not need to be screened again;
灰度直方图阈值分割方法:对于路面裂缝图像,当目标区域和背景区域的灰度值不同时,灰度直方图显示为两个波峰,波峰之间有一个波谷。当两个峰值分别对应于目标区域和背景区域的中心灰度值时,对应于谷值的灰度值可以作为图像分割的阈值。假设与波谷相对应的灰度值为T,然后以T作为分割阈值,将灰度值小于T的像素组成的区域作为裂缝区域,以灰度值大于T的像素为背景区域的区域。但是,裂缝区域和路面区域的像素分布服从正态分布,即:Grayscale histogram threshold segmentation method: For pavement crack images, when the grayscale values of the target area and the background area are different, the grayscale histogram is displayed as two peaks with a valley between the peaks. When the two peaks correspond to the central gray value of the target area and the background area, respectively, the gray value corresponding to the valley value can be used as the threshold for image segmentation. Assuming that the gray value corresponding to the trough is T, then T is used as the segmentation threshold, the area composed of pixels with gray value less than T is taken as the crack area, and the pixels with gray value greater than T are taken as the background area. However, the pixel distribution of the crack area and the pavement area obeys a normal distribution, namely:
式中,f1(i)为裂缝区域的分布函数;where f 1 (i) is the distribution function of the fracture region;
从正态分布特征可以看出,上述公式中a1是裂缝区域内所有像素的灰度中心值,u1表示裂缝内所有像素的平均灰度值,δ1 2表示灰度值的均方误差。同样,f2(i)表示背景区域的分布函数;It can be seen from the normal distribution characteristics that in the above formula, a 1 is the central gray value of all pixels in the crack area, u 1 is the average gray value of all pixels in the crack area, and δ 1 2 is the mean square error of the gray value. . Likewise, f 2 (i) represents the distribution function of the background region;
限定条件如下:The qualifications are as follows:
当T让f(T)取为最小值时,T为所需阈值。由于裂缝图像中灰度值变化的范围有限,它不会覆盖所有灰度值范围。因此,可以利用这一点,在设计算法时,仅读取与裂缝中灰度值对应的像素数,提高算法的运行效率;When T lets f(T) take the minimum value, T is the desired threshold. Due to the limited range of gray value variation in the crack image, it does not cover all gray value ranges. Therefore, we can take advantage of this point, when designing the algorithm, only the number of pixels corresponding to the gray value in the crack is read to improve the operation efficiency of the algorithm;
优选的,所述的步骤S4中裂缝轮廓提取使用投影的方法对裂缝图像进行识别并区分其裂缝类型,建立二维坐标系计算出裂缝的长度和宽度的信息,主要包括以下方法和特征:Preferably, in the step S4, the crack contour extraction uses the projection method to identify the crack image and distinguish its crack type, and establish a two-dimensional coordinate system to calculate the information of the length and width of the crack, which mainly includes the following methods and features:
(1)基于投影法的裂缝特征提取与类型识别:对含有裂缝的图像进行特征提取,并根据不同的特征值识别出不同类型的路面裂缝。对裂缝分割后的二值图进行不同方向的投影,通过统计像素点的个数来确定裂缝的几何特征,投影结果具有以下特征:(1) Crack feature extraction and type identification based on projection method: extract features from images containing cracks, and identify different types of pavement cracks according to different eigenvalues. The binary image after crack segmentation is projected in different directions, and the geometric characteristics of the crack are determined by counting the number of pixel points. The projection result has the following characteristics:
①横向裂缝的水平方向投影幅值相差较大,数据变化明显。将其向竖直方向投影时,其投影幅值仍有明显的差距,但表现出较为平滑。各行的像素点数大体相同;①The horizontal projection amplitudes of transverse cracks are quite different, and the data changes obviously. When projecting it to the vertical direction, there is still an obvious difference in the projection amplitude, but it is relatively smooth. The number of pixels in each row is roughly the same;
②当纵向裂缝向水平方向投影时,其投影幅值仍有明显的差距,而向竖直方向投影时,其投影幅值存在明显最大峰值;②When the longitudinal crack is projected to the horizontal direction, there is still an obvious difference in its projection amplitude, while when it is projected to the vertical direction, its projection amplitude has an obvious maximum peak;
③网状裂缝的水平方向与竖直方向投影曲线相似,幅值波动情况大致相同;③ The horizontal direction of the network crack is similar to the vertical direction projection curve, and the amplitude fluctuation is roughly the same;
(2)网状裂缝的量化:网状裂缝采用包络矩形代表裂缝外围,外围包络矩形的确定通过在裂缝分割算法中对裂缝目标的边缘点的寻找来判定,得到包络矩形的四个边缘点,然后取其极值作为包络矩形的几何参数。因此,对于网状裂缝的量化,采用包络矩形方式来计算损坏面积:(2) Quantification of network cracks: The network crack adopts an envelope rectangle to represent the periphery of the crack. The determination of the outer envelope rectangle is determined by searching for the edge points of the crack target in the crack segmentation algorithm, and the four envelope rectangles are obtained. edge point, and then take its extreme value as the geometric parameter of the envelope rectangle. Therefore, for the quantification of network cracks, the envelope rectangle method is used to calculate the damage area:
A=Hμ·WμA=Hμ·Wμ
考虑到前视图像坐标系与道路平面坐标系的转换参数t,公式转换为:Considering the conversion parameter t between the front-view image coordinate system and the road plane coordinate system, the formula is converted to:
A=Hμ·Wμ·tA=Hμ·Wμ·t
(3)线性裂缝长度的计算:由于线性裂缝的骨架是由若干个小段骨架组合而成的,计算出每小段的长度对其求和,得出的结果就是裂缝的长度;(3) Calculation of linear crack length: Since the skeleton of a linear crack is composed of several small segments of skeleton, the length of each segment is calculated and summed, and the result is the length of the crack;
首先,找出裂缝骨架的起止点,假设其对应的坐标分别为(x1,y1)和(xm,yn),其中任意两个相邻点的坐标为(xt,yt)和(xt+1,yt+1),则可以根据如下公式来计算裂缝的总长度L:First, find the starting and ending points of the fracture skeleton, assuming that the corresponding coordinates are (x 1 , y 1 ) and (x m , y n ) respectively, and the coordinates of any two adjacent points are (x t , y t ) and (x t+1 , y t+1 ), the total length L of the crack can be calculated according to the following formula:
式中,D为图像的总长度,Lt为相邻两点的长度;In the formula, D is the total length of the image, and Lt is the length of two adjacent points;
考虑到前视图像坐标系与道路平面坐标系的转换参数t,公式转换如下:Considering the conversion parameter t between the front-view image coordinate system and the road plane coordinate system, the formula conversion is as follows:
(4)线性裂缝宽度的计算:裂缝宽度可以简要的用骨架中像素数量的总和与裂缝长度的比值来表示,公式如下:(4) Calculation of linear crack width: The crack width can be briefly expressed by the ratio of the sum of the number of pixels in the skeleton to the crack length. The formula is as follows:
W=sum/LW=sum/L
考虑到前视图像坐标系与道路平面坐标系的转换参数t,公式转换如下:Considering the conversion parameter t between the front-view image coordinate system and the road plane coordinate system, the formula conversion is as follows:
W=sum/L·tW=sum/L·t
式中,W为裂缝的宽度;where W is the width of the crack;
由上,本发明提供了一种车载前视图像裂缝检测的方法,引入了深度学习的分类方法、HC显著性算法和基于灰度直方图的图像阈值分割算法结合使用,将本发明方法的处理过程没有近似,并且可在道路病害检测等应用领域中使用,可有效提高道路裂缝检测的准确率和稳定性。From the above, the present invention provides a method for detecting cracks in a vehicle-mounted front-view image, which introduces a deep learning classification method, a HC saliency algorithm, and an image threshold segmentation algorithm based on a grayscale histogram. The process has no approximation and can be used in application fields such as road disease detection, which can effectively improve the accuracy and stability of road crack detection.
附图说明Description of drawings
本发明内容的描述与下面附图相结合将变得明显和容易理解,其中:The description of this summary will become apparent and easily understood in conjunction with the following drawings, in which:
图1为本发明一种车载前视图像裂缝检测方法流程图1 is a flow chart of a method for detecting cracks in a vehicle-mounted front-view image of the present invention
图2三种网络验证结果图Figure 2 Three types of network verification results
图3图像预处理图Figure 3 Image preprocessing diagram
图4显著性检测算法对比图Figure 4 Comparison of saliency detection algorithms
图5阈值分割方法对比图Figure 5. Comparison of threshold segmentation methods
图6显著性检测结果二值化Figure 6 Binarization of significance detection results
图7 HC显著性检测算法后阈值分割与单一基于直方图阈值分割对比Figure 7 Comparison of threshold segmentation after HC saliency detection algorithm and single histogram-based threshold segmentation
图8骨架提取结果对比图Figure 8 Comparison of skeleton extraction results
具体实施方式Detailed ways
下面参见图1~图8、表1~表5对本发明一种车载前视图像裂缝检测方法进行详细说明。A method for detecting cracks in a vehicle-mounted front-view image of the present invention will be described in detail below with reference to FIGS. 1 to 8 and Tables 1 to 5. FIG.
如图1所示,本发明一种车载前视图像裂缝检测方法,包括步骤如下:As shown in FIG. 1 , a method for detecting cracks in a vehicle-mounted front-view image of the present invention includes the following steps:
S1:对车载前视图像,采用CNN路面语义分割方法分离出路面和背景区域,得到路面图像;S1: For the vehicle front-view image, use the CNN road semantic segmentation method to separate the road surface and the background area, and obtain the road surface image;
S2:将步骤S1所得结果的路面图像划分为10cm×10cm规则大小的图像块,采用ResNet网络对图像块进行二分类,得到裂缝和非裂缝的路面图像块;S2: Divide the pavement image obtained in step S1 into image blocks with a regular size of 10cm×10cm, and use the ResNet network to classify the image blocks to obtain cracked and non-cracked pavement image blocks;
S3:对步骤S2所得结果的裂缝路面图像块进行图像增强等预处理,采用改进HC显著性检测和灰度直方图阈值分割方法进行裂缝检测,得到裂缝分割图像;S3: Perform image enhancement and other preprocessing on the cracked pavement image block obtained in step S2, and use the improved HC saliency detection and gray histogram threshold segmentation method for crack detection to obtain a crack segmentation image;
S4:对步骤S3所得的裂缝检测图像进行数学形态学的裂缝轮廓提取,通过直方图投影法判别裂缝所属类型,建立二维坐标系计算裂缝的长度和宽度等信息。S4: Perform mathematical morphology crack contour extraction on the crack detection image obtained in step S3, determine the type of crack by histogram projection method, and establish a two-dimensional coordinate system to calculate information such as the length and width of the crack.
下面通过实施示例进一步对本发明方法进行说明。The method of the present invention is further described below by means of implementation examples.
数据集:依据采集到的图像数据和格网编号,对进行棋盘格网分块后的图像进行人工分类,将分块图像分类为裂缝图像和非裂缝图像两类,所有带有裂缝的为一类,所有不带有裂缝的为一类,并将其划分为训练集和验证集,训练集和验证集包含图像的数量分别为5000张、400张。Data set: According to the collected image data and grid number, manually classify the images after the checkerboard grid block, and classify the block images into two categories: cracked images and non-cracked images, all with cracks are one. Classes, all without cracks are classified as one class, and divided into training set and validation set, the number of images contained in training set and validation set is 5000 and 400 respectively.
评价指标:计算准确率(Pr)、召回率(Re)、F-测度实施步骤:Evaluation indicators: Calculate the precision rate (Pr), recall rate (Re), F-measure Implementation steps:
a)对采集到的图像,采用CNN路面语义分割方法分离出路面和背景区域,得到路面图像,根据。依据相机的定标与测量方法,对分割出来的道路区域图像进行10cm×10cm格网分块。对格网分块后的图像,采用ResNet50残差网络、VGG网络、MobilenetV2轻量级移动网络在相同参数下对训练集图像块进行二分类,参数如表1所示。对同一张图像块分别进行VGG卷积神将网络、MobilenetV2轻量级移动网络和ResNet50残差网络三种方法的验证,得到的结果如图2所示。选取400张图片,对其进行Top-1图片准确率、准确率、召回率、F-测度四个指标进行检测,结果如表2所示,证明ResNet50残差网络可以有效分类出带有裂缝的图像块,用以接下来的裂缝图像预处理和检测识别,满足实验的要求。a) For the collected images, use the CNN road semantic segmentation method to separate the road surface and the background area, and obtain the road surface image, according to. According to the calibration and measurement method of the camera, the segmented road area image is divided into 10cm×10cm grid. For the grid-blocked images, ResNet50 residual network, VGG network, and MobilenetV2 lightweight mobile network are used to classify the training set image blocks under the same parameters. The parameters are shown in Table 1. The VGG convolutional neural network, MobilenetV2 lightweight mobile network and ResNet50 residual network are verified for the same image block, and the results are shown in Figure 2. Select 400 pictures, and test them for Top-1 picture accuracy rate, precision rate, recall rate, and F-measure. The results are shown in Table 2, which proves that the ResNet50 residual network can effectively classify the cracks. The image block is used for the subsequent crack image preprocessing and detection and identification, which meets the requirements of the experiment.
表1Table 1
表2Table 2
b)对分类出的带有裂缝的图像进行预处理,首先通过灰度变换,提高了裂缝区域的对比度,使图像达到理想的灰度区间。其次通过图像灰度矫正处理、直方图均衡化处理及中值滤波去噪处理,对图像进行预处理,处理结果如图3,保留并突出图像细节的同时也对图像的噪声进行了去除,解决了祛噪和保留细节的矛盾。b) Preprocessing the classified images with cracks, firstly, through grayscale transformation, the contrast of the cracked area is improved, so that the image reaches the ideal grayscale range. Secondly, through image grayscale correction processing, histogram equalization processing and median filter denoising processing, the image is preprocessed. The processing result is shown in Figure 3. While retaining and highlighting the image details, the noise of the image is also removed. It solves the contradiction between denoising and preserving details.
c)图像预处理后,对图像进行灰度直方图的图像阈值分割。将改进的HC显著性检测算法与FT显著性检测算法、AC显著性检测算法、LC显著性检测算法进行对比得到各自的显著图并进行二值化,如图4、图6,结果证明本发明的改进的HC显著性检测算法相对于其他三种传统显著性检测算法来说,更适用于裂缝检测。c) After image preprocessing, image threshold segmentation of gray histogram is performed on the image. The improved HC saliency detection algorithm is compared with the FT saliency detection algorithm, the AC saliency detection algorithm, and the LC saliency detection algorithm to obtain their respective saliency maps and binarize them, as shown in Figure 4 and Figure 6, the results prove the present invention Compared with the other three traditional saliency detection algorithms, the improved HC saliency detection algorithm is more suitable for crack detection.
对同一图像分别应用迭代法全局阈值处理、Otsu法全局阈值处理和基于灰度直方图的阈值分割法进行对比实验,分析得出最优的分割方法,实验结果如图6,证明用灰度直方图的谷底值作为阈值分割图像的能取得良好的效果。The iterative global thresholding method, Otsu method global thresholding method and threshold segmentation method based on gray histogram are respectively applied to the same image to conduct comparative experiments, and the optimal segmentation method is obtained through analysis. The valley value of the graph can achieve good results as a threshold to segment the image.
结合基于改进HC显著性检测算法的灰度直方图阈值分割算法与单一基于灰度直方图的阈值分割对图像进行分割处理并计算准确率(Precision)、召回率(Recall)、F-测度(F-Measure)三个指标,处理结果如图7,裂缝检测算法对应的准确率、召回率以及F-测度如表3,由图表可以明显看出,本发明的算法对于路面裂缝的检测和分割有着巨大的提升,可以有效的将目标区域从背景区域中分割出来。Combined with the gray histogram threshold segmentation algorithm based on the improved HC saliency detection algorithm and a single threshold segmentation based on gray histogram to segment the image and calculate the precision (Precision), recall (Recall), F-measure (F-measure). -Measure) three indicators, the processing result is shown in Figure 7, and the corresponding accuracy rate, recall rate and F-measure of the crack detection algorithm are shown in Table 3. It can be clearly seen from the chart that the algorithm of the present invention has a great effect on the detection and segmentation of pavement cracks. A huge improvement, which can effectively segment the target area from the background area.
表3table 3
d)对阈值分割处理后的图像进行进行基于数学形态学的裂缝轮廓提取,结果如图8。通过构造出的结构元素对图像进行连通域获取和骨架提取,可以清晰的获得二值化图像灰度变化边缘的轮廓,能对断裂区域进行拼接,并能够有效的去除孤立点。然后采用投影法,对裂缝特征进行提取和类型识别,区分其为横向裂缝,纵向裂缝,还是网状裂缝。并且获得其裂缝几何特征参数,便于精确地评价公路路面破损状况,反映实际路面状况。d) Perform the crack contour extraction based on mathematical morphology on the image after threshold segmentation, and the result is shown in Figure 8. The connected domain acquisition and skeleton extraction of the image through the constructed structural elements can clearly obtain the outline of the edge of the grayscale change of the binarized image, can splicing the fractured area, and can effectively remove the isolated points. Then, the projection method is used to extract and identify the crack features, and distinguish whether it is a transverse crack, a longitudinal crack, or a network crack. And the geometric characteristic parameters of cracks are obtained, which is convenient to accurately evaluate the damage condition of highway pavement and reflect the actual pavement condition.
e)选用40张测试图图像进行实验,在进行一系列上述操作后,将提取裂缝的结果和人工识别裂缝的结果做对比,用来说明本文算法对识别裂缝的准确率。经人工检测后得出测试段路面上共有有横向裂缝74条,纵向裂缝53条,网状裂缝29处,并以此作为判断依据,利用本文所用的算法进行裂缝检测,得出的部分实验结果如表4、表5。e) 40 test images were selected for the experiment. After a series of the above operations, the results of extracting cracks and the results of manual crack identification were compared to illustrate the accuracy of the algorithm in this paper for crack identification. After manual inspection, it is concluded that there are 74 transverse cracks, 53 longitudinal cracks, and 29 network cracks on the pavement in the test section. Based on this, the algorithm used in this paper is used to detect cracks, and some experimental results are obtained. See Table 4 and Table 5.
表4Table 4
表5table 5
本发明的一种车载前视图像裂缝检测的方法,引入基于显著性检测的直方图灰度阈值分割算法后裂缝清晰便于提取,能适应复杂图像的裂缝检测,且具有普遍适用性,能广泛应用于路面病害检测领域。In the method for detecting cracks in vehicle front-view images of the present invention, after introducing the histogram grayscale threshold segmentation algorithm based on saliency detection, the cracks are clear and easy to extract, which can be adapted to crack detection of complex images, and has universal applicability and can be widely used in the field of road damage detection.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210201244.0A CN114596551B (en) | 2022-03-03 | 2022-03-03 | Method for detecting vehicle-mounted front view image cracks |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210201244.0A CN114596551B (en) | 2022-03-03 | 2022-03-03 | Method for detecting vehicle-mounted front view image cracks |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114596551A true CN114596551A (en) | 2022-06-07 |
CN114596551B CN114596551B (en) | 2024-12-17 |
Family
ID=81816432
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210201244.0A Active CN114596551B (en) | 2022-03-03 | 2022-03-03 | Method for detecting vehicle-mounted front view image cracks |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114596551B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114882300A (en) * | 2022-07-12 | 2022-08-09 | 南通翡利达液压科技有限公司 | Method and device for identifying significance of scratch in hydraulic bearing super-finishing |
CN115311260A (en) * | 2022-09-29 | 2022-11-08 | 南通羿云智联信息科技有限公司 | Road surface quality detection method for highway traffic engineering |
CN115830459A (en) * | 2023-02-14 | 2023-03-21 | 山东省国土空间生态修复中心(山东省地质灾害防治技术指导中心、山东省土地储备中心) | Detection method of damage degree of mountainous forest and grass life community based on neural network |
CN116448016A (en) * | 2023-04-26 | 2023-07-18 | 成都智达万应科技有限公司 | Intelligent rapid detection system and detection vehicle with same |
CN117474912A (en) * | 2023-12-27 | 2024-01-30 | 浪潮软件科技有限公司 | Road section gap analysis method and model based on computer vision |
CN119067974A (en) * | 2024-11-05 | 2024-12-03 | 大连馨士俐科技服务有限公司 | Road quality rapid detection method and system for traffic engineering |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016172827A1 (en) * | 2015-04-27 | 2016-11-03 | 武汉武大卓越科技有限责任公司 | Stepwise-refinement pavement crack detection method |
WO2019202628A1 (en) * | 2018-04-16 | 2019-10-24 | 三菱電機株式会社 | Road surface detector, image display device using road surface detector, obstacle detector using road surface detector, image display method using road surface detection method, and obstacle detection method using road surface detection method |
CN112419250A (en) * | 2020-11-13 | 2021-02-26 | 湖北工业大学 | Pavement crack digital image extraction, crack repair and crack parameter calculation method |
CA3124173A1 (en) * | 2020-07-15 | 2022-01-15 | Visual Defence Inc. | System and method for detecting and transmitting incidents of interest of a roadway to a remote server |
-
2022
- 2022-03-03 CN CN202210201244.0A patent/CN114596551B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016172827A1 (en) * | 2015-04-27 | 2016-11-03 | 武汉武大卓越科技有限责任公司 | Stepwise-refinement pavement crack detection method |
WO2019202628A1 (en) * | 2018-04-16 | 2019-10-24 | 三菱電機株式会社 | Road surface detector, image display device using road surface detector, obstacle detector using road surface detector, image display method using road surface detection method, and obstacle detection method using road surface detection method |
CA3124173A1 (en) * | 2020-07-15 | 2022-01-15 | Visual Defence Inc. | System and method for detecting and transmitting incidents of interest of a roadway to a remote server |
CN112419250A (en) * | 2020-11-13 | 2021-02-26 | 湖北工业大学 | Pavement crack digital image extraction, crack repair and crack parameter calculation method |
Non-Patent Citations (2)
Title |
---|
卜丽静等: "联合稀疏约束的双通道星载SAR图像重建", 《测绘学报》, no. 05, 31 December 2014 (2014-12-31) * |
徐威;唐振民;吕建勇;: "基于图像显著性的路面裂缝检测", 中国图象图形学报, no. 01, 16 January 2013 (2013-01-16) * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114882300A (en) * | 2022-07-12 | 2022-08-09 | 南通翡利达液压科技有限公司 | Method and device for identifying significance of scratch in hydraulic bearing super-finishing |
CN114882300B (en) * | 2022-07-12 | 2022-09-06 | 南通翡利达液压科技有限公司 | Method and device for identifying significance of scratch in hydraulic bearing super-finishing |
CN115311260A (en) * | 2022-09-29 | 2022-11-08 | 南通羿云智联信息科技有限公司 | Road surface quality detection method for highway traffic engineering |
CN115311260B (en) * | 2022-09-29 | 2023-12-08 | 内蒙古公路工程咨询监理有限责任公司 | Road surface quality detection method for highway traffic engineering |
CN115830459A (en) * | 2023-02-14 | 2023-03-21 | 山东省国土空间生态修复中心(山东省地质灾害防治技术指导中心、山东省土地储备中心) | Detection method of damage degree of mountainous forest and grass life community based on neural network |
CN116448016A (en) * | 2023-04-26 | 2023-07-18 | 成都智达万应科技有限公司 | Intelligent rapid detection system and detection vehicle with same |
CN117474912A (en) * | 2023-12-27 | 2024-01-30 | 浪潮软件科技有限公司 | Road section gap analysis method and model based on computer vision |
CN119067974A (en) * | 2024-11-05 | 2024-12-03 | 大连馨士俐科技服务有限公司 | Road quality rapid detection method and system for traffic engineering |
CN119067974B (en) * | 2024-11-05 | 2024-12-27 | 大连馨士俐科技服务有限公司 | Road quality rapid detection method and system for traffic engineering |
Also Published As
Publication number | Publication date |
---|---|
CN114596551B (en) | 2024-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114596551A (en) | Vehicle-mounted forward-looking image crack detection method | |
CN111310558B (en) | An intelligent extraction method for pavement defects based on deep learning and image processing | |
CN112419250B (en) | Digital Image Extraction, Crack Repair and Crack Parameter Calculation Method for Pavement Cracks | |
CN111145161B (en) | Pavement crack digital image processing and identifying method | |
WO2019134252A1 (en) | Method and device for automated portrayal and accurate measurement of width of structural crack | |
CN105335966B (en) | Multiscale morphology image division method based on local homogeney index | |
CN106683075B (en) | A method for detecting bolt defects at the cross arm of a transmission line tower | |
CN104008553B (en) | Crack detection method with image gradient information and watershed method conflated | |
CN113450307A (en) | Product edge defect detection method | |
CN107045634B (en) | Text positioning method based on maximum stable extremum region and stroke width | |
CN107784669A (en) | A kind of method that hot spot extraction and its barycenter determine | |
CN109559324A (en) | A kind of objective contour detection method in linear array images | |
CN111354047B (en) | Computer vision-based camera module positioning method and system | |
CN116385450B (en) | PS sheet wear resistance detection method based on image processing | |
CN109658391B (en) | Circle radius measuring method based on contour merging and convex hull fitting | |
CN111353371A (en) | Shoreline extraction method based on spaceborne SAR images | |
CN115082377A (en) | Building surface crack geometric parameter measuring method and system based on unmanned aerial vehicle | |
CN111339948A (en) | An automatic identification method for newly added buildings in high-resolution remote sensing images | |
CN115578343A (en) | Crack size measuring method based on image communication and skeleton analysis | |
CN116718599B (en) | A method for measuring apparent crack length based on three-dimensional point cloud data | |
CN112070717A (en) | Power transmission line icing thickness detection method based on image processing | |
CN109815961B (en) | Pavement repairing type disease detection method based on local texture binary pattern | |
CN112734816B (en) | Heterogeneous image registration method based on CSS-Delaunay | |
CN115601379A (en) | An Accurate Detection Technology for Surface Cracks Based on Digital Image Processing | |
CN117635615A (en) | Defect detection method and system for realizing punching die based on deep learning |
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 |