CN114418950A - Road disease detection method, device, equipment and storage medium - Google Patents
Road disease detection method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114418950A CN114418950A CN202111579669.7A CN202111579669A CN114418950A CN 114418950 A CN114418950 A CN 114418950A CN 202111579669 A CN202111579669 A CN 202111579669A CN 114418950 A CN114418950 A CN 114418950A
- Authority
- CN
- China
- Prior art keywords
- image
- road
- detected
- detection
- disease
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
-
- 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
-
- 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/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/80—Geometric correction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30181—Earth observation
- G06T2207/30184—Infrastructure
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Biomedical Technology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域technical field
本发明涉及人工智能技术领域,尤其涉及一种道路病害检测方法、装置、设备及存储介质。The invention relates to the technical field of artificial intelligence, and in particular, to a road disease detection method, device, equipment and storage medium.
背景技术Background technique
在新建高速公路的快速增长的同时,原有的很多高速公路却出现了不同 程度的病害与破损。而且这些病害、破损得不到及时、合理的路面养护,导 致了部分高速公路路况急剧下降,对车辆行驶的舒适性、经济性和安全性产 生了不小的影响。因此,近些年来高速公路路面养护管理及其相关问题受到 了越来越多的关注。With the rapid growth of new expressways, many of the original expressways have been damaged and damaged to varying degrees. Moreover, the lack of timely and reasonable road maintenance for these diseases and damages has led to a sharp decline in the road conditions of some expressways, which has had a considerable impact on the comfort, economy and safety of vehicles. Therefore, in recent years, highway pavement maintenance management and related issues have received more and more attention.
同时,各地因道路养护的不及时性,出现如窨井盖丢失,重型车辆超载 导致道路严重病害的原因而出现人民生命财产严重损失的事故屡屡发生。At the same time, due to the untimely maintenance of roads, accidents such as loss of manhole covers and serious road damage caused by overloading of heavy vehicles have occurred frequently in various places, resulting in serious loss of people's lives and properties.
发明内容SUMMARY OF THE INVENTION
本发明的主要目的在于提供一种道路病害检测方法、装置、设备及存储介质,旨在解决现有技术中如何提升道路病害的检测效率的技术问题。The main purpose of the present invention is to provide a road disease detection method, device, equipment and storage medium, which aims to solve the technical problem of how to improve the detection efficiency of road diseases in the prior art.
为实现上述目的,本发明提供了一种道路病害检测方法,所述方法包括以下步骤:In order to achieve the above object, the present invention provides a road disease detection method, the method comprises the following steps:
获取待检测图像;Obtain the image to be detected;
分割所述待检测图像,得到道路图像;segmenting the to-be-detected image to obtain a road image;
将所述道路图像输入至目标检测模型中,得到检测结果;Inputting the road image into a target detection model to obtain a detection result;
根据所述检测结果判断所述待检测图像对应的道路是否存在病害。According to the detection result, it is determined whether the road corresponding to the to-be-detected image has a disease.
可选地,将所述道路图像输入至目标检测模型中,得到检测结果的步骤之前,还包括:Optionally, before the step of inputting the road image into the target detection model and obtaining the detection result, the method further includes:
获取初始训练数据集;Get the initial training dataset;
根据所述初始训练数据集得到目标训练数据集;Obtain a target training data set according to the initial training data set;
根据所述目标训练数据集训练初始检测模型,得到目标检测模型。An initial detection model is trained according to the target training data set to obtain a target detection model.
可选地,所述根据所述初始训练数据集得到目标训练数据集的步骤,包括:Optionally, the step of obtaining a target training data set according to the initial training data set includes:
根据所述初始训练数据集确定初始训练图像;Determine an initial training image according to the initial training data set;
根据所述初始训练图像得到训练图像对;Obtain a training image pair according to the initial training image;
根据所述训练图像对得到目标训练数据集。A target training data set is obtained according to the training image pair.
可选地,所述根据所述训练图像对得到目标训练数据集的步骤,包括:Optionally, the step of obtaining the target training data set according to the training image pair includes:
将所述训练图像对输入至预设训练模型,得到伪标签图像对;Inputting the training image pair to a preset training model to obtain a pseudo-label image pair;
确定所述伪标签图像对的置信度;determining a confidence level for the pair of pseudo-label images;
根据所述置信度筛选所述伪标签图像对,得到目标训练图像;Screen the pseudo-label image pair according to the confidence to obtain a target training image;
根据所述目标训练图像得到目标训练数据集。A target training data set is obtained according to the target training image.
可选地,所述获取待检测图像的步骤,包括:Optionally, the step of acquiring the image to be detected includes:
获取待检测视频;Get the video to be detected;
根据所述待检测视频得到帧图像集;Obtain a frame image set according to the video to be detected;
根据所述帧图像集确定相邻帧图像;Determine adjacent frame images according to the frame image set;
将所述相邻帧图像融合为待检测图像。The adjacent frame images are fused into an image to be detected.
可选地,分割所述待检测图像,得到道路图像的步骤,包括:Optionally, the step of segmenting the to-be-detected image to obtain a road image includes:
将所述待检测图像转化为灰度图像;converting the to-be-detected image into a grayscale image;
对所述灰度图像进行降噪处理,得到降噪图像;performing noise reduction processing on the grayscale image to obtain a noise reduction image;
确定所述降噪图像中各像素点的梯度值,并根据所述梯度值得到道路边缘图像;determining the gradient value of each pixel in the denoised image, and obtaining a road edge image according to the gradient value;
根据所述道路边缘图像确定道路图像。A road image is determined from the road edge image.
可选地,所述根据所述检测结果判断所述待检测图像对应的道路是否存在病害的步骤之后,还包括:Optionally, after the step of judging whether the road corresponding to the to-be-detected image has a disease according to the detection result, the method further includes:
当所述待检测图像对应的道路存在病害时,获取所述道路对应的位置信息以及病害类型;When there is a disease on the road corresponding to the image to be detected, obtain the location information and the disease type corresponding to the road;
根据所述病害类型生成道路修复方案;generating a road repair plan according to the disease type;
根据所述位置信息、所述病害类型以及所述道路修复方案生成道路病害报告。A road disease report is generated based on the location information, the disease type, and the road repair plan.
此外,为实现上述目的,本发明还提出一种道路病害检测装置,所述道路病害检测装置包括:In addition, in order to achieve the above purpose, the present invention also provides a road disease detection device, the road disease detection device includes:
获取模块,用于获取待检测图像;an acquisition module for acquiring the image to be detected;
分割模块,用于分割分割所述待检测图像,得到道路图像;a segmentation module, configured to segment and segment the to-be-detected image to obtain a road image;
检测模块,用于将所述道路图像输入至目标检测模型中,得到检测结果;a detection module for inputting the road image into the target detection model to obtain a detection result;
判断模块,用于根据所述检测结果判断所述待检测图像对应的道路是否存在病害。A judgment module, configured to judge whether the road corresponding to the to-be-detected image has a disease according to the detection result.
此外,为实现上述目的,本发明还提出一种道路病害检测设备,所述道路病害检测设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的道路病害检测程序,所述道路病害检测程序配置为实现如上文所述的道路病害检测方法的步骤。In addition, in order to achieve the above object, the present invention also provides a road disease detection device, the road disease detection device includes: a memory, a processor, and a road disease detection device stored in the memory and running on the processor A program configured to implement the steps of the road disease detection method as described above.
此外,为实现上述目的,本发明还提出一种存储介质,所述存储介质上存储有道路病害检测程序,所述道路病害检测程序被处理器执行时实现如上文所述的道路病害检测方法的步骤。In addition, in order to achieve the above object, the present invention also provides a storage medium, on which a road disease detection program is stored, and when the road disease detection program is executed by a processor, the above-mentioned road disease detection method is realized. step.
本发明通过获取待检测图像;分割所述待检测图像,得到道路图像;将所述道路图像输入至目标检测模型中,得到检测结果;根据所述检测结果判断所述待检测图像对应的道路是否存在病害。通过上述方式,将待检测的图像输入值训练好的目标检测模型中,目标检测模型通过计算分析待检测图像,从而得到道路的检测结果,检测结果中包含由道路存在的病害,道路管理人员则可以根据检测结果对道路病害进行修复,从而提升了道路的安全性。The present invention obtains a road image by acquiring an image to be detected; dividing the image to be detected to obtain a road image; inputting the road image into a target detection model to obtain a detection result; and judging whether the road corresponding to the image to be detected is determined according to the detection result Diseases exist. Through the above method, in the target detection model trained by the input value of the image to be detected, the target detection model calculates and analyzes the image to be detected, thereby obtaining the detection result of the road. The detection result includes the diseases existing on the road. Road diseases can be repaired according to the detection results, thereby improving road safety.
附图说明Description of drawings
图1是本发明实施例方案涉及的硬件运行环境的道路病害检测设备的结构示意图;1 is a schematic structural diagram of a road disease detection device of a hardware operating environment involved in an embodiment of the present invention;
图2为本发明道路病害检测方法第一实施例的流程示意图;2 is a schematic flowchart of the first embodiment of the road disease detection method according to the present invention;
图3为本发明道路病害检测方法第二实施例的流程示意图;3 is a schematic flowchart of a second embodiment of a road disease detection method according to the present invention;
图4为本发明道路病害检测装置第一实施例的结构框图。FIG. 4 is a structural block diagram of a first embodiment of a road disease detection device according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
参照图1,图1为本发明实施例方案涉及的硬件运行环境的道路病害检测设备结构示意图。Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of a road disease detection device in a hardware operating environment involved in an embodiment of the present invention.
如图1所示,该道路病害检测设备可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真(Wireless-Fidelity,Wi-Fi)接口)。存储器1005可以是高速的随机存取存储器(RandomAccess Memory,RAM)存储器,也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the road disease detection device may include: a
本领域技术人员可以理解,图1中示出的结构并不构成对道路病害检测设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 1 does not constitute a limitation on the road disease detection device, and may include more or less components than the one shown, or combine some components, or arrange different components.
如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及道路病害检测程序。As shown in FIG. 1 , the
在图1所示的道路病害检测设备中,网络接口1004主要用于与网络服务器进行数据通信;用户接口1003主要用于与用户进行数据交互;本发明道路病害检测设备中的处理器1001、存储器1005可以设置在道路病害检测设备中,所述道路病害检测设备通过处理器1001调用存储器1005中存储的道路病害检测程序,并执行本发明实施例提供的道路病害检测方法。In the road disease detection device shown in FIG. 1, the
本发明实施例提供了一种道路病害检测方法,参照图2,图2为本发明一种道路病害检测方法第一实施例的流程示意图。An embodiment of the present invention provides a road disease detection method. Referring to FIG. 2 , FIG. 2 is a schematic flowchart of a first embodiment of a road disease detection method of the present invention.
本实施例中,所述道路病害检测方法包括以下步骤:In this embodiment, the road disease detection method includes the following steps:
步骤S10:获取待检测图像。Step S10: Acquire an image to be detected.
需要说明的是,本实施例的执行主体为终端设备,例如电脑等可以进行数据处理且运行应用程序的设备。It should be noted that the execution subject of this embodiment is a terminal device, such as a computer and other devices that can process data and run application programs.
在具体实现中,待检测图像中包含需要进行道路病害检测的图像。待检测图像由设置在可移动设备上的摄像头采集,可移动设备可以为车辆或者无人机。In a specific implementation, the images to be detected include images that need to be detected for road diseases. The image to be detected is collected by a camera set on a movable device, and the movable device can be a vehicle or a drone.
进一步地,为了提升终端设备在检测时的效率,步骤S10包括:获取待检测视频;根据所述待检测视频得到帧图像集;根据所述帧图像集确定相邻帧图像;将所述相邻帧图像融合为待检测图像。Further, in order to improve the efficiency of the terminal equipment during detection, step S10 includes: acquiring a video to be detected; obtaining a frame image set according to the to-be-detected video; determining adjacent frame images according to the frame image set; Frame images are fused into images to be detected.
可以理解的是,摄像头采集道路图像时,通常是按照在道路上的行驶方向对道路拍摄视频,但视频为多帧图像组成,因此,多帧连续的图像上会包含相同的道路图像,对每一帧都需要检测会导致资源浪费。It can be understood that when the camera collects road images, it usually shoots videos of the road according to the driving direction on the road, but the video is composed of multiple frames of images. Therefore, multiple consecutive images will contain the same road image. Needing to detect every frame can lead to a waste of resources.
在具体实现中,首先将待检测视频解码分帧,分解为若干帧连续的图像,即帧图像集,再将包含相同道路图像的帧图像进行融合,通常相邻的帧图像会包含较多重复的道路图像,例如每相邻10帧为一组需要进行融合的帧图像,则对着10帧图像进行融合,从而得到一张待检测图像。In the specific implementation, the video to be detected is firstly decoded into frames, decomposed into several frames of continuous images, that is, frame image sets, and then the frame images containing the same road image are fused. Usually, adjacent frame images will contain more repetitions. For example, every 10 adjacent frames is a group of frame images that need to be fused, then 10 frames of images are fused to obtain an image to be detected.
需要说明的是,多张图像融合实质是将多张图像拼接为一张图像,在拼接图像时,首先对相邻的帧图像进行预处理,通过几何变形校正方法对采集到的图像进行校正后,可以使得相同景物在图像重叠区域所成的像有相同的形状和一致的空间相对位置。摄像头在采集道路图像时,可垂直于地面进行拍摄,并保持同一高度,因此,道路在图像中的视角是一致的,但可能由于地面坑洼,或减速带的存在,会导致摄像头视角会产生些许变化,需要对图像进行校正。It should be noted that the essence of multi-image fusion is to splicing multiple images into one image. When splicing images, the adjacent frame images are first preprocessed, and the collected images are corrected by the geometric deformation correction method. , which can make the images of the same scene in the overlapping area of the images have the same shape and consistent relative spatial position. When the camera collects road images, it can shoot perpendicular to the ground and maintain the same height. Therefore, the road’s angle of view in the image is consistent, but it may be caused by the existence of potholes on the ground or the existence of speed bumps. Slight changes require image correction.
在对图像校正后,以相邻帧图像组的中间图像为基准图像,查找其余帧图像与基准图像相同的特征点,特征点包括:闭合区域、轮廓和边缘区域、角点、线条等,在道路上,通常是以道路线为特征点进行匹配。确定匹配的特征点之后,则根据特征点将多张帧图像拼接为一张待检测图像。After the image is corrected, take the intermediate image of the adjacent frame image group as the reference image, and find the same feature points as the reference image in the remaining frame images. The feature points include: closed area, contour and edge area, corner points, lines, etc. On the road, the road line is usually used as the feature point for matching. After the matched feature points are determined, multiple frame images are spliced into an image to be detected according to the feature points.
步骤S20:分割所述待检测图像,得到道路图像。Step S20: segment the to-be-detected image to obtain a road image.
需要说明的是,为了能将道路拍摄完整,摄像头采集到的图像通常会包含一些道路外的图像,为了避免道路外的图像对检测结果产生影响,此时需要将其分割,只留下包含道路的图像,即道路图像。It should be noted that, in order to capture the road completely, the images collected by the camera usually contain some images outside the road. In order to avoid the influence of the images outside the road on the detection results, it needs to be segmented at this time, and only the images containing the road are left. image, the road image.
本实施例通过对道路的边缘检测从而实现对道路图像的分割,首先将图片从空间域通过傅里叶变换到频率域,并根据频域率确定高频部分,通常高频部分对应着图像中的边缘部分,在城市沥青道路上可以以车道线为道路边缘进行检测,而水泥地面与周围环境色差通常较大,因此也可以达到很好的分割效果。In this embodiment, the road image is segmented by detecting the edge of the road. First, the image is transformed from the spatial domain to the frequency domain through Fourier transform, and the high-frequency part is determined according to the frequency of the frequency domain. Usually, the high-frequency part corresponds to the image in the image. On the urban asphalt road, the lane line can be used as the edge of the road for detection, and the color difference between the cement floor and the surrounding environment is usually large, so it can also achieve a good segmentation effect.
进一步地,步骤S20还包括:将所述待检测图像转化为灰度图像;对所述灰度图像进行降噪处理,得到降噪图像;确定所述降噪图像中各像素点的梯度值,并根据所述梯度值得到道路边缘图像;根据所述道路边缘图像确定道路图像。Further, step S20 further includes: converting the image to be detected into a grayscale image; performing noise reduction processing on the grayscale image to obtain a noise reduction image; determining the gradient value of each pixel in the noise reduction image, and obtaining a road edge image according to the gradient value; determining a road image according to the road edge image.
在具体实现张,还可以将待检测图像灰度化,转化为灰度图像,再对灰度图像降噪,可通过小波降噪的方式对灰度图像降噪,降噪完成后计算降噪后的灰度图像中每一像素点的梯度值,将梯度值变化大于预设阈值的作为道路边缘,从而得到道路边缘图像,根据道路边缘图像中的边缘线将待检测图像分割得到道路图像。In the specific implementation, it is also possible to grayscale the image to be detected, convert it into a grayscale image, and then denoise the grayscale image. The grayscale image can be denoised by means of wavelet noise reduction. The gradient value of each pixel in the resulting grayscale image is taken as a road edge with a change in the gradient value greater than a preset threshold, thereby obtaining a road edge image, and segmenting the image to be detected according to the edge lines in the road edge image to obtain a road image.
步骤S30:将所述道路图像输入至目标检测模型中,得到检测结果。Step S30: Input the road image into a target detection model to obtain a detection result.
需要说明的是,目标检测模型为训练后的模型,目标检测模型可以为YOLOv5,YOLOv5相对于YOLOv4模型更小,运算速度更快,能够更为高效的对道路图像进行处理。It should be noted that the target detection model is a trained model, and the target detection model can be YOLOv5. Compared with the YOLOv4 model, YOLOv5 is smaller, has faster operation speed, and can process road images more efficiently.
在具体实现中,将道路图像输入至目标检测模型后,即可以得到检测结果,检测结果中包含道路是否存在病害,若存在病害则标记病害的类型。In a specific implementation, after the road image is input into the target detection model, the detection result can be obtained, and the detection result includes whether there is a disease on the road, and if there is a disease, the type of the disease is marked.
步骤S40:根据所述检测结果判断所述待检测图像对应的道路是否存在病害。Step S40: Determine whether the road corresponding to the to-be-detected image has a disease according to the detection result.
可以理解的是,病害的类型包括横向裂纹、纵向裂纹、龟裂纹和坑洼等,当检测到道路上有上述病害时,则将病害部分进行标记,并显示病害类型。道路管理人员则可以根据检测结果确定道路的病害信息。It can be understood that the types of diseases include transverse cracks, longitudinal cracks, tortoise cracks and potholes, etc. When the above-mentioned diseases are detected on the road, the diseased part is marked and the type of the disease is displayed. Road managers can determine the disease information of the road according to the detection results.
进一步地,步骤S40之后,还包括:当所述待检测图像对应的道路存在病害时,获取所述道路对应的位置信息以及病害类型;根据所述病害类型生成道路修复方案;根据所述位置信息、所述病害类型以及所述道路修复方案生成道路病害报告。Further, after step S40, it also includes: when there is a disease on the road corresponding to the image to be detected, acquiring the location information and the disease type corresponding to the road; generating a road repair plan according to the disease type; according to the location information , the disease type, and the road repair plan to generate a road disease report.
需要说明的是,道路在被采集时,同时会采集道路的地理位置,从而形成道路-位置的映射关系,当检测到道路存在病害时,则可以根据映射关系查找对应的位置信息,从而方便道路管理人员对道路进行修复。道路信息中包含病害的存在的位置区域。It should be noted that when the road is collected, the geographic location of the road will be collected at the same time, so as to form a road-location mapping relationship. When a disease is detected on the road, the corresponding location information can be searched according to the mapping relationship, so as to facilitate the road. Managers repair the road. The road information includes the location area where the disease exists.
同样的,在检测出道路的病害类型之后,根据病害类型生成对应的道路修复方案,例如:当病害类型为龟裂纹时,修复方案为在龟裂病害的路段上将裂缝中沉积的沙土去除,用胶带分离待修复区,在修复区中用骨料以及复合改性乳液装填均匀,并等待两小时即可以修复完成。Similarly, after the disease type of the road is detected, a corresponding road repair plan is generated according to the disease type. For example, when the disease type is a crack, the repair plan is to remove the sand deposited in the crack on the road section with crack disease. , Use tape to separate the area to be repaired, fill the repair area with aggregate and composite modified emulsion evenly, and wait for two hours to complete the repair.
在具体实现中,根据位置信息、病害类型以及道路修复方案生成道路病害报告,将道路病害报告发送至道路管理人员端,并将病害报告上传云端进行备份。In the specific implementation, the road disease report is generated according to the location information, the disease type and the road repair plan, the road disease report is sent to the road management personnel, and the disease report is uploaded to the cloud for backup.
本实施例通过获取待检测图像;分割所述待检测图像,得到道路图像;将所述道路图像输入至目标检测模型中,得到检测结果;根据所述检测结果判断所述待检测图像对应的道路是否存在病害。通过上述方式,将待检测的图像输入值训练好的目标检测模型中,目标检测模型通过计算分析待检测图像,从而得到道路的检测结果,检测结果中包含由道路存在的病害,道路管理人员则可以根据检测结果对道路病害进行修复,从而提升了道路的安全性。In this embodiment, a road image is obtained by acquiring an image to be detected; dividing the image to be detected to obtain a road image; inputting the road image into a target detection model to obtain a detection result; and judging the road corresponding to the image to be detected according to the detection result Whether there is disease. In the above method, in the target detection model trained with the input value of the image to be detected, the target detection model calculates and analyzes the image to be detected, thereby obtaining the detection result of the road. Road diseases can be repaired according to the detection results, thereby improving road safety.
参考图3,图3为本发明一种道路病害检测方法第二实施例的流程示意图。Referring to FIG. 3 , FIG. 3 is a schematic flowchart of a second embodiment of a road disease detection method according to the present invention.
基于上述第一实施例,本实施例道路病害检测方法在所述步骤S30之前,还包括:Based on the above-mentioned first embodiment, before the step S30, the road disease detection method of this embodiment further includes:
步骤S21:获取初始训练数据集。Step S21: Obtain an initial training data set.
需要说明的是,初始训练数据集中包括市区街道、乡村小道、高速公路等各种类型的道路在不同天气环境条件的图像。由于不同国家的道路可能存在不同,因此在不同地区检测道路病害时,需要使用当地道路的初始训练数据集。It should be noted that the initial training data set includes images of various types of roads such as urban streets, rural roads, and highways in different weather and environmental conditions. Since roads in different countries may be different, when detecting road diseases in different regions, it is necessary to use the initial training dataset of local roads.
步骤S22:根据所述初始训练数据集得到目标训练数据集。Step S22: Obtain a target training data set according to the initial training data set.
进一步地,为了使得模型训练基于更丰富的语义信息进行训练,步骤S22包括:根据所述初始训练数据集确定初始训练图像;根据所述初始训练图像得到训练图像对;根据所述训练图像对得到目标训练数据集。Further, in order to make the model training based on richer semantic information, step S22 includes: determining an initial training image according to the initial training data set; obtaining a training image pair according to the initial training image; obtaining a training image pair according to the training image pair target training dataset.
在具体实现中,首先重初始训练数据集中获取初始训练图像,初始训练图像为初始训练数据集中的道路图像,并基于上述道路分割方法将图像中的道路部分进行分割,再对分割后的图像进行图像增强,例如将分割后的图像进行镜像、翻转处理,从而形成训练图像对,训练图像对中包括分割后的初始训练图像以及对应的图像增强后的图像。In the specific implementation, the initial training image is obtained from the initial training data set, and the initial training image is the road image in the initial training data set, and the road part in the image is segmented based on the above road segmentation method, and then the segmented image is segmented. Image enhancement, for example, mirroring and flipping the segmented image to form a training image pair, where the training image pair includes the segmented initial training image and the corresponding image-enhanced image.
进一步地,所述根据所述训练图像对得到目标训练数据集的步骤,包括:将所述训练图像对输入至预设训练模型,得到伪标签图像对;确定所述伪标签图像对的置信度;根据所述置信度筛选所述伪标签图像对,得到目标训练图像;根据所述目标训练图像得到目标训练数据集。Further, the step of obtaining the target training data set according to the training image pair includes: inputting the training image pair into a preset training model to obtain a pseudo-label image pair; determining the confidence level of the pseudo-label image pair ; Screen the pseudo-label image pair according to the confidence level to obtain a target training image; and obtain a target training data set according to the target training image.
需要说明的是,预设训练模型用于将筛选出训练图像中不确定性较大的图像,以防止对初始检测模型训练时造成的资源浪费。It should be noted that the preset training model is used to screen out images with greater uncertainty in the training images, so as to prevent the waste of resources caused by training the initial detection model.
在本实施例中,将伪标签的值域设置为[0,1],预设训练模型对训练图像对的计算过程如下:In this embodiment, the value range of the pseudo-label is set to [0, 1], and the calculation process of the training image pair by the preset training model is as follows:
公式1; Formula 1;
其中,gi为训练图像对中一图像的伪标签值,pi为能够作为训练图像的概率,、为伪标签阈值,其中。Among them, gi is the pseudo-label value of one image in the training image pair, pi is the probability that it can be used as a training image, , is the pseudo-label threshold, where .
需要说明的是,当pi大于等于时,gi为1,当pi小于等于时,gi为0。It should be noted that when pi is greater than or equal to When gi is 1, when pi is less than or equal to , g i is 0.
其中,预设训练模型的损失函数为:Among them, the loss function of the preset training model is:
公式2; formula 2;
其中,s为伪标签的数量,为训练图像对中任一图像的伪标签,为预设训练模型的原始输出概率。where s is the number of pseudo-labels, is the pseudo-label for any image in the training image pair, The original output probabilities of the trained model for the preset.
可以理解的是,需要通过损失函数确定不为1或0的训练图像的伪标签值。并根据伪标签值确定置信度:It is understandable that the pseudo-label values of training images that are not 1 or 0 need to be determined by the loss function. And determine the confidence based on the pseudo-label value:
公式3; formula 3;
其中,β为置信度,α为预设值,通常为0.5。Among them, β is the confidence level, and α is a preset value, usually 0.5.
可以理解的是,将置信度大于置信度阈值的训练图像作为目标训练图像,从而筛选出能够作为训练模型的训练图像。It can be understood that the training images with the confidence greater than the confidence threshold are used as the target training images, so as to screen out the training images that can be used as the training model.
进一步地,本实施例还采集了一批符合当地实际情况,针对性更强的道路数据制作标注软件,并通过标注软件对训练图像标注,标注的道路缺陷种类有:横向裂纹、纵向裂纹、龟裂纹和坑洼。一共标注了六千余份多标签有效数据集。标准完成后得到目标训练数据集。Further, this embodiment also collects a batch of road data production and labeling software that conforms to local actual conditions and is more targeted, and labels the training images through the labeling software. The types of road defects to be labelled are: transverse cracks, longitudinal Cracks and potholes. A total of more than 6,000 multi-label valid datasets are annotated. After the standard is completed, the target training data set is obtained.
步骤S23:根据所述目标训练数据集训练初始检测模型,得到目标检测模型。Step S23: Train an initial detection model according to the target training data set to obtain a target detection model.
在具体实现中,通过目标训练数据集对初始检测模型进行训练后,可以得到用于检测道路病害的目标检测模型。In a specific implementation, after training the initial detection model through the target training data set, a target detection model for detecting road diseases can be obtained.
本实施例通过获取初始训练数据集;根据所述初始训练数据集得到目标训练数据集;根据所述目标训练数据集训练初始检测模型,得到目标检测模型。通过上述方式,使得模型训练基于更丰富的语义信息,从而具有更好的鲁棒性并提升目标检测的准确率。In this embodiment, a target detection model is obtained by acquiring an initial training data set; obtaining a target training data set according to the initial training data set; and training an initial detection model according to the target training data set. Through the above method, the model training is based on richer semantic information, which has better robustness and improves the accuracy of target detection.
此外,本发明实施例还提出一种存储介质,所述存储介质上存储有道路病害检测程序,所述道路病害检测程序被处理器执行时实现如上文所述的道路病害检测方法的步骤。In addition, an embodiment of the present invention also provides a storage medium, where a road disease detection program is stored thereon, and when the road disease detection program is executed by a processor, the steps of the road disease detection method as described above are implemented.
由于本存储介质采用了上述所有实施例的全部技术方案,因此至少具有上述实施例的技术方案所带来的所有有益效果,在此不再一一赘述。Since the storage medium adopts all the technical solutions of the above-mentioned embodiments, it has at least all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here.
参照图4,图4为本发明道路病害检测装置第一实施例的结构框图。Referring to FIG. 4 , FIG. 4 is a structural block diagram of a first embodiment of a road disease detection apparatus according to the present invention.
如图4所示,本发明实施例提出的道路病害检测装置包括:As shown in FIG. 4 , the road disease detection device proposed by the embodiment of the present invention includes:
获取模块10,用于获取待检测图像。The acquiring
分割模块20,用于分割分割所述待检测图像,得到道路图像。The
检测模块30,用于将所述道路图像输入至目标检测模型中,得到检测结果。The
判断模块40,用于根据所述检测结果判断所述待检测图像对应的道路是否存在病害。The judging
应当理解的是,以上仅为举例说明,对本发明的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本发明对此不做限制。It should be understood that the above are only examples, and do not constitute any limitation to the technical solutions of the present invention. In specific applications, those skilled in the art can make settings as required, which is not limited by the present invention.
本实施例通过通过获取待检测图像;分割所述待检测图像,得到道路图像;将所述道路图像输入至目标检测模型中,得到检测结果;根据所述检测结果判断所述待检测图像对应的道路是否存在病害。通过上述方式,将待检测的图像输入值训练好的目标检测模型中,目标检测模型通过计算分析待检测图像,从而得到道路的检测结果,检测结果中包含由道路存在的病害,道路管理人员则可以根据检测结果对道路病害进行修复,从而提升了道路的安全性。In this embodiment, a road image is obtained by acquiring an image to be detected; segmenting the image to be detected; inputting the road image into a target detection model to obtain a detection result; Whether there is a disease on the road. In the above method, in the target detection model trained with the input value of the image to be detected, the target detection model calculates and analyzes the image to be detected, thereby obtaining the detection result of the road. Road diseases can be repaired according to the detection results, thereby improving road safety.
在一实施例中,所述检测模块30,还用于获取初始训练数据集;In one embodiment, the
根据所述初始训练数据集得到目标训练数据集;Obtain a target training data set according to the initial training data set;
根据所述目标训练数据集训练初始检测模型,得到目标检测模型。An initial detection model is trained according to the target training data set to obtain a target detection model.
在一实施例中,所述检测模块30,还用于根据所述初始训练数据集确定初始训练图像;In one embodiment, the
根据所述初始训练图像得到训练图像对;Obtain a training image pair according to the initial training image;
根据所述训练图像对得到目标训练数据集。A target training data set is obtained according to the training image pair.
在一实施例中,所述检测模块30,还用于将所述训练图像对输入至与训练模型,得到伪标签图像对;In one embodiment, the
确定所述伪标签图像对的置信度;determining a confidence level for the pair of pseudo-label images;
根据所述置信度筛选所述伪标签图像对,得到目标训练图像;Screen the pseudo-label image pair according to the confidence to obtain a target training image;
根据所述目标训练图像得到目标训练数据集。A target training data set is obtained according to the target training image.
在一实施例中,所述获取模块10,还用于获取待检测视频;In one embodiment, the obtaining
根据所述待检测视频得到帧图像集;Obtain a frame image set according to the video to be detected;
根据所述帧图像集确定相邻帧图像;Determine adjacent frame images according to the frame image set;
将所述相邻帧图像融合为待检测图像。The adjacent frame images are fused into an image to be detected.
在一实施例中,所述分割模块20,还用于将所述待检测图像转化为灰度图像;In one embodiment, the
对所述灰度图像进行降噪处理,得到降噪图像;performing noise reduction processing on the grayscale image to obtain a noise reduction image;
确定所述降噪图像中各像素点的梯度值,并根据所述梯度值得到道路边缘图像;determining the gradient value of each pixel in the denoised image, and obtaining a road edge image according to the gradient value;
根据所述道路边缘图像确定道路图像。A road image is determined from the road edge image.
在一实施例中,所述判断模块40,还用于当所述待检测图像对应的道路存在病害时,获取所述道路对应的位置信息以及病害类型;In one embodiment, the judging
根据所述病害类型生成道路修复方案;generating a road repair plan according to the disease type;
根据所述位置信息、所述病害类型以及所述道路修复方案生成道路病害报告。A road disease report is generated based on the location information, the disease type, and the road repair plan.
需要说明的是,以上所描述的工作流程仅仅是示意性的,并不对本发明的保护范围构成限定,在实际应用中,本领域的技术人员可以根据实际的需要选择其中的部分或者全部来实现本实施例方案的目的,此处不做限制。It should be noted that the above-described workflow is only illustrative, and does not limit the protection scope of the present invention. In practical applications, those skilled in the art can select some or all of them to implement according to actual needs. The purpose of the solution in this embodiment is not limited here.
另外,未在本实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的道路病害检测方法,此处不再赘述。In addition, for technical details that are not described in detail in this embodiment, reference may be made to the road disease detection method provided by any embodiment of the present invention, which will not be repeated here.
此外,需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。Furthermore, it should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or system comprising a series of elements includes not only those elements, but also other elements not expressly listed or inherent to such a process, method, article or system. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system that includes the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器(Read Only Memory,ROM)/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art. The computer software products are stored in a storage medium (such as a read-only memory (Read Only Memory , ROM)/RAM, magnetic disk, optical disk), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111579669.7A CN114418950A (en) | 2021-12-22 | 2021-12-22 | Road disease detection method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111579669.7A CN114418950A (en) | 2021-12-22 | 2021-12-22 | Road disease detection method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114418950A true CN114418950A (en) | 2022-04-29 |
Family
ID=81268398
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111579669.7A Pending CN114418950A (en) | 2021-12-22 | 2021-12-22 | Road disease detection method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114418950A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115082802A (en) * | 2022-08-18 | 2022-09-20 | 深圳市城市交通规划设计研究中心股份有限公司 | Road disease identification method, device, equipment and readable storage medium |
CN116029697A (en) * | 2023-01-11 | 2023-04-28 | 中远海运科技股份有限公司 | A road disease intelligent inspection system and its application method |
CN116665112A (en) * | 2023-04-28 | 2023-08-29 | 深圳云天励飞技术股份有限公司 | Tunnel inspection method and device, electronic equipment and storage medium |
CN116703864A (en) * | 2022-09-06 | 2023-09-05 | 南京威视科技有限公司 | System and method for automatic detection of pavement defects based on polarization imaging and integrated learning |
CN119475042A (en) * | 2025-01-14 | 2025-02-18 | 东来数字技术与服务(深圳)有限公司 | Pavement disease detection method, equipment and storage medium for slow lanes |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104123731A (en) * | 2014-08-04 | 2014-10-29 | 山东农业大学 | Method for dividing low-contrast-ratio ginned cotton mulching film image |
CN106988193A (en) * | 2017-04-12 | 2017-07-28 | 上海源紊新能源科技有限公司 | A kind of efficient pavement damage crack detection system |
CN110414411A (en) * | 2019-07-24 | 2019-11-05 | 中国人民解放军战略支援部队航天工程大学 | Candidate Region Detection Method for Sea Vessels Based on Visual Saliency |
CN111080620A (en) * | 2019-12-13 | 2020-04-28 | 中远海运科技股份有限公司 | Road disease detection method based on deep learning |
CN111898641A (en) * | 2020-07-01 | 2020-11-06 | 中国建设银行股份有限公司 | A target model detection, apparatus, electronic device and computer-readable storage medium |
CN112766334A (en) * | 2021-01-08 | 2021-05-07 | 厦门大学 | Cross-domain image classification method based on pseudo label domain adaptation |
-
2021
- 2021-12-22 CN CN202111579669.7A patent/CN114418950A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104123731A (en) * | 2014-08-04 | 2014-10-29 | 山东农业大学 | Method for dividing low-contrast-ratio ginned cotton mulching film image |
CN106988193A (en) * | 2017-04-12 | 2017-07-28 | 上海源紊新能源科技有限公司 | A kind of efficient pavement damage crack detection system |
CN110414411A (en) * | 2019-07-24 | 2019-11-05 | 中国人民解放军战略支援部队航天工程大学 | Candidate Region Detection Method for Sea Vessels Based on Visual Saliency |
CN111080620A (en) * | 2019-12-13 | 2020-04-28 | 中远海运科技股份有限公司 | Road disease detection method based on deep learning |
CN111898641A (en) * | 2020-07-01 | 2020-11-06 | 中国建设银行股份有限公司 | A target model detection, apparatus, electronic device and computer-readable storage medium |
CN112766334A (en) * | 2021-01-08 | 2021-05-07 | 厦门大学 | Cross-domain image classification method based on pseudo label domain adaptation |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115082802A (en) * | 2022-08-18 | 2022-09-20 | 深圳市城市交通规划设计研究中心股份有限公司 | Road disease identification method, device, equipment and readable storage medium |
CN116703864A (en) * | 2022-09-06 | 2023-09-05 | 南京威视科技有限公司 | System and method for automatic detection of pavement defects based on polarization imaging and integrated learning |
CN116029697A (en) * | 2023-01-11 | 2023-04-28 | 中远海运科技股份有限公司 | A road disease intelligent inspection system and its application method |
CN116665112A (en) * | 2023-04-28 | 2023-08-29 | 深圳云天励飞技术股份有限公司 | Tunnel inspection method and device, electronic equipment and storage medium |
CN119475042A (en) * | 2025-01-14 | 2025-02-18 | 东来数字技术与服务(深圳)有限公司 | Pavement disease detection method, equipment and storage medium for slow lanes |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114418950A (en) | Road disease detection method, device, equipment and storage medium | |
CN109948471B (en) | Traffic haze visibility detection method based on improved IncepotionV 4 network | |
CN115393727B (en) | Pavement linear crack identification method, electronic equipment and storage medium | |
CN116597270B (en) | Road damage object detection method based on attention mechanism ensemble learning network | |
Dong et al. | Automatic damage segmentation in pavement videos by fusing similar feature extraction siamese network (SFE-SNet) and pavement damage segmentation capsule network (PDS-CapsNet) | |
CN111986164A (en) | Road crack detection method based on multi-source Unet + Attention network migration | |
Ruseruka et al. | Augmenting roadway safety with machine learning and deep learning: Pothole detection and dimension estimation using in-vehicle technologies | |
CN114298972A (en) | Method for calculating road pavement damage degree | |
CN116824399A (en) | Pavement crack identification method based on improved YOLOv5 neural network | |
CN109242854A (en) | A kind of image significance detection method based on FLIC super-pixel segmentation | |
CN117710764A (en) | Training methods, equipment and media for multi-task perception networks | |
CN115512324B (en) | Pavement disease detection method based on edge symmetrical filling and large receptive field | |
Wu et al. | [Retracted] Deep Learning‐Based Crack Monitoring for Ultra‐High Performance Concrete (UHPC) | |
CN115294774B (en) | Non-motor vehicle road stopping detection method and device based on deep learning | |
CN113762020B (en) | Highway road surface crack detecting system based on matrix structure degree of depth neural network | |
Nafaa et al. | Automated Pavement Cracks Detection and Classification Using Deep Learning | |
CN114359255A (en) | Improved Yolov5 s-based road pavement repair detection method | |
CN117788455A (en) | Road crack change detection method and system based on graph structure | |
Kumar et al. | Pavement distresses monitoring on a stretch of NH-44 (India) using dcnn | |
CN117746252A (en) | A landslide detection method based on improved lightweight YOLOv7 | |
CN117593521A (en) | A multi-scale crack segmentation method based on Transformer network | |
CN116740495A (en) | Training methods and disease detection methods for disease detection models in roads, bridges and tunnels | |
CN116665171A (en) | Road disease detection method based on RSUNet | |
CN115995021A (en) | Road disease identification method, device, electronic equipment and storage medium | |
Abdelkader et al. | EGY_PDD: a comprehensive multi-sensor benchmark dataset for accurate pavement distress detection and classification |
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 |