CN115359003A - Crack recognition method, system, medium and equipment for two-step tunnel grayscale image - Google Patents

Crack recognition method, system, medium and equipment for two-step tunnel grayscale image Download PDF

Info

Publication number
CN115359003A
CN115359003A CN202211013049.1A CN202211013049A CN115359003A CN 115359003 A CN115359003 A CN 115359003A CN 202211013049 A CN202211013049 A CN 202211013049A CN 115359003 A CN115359003 A CN 115359003A
Authority
CN
China
Prior art keywords
tunnel
crack
grayscale
images
image
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
Application number
CN202211013049.1A
Other languages
Chinese (zh)
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.)
Shandong University
Original Assignee
Shandong 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 Shandong University filed Critical Shandong University
Priority to CN202211013049.1A priority Critical patent/CN115359003A/en
Publication of CN115359003A publication Critical patent/CN115359003A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/30108Industrial image inspection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Biophysics (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Quality & Reliability (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Image Analysis (AREA)

Abstract

本发明属于岩土结构的裂缝识别技术领域,提供了一种两步式隧道灰度图像的裂缝识别方法、系统、介质及设备。其中,两步式隧道灰度图像的裂缝识别方法包括对批量隧道灰度图像分别进行边缘提取,得到对应的隧道边缘图像,再基于边缘图像的平均灰度与灰度阈值比较,筛选出所有可能存在裂缝的疑似图像;基于所述疑似图像和精细分割网络模型,得到批量隧道灰度图像的裂缝分割图像,再通过统计裂缝分割图像得到裂缝识别结果;所述裂缝识别结果包括实际存在裂缝的图像数量、裂缝数量和每条裂缝的特征参数。

Figure 202211013049

The invention belongs to the technical field of crack recognition of rock and soil structures, and provides a two-step crack recognition method, system, medium and equipment of tunnel grayscale images. Among them, the crack identification method of the two-step tunnel grayscale image includes performing edge extraction on batches of tunnel grayscale images to obtain the corresponding tunnel edge image, and then based on the comparison of the average grayscale of the edge image with the grayscale threshold, all possible cracks are screened out. There are suspected images of cracks; based on the suspected images and the fine segmentation network model, the crack segmentation images of the batch tunnel grayscale images are obtained, and then the crack identification results are obtained by statistics of the crack segmentation images; the crack identification results include images of actual cracks Number, number of cracks and characteristic parameters of each crack.

Figure 202211013049

Description

两步式隧道灰度图像的裂缝识别方法、系统、介质及设备Crack recognition method, system, medium and equipment for two-step tunnel grayscale image

技术领域technical field

本发明属于岩土结构的裂缝识别技术领域,尤其涉及一种两步式隧道灰度图像的裂缝识别方法、系统、介质及设备。The invention belongs to the technical field of crack recognition of rock and soil structures, and in particular relates to a crack recognition method, system, medium and equipment of a two-step tunnel grayscale image.

背景技术Background technique

本部分的陈述仅仅是提供了与本发明相关的背景技术信息,不必然构成在先技术。The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

裂缝是隧道结构中常见的病害,是影响隧道结构安全的关键因素。传统的检测方法,依赖人工判断和辅助工具判断;检测效率低,工作强度大,对人员专业知识要求高,因此需要借助于快速检测手段,目前常用的方法是借助图像处理技术,对病害进行识别。Cracks are common diseases in tunnel structures and are key factors affecting the safety of tunnel structures. The traditional detection method relies on manual judgment and auxiliary tool judgment; the detection efficiency is low, the work intensity is high, and the professional knowledge of personnel is high, so it is necessary to rely on rapid detection methods. At present, the commonly used method is to use image processing technology to identify diseases .

裂缝识别常用的方法主要分为两类:传统的图像处理方法和基于机器学习的裂缝识别方法。传统的图像处理方法有图像分割和骨架延伸,裂缝宽度变换算法,多尺度邻域信息实现像素级裂缝自动检测,利用三维场景重建对结构进行状态评估等方法;而基于机器学习的裂缝识别方法有空间调谐鲁棒多特征分类器,利用随机森林实现对道路裂缝的自动检测,利用深度卷积神经网络对裂缝进行分类和区域提取分割。传统的图像处理方法对于背景复杂、有断裂、墙面粗糙的裂缝图像效果较差。机器学习的方法对裂缝样本数量、种类要求高,对训练样本的要求较高。Commonly used methods for crack identification are mainly divided into two categories: traditional image processing methods and crack identification methods based on machine learning. Traditional image processing methods include image segmentation and skeleton extension, crack width transformation algorithm, multi-scale neighborhood information to realize automatic detection of pixel-level cracks, and use 3D scene reconstruction to evaluate the state of the structure. The crack recognition methods based on machine learning include A spatially tuned robust multi-feature classifier, using random forests for automatic detection of road cracks, and deep convolutional neural networks for crack classification and region extraction segmentation. Traditional image processing methods are poor for crack images with complex backgrounds, fractures, and rough walls. The machine learning method has high requirements on the number and types of crack samples, and has high requirements on training samples.

发明人发现,针对大批量集中自动化采集的隧道表观灰度图像数据,数据量较大,而裂缝较为微小,包含裂缝的数据量也较少,精度较高的神经网络算法计算量较高,会耗费大量时间用于处理无效数据。因此,现有的机器学习的方法不适合于大批量数据场景下的隧道结构裂缝识别。The inventors found that for the tunnel apparent grayscale image data collected automatically in large batches, the amount of data is relatively large, while the cracks are relatively small, and the amount of data including cracks is also small. Can spend a lot of time processing invalid data. Therefore, the existing machine learning methods are not suitable for the identification of tunnel structural cracks in large-scale data scenarios.

发明内容Contents of the invention

为了解决上述背景技术中存在的技术问题,本发明提供一种两步式隧道灰度图像的裂缝识别方法、系统、介质及设备,其适合于大批量数据场景下的隧道结构裂缝识别,可以大幅减少数据的计量,大幅提升识别检测的效率。In order to solve the technical problems in the above-mentioned background technology, the present invention provides a two-step tunnel grayscale image crack recognition method, system, medium and equipment, which is suitable for tunnel structural crack recognition in a large-scale data scenario, and can greatly Reduce the measurement of data and greatly improve the efficiency of identification and detection.

为了实现上述目的,本发明采用如下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:

本发明的第一个方面提供一种两步式隧道灰度图像的裂缝识别方法,其包括:A first aspect of the present invention provides a method for identifying cracks in a two-step tunnel grayscale image, which includes:

对批量隧道灰度图像分别进行边缘提取,得到对应的隧道边缘图像,再基于边缘图像的平均灰度与灰度阈值比较,筛选出所有可能存在裂缝的疑似图像;Edge extraction is performed on batches of tunnel grayscale images to obtain the corresponding tunnel edge images, and then based on the comparison of the average grayscale of the edge images with the grayscale threshold, all suspected images that may have cracks are screened out;

基于所述疑似图像和精细分割网络模型,得到批量隧道灰度图像的裂缝分割图像,再通过统计裂缝分割图像得到裂缝识别结果;所述裂缝识别结果包括实际存在裂缝的图像数量、裂缝数量和每条裂缝的特征参数。Based on the suspected image and the fine segmentation network model, the crack segmentation image of the batch tunnel grayscale image is obtained, and then the crack identification result is obtained by counting the crack segmentation image; the crack identification result includes the number of images of actual cracks, the number of cracks and each Characteristic parameters of cracks.

本发明的第二个方面提供一种两步式隧道灰度图像的裂缝识别系统,其包括:A second aspect of the present invention provides a two-step crack recognition system for tunnel grayscale images, which includes:

粗略筛选模块,其用于对批量隧道灰度图像分别进行边缘提取,得到对应的隧道边缘图像,再基于边缘图像的平均灰度与灰度阈值比较,筛选出所有可能存在裂缝的疑似图像;A rough screening module, which is used to perform edge extraction on batches of tunnel grayscale images to obtain corresponding tunnel edge images, and then screen out all suspected images that may have cracks based on the comparison between the average grayscale of the edge image and the grayscale threshold;

精细识别模块,其用于基于所述疑似图像和精细分割网络模型,得到批量隧道灰度图像的裂缝分割图像,再通过统计裂缝分割图像得到裂缝识别结果;所述裂缝识别结果包括实际存在裂缝的图像数量、裂缝数量和每条裂缝的特征参数。A fine identification module, which is used to obtain crack segmentation images of batches of tunnel grayscale images based on the suspected image and the fine segmentation network model, and then obtain crack identification results by statistical crack segmentation images; the crack identification results include actual cracks Number of images, number of cracks and characteristic parameters of each crack.

本发明的第三个方面提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述所述的两步式隧道灰度图像的裂缝识别方法中的步骤。A third aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps in the above-mentioned two-step method for identifying cracks in tunnel grayscale images are realized .

本发明的第四个方面提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述所述的两步式隧道灰度图像的裂缝识别方法中的步骤。A fourth aspect of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the program, the above-mentioned two Steps in the crack identification method for gray-scale images of tunnels.

与现有技术相比,本发明的有益效果是:Compared with prior art, the beneficial effect of the present invention is:

本发明裂缝与图像尺寸比例差别较大、裂缝尺寸较小的特点,对批量隧道灰度图像分别进行边缘提取,得到对应的隧道边缘图像,再基于边缘图像的平均灰度与灰度阈值比较,筛选出所有可能存在裂缝的疑似图像;再基于所述疑似图像和精细分割网络模型,得到批量隧道灰度图像的裂缝分割图像,再通过统计裂缝分割图像得到裂缝识别结果,适合于大批量数据场景下的隧道结构裂缝识别,大幅减少了数据的计量,提升了识别检测的精度及效率。The present invention has the characteristics of large difference in size ratio between cracks and images, and small crack size. Edge extraction is performed on batches of tunnel grayscale images to obtain corresponding tunnel edge images, and then based on the comparison of the average grayscale of the edge images with the grayscale threshold, Screen out all suspected images that may have cracks; then based on the suspected images and the fine segmentation network model, obtain the crack segmentation images of batches of tunnel grayscale images, and then obtain the crack recognition results by counting the crack segmentation images, which is suitable for large-scale data scenarios The identification of cracks in the tunnel structure greatly reduces the measurement of data and improves the accuracy and efficiency of identification and detection.

本发明附加方面的优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Advantages of additional aspects of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

附图说明Description of drawings

构成本发明的一部分的说明书附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention, and the schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention.

图1是本发明实施例的两步式隧道灰度图像的裂缝识别原理图;Fig. 1 is the schematic diagram of the crack identification of the two-step tunnel grayscale image of the embodiment of the present invention;

图2是本发明实施例的两步式隧道灰度图像的裂缝识别方法流程图;Fig. 2 is a flowchart of a method for identifying cracks in a two-step tunnel grayscale image according to an embodiment of the present invention;

图3是本发明实施例的精细分割网络模型结构示意图;3 is a schematic structural diagram of a finely segmented network model according to an embodiment of the present invention;

图4是本发明实施例的两步式隧道灰度图像的裂缝识别系统结构示意图。Fig. 4 is a schematic structural diagram of a two-step tunnel grayscale image crack identification system according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图与实施例对本发明作进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

应该指出,以下详细说明都是例示性的,旨在对本发明提供进一步的说明。除非另有指明,本文使用的所有技术和科学术语具有与本发明所属技术领域的普通技术人员通常理解的相同含义。It should be noted that the following detailed description is exemplary and intended to provide further explanation of the present invention. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本发明的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,当在本说明书中使用术语“包含”和/或“包括”时,其指明存在特征、步骤、操作、器件、组件和/或它们的组合。It should be noted that the terminology used here is only for describing specific embodiments, and is not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly dictates otherwise, the singular is intended to include the plural, and it should also be understood that when the terms "comprising" and/or "comprising" are used in this specification, they mean There are features, steps, operations, means, components and/or combinations thereof.

实施例一Embodiment one

如图1和图2所示,本实施例提供了一种两步式隧道灰度图像的裂缝识别方法,其具体包括如下步骤:As shown in Figures 1 and 2, this embodiment provides a two-step method for identifying cracks in tunnel grayscale images, which specifically includes the following steps:

S101:对批量隧道灰度图像分别进行边缘提取,得到对应的隧道边缘图像,对该数据求取平均灰度。再基于边缘图像的平均灰度与灰度阈值比较,筛选出所有可能存在裂缝的疑似图像。S101: Perform edge extraction on batches of tunnel grayscale images to obtain corresponding tunnel edge images, and calculate an average grayscale for the data. Then, based on the comparison between the average gray level of the edge image and the gray level threshold, all suspected images that may have cracks are screened out.

可选的,灰度阈值通常可以采用两种方式确定。一种为预设灰度阈值,经模拟实验可得,可以设定为0.001。另一种方法为统计所有边缘提取结果的平均灰度,以此平均灰度作为灰度阈值,分别与每个图像的边缘提取结果进行比较,判断是否为裂缝疑似图像。Optionally, the gray threshold can generally be determined in two ways. One is the preset gray threshold, which can be obtained through simulation experiments and can be set to 0.001. Another method is to count the average gray level of all edge extraction results, and use the average gray level as the gray level threshold to compare with the edge extraction results of each image to determine whether it is a suspected crack image.

在步骤S101中,所述批量隧道灰度图像的获取过程为:In step S101, the acquisition process of the batch tunnel grayscale images is as follows:

基于梯度检测方法批量计算原始隧道灰度图像的上阈值与下阈值,并调整原始隧道灰度图像的上阈值与下阈值至设定灰度范围。这样使得隧道灰度图像表现基本一致。Based on the gradient detection method, the upper threshold and lower threshold of the original tunnel grayscale image are calculated in batches, and the upper threshold and lower threshold of the original tunnel grayscale image are adjusted to the set grayscale range. In this way, the performance of the tunnel grayscale image is basically the same.

使用Canny边缘检测算法对批量隧道灰度图像分别进行边缘提取。Use the Canny edge detection algorithm to perform edge extraction on batches of tunnel grayscale images.

在具体实施中,原始隧道灰度图像使用隧道自动化采集设备获取。In a specific implementation, the original grayscale image of the tunnel is acquired using the automatic acquisition equipment of the tunnel.

S102:基于所述疑似图像和精细分割网络模型,得到批量隧道灰度图像的裂缝分割图像,再通过统计裂缝分割图像得到裂缝识别结果;所述裂缝识别结果包括实际存在裂缝的图像数量、裂缝数量和每条裂缝的特征参数。S102: Based on the suspected image and the fine segmentation network model, obtain the crack segmentation images of the batch gray image of the tunnel, and then obtain the crack identification result by counting the crack segmentation images; the crack identification result includes the number of images with actual cracks and the number of cracks and the characteristic parameters of each crack.

在具体实施中,所述疑似图像输入至精细分割网络模型之前,还包括:In a specific implementation, before the suspected image is input to the fine segmentation network model, it also includes:

对所有所述疑似图像进行归一化处理。All the suspected images are normalized.

所述归一化处理方法如下:The normalization processing method is as follows:

将输入图像尺寸缩放到640*640像素,并将图像数据转换成RGB颜色模式。设定图像均值mean为[0.485,0.456,0.406],设定图像方差std为[0.229,0.224,0.225],依据公式Pimg=(Pimg-mean)/std计算归一化图像,其中Pimg为图像中每一个像素点的颜色值。将图像数据加载进Dataloader之中用于数据训练。Scale the input image size to 640*640 pixels, and convert the image data into RGB color mode. Set the image mean mean to [0.485, 0.456, 0.406], set the image variance std to [0.229, 0.224, 0.225], and calculate the normalized image according to the formula P img = (P img -mean)/std, where P img is the color value of each pixel in the image. Load image data into Dataloader for data training.

如图3所示,所述精细分割网络模型为包括残差网络模块的U型卷积神经网络。该网络模型分为编码模块与解码模块两部分,其中编码模块包含4层下采样模块,解码模块包含4层上采样模块,并使用残差模块连接编码模块与解码模块中互相对应的层。As shown in FIG. 3 , the finely segmented network model is a U-shaped convolutional neural network including a residual network module. The network model is divided into two parts, an encoding module and a decoding module. The encoding module includes a 4-layer downsampling module, and the decoding module includes a 4-layer upsampling module. The residual module is used to connect the corresponding layers of the encoding module and the decoding module.

对于精细分割网络模型的训练数据集和验证数据集中的隧道裂缝图像样本,将裂缝区域标记为白色,非裂缝区域统一标记为黑色。For the tunnel crack image samples in the training data set and verification data set of the finely segmented network model, the crack area is marked as white, and the non-crack area is uniformly marked as black.

所述精细分割网络模型的训练过程如下:The training process of the fine segmentation network model is as follows:

对现有的若干张(比如:300张)隧道表观灰度图像提取数据进行标记,将裂缝区域标记为白色,非裂缝区域统一标记为黑色;Mark the extraction data of several existing (for example: 300) tunnel apparent grayscale images, mark the cracked area as white, and uniformly mark the non-cracked area as black;

以标记数据为基础构建训练集和验证集,训练集与验证集的比例预先设定,比如为0.85:0.15,使用该数据集对U型神经网络进行训练,训练若干轮,比如30轮次,学习率可设置为0.03,完成网络的训练。Construct a training set and a verification set based on labeled data. The ratio of the training set to the verification set is preset, such as 0.85:0.15. Use this data set to train the U-shaped neural network for several rounds, such as 30 rounds. The learning rate can be set to 0.03 to complete the training of the network.

其中,裂缝识别结果包括但不限于存在裂缝图像数量、裂缝图像在采集图像中的比例、裂缝数量、每条裂缝的长度、宽度、形态等特征参数、每条裂缝的精细分割结果。Among them, the fracture identification results include but are not limited to the number of fracture images, the proportion of fracture images in the collected images, the number of fractures, the length, width, shape and other characteristic parameters of each fracture, and the fine segmentation results of each fracture.

实施例二Embodiment two

如图4所示,本实施例提供了一种两步式隧道灰度图像的裂缝识别系统,其具体包括如下模块:As shown in Figure 4, the present embodiment provides a two-step tunnel grayscale image crack identification system, which specifically includes the following modules:

粗略筛选模块201,其用于对批量隧道灰度图像分别进行边缘提取,得到对应的隧道边缘图像,再基于边缘图像的平均灰度与灰度阈值比较,筛选出所有可能存在裂缝的疑似图像;Rough screening module 201, which is used to perform edge extraction on batches of tunnel grayscale images to obtain corresponding tunnel edge images, and then screen out all suspected images that may have cracks based on the comparison between the average grayscale of the edge images and the grayscale threshold;

精细识别模块202,其用于基于所述疑似图像和精细分割网络模型,得到批量隧道灰度图像的裂缝分割图像,再通过统计裂缝分割图像得到裂缝识别结果;所述裂缝识别结果包括实际存在裂缝的图像数量、裂缝数量和每条裂缝的特征参数。Fine identification module 202, which is used to obtain crack segmentation images of batches of tunnel grayscale images based on the suspected image and fine segmentation network model, and then obtain crack identification results by statistical crack segmentation images; the crack identification results include actual cracks The number of images, the number of cracks and the characteristic parameters of each crack.

此处需要说明的是,本实施例中的各个模块与实施例一中的各个步骤一一对应,其具体实施过程相同,此处不再累述。It should be noted here that each module in this embodiment corresponds to each step in Embodiment 1, and the specific implementation process is the same, so it will not be repeated here.

实施例三Embodiment Three

本实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述所述的两步式隧道灰度图像的裂缝识别方法中的步骤。This embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps in the two-step method for identifying cracks in tunnel grayscale images as described above are implemented.

实施例四Embodiment four

本实施例提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述所述的两步式隧道灰度图像的裂缝识别方法中的步骤。This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the program, the two-step tunnel described above is realized Steps in the crack identification method for grayscale images.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1.一种两步式隧道灰度图像的裂缝识别方法,其特征在于,包括:1. A crack recognition method of a two-step tunnel grayscale image, characterized in that it comprises: 对批量隧道灰度图像分别进行边缘提取,得到对应的隧道边缘图像,再基于边缘图像的平均灰度与灰度阈值比较,筛选出所有可能存在裂缝的疑似图像;Edge extraction is performed on batches of tunnel grayscale images to obtain the corresponding tunnel edge images, and then based on the comparison of the average grayscale of the edge images with the grayscale threshold, all suspected images that may have cracks are screened out; 基于所述疑似图像和精细分割网络模型,得到批量隧道灰度图像的裂缝分割图像,再通过统计裂缝分割图像得到裂缝识别结果;所述裂缝识别结果包括实际存在裂缝的图像数量、裂缝数量和每条裂缝的特征参数。Based on the suspected image and the fine segmentation network model, the crack segmentation image of the batch tunnel grayscale image is obtained, and then the crack identification result is obtained by counting the crack segmentation image; the crack identification result includes the number of images of actual cracks, the number of cracks and each Characteristic parameters of cracks. 2.如权利要求1所述的两步式隧道灰度图像的裂缝识别方法,其特征在于,所述批量隧道灰度图像的获取过程为:2. the crack identification method of two-step tunnel grayscale image as claimed in claim 1, is characterized in that, the acquisition process of described batch tunnel grayscale image is: 基于梯度检测方法批量计算原始隧道灰度图像的上阈值与下阈值,并调整原始隧道灰度图像的上阈值与下阈值至设定灰度范围。Based on the gradient detection method, the upper threshold and lower threshold of the original tunnel grayscale image are calculated in batches, and the upper threshold and lower threshold of the original tunnel grayscale image are adjusted to the set grayscale range. 3.如权利要求1所述的两步式隧道灰度图像的裂缝识别方法,其特征在于,使用Canny边缘检测算法对批量隧道灰度图像分别进行边缘提取。3. the crack identification method of two-step tunnel gray-scale image as claimed in claim 1, is characterized in that, use Canny edge detection algorithm to carry out edge extraction respectively to batch tunnel gray-scale image. 4.如权利要求1所述的两步式隧道灰度图像的裂缝识别方法,其特征在于,所述疑似图像输入至精细分割网络模型之前,还包括:4. the crack recognition method of two-step tunnel grayscale image as claimed in claim 1, is characterized in that, before described suspicious image is input to fine segmentation network model, also comprises: 对所有所述疑似图像进行归一化处理。All the suspected images are normalized. 5.如权利要求1所述的两步式隧道灰度图像的裂缝识别方法,其特征在于,所述精细分割网络模型为包括残差网络模块的U型卷积神经网络。5. the crack recognition method of two-step tunnel grayscale image as claimed in claim 1, is characterized in that, described fine segmentation network model is the U-shaped convolutional neural network that comprises residual network module. 6.如权利要求1所述的两步式隧道灰度图像的裂缝识别方法,其特征在于,对于精细分割网络模型的训练数据集和验证数据集中的隧道裂缝图像样本,将裂缝区域标记为白色,非裂缝区域统一标记为黑色。6. the crack recognition method of two-step tunnel grayscale image as claimed in claim 1, is characterized in that, for the training data set of finely segmented network model and the tunnel crack image sample in verification data set, the crack region is marked as white , and the non-crack regions are uniformly marked in black. 7.一种两步式隧道灰度图像的裂缝识别系统,其特征在于,包括:7. A crack recognition system of a two-step tunnel grayscale image, characterized in that it comprises: 粗略筛选模块,其用于对批量隧道灰度图像分别进行边缘提取,得到对应的隧道边缘图像,再基于边缘图像的平均灰度与灰度阈值比较,筛选出所有可能存在裂缝的疑似图像;A rough screening module, which is used to perform edge extraction on batches of tunnel grayscale images to obtain corresponding tunnel edge images, and then screen out all suspected images that may have cracks based on the comparison between the average grayscale of the edge image and the grayscale threshold; 精细识别模块,其用于基于所述疑似图像和精细分割网络模型,得到批量隧道灰度图像的裂缝分割图像,再通过统计裂缝分割图像得到裂缝识别结果;所述裂缝识别结果包括实际存在裂缝的图像数量、裂缝数量和每条裂缝的特征参数。A fine identification module, which is used to obtain crack segmentation images of batches of tunnel grayscale images based on the suspected image and the fine segmentation network model, and then obtain crack identification results by statistical crack segmentation images; the crack identification results include actual cracks Number of images, number of cracks and characteristic parameters of each crack. 8.如权利要求7所述的两步式隧道灰度图像的裂缝识别系统,其特征在于,在所述粗略筛选模块中,所述批量隧道灰度图像的获取过程为:8. the crack identification system of two-step tunnel grayscale image as claimed in claim 7, is characterized in that, in described rough screening module, the acquisition process of described batch tunnel grayscale image is: 基于梯度检测方法批量计算原始隧道灰度图像的上阈值与下阈值,并调整原始隧道灰度图像的上阈值与下阈值至设定灰度范围。Based on the gradient detection method, the upper threshold and lower threshold of the original tunnel grayscale image are calculated in batches, and the upper threshold and lower threshold of the original tunnel grayscale image are adjusted to the set grayscale range. 9.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-6中任一项所述的两步式隧道灰度图像的裂缝识别方法中的步骤。9. A computer-readable storage medium on which a computer program is stored, wherein when the program is executed by a processor, the two-step tunnel grayscale image according to any one of claims 1-6 is realized. Steps in the fracture identification method. 10.一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1-6中任一项所述的两步式隧道灰度图像的裂缝识别方法中的步骤。10. A computer device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, characterized in that, when the processor executes the program, it realizes any of claims 1-6. A step in the two-step crack recognition method for tunnel grayscale images.
CN202211013049.1A 2022-08-23 2022-08-23 Crack recognition method, system, medium and equipment for two-step tunnel grayscale image Pending CN115359003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211013049.1A CN115359003A (en) 2022-08-23 2022-08-23 Crack recognition method, system, medium and equipment for two-step tunnel grayscale image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211013049.1A CN115359003A (en) 2022-08-23 2022-08-23 Crack recognition method, system, medium and equipment for two-step tunnel grayscale image

Publications (1)

Publication Number Publication Date
CN115359003A true CN115359003A (en) 2022-11-18

Family

ID=84002307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211013049.1A Pending CN115359003A (en) 2022-08-23 2022-08-23 Crack recognition method, system, medium and equipment for two-step tunnel grayscale image

Country Status (1)

Country Link
CN (1) CN115359003A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117409263A (en) * 2023-12-15 2024-01-16 成都时代星光科技有限公司 Unmanned aerial vehicle automatic image correction guiding landing method and computer storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117409263A (en) * 2023-12-15 2024-01-16 成都时代星光科技有限公司 Unmanned aerial vehicle automatic image correction guiding landing method and computer storage medium
CN117409263B (en) * 2023-12-15 2024-04-05 成都时代星光科技有限公司 Unmanned aerial vehicle automatic image correction guiding landing method and computer storage medium

Similar Documents

Publication Publication Date Title
CN108961217B (en) Surface defect detection method based on regular training
Quan et al. The method of the road surface crack detection by the improved Otsu threshold
CN109598681B (en) No-reference quality evaluation method for image after repairing of symmetrical Thangka
CN111985499B (en) High-precision bridge apparent disease identification method based on computer vision
CN102184534B (en) An Image Fusion Method Using Multi-Scale Top Hat Selective Transformation
CN104331521A (en) Automatic power transformation equipment abnormity identification method based on image processing
CN110310238B (en) A single image deraining method based on compressed reward-punishment neural network that reuses original information
CN101908153B (en) Method for estimating head postures in low-resolution image treatment
CN106934455B (en) Method and system for selecting optical adaptation structure of remote sensing images based on CNN
CN104217440B (en) A kind of method extracting built-up areas from remote sensing images
CN108764328A (en) The recognition methods of Terahertz image dangerous material, device, equipment and readable storage medium storing program for executing
CN104657714B (en) Illumination symmetry merged with global illumination intensity without refer to human face light evaluation method
CN114926407A (en) Steel surface defect detection system based on deep learning
CN106097368A (en) A kind of recognition methods in veneer crack
CN107564018A (en) It is a kind of to utilize the method for improving iterative algorithm extraction target image
CN110223273B (en) Image restoration evidence obtaining method combining discrete cosine transform and neural network
CN107274403B (en) A method for evaluating the surface quality of flotation
CN116402822B (en) Concrete structure image detection method, device, electronic equipment and storage medium
CN115601330A (en) Colonic polyp segmentation method based on multi-scale space reverse attention mechanism
CN114926386A (en) Method and system for automatically segmenting leucocyte nucleoplasm based on deep learning
CN115359003A (en) Crack recognition method, system, medium and equipment for two-step tunnel grayscale image
CN103279960B (en) A kind of image partition method of human body cache based on X-ray backscatter images
CN107730476A (en) A kind of image enchancing method and device based on compressed sensing
CN103093241B (en) Based on the remote sensing image nonuniformity cloud layer method of discrimination of homogeneity process
CN118941500A (en) A method and system for automatic detection of steel bar binding based on machine vision

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