[go: up one dir, main page]

CN118015068B - A road surface structure depth prediction method, device, terminal equipment and medium - Google Patents

A road surface structure depth prediction method, device, terminal equipment and medium Download PDF

Info

Publication number
CN118015068B
CN118015068B CN202410291596.9A CN202410291596A CN118015068B CN 118015068 B CN118015068 B CN 118015068B CN 202410291596 A CN202410291596 A CN 202410291596A CN 118015068 B CN118015068 B CN 118015068B
Authority
CN
China
Prior art keywords
depth
image
binary image
pixel
depth map
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410291596.9A
Other languages
Chinese (zh)
Other versions
CN118015068A (en
Inventor
但汉成
陆冰洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Central South University
Original Assignee
Central South 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 Central South University filed Critical Central South University
Priority to CN202410291596.9A priority Critical patent/CN118015068B/en
Publication of CN118015068A publication Critical patent/CN118015068A/en
Application granted granted Critical
Publication of CN118015068B publication Critical patent/CN118015068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • EFIXED CONSTRUCTIONS
    • E01CONSTRUCTION OF ROADS, RAILWAYS, OR BRIDGES
    • E01CCONSTRUCTION OF, OR SURFACES FOR, ROADS, SPORTS GROUNDS, OR THE LIKE; MACHINES OR AUXILIARY TOOLS FOR CONSTRUCTION OR REPAIR
    • E01C23/00Auxiliary devices or arrangements for constructing, repairing, reconditioning, or taking-up road or like surfaces
    • E01C23/01Devices or auxiliary means for setting-out or checking the configuration of new surfacing, e.g. templates, screed or reference line supports; Applications of apparatus for measuring, indicating, or recording the surface configuration of existing surfacing, e.g. profilographs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4023Scaling of whole images or parts thereof, e.g. expanding or contracting based on decimating pixels or lines of pixels; based on inserting pixels or lines of pixels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • G06T3/608Rotation of whole images or parts thereof by skew deformation, e.g. two-pass or three-pass rotation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • G06T7/55Depth or shape recovery from multiple images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/64Analysis of geometric attributes of convexity or concavity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/77Determining position or orientation of objects or cameras using statistical methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10028Range image; Depth image; 3D point clouds
    • 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/20004Adaptive image processing
    • 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/20024Filtering details
    • G06T2207/20028Bilateral filtering
    • 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/20112Image segmentation details
    • G06T2207/20152Watershed segmentation
    • 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/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Geometry (AREA)
  • Structural Engineering (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Probability & Statistics with Applications (AREA)
  • Civil Engineering (AREA)
  • Architecture (AREA)
  • Image Processing (AREA)

Abstract

本申请适用于道路工程技术领域,提供了一种路面构造深度预测方法、装置、终端设备及介质,通过采集RGB图像数据,构建深度图;计算像素与相邻像素之间的平均深度和深度方差,并基于其对像素的深度值进行修正,得到修正深度图;计算相对凹面积比例;构建图像金字塔;基于高斯局部自适应阈值,对每个尺度的图像进行二值化,并对二进制图像进行上采样,得到调整后的二值图;对图像金字塔中各尺度的图像进行融合,并对调整后的二值图和融合后的二值图进行按位或运算,得到最终的二值图;计算最大骨颗粒径比;根据相对凹面积比例、最大骨颗粒径比以及预训练后的GBT模型,预测路面构造深度。本申请能提高路面构造深度预测的准确性,降低复杂度。

The present application is applicable to the field of road engineering technology, and provides a method, device, terminal equipment and medium for predicting the depth of pavement structure, which constructs a depth map by collecting RGB image data; calculates the average depth and depth variance between pixels and adjacent pixels, and based on them, corrects the depth value of the pixel to obtain a corrected depth map; calculates the relative concave area ratio; constructs an image pyramid; based on a Gaussian local adaptive threshold, binarizes the image of each scale, and upsamples the binary image to obtain an adjusted binary image; fuses the images of each scale in the image pyramid, and performs a bitwise OR operation on the adjusted binary image and the fused binary image to obtain a final binary image; calculates the maximum bone particle diameter ratio; predicts the pavement structure depth according to the relative concave area ratio, the maximum bone particle diameter ratio and the pre-trained GBT model. The present application can improve the accuracy of pavement structure depth prediction and reduce complexity.

Description

一种路面构造深度预测方法、装置、终端设备及介质A road surface structure depth prediction method, device, terminal equipment and medium

技术领域Technical Field

本申请属于道路工程技术领域,尤其涉及一种路面构造深度预测方法、装置、终端设备及介质。The present application belongs to the field of road engineering technology, and in particular, relates to a method, device, terminal equipment and medium for predicting the depth of a pavement structure.

背景技术Background technique

路面构造深度预测是道路工程技术领域的一个重要问题,能够提供关键的信息用于道路维护和安全管理。Pavement structure depth prediction is an important issue in the field of road engineering technology and can provide critical information for road maintenance and safety management.

目前常用的路面构造深度预测技术包括基于激光技术的方法、数字图像技术方法、体积法(铺砂法)等。其中,基于激光技术的方法是指使用激光扫描仪或线性激光器,垂直照射到路面,然后测量反射激光的时间来计算路面表面的高度变化;数字图像技术方法是指使用数字图像技术来测量和评估路面表面的构造深度;体积法是指通过在路面上铺设一层材料(通常是沙子)并测量材料的体积来确定路面构造深度。At present, the commonly used pavement structural depth prediction technologies include laser-based methods, digital image technology methods, volumetric methods (sand laying methods), etc. Among them, the laser-based method refers to the use of laser scanners or linear lasers to illuminate the road surface vertically, and then measure the time of reflected laser to calculate the height change of the road surface; the digital image technology method refers to the use of digital image technology to measure and evaluate the structural depth of the road surface; the volumetric method refers to determining the pavement structural depth by laying a layer of material (usually sand) on the road surface and measuring the volume of the material.

以上方法虽然能实现路面构造深度预测,但存在费时费力、精度不高、设备、无法提供形象化信息实时性不高等缺陷,在实际运用中,仍存在一定的局限性。Although the above methods can realize the prediction of pavement structure depth, they have defects such as time-consuming and labor-intensive, low accuracy, equipment, and inability to provide visual information in real time. In practical application, they still have certain limitations.

发明内容Summary of the invention

本申请提供了一种路面构造深度预测方法、装置、终端设备及介质,可以解决传统路面构造深度预测方法准确性较低、复杂的问题。The present application provides a pavement structure depth prediction method, device, terminal equipment and medium, which can solve the problems of low accuracy and complexity of traditional pavement structure depth prediction methods.

第一方面,本申请提供了一种路面构造深度预测方法,包括:In a first aspect, the present application provides a method for predicting pavement structure depth, comprising:

采集路面的RGB图像数据,并根据RGB图像数据,构建深度图;Collect RGB image data of the road surface, and construct a depth map based on the RGB image data;

分别针对深度图中的每个像素,计算像素与预设半径范围内相邻像素之间的平均深度和深度方差,并基于平均深度和深度方差,对像素的深度值进行修正,得到修正深度图;For each pixel in the depth map, the average depth and depth variance between the pixel and adjacent pixels within a preset radius are calculated, and the depth value of the pixel is corrected based on the average depth and the depth variance to obtain a corrected depth map;

计算修正深度图的相对凹面积比例;相对凹面积比例用以表征路面的粗糙度;Calculate the relative concave area ratio of the corrected depth map; the relative concave area ratio is used to characterize the roughness of the road surface;

对RGB图像数据进行下采样,构建图像金字塔;图像金字塔包括多个尺度的RGB图像;Downsample the RGB image data and construct an image pyramid; the image pyramid includes RGB images of multiple scales;

基于高斯局部自适应阈值,对每个尺度的图像进行二值化,得到二进制图像,对二进制图像进行上采样,得到调整后的二值图;Based on the Gaussian local adaptive threshold, the image of each scale is binarized to obtain a binary image, and the binary image is upsampled to obtain an adjusted binary image;

对图像金字塔中各尺度的图像进行融合,得到融合后的二值图,并对调整后的二值图和融合后的二值图进行按位或运算,得到最终的二值图;The images of each scale in the image pyramid are fused to obtain a fused binary image, and the adjusted binary image and the fused binary image are bitwise ORed to obtain a final binary image;

对最终的二值图中的所有集料作外接圆,并计算最大外接圆的直径与图像宽度的比值,得到最大骨颗粒径比;最大骨颗粒径比用于描述路面上所使用的骨料的最大颗粒径与整张深度图宽度的比值,骨料包括碎石、石子以及砂石;Draw a circumscribed circle for all aggregates in the final binary image, and calculate the ratio of the diameter of the largest circumscribed circle to the image width to obtain the maximum bone particle diameter ratio; the maximum bone particle diameter ratio is used to describe the ratio of the maximum particle diameter of the aggregate used on the road surface to the width of the entire depth map. Aggregates include crushed stone, gravel and sand.

根据相对凹面积比例、最大骨颗粒径比以及预训练后的GBT模型,预测路面构造深度。The pavement structure depth is predicted based on the relative concave area ratio, the maximum bone particle diameter ratio, and the pre-trained GBT model.

可选的,基于平均深度和深度方差,对像素的深度值进行修正,包括:Optionally, the depth value of the pixel is corrected based on the average depth and depth variance, including:

通过计算公式,得到去噪后的深度值;其中,表示像素的初始深度值,表示噪声方差,表示深度方差,表示平均深度;By calculating the formula , get the denoised depth value ;in, represents the initial depth value of the pixel, represents the noise variance, represents the depth variance, represents the average depth;

通过计算公式,得到修正后的深度值;其中,均表示拟合系数。By calculating the formula , get the corrected depth value ;in, , All represent fitting coefficients.

可选的,相对凹面积比例的计算表达式如下:Optionally, the relative concave area ratio can be calculated as follows:

其中,表示相对凹面积比例,表示相对凹面部分的像素数,表示水平像素的尺寸,表示垂直像素的尺寸,表示第个水平像素,表示第个垂直像素,in, represents the relative concave area ratio, Indicates the number of pixels relative to the concave part, Indicates the horizontal pixel size, Indicates the vertical pixel size, Indicates horizontal pixels, , Indicates vertical pixels, .

可选的,基于高斯局部自适应阈值,对每个尺度的图像进行二值化,得到二进制图像,对二进制图像进行上采样,得到调整后的二值图,包括:Optionally, based on a Gaussian local adaptive threshold, binarize the image at each scale to obtain a binary image, and upsample the binary image to obtain an adjusted binary image, including:

分别针对每个尺度的图像中的像素,对通过计算公式For each pixel in the image of each scale, the formula is calculated

得到尺度的图像二值化后的二进制图像;其中,表示高斯局部自适应阈值,表示常数,用于控制高斯局部自适应阈值相对局部方差的偏移量,表示局部平均值,表示局部标准差;Get the binary image after the scaled image is binarized ;in, represents the Gaussian local adaptive threshold, Represents a constant used to control the offset of the Gaussian local adaptive threshold relative to the local variance. represents the local mean, represents the local standard deviation;

通过上采样,将二进制图像调整为与修正深度图相同尺寸大小,得到调整后的二值图。By upsampling, the binary image is adjusted to the same size as the corrected depth map to obtain an adjusted binary image.

可选的,最大骨颗粒径比的表达式为;其中,表示最大外接圆的直径,表示图像宽度。Alternatively, the expression for the maximum bone particle diameter ratio is ;in, represents the diameter of the largest circumscribed circle, Indicates the image width.

第二方面,本申请提供了一种路面构造深度预测装置,包括:In a second aspect, the present application provides a road surface structure depth prediction device, comprising:

图像采集模块,用于采集路面的RGB图像数据,并根据RGB图像数据,构建深度图;An image acquisition module is used to collect RGB image data of the road surface and construct a depth map based on the RGB image data;

深度修正模块,用于分别针对深度图中的每个像素,计算像素与预设半径范围内相邻像素之间的平均深度和深度方差,并基于平均深度和深度方差,对像素的深度值进行修正,得到修正深度图;A depth correction module is used to calculate the average depth and depth variance between each pixel and adjacent pixels within a preset radius for each pixel in the depth map, and correct the depth value of the pixel based on the average depth and depth variance to obtain a corrected depth map;

凹面积比例计算模块,用于计算修正深度图的相对凹面积比例;相对凹面积比例用以表征路面的粗糙度;A concave area ratio calculation module is used to calculate the relative concave area ratio of the corrected depth map; the relative concave area ratio is used to characterize the roughness of the road surface;

图像金字塔模块,用于对RGB图像数据进行下采样,构建图像金字塔;图像金字塔包括多个尺度的RGB图像;Image pyramid module, used to downsample RGB image data and construct image pyramid; image pyramid includes RGB images of multiple scales;

二值化图像调整模块,用于基于高斯局部自适应阈值,对每个尺度的图像进行二值化,得到二进制图像,对二进制图像进行上采样,得到调整后的二值图;A binary image adjustment module, used for binarizing the image of each scale based on a Gaussian local adaptive threshold to obtain a binary image, and upsampling the binary image to obtain an adjusted binary image;

图像融合模块,用于对图像金字塔中各尺度的图像进行融合,得到融合后的二值图,并对调整后的二值图和融合后的二值图进行按位或运算,得到最终的二值图;An image fusion module is used to fuse images of different scales in the image pyramid to obtain a fused binary image, and perform a bitwise OR operation on the adjusted binary image and the fused binary image to obtain a final binary image;

最大骨颗粒径比计算模块,用于对最终的二值图中的所有集料作外接圆,并计算最大外接圆的直径与图像宽度的比值,得到最大骨颗粒径比;最大骨颗粒径比用于描述路面上所使用的骨料的最大颗粒径与整张深度图宽度的比值,骨料包括碎石、石子以及砂石;The maximum bone particle diameter ratio calculation module is used to make a circumscribed circle for all aggregates in the final binary image, and calculate the ratio of the diameter of the maximum circumscribed circle to the image width to obtain the maximum bone particle diameter ratio; the maximum bone particle diameter ratio is used to describe the ratio of the maximum particle diameter of the aggregate used on the road surface to the width of the entire depth map, and the aggregates include crushed stone, gravel and sand and gravel;

深度预测模块,用于根据相对凹面积比例、最大骨颗粒径比以及预训练后的GBT模型,预测路面构造深度。The depth prediction module is used to predict the pavement structure depth based on the relative concave area ratio, the maximum bone particle diameter ratio and the pre-trained GBT model.

第三方面,本申请提供了一种终端设备,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述的路面构造深度预测方法。In a third aspect, the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned pavement structure depth prediction method when executing the computer program.

第四方面,本申请提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述的路面构造深度预测方法。In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned pavement structure depth prediction method is implemented.

本申请的上述方案有如下的有益效果:The above solution of the present application has the following beneficial effects:

本申请提供的路面构造深度预测方法,通过平均深度和深度方差,对像素的深度值进行修正,能够减小由于图像噪声带来的负面影响,从而有利于提高路面构造深度预测的准确性;提出了相对凹面积比例和最大骨颗粒径比,来从不同的维度表征路面纹理,简化了传统方法中复杂的计算,并且可解释性强,更具形象化,同时,将相对凹面积比例、最大骨颗粒径比与GBT模型结合,能够准确预测路面构造深度。The pavement structure depth prediction method provided in the present application corrects the depth value of the pixel by averaging the depth and the depth variance, which can reduce the negative impact caused by image noise, thereby helping to improve the accuracy of the pavement structure depth prediction; the relative concave area ratio and the maximum bone particle diameter ratio are proposed to characterize the pavement texture from different dimensions, which simplifies the complex calculations in the traditional method, and is highly interpretable and more visual. At the same time, the relative concave area ratio and the maximum bone particle diameter ratio are combined with the GBT model to accurately predict the pavement structure depth.

本申请的其它有益效果将在随后的具体实施方式部分予以详细说明。Other beneficial effects of the present application will be described in detail in the subsequent specific implementation section.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1为本申请一实施例提供的路面构造深度预测方法的流程图;FIG1 is a flow chart of a method for predicting road surface structure depth provided by an embodiment of the present application;

图2为本申请一实施例中路面构造深度预测方法与铺砂法的预测效果对比图;FIG2 is a comparison diagram of the prediction effects of the pavement structure depth prediction method and the sand spreading method in one embodiment of the present application;

图3为本申请一实施例中路面构造深度预测方法与铺砂法的误差对比图;FIG3 is a diagram showing the error comparison between the pavement structure depth prediction method and the sand spreading method in one embodiment of the present application;

图4为本申请一实施例提供的路面构造深度预测装置的结构示意图;FIG4 is a schematic diagram of the structure of a road surface structure depth prediction device provided in an embodiment of the present application;

图5为本申请一实施例提供的终端设备的结构示意图。FIG5 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application.

具体实施方式Detailed ways

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or combinations thereof.

还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term “and/or” used in the specification and appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

针对传统路面构造深度预测方法准确性较低、复杂的问题,本申请提供了一种种路面构造深度预测方法、装置、终端设备及介质,该方法通过平均深度和深度方差,对像素的深度值进行修正,能够减小由于图像噪声带来的负面影响,从而有利于提高路面构造深度预测的准确性;提出了相对凹面积比例和最大骨颗粒径比,来从不同的维度表征路面纹理,简化了传统方法中复杂的计算,并且可解释性强,更具形象化,同时,将相对凹面积比例、最大骨颗粒径比与GBT模型结合,能够准确预测路面构造深度。In response to the problems of low accuracy and complexity of traditional pavement structure depth prediction methods, the present application provides a pavement structure depth prediction method, device, terminal equipment and medium. The method corrects the depth value of the pixel by averaging the depth and depth variance, which can reduce the negative impact caused by image noise, thereby helping to improve the accuracy of pavement structure depth prediction; the relative concave area ratio and the maximum bone particle diameter ratio are proposed to characterize the pavement texture from different dimensions, simplifying the complex calculations in the traditional method, and having strong interpretability and more visualization. At the same time, the relative concave area ratio and the maximum bone particle diameter ratio are combined with the GBT model to accurately predict the pavement structure depth.

下面对本申请提供的路面构造深度预测方法进行示例性说明。The pavement structure depth prediction method provided in this application is exemplified below.

如图1所示,本申请提供的路面构造深度预测方法包括以下步骤:As shown in FIG1 , the pavement structure depth prediction method provided in the present application includes the following steps:

步骤11,采集路面的RGB图像数据,并根据RGB图像数据,构建深度图。Step 11: collect RGB image data of the road surface, and construct a depth map based on the RGB image data.

示例性的,在本申请的实施例中,上述RGB图像数据包括1张参考图像和12张从多个角度拍摄的源图像。其中,参考图像是指相机拍摄的光轴垂直于路面得到的图像,源图像是指相机拍摄的光轴未垂直于路面得到的图像,不同源图像对应的拍摄角度互不相同。同时,出于对精度的考量,本申请实施例中的RGB图像选取在距离待测路面高度约15厘米至20厘米的地方拍摄,考虑到深度图构建依赖于一系列图像之间的特征匹配,设置源图像之间的拍摄角度为30°至40°,且深度图构建的重点是从参考图像中恢复深度信息以提取路面纹理特征,因此,设置参考图像和源图像之间的重叠度不小于70%。Exemplarily, in an embodiment of the present application, the RGB image data includes 1 reference image and 12 source images taken from multiple angles. The reference image refers to an image taken by a camera with an optical axis perpendicular to the road surface, and the source image refers to an image taken by a camera with an optical axis not perpendicular to the road surface. The shooting angles corresponding to different source images are different. At the same time, for the sake of accuracy, the RGB image in the embodiment of the present application is taken at a height of about 15 cm to 20 cm from the road surface to be measured. Considering that the construction of the depth map depends on the feature matching between a series of images, the shooting angle between the source images is set to 30° to 40°, and the focus of the depth map construction is to recover the depth information from the reference image to extract the road surface texture features. Therefore, the overlap between the reference image and the source image is set to be no less than 70%.

需要说明的是,在具体实施时,为确保参考图像的尺寸一致,可使用钢制空心方形校准板,设置其内侧长度为10厘米(cm);此外,考虑到户外采集时光照条件的多变性,应将校准板的内边缘与相机成像区域对齐,以控制拍摄高度并实现一致的图像像素大小,并尽量在一天中的同一时间拍摄,以确保均匀的照明条件。It should be noted that, in the specific implementation, in order to ensure the consistency of the size of the reference image, a steel hollow square calibration plate can be used, and its inner length is set to 10 centimeters (cm); in addition, considering the variability of lighting conditions during outdoor collection, the inner edge of the calibration plate should be aligned with the camera imaging area to control the shooting height and achieve consistent image pixel size, and try to shoot at the same time of the day to ensure uniform lighting conditions.

下面对根据RGB图像数据,构建深度图的过程进行示例性说明。The following is an exemplary description of the process of constructing a depth map based on RGB image data.

示例性的,可采用结构光束法(sfM,Structure from Motion,一种从不同视角拍摄的一组图像中恢复场景和摄像机姿势的三维技术,常见的有colmap等开源软件)从RGB(Red Green Blue)图像数据中获取相机姿势信息,得到系列图像(参考图像和源图像)和相机参数后,使用Patchmatchnet模型构建系列图像的对应深度图,并将其中参考图像对应的深度图作为后续预测效果的测试图。Exemplarily, the structured beam method (sfM, Structure from Motion, a 3D technology for recovering scenes and camera poses from a set of images taken from different perspectives, commonly used open source software such as colmap) can be used to obtain camera pose information from RGB (Red Green Blue) image data. After obtaining a series of images (reference images and source images) and camera parameters, the Patchmatchnet model is used to construct the corresponding depth map of the series of images, and the depth map corresponding to the reference image is used as a test image for subsequent prediction effects.

由于参考图像在局部相机坐标系下代表相对深度值,在没有精确固定的拍摄距离和角度的情况下,同一测量点构建的深度图可能具有不同的深度范围。因此,为了使深度值具有可比性和可解释性,需要将其映射到 [0,1] 的统一范围。Since the reference image represents relative depth values in the local camera coordinate system, without a precisely fixed shooting distance and angle, the depth map constructed from the same measurement point may have different depth ranges. Therefore, in order to make the depth values comparable and interpretable, they need to be mapped to a uniform range of [0, 1].

具体的,通过计算公式Specifically, by calculating the formula

得到归一化后的深度值;其中,表示归一化前的深度值,表示最大深度值,表示最小深度值。Get the normalized depth value ;in, Represents the depth value before normalization, Indicates the maximum depth value, Indicates the minimum depth value.

步骤12,分别针对深度图中的每个像素,计算像素与预设半径范围内相邻像素之间的平均深度和深度方差,并基于平均深度和深度方差,对像素的深度值进行修正,得到修正深度图。Step 12, for each pixel in the depth map, calculate the average depth and depth variance between the pixel and adjacent pixels within a preset radius, and correct the depth value of the pixel based on the average depth and depth variance to obtain a corrected depth map.

需要说明的是,考虑到图像噪声对预测效果的影响,在执行步骤12前,需使用双边滤波器处理步骤11得到的深度图,然后对其进行边缘填充,最后进行自适应局部降噪。It should be noted that, considering the influence of image noise on the prediction effect, before executing step 12, it is necessary to use a bilateral filter to process the depth map obtained in step 11, then fill its edges, and finally perform adaptive local noise reduction.

其中,基于平均深度和深度方差,对像素的深度值进行修正,包括:Among them, based on the average depth and depth variance, the depth value of the pixel is corrected, including:

通过计算公式,得到去噪后的深度值;其中,表示像素的初始深度值,表示噪声方差,表示深度方差,表示平均深度,该式中是将深度值拟合后的平面上的深度值。By calculating the formula , get the denoised depth value ;in, represents the initial depth value of the pixel, represents the noise variance, represents the depth variance, represents the average depth, where Yes Depth value The depth value on the plane after depth fitting.

此外,由于存在路面坡度以及相机与平面之间的相对倾斜,如果不进行校正,从参考视图中提取的不正确的相对深度信息会影响路面性能评估的准确性。因此,在本申请的实施例中,使用随机抽样一致性(RANSAC,Random Sample Consensus algorithm)算法来获得拟合曲面的三阶多项式,具体如下:In addition, due to the road slope and the relative inclination between the camera and the plane, if no correction is performed, the incorrect relative depth information extracted from the reference view will affect the accuracy of the road performance evaluation. Therefore, in an embodiment of the present application, a random sample consensus (RANSAC) algorithm is used to obtain a third-order polynomial of the fitting surface, as follows:

其中,均表示拟合系数,表示曲面拟合值。随后,通过从RGB图像数据中减去相应的曲面拟合值来消除倾斜影响。in, are fitting coefficients, Denotes the surface fitting value. Subsequently, the tilt effect is eliminated by subtracting the corresponding surface fitting value from the RGB image data.

步骤13,计算修正深度图的相对凹面积比例。Step 13, calculating the relative concave area ratio of the corrected depth map.

相对凹面积比例用以表征路面的粗糙度,路表面由许多微小的起伏、凹陷和凸起组成。相对凹面积是用来量化路表面结构中凹陷部分所占的比例,是用来描述路表面的粗糙度的一个重要参数。The relative concave area ratio is used to characterize the roughness of the road surface. The road surface is composed of many tiny undulations, depressions and protrusions. The relative concave area is used to quantify the proportion of the concave part in the road surface structure and is an important parameter used to describe the roughness of the road surface.

具体的, 相对凹面积比例的计算表达式如下:Specifically, the calculation expression of the relative concave area ratio is as follows:

其中,表示相对凹面积比例,表示相对凹面部分的像素数,表示水平像素的尺寸,表示垂直像素的尺寸,表示第个水平像素,表示第个垂直像素,in, represents the relative concave area ratio, Indicates the number of pixels relative to the concave part, Indicates the horizontal pixel size, Indicates the vertical pixel size, Indicates horizontal pixels, , Indicates vertical pixels, .

步骤14,对RGB图像数据进行下采样,构建图像金字塔。Step 14: downsample the RGB image data and construct an image pyramid.

上述图像金字塔包括多个尺度的RGB图像。The above image pyramid includes RGB images of multiple scales.

步骤15,基于高斯局部自适应阈值,对每个尺度的图像进行二值化,得到二进制图像,对二进制图像进行上采样,得到调整后的二值图。Step 15: binarize the image of each scale based on the Gaussian local adaptive threshold to obtain a binary image, and upsample the binary image to obtain an adjusted binary image.

其中,基于高斯局部自适应阈值,对每个尺度的图像进行二值化,得到二进制图像,对二进制图像进行上采样,得到调整后的二值图,包括:Among them, based on the Gaussian local adaptive threshold, the image of each scale is binarized to obtain a binary image, and the binary image is upsampled to obtain an adjusted binary image, including:

步骤15.1,分别针对每个尺度的图像中的像素,对通过计算公式Step 15.1, for each pixel in the image of each scale, calculate the formula

得到尺度的图像二值化后的二进制图像Get the binary image after the scaled image is binarized .

其中,表示高斯局部自适应阈值,表示常数,用于控制高斯局部自适应阈值相对局部方差的偏移量,表示局部平均值,表示局部标准差。in, represents the Gaussian local adaptive threshold, Represents a constant used to control the offset of the Gaussian local adaptive threshold relative to the local variance. represents the local mean, represents the local standard deviation.

步骤15.2,通过上采样,将二进制图像调整为与修正深度图相同尺寸大小,得到调整后的二值图。Step 15.2, by upsampling, the binary image is adjusted to the same size as the corrected depth map to obtain an adjusted binary image.

步骤16,对图像金字塔中各尺度的图像进行融合,得到融合后的二值图,并对调整后的二值图和融合后的二值图进行按位或运算,得到最终的二值图。Step 16, fuse the images of each scale in the image pyramid to obtain a fused binary image, and perform a bitwise OR operation on the adjusted binary image and the fused binary image to obtain a final binary image.

需要说明的是,在执行步骤16后,为提高预测的准确性,在本申请的实施例中,对调整后的二值图进行了孔洞填充和粘连分割,下面分别对其进行说明。It should be noted that after executing step 16, in order to improve the accuracy of the prediction, in the embodiment of the present application, the adjusted binary image is subjected to hole filling and adhesion segmentation, which are respectively described below.

孔洞填充操作是使用洪水填充算法的变体实现的。该算法本质上是一个区域增长过程,它从单个前景像素开始,并扩展到包括属于同一对象的所有连接的前景像素。示例性,用黑色填充集料内的白色空隙区域,便于后续分析和识别。The hole filling operation is implemented using a variation of the flood fill algorithm. The algorithm is essentially a region growing process that starts with a single foreground pixel and expands to include all connected foreground pixels belonging to the same object. Exemplarily, white void regions within the aggregate are filled with black to facilitate subsequent analysis and identification.

针对粘连分割,可采用可调分水岭算法对粘连颗粒进行分割。该算法基于分水岭原理,但可以通过调整参数来适应不同的表面条件进行微调,从而控制分割细节的水平。分水岭算法将影像视为地形,其中较高强度梯度对应于较高的峰值,较低强度梯度对应于较低的谷值。示例性的,水沿着梯度递减的路径流动,最终形成分段区域。For adhesion segmentation, an adjustable watershed algorithm can be used to segment adhesion particles. The algorithm is based on the watershed principle, but can be fine-tuned by adjusting parameters to adapt to different surface conditions to control the level of segmentation details. The watershed algorithm treats the image as a terrain, where higher intensity gradients correspond to higher peaks and lower intensity gradients correspond to lower valleys. For example, water flows along a path with decreasing gradients, eventually forming segmented areas.

步骤17,对最终的二值图中的所有集料作外接圆,并计算最大外接圆的直径与图像宽度的比值,得到最大骨颗粒径比。Step 17, draw a circumscribed circle for all aggregates in the final binary image, and calculate the ratio of the diameter of the largest circumscribed circle to the image width to obtain the maximum bone particle diameter ratio.

最大骨颗粒径比用于描述路面最大骨颗粒径比表示路面上所使用的骨料(碎石、石子、砂石等)的最大颗粒径与整张深度图宽度(100毫米)的比值。The maximum bone particle size ratio is used to describe the maximum bone particle size ratio of the pavement. It represents the ratio of the maximum particle size of the aggregate (crushed stone, gravel, sand and gravel, etc.) used on the pavement to the width of the entire depth map (100 mm).

具体的,最大骨颗粒径比的表达式为;其中,表示最大外接圆的直径,表示图像宽度。Specifically, the expression of the maximum bone particle diameter ratio is: ;in, represents the diameter of the largest circumscribed circle, Indicates the image width.

步骤18,根据相对凹面积比例、最大骨颗粒径比以及预训练后的GBT模型,预测路面构造深度。Step 18, predicting the pavement structure depth according to the relative concave area ratio, the maximum bone particle diameter ratio and the pre-trained GBT model.

具体的,①数据收集和分割:Specifically, ① Data collection and segmentation:

收集包含目标变量MTD和特征P、D的数据集。将数据集分为训练集和验证集。70%数据用于训练模型,30%数据用于评估模型性能。Collect a dataset containing the target variable MTD and features P and D. Divide the dataset into a training set and a validation set. 70% of the data is used to train the model and 30% of the data is used to evaluate the model performance.

②模型训练:②Model training:

使用训练集来训练GBT模型。模型会反复迭代,每一次迭代都会训练一个新的决策树,以减小预测误差。The training set is used to train the GBT model. The model will be iterated repeatedly, and each iteration will train a new decision tree to reduce the prediction error.

③模型调优:③Model tuning:

根据模型性能对模型参数进行调优,以提高预测的准确性。使用交叉验证技术来选择最佳参数。Based on the model performance, the model parameters are tuned to improve the accuracy of predictions. The best parameters are selected using cross-validation techniques.

④模型评估:④Model evaluation:

使用验证集来评估模型的性能。评估指标包括均方误差(MSE)、决定系数(R-squared)、平均绝对误差(MAE)。The validation set is used to evaluate the performance of the model. Evaluation indicators include mean square error (MSE), determination coefficient (R-squared), and mean absolute error (MAE).

⑤预测目标值:⑤Prediction target value:

一旦模型经过训练并且性能良好,可以将特征 P 和 D 的值输入到模型中,以预测目标值。GBT模型将通过组合多个决策树的预测来生成最终的预测结果。Once the model is trained and performs well, the values of features P and D can be input into the model to predict the target value. The GBT model will generate the final prediction result by combining the predictions of multiple decision trees.

为了验证本申请提供的路面构造深度预测方法的有效性,在本申请的一实施例中,依次执行上述个步骤,对40组测试数据进行路面构造深度预测。然后将这些预测值与使用铺砂法测得的基准值进行比较,预测效果对比如图2所示,同时,还比较了二者之间的绝对误差和相对误差,具体如图3所示。In order to verify the effectiveness of the pavement structure depth prediction method provided by the present application, in one embodiment of the present application, the above steps are performed in sequence to predict the pavement structure depth of 40 sets of test data. These predicted values are then compared with the reference values measured using the sand spreading method, and the prediction effect comparison is shown in Figure 2. At the same time, the absolute error and relative error between the two are also compared, as shown in Figure 3.

由图2和图3可知,本申请提供的路面构造深度预测方法的准确性更高,并且,大多数绝对误差在0.15毫米(mm)以内,相对误差一般不超过16%,满足实际应用的需求。As can be seen from Figures 2 and 3, the pavement structure depth prediction method provided in this application is more accurate, and most of the absolute errors are within 0.15 millimeters (mm), and the relative errors generally do not exceed 16%, which meets the needs of practical applications.

下面对本申请提供的路面构造深度预测装置进行示例性说明。The pavement structure depth prediction device provided in this application is exemplarily described below.

如图4所示,该路面构造深度预测装置400包括:As shown in FIG4 , the pavement structure depth prediction device 400 includes:

图像采集模块401,用于采集路面的RGB图像数据,并根据RGB图像数据,构建深度图;The image acquisition module 401 is used to acquire RGB image data of the road surface and construct a depth map based on the RGB image data;

深度修正模块402,用于分别针对深度图中的每个像素,计算像素与预设半径范围内相邻像素之间的平均深度和深度方差,并基于平均深度和深度方差,对像素的深度值进行修正,得到修正深度图;The depth correction module 402 is used to calculate the average depth and depth variance between each pixel and adjacent pixels within a preset radius for each pixel in the depth map, and correct the depth value of the pixel based on the average depth and the depth variance to obtain a corrected depth map;

凹面积比例计算模块403,用于计算修正深度图的相对凹面积比例;相对凹面积比例用以表征路面的粗糙度;The concave area ratio calculation module 403 is used to calculate the relative concave area ratio of the modified depth map; the relative concave area ratio is used to characterize the roughness of the road surface;

图像金字塔模块404,用于对RGB图像数据进行下采样,构建图像金字塔;图像金字塔包括多个尺度的RGB图像;An image pyramid module 404 is used to downsample the RGB image data to construct an image pyramid; the image pyramid includes RGB images of multiple scales;

二值化图像调整模块405,用于基于高斯局部自适应阈值,对每个尺度的图像进行二值化,得到二进制图像,对二进制图像进行上采样,得到调整后的二值图;A binary image adjustment module 405 is used to binarize the image of each scale based on a Gaussian local adaptive threshold to obtain a binary image, and upsample the binary image to obtain an adjusted binary image;

图像融合模块406,用于对图像金字塔中各尺度的图像进行融合,得到融合后的二值图,并对调整后的二值图和融合后的二值图进行按位或运算,得到最终的二值图;The image fusion module 406 is used to fuse the images of each scale in the image pyramid to obtain a fused binary image, and perform a bitwise OR operation on the adjusted binary image and the fused binary image to obtain a final binary image;

最大骨颗粒径比计算模块407,用于对最终的二值图中的所有集料作外接圆,并计算最大外接圆的直径与图像宽度的比值,得到最大骨颗粒径比;最大骨颗粒径比用于描述路面上所使用的骨料的最大颗粒径与整张深度图宽度的比值,骨料包括碎石、石子以及砂石;The maximum bone particle diameter ratio calculation module 407 is used to make a circumscribed circle for all aggregates in the final binary image, and calculate the ratio of the diameter of the maximum circumscribed circle to the image width to obtain the maximum bone particle diameter ratio; the maximum bone particle diameter ratio is used to describe the ratio of the maximum particle diameter of the aggregate used on the road surface to the width of the entire depth map, and the aggregate includes crushed stone, gravel and sand and gravel;

深度预测模块408,用于根据相对凹面积比例、最大骨颗粒径比以及预训练后的GBT模型,预测路面构造深度。The depth prediction module 408 is used to predict the road surface structure depth according to the relative concave area ratio, the maximum bone particle diameter ratio and the pre-trained GBT model.

需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction, execution process, etc. between the above-mentioned devices/units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

如图5所示,本申请的实施例提供了一种终端设备,如图5所示,该实施例的终端设备D10包括:至少一个处理器D100(图5中仅示出一个处理器)、存储器D101以及存储在所述存储器D101中并可在所述至少一个处理器D100上运行的计算机程序D102,所述处理器D100执行所述计算机程序D102时实现上述任意各个方法实施例中的步骤。As shown in Figure 5, an embodiment of the present application provides a terminal device. As shown in Figure 5, the terminal device D10 of this embodiment includes: at least one processor D100 (only one processor is shown in Figure 5), a memory D101, and a computer program D102 stored in the memory D101 and executable on the at least one processor D100. When the processor D100 executes the computer program D102, the steps in any of the above-mentioned method embodiments are implemented.

具体的,所述处理器D100执行所述计算机程序D102时,通过采集路面的RGB图像数据,并根据RGB图像数据,构建深度图,分别针对深度图中的每个像素,计算像素与预设半径范围内相邻像素之间的平均深度和深度方差,并基于平均深度和深度方差,对像素的深度值进行修正,得到修正深度图,计算修正深度图的相对凹面积比例,对RGB图像数据进行下采样,构建图像金字塔,基于高斯局部自适应阈值,对每个尺度的图像进行二值化,得到二进制图像,对二进制图像进行上采样,得到调整后的二值图,对图像金字塔中各尺度的图像进行融合,得到融合后的二值图,并对调整后的二值图和融合后的二值图进行按位或运算,得到最终的二值图,对最终的二值图中的所有集料作外接圆,并计算最大外接圆的直径与图像宽度的比值,得到最大骨颗粒径比,根据相对凹面积比例、最大骨颗粒径比以及预训练后的GBT模型,预测路面构造深度。其中,通过平均深度和深度方差,对像素的深度值进行修正,能够减小由于图像噪声带来的负面影响,从而有利于提高路面构造深度预测的准确性;提出了相对凹面积比例和最大骨颗粒径比,来从不同的维度表征路面纹理,简化了传统方法中复杂的计算,并且可解释性强,更具形象化,同时,将相对凹面积比例、最大骨颗粒径比与GBT模型结合,能够准确预测路面构造深度。Specifically, when the processor D100 executes the computer program D102, it collects RGB image data of the road surface, and constructs a depth map based on the RGB image data, calculates the average depth and depth variance between the pixel and the adjacent pixels within a preset radius for each pixel in the depth map, and corrects the depth value of the pixel based on the average depth and depth variance to obtain a corrected depth map, calculates the relative concave area ratio of the corrected depth map, downsamples the RGB image data, constructs an image pyramid, binarizes the image of each scale based on a Gaussian local adaptive threshold to obtain a binary image, upsamples the binary image to obtain an adjusted binary image, fuses the images of each scale in the image pyramid to obtain a fused binary image, and performs a bitwise OR operation on the adjusted binary image and the fused binary image to obtain a final binary image, draws a circumscribed circle for all aggregates in the final binary image, and calculates the ratio of the diameter of the maximum circumscribed circle to the image width to obtain the maximum bone particle diameter ratio, and predicts the road surface structural depth based on the relative concave area ratio, the maximum bone particle diameter ratio, and the pre-trained GBT model. Among them, the depth value of the pixel is corrected by averaging the depth and depth variance, which can reduce the negative impact caused by image noise, thereby helping to improve the accuracy of pavement structure depth prediction; the relative concave area ratio and the maximum bone particle diameter ratio are proposed to characterize the pavement texture from different dimensions, simplifying the complex calculations in the traditional method, and having strong interpretability and more visualization. At the same time, combining the relative concave area ratio and the maximum bone particle diameter ratio with the GBT model can accurately predict the pavement structure depth.

所称处理器D100可以是中央处理单元(CPU,Central Processing Unit),该处理器D100还可以是其他通用处理器、数字信号处理器 (DSP,Digital Signal Processor)、专用集成电路 (ASIC,Application Specific Integrated Circuit)、现成可编程门阵列(FPGA,Field-Programmable Gate Array) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor D100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

所述存储器D101在一些实施例中可以是所述终端设备D10的内部存储单元,例如终端设备D10的硬盘或内存。所述存储器D101在另一些实施例中也可以是所述终端设备D10的外部存储设备,例如所述终端设备D10上配备的插接式硬盘,智能存储卡(SMC,SmartMedia Card ),安全数字(SD,Secure Digital)卡,闪存卡(Flash Card)等。进一步地,所述存储器D101还可以既包括所述终端设备D10的内部存储单元也包括外部存储设备。所述存储器D101用于存储操作系统、应用程序、引导装载程序(BootLoader)、数据以及其他程序等,例如所述计算机程序的程序代码等。所述存储器D101还可以用于暂时地存储已经输出或者将要输出的数据。In some embodiments, the memory D101 may be an internal storage unit of the terminal device D10, such as a hard disk or memory of the terminal device D10. In other embodiments, the memory D101 may also be an external storage device of the terminal device D10, such as a plug-in hard disk, a smart memory card (SMC, SmartMedia Card), a secure digital (SD, Secure Digital) card, a flash card (Flash Card), etc. equipped on the terminal device D10. Further, the memory D101 may also include both an internal storage unit of the terminal device D10 and an external storage device. The memory D101 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory D101 may also be used to temporarily store data that has been output or is to be output.

本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时实现可实现上述各个方法实施例中的步骤。An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到路面构造深度预测装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the pavement structure depth prediction device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in the present application, it should be understood that the disclosed devices/network equipment and methods can be implemented in other ways. For example, the device/network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

本申请提供的路面构造深度预测方法具备以下优点:The pavement structure depth prediction method provided in this application has the following advantages:

①现有的基于图像处理预估路面构造深度的方法通常从8位灰度图入手,本方案可获取32位深度图,图像的数据存储精度高,能够实现更高精度的深度预测;① The existing methods for estimating the depth of road structures based on image processing usually start from an 8-bit grayscale image. This solution can obtain a 32-bit depth map. The image data has high storage accuracy and can achieve higher-precision depth prediction.

②提出一种自适应局部双边深度图滤波算法,与传统算法相比,该算法在保留原始数据特征方面表现更好;② An adaptive local bilateral depth map filtering algorithm is proposed, which performs better in preserving the original data features than traditional algorithms;

③提出了一种基于面拟合的路面曲面倾斜校正方法,该方法比基于平面拟合的方法更具实用性;③ A road surface tilt correction method based on surface fitting is proposed, which is more practical than the method based on plane fitting;

④针对深度图的数据格式,提出了路面纹理特征,即相对凹陷面积比P和最大骨料粒径比D,从多个维度共同表示路面纹理;④ According to the data format of the depth map, the pavement texture features, namely the relative depression area ratio P and the maximum aggregate size ratio D, are proposed to jointly represent the pavement texture from multiple dimensions;

⑤使用非线性回归器梯度提升树(GBT)模型来处理特征之间的复杂关系,表现出更好的回归结果和稳定性。⑤ Use the nonlinear regressor gradient boosted tree (GBT) model to handle the complex relationship between features, showing better regression results and stability.

以上所述是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims (7)

1. A pavement structure depth prediction method, comprising:
Collecting RGB image data of a road surface, and constructing a depth map according to the RGB image data; the constructing a depth map according to the RGB image data includes: acquiring camera parameters of the RGB image data based on a structured light beam method, and constructing a depth map of the RGB image data by using a PATCHMATCHNET model;
calculating the average depth and the depth variance between the pixel and the adjacent pixel in the preset radius range for each pixel in the depth map, and correcting the depth value of the pixel based on the average depth and the depth variance to obtain a corrected depth map;
calculating the relative concave area proportion of the corrected depth map; the relative concave area proportion is used for representing the roughness of the road surface;
downsampling the RGB image data to construct an image pyramid; the image pyramid comprises RGB images of multiple scales;
Binarizing each scale image based on a Gaussian local self-adaptive threshold to obtain a binary image, and upsampling the binary image to obtain an adjusted binary image;
Fusing the images of all scales in the image pyramid to obtain a fused binary image, and performing bit-wise OR operation on the adjusted binary image and the fused binary image to obtain a final binary image;
Making a circumcircle for all aggregates in the final binary image, and calculating the ratio of the diameter of the maximum circumcircle to the image width to obtain the maximum bone particle diameter ratio; the maximum bone particle size ratio is used for describing the ratio of the maximum particle size of aggregate used on the pavement to the width of the whole depth map, and the aggregate comprises broken stone, cobble and sand stone;
And predicting the pavement construction depth according to the relative concave area proportion, the maximum bone particle size ratio and the pre-trained GBT model.
2. The pavement structure depth prediction method according to claim 1, wherein the correcting the depth value of the pixel based on the average depth and the depth variance includes:
By calculation formula Obtaining the depth value after denoising; Wherein,Representing the initial depth value of the pixel,Representing the variance of the noise and,Representing the variance of the depth of the image,Representing the average depth;
By calculation formula Obtaining a corrected depth value; Wherein,Representing a surface fit value, wherein,All of which represent the fitting coefficients,Representing pixel coordinates.
3. The pavement construction depth prediction method according to claim 2, wherein the calculation expression of the relative concave area ratio is as follows:
wherein, Representing the relative concave area ratio of the said areas,The number of pixels of the opposite concave portion is indicated,Representing the size of the horizontal pixels,Representing the size of the vertical pixels,Represent the firstA number of horizontal pixels are used for the display,Represent the firstA number of vertical pixels are used for the display,
4. The method according to claim 1, wherein binarizing the image of each scale based on the gaussian local adaptive threshold to obtain a binary image, upsampling the binary image to obtain an adjusted binary image, and comprising:
For each pixel in the image of each scale, respectively, through a calculation formula
Obtaining a gaussian local threshold for each of said scaled images; Wherein,A representation constant for controlling the offset of said gaussian local adaptation threshold with respect to the local variance,The local average value is represented as such,Representing the local standard deviation;
based on Obtaining the binary image;
and (3) through up-sampling, the binary image is adjusted to be the same as the corrected depth map in size, and the adjusted binary image is obtained.
5. A pavement structure depth prediction apparatus, comprising:
The image acquisition module is used for acquiring RGB image data of the road surface and constructing a depth map according to the RGB image data; the constructing a depth map according to the RGB image data includes: acquiring camera parameters of the RGB image data based on a structured light beam method, and constructing a depth map of the RGB image data by using a PATCHMATCHNET model;
The depth correction module is used for calculating the average depth and the depth variance between the pixel and the adjacent pixel within the preset radius range for each pixel in the depth map respectively, and correcting the depth value of the pixel based on the average depth and the depth variance to obtain a corrected depth map;
the concave area proportion calculation module is used for calculating the relative concave area proportion of the corrected depth map; the relative concave area proportion is used for representing the roughness of the road surface;
The image pyramid module is used for downsampling the RGB image data to construct an image pyramid; the image pyramid comprises RGB images of multiple scales;
The binarization image adjustment module is used for binarizing each scale image based on Gaussian local self-adaptive threshold values to obtain binary images, and upsampling the binary images to obtain adjusted binary images;
The image fusion module is used for fusing the images of all scales in the image pyramid to obtain a fused binary image, and carrying out bit-wise OR operation on the adjusted binary image and the fused binary image to obtain a final binary image;
the maximum bone particle diameter ratio calculation module is used for making circumscribed circles for all aggregates in the final binary image, and calculating the ratio of the diameter of the maximum circumscribed circle to the image width to obtain the maximum bone particle diameter ratio; the maximum bone particle size ratio is used for describing the ratio of the maximum particle size of aggregate used on the pavement to the width of the whole depth map, and the aggregate comprises broken stone, cobble and sand stone;
and the depth prediction module is used for predicting the pavement construction depth according to the relative concave area proportion, the maximum bone particle size ratio and the pre-trained GBT model.
6. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the road construction depth prediction method according to any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the pavement construction depth prediction method according to any one of claims 1 to 4.
CN202410291596.9A 2024-03-14 2024-03-14 A road surface structure depth prediction method, device, terminal equipment and medium Active CN118015068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410291596.9A CN118015068B (en) 2024-03-14 2024-03-14 A road surface structure depth prediction method, device, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410291596.9A CN118015068B (en) 2024-03-14 2024-03-14 A road surface structure depth prediction method, device, terminal equipment and medium

Publications (2)

Publication Number Publication Date
CN118015068A CN118015068A (en) 2024-05-10
CN118015068B true CN118015068B (en) 2024-07-09

Family

ID=90952030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410291596.9A Active CN118015068B (en) 2024-03-14 2024-03-14 A road surface structure depth prediction method, device, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN118015068B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118773996A (en) * 2024-09-13 2024-10-15 安徽省交通规划设计研究总院股份有限公司 Depth detection method of large-void pavement structure based on sound processing technology
CN119469041A (en) * 2025-01-09 2025-02-18 晋城合为规划设计集团有限公司 A method and system for measuring rock and soil depth in geological exploration

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101358837A (en) * 2008-09-24 2009-02-04 重庆交通大学 Method of Determining Surface Structure Depth of Exposed Concrete by Surface Fitting Method
CN109584286A (en) * 2019-01-22 2019-04-05 东南大学 A kind of bituminous pavement construction depth calculation method based on generalized regression nerve networks

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1142410C (en) * 2000-11-03 2004-03-17 华南理工大学 Method for measuring and evaluating depth of road surface construction by digital image technology
WO2013090830A1 (en) * 2011-12-16 2013-06-20 University Of Southern California Autonomous pavement condition assessment
CN105113375B (en) * 2015-05-15 2017-04-19 南京航空航天大学 Pavement cracking detection system and method based on line structured light
US11645769B2 (en) * 2020-03-14 2023-05-09 Purdue Research Foundation Pavement macrotexture determination using multi-view smartphone images
EP3901911A1 (en) * 2020-04-23 2021-10-27 Siemens Aktiengesellschaft Object measurement method and device thereof
CN114049618B (en) * 2022-01-12 2022-03-22 河北工业大学 Graph-point-graph transformation-based pavement three-dimensional disease PCI calculation method
CN114913134B (en) * 2022-04-21 2024-11-19 中南大学 Tunnel shotcrete roughness identification method, terminal equipment and storage medium
CN115294066A (en) * 2022-08-09 2022-11-04 重庆科技学院 Sandstone particle size detection method
CN116716778A (en) * 2023-05-26 2023-09-08 安徽省高速公路试验检测科研中心有限公司 Pavement structure depth detection method based on laser vision
CN117291880A (en) * 2023-09-15 2023-12-26 安徽相驰车业有限公司 Brake block surface defect detecting system based on image analysis

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101358837A (en) * 2008-09-24 2009-02-04 重庆交通大学 Method of Determining Surface Structure Depth of Exposed Concrete by Surface Fitting Method
CN109584286A (en) * 2019-01-22 2019-04-05 东南大学 A kind of bituminous pavement construction depth calculation method based on generalized regression nerve networks

Also Published As

Publication number Publication date
CN118015068A (en) 2024-05-10

Similar Documents

Publication Publication Date Title
CN118015068B (en) A road surface structure depth prediction method, device, terminal equipment and medium
Li et al. Automatic pavement-crack detection and segmentation based on steerable matched filtering and an active contour model
CN108280450B (en) A method for detecting highway pavement based on lane lines
CN110264459A (en) A kind of interstices of soil characteristics information extraction method
CN110889826B (en) Eye OCT image focus region segmentation method, device and terminal equipment
CN110473221B (en) Automatic target object scanning system and method
CN115393727B (en) Pavement linear crack identification method, electronic equipment and storage medium
JP5852919B2 (en) Crack detection method
US8483480B2 (en) Method and system for factoring an illumination image
WO2020232710A1 (en) Haze image quality evaluation method and system, storage medium, and electronic device
CN110473201A (en) A kind of automatic testing method and device of disc surface defect
CN107871133B (en) Optimization method of edge detection network, and identification method and system of pavement diseases
CN107169975B (en) The analysis method and device of ultrasound image
CN117635615B (en) Defect detection method and system for realizing punching die based on deep learning
CN113593040B (en) Method and system for identifying abnormal vegetation growth diseases of dike revetment
CN117649606A (en) Hyperspectral image shadow removing method and hyperspectral image shadow removing system based on intrinsic representation model
Fang et al. An intensity-enhanced method for handling mobile laser scanning point clouds
CN117670874A (en) Image processing-based detection method for internal cracks of box girder
Xing et al. A lightweight detection method of pavement potholes based on binocular stereo vision and deep learning
CN112990207A (en) License plate image extraction method, device and system, storage medium and computer equipment
CN117575970B (en) Classification-based satellite image automatic processing method, device, equipment and medium
CN118823481A (en) A bridge detection image recognition method and system based on artificial intelligence
CN117670799A (en) Method, device, equipment and storage medium for measuring rock slag size in complex environment
CN113781441B (en) Grouting range optimization method applied to jointed rock mass tunnel excavation process
CN115795626A (en) Digital road model analysis method, device, computing equipment and storage medium

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