[go: up one dir, main page]

CN115238368B - Automated modeling method and medium for bridge pier drawing recognition based on computer vision - Google Patents

Automated modeling method and medium for bridge pier drawing recognition based on computer vision Download PDF

Info

Publication number
CN115238368B
CN115238368B CN202211147983.2A CN202211147983A CN115238368B CN 115238368 B CN115238368 B CN 115238368B CN 202211147983 A CN202211147983 A CN 202211147983A CN 115238368 B CN115238368 B CN 115238368B
Authority
CN
China
Prior art keywords
pier
geometric
bridge pier
geometric features
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.)
Active
Application number
CN202211147983.2A
Other languages
Chinese (zh)
Other versions
CN115238368A (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 CN202211147983.2A priority Critical patent/CN115238368B/en
Publication of CN115238368A publication Critical patent/CN115238368A/en
Application granted granted Critical
Publication of CN115238368B publication Critical patent/CN115238368B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/23Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/42Document-oriented image-based pattern recognition based on the type of document
    • G06V30/422Technical drawings; Geographical maps
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/14Force analysis or force optimisation, e.g. static or dynamic forces

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Architecture (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Bridges Or Land Bridges (AREA)

Abstract

The invention discloses a pier drawing identification automatic modeling method and medium based on computer vision, comprising the following steps: acquiring an image of a plane drawing of a pier, and identifying the outlines and marked geometric dimensions of the pier and a reinforcing steel bar; extracting geometric features based on pixels from the identified outline, acquiring the geometric features based on pixels corresponding to the marked geometric dimensions from the outline, and then performing common system unit conversion on all the extracted geometric features based on pixels according to the geometric dimensions based on the common system and the corresponding geometric features based on the pixels to obtain all the geometric features based on the common system; and establishing a three-dimensional finite element model for the pier based on the reinforced concrete material according to the geometric characteristics of the pier and the reinforcing steel bars based on the common system, wherein the three-dimensional finite element model comprises an elastic model and an elastic-plastic model of the pier. The method has the advantages of quick modeling, simple operation, accuracy and reliability, and can be widely applied to seismic response analysis, seismic performance evaluation and design of piers.

Description

基于计算机视觉的桥墩图纸识别自动化建模方法和介质Automated modeling method and medium for bridge pier drawing recognition based on computer vision

技术领域technical field

本发明属于自动化智能建造与铁道工程应用计算技术领域,具体涉及一种基于计算机视觉的桥墩图纸识别自动化建模方法和介质。The invention belongs to the technical field of automatic intelligent construction and railway engineering application computing, and specifically relates to a computer vision-based automatic modeling method and medium for bridge pier blueprint recognition.

背景技术Background technique

近年来,我国高速铁路快速发展,为克服不同地形造成的障碍,在现有的运营的高速铁路线路中,主要采用“以桥代路”的方式修建,桥梁在线路中占比超过百分之五十。随着高铁往地震频发的中西部发展,高速铁路梁桥抗震性能是值得关注的问题。从构件的角度来说,桥墩是桥梁结构的主要承力构件,其在地震作用下的抗震性能关系到高速铁路线路的正常运行。高铁桥梁不同于公路桥,高铁桥墩的设计是按照刚度控制的,其特点是桥梁构件截面尺寸大、刚度大,以此满足高速铁路列车行车时的扰度变形在2mm以内的功能要求。桥墩由于构件纵向配筋少,在地震中,桥墩发生破坏可能性较高。因此,研究高速铁路桥墩的抗震性能和破坏特性具有十分重要的意义。通常情况下,桥墩抗震性能分析均以有限元模型为基础,需要计算桥墩的几何特性如截面尺寸,面积,钢筋布置等,建模过程往往较为繁琐,耗时,尤其需要考虑不同桥墩的截面形式如圆端型实体墩、变截面空心墩、矩形实体墩等。In recent years, my country's high-speed railway has developed rapidly. In order to overcome the obstacles caused by different terrains, the existing high-speed railway lines in operation are mainly built in the way of "replacing roads with bridges", and bridges account for more than 10% of the lines. Fifty. With the development of high-speed railways to the central and western regions where earthquakes occur frequently, the seismic performance of high-speed railway girder bridges is an issue worthy of attention. From the perspective of components, bridge piers are the main load-bearing components of bridge structures, and their seismic performance under earthquakes is related to the normal operation of high-speed railway lines. High-speed railway bridges are different from road bridges. The design of high-speed railway bridge piers is controlled by stiffness. It is characterized by large cross-sectional dimensions and high stiffness of bridge components, so as to meet the functional requirements of the disturbance deformation of high-speed railway trains within 2mm. Due to the lack of longitudinal reinforcement of the bridge piers, the possibility of damage to the bridge piers is relatively high during earthquakes. Therefore, it is of great significance to study the seismic performance and failure characteristics of high-speed railway bridge piers. Usually, the analysis of the seismic performance of bridge piers is based on the finite element model. It is necessary to calculate the geometric properties of the bridge piers, such as cross-sectional size, area, and reinforcement layout. Such as round-end solid piers, variable-section hollow piers, rectangular solid piers, etc.

发明内容Contents of the invention

本发明提供一种基于计算机视觉的桥墩图纸识别自动化建模方法和介质,可以实现桥墩图纸识别、快速自动生成三维桥墩有限元模型,以及桥墩的非线性时程分析。该发明具有快速建模、操作简单、计算结构准确可靠等特点,能被广泛地应用于桥墩的地震响应分析、抗震性能评估以及设计方面,具有十分重要的工程应用。The invention provides a computer vision-based automatic modeling method and medium for bridge pier drawing recognition, which can realize bridge pier drawing recognition, fast and automatic generation of a three-dimensional bridge pier finite element model, and nonlinear time-history analysis of bridge piers. The invention has the characteristics of fast modeling, simple operation, accurate and reliable calculation structure, etc., and can be widely used in the seismic response analysis, seismic performance evaluation and design of bridge piers, and has very important engineering applications.

为实现上述技术目的,本发明采用如下技术方案:In order to realize the above-mentioned technical purpose, the present invention adopts following technical scheme:

本发明提供一种基于计算机视觉的桥墩图纸识别自动化建模方法,包括:The invention provides a computer vision-based automatic modeling method for pier blueprint recognition, including:

获取桥墩平面图纸的图像,识别其中桥墩与钢筋的轮廓和标注的基于公有制的几何尺寸;Obtain the image of the plan drawing of the bridge pier, identify the outline of the bridge pier and steel bars and the marked geometric dimensions based on public ownership;

从识别到的桥墩轮廓和钢筋轮廓中提取基于像素的几何特征,并从中获取与标注的几何尺寸所对应的基于像素的几何特征,然后根据基于公有制的几何尺寸和对应的基于像素的几何特征,对提取的基于像素的所有几何特征进行公有制单位转换,得到基于公有制的所有几何特征;Extract the pixel-based geometric features from the identified pier outline and steel bar outline, and obtain the pixel-based geometric features corresponding to the marked geometric dimensions, and then according to the public ownership-based geometric dimensions and the corresponding pixel-based geometric features, Perform public unit conversion on all the extracted pixel-based geometric features to obtain all public-owned geometric features;

根据桥墩与钢筋的基于公有制的几何特征,对基于钢筋混凝土材料的桥墩建立三维有限元模型;According to the geometric characteristics of bridge piers and steel bars based on public ownership, a three-dimensional finite element model is established for bridge piers based on reinforced concrete materials;

其中,在建立三维有限元模型时:采用梁柱单元模拟桥墩的弹性力学行为,建立得到桥墩的弹性模型;采用非线性梁柱单元模拟桥墩的弹塑性力学行为,建立得到桥墩的弹塑性模型。Among them, when establishing the three-dimensional finite element model: use the beam-column element to simulate the elastic mechanical behavior of the bridge pier to establish the elastic model of the bridge pier; use the nonlinear beam-column element to simulate the elastic-plastic mechanical behavior of the bridge pier to establish the elastic-plastic model of the bridge pier.

进一步的,标注的基于公有制的几何尺寸,是指标注在桥墩平面图像中桥墩轮廓沿任一直线方向的直线长度。Further, the annotated geometric dimension based on public ownership refers to the linear length of the pier outline marked in any straight line direction in the pier plan image.

进一步的,所述几何特征包括桥墩轮廓的尺寸、几何中心、面积、惯性矩,钢筋的数量、各钢筋轮廓的面积和分布位置,以及与标注的基于公有制的几何尺寸所对应的几何特征。Further, the geometric features include the size, geometric center, area, and moment of inertia of the pier profile, the number of steel bars, the area and distribution position of each steel bar profile, and the geometric features corresponding to the marked geometric dimensions based on public ownership.

进一步的,采用光学字符识别算法识别图像中标的基于公有制的几何尺寸。Further, an optical character recognition algorithm is used to recognize the public ownership-based geometric size of the mark in the image.

进一步的,采用边缘检测算法识别桥墩的轮廓和钢筋的轮廓。Further, an edge detection algorithm is used to identify the outline of the pier and the outline of the reinforcement.

进一步的,在识别图像中的轮廓和几何尺寸之前,先对图像进行二值化预处理,对几何特征进行公有制单位转换的转换关系为:Further, before identifying the contour and geometric dimensions in the image, the image is first binarized and preprocessed, and the conversion relationship for the public ownership unit conversion of the geometric features is:

Figure 105877DEST_PATH_IMAGE001
Figure 105877DEST_PATH_IMAGE001

式中,

Figure 611945DEST_PATH_IMAGE002
为基于像素的几何特征,
Figure 359321DEST_PATH_IMAGE003
Figure 976247DEST_PATH_IMAGE002
对应的基于公有制的几何尺寸,
Figure 125469DEST_PATH_IMAGE004
为从
Figure 802438DEST_PATH_IMAGE002
转换为
Figure 37110DEST_PATH_IMAGE003
的转换比例。 In the formula,
Figure 611945DEST_PATH_IMAGE002
is a pixel-based geometric feature,
Figure 359321DEST_PATH_IMAGE003
for
Figure 976247DEST_PATH_IMAGE002
The corresponding geometric dimensions based on public ownership,
Figure 125469DEST_PATH_IMAGE004
for from
Figure 802438DEST_PATH_IMAGE002
converted to
Figure 37110DEST_PATH_IMAGE003
conversion ratio.

进一步的,在提取基于像素的几何特征之前,先对图像进行形态学操作预处理,以消除图像中包括横向钢筋轮廓在内的噪声。Furthermore, before extracting pixel-based geometric features, the image is preprocessed with morphological operations to eliminate noise including the outline of transverse steel bars in the image.

进一步的,在对基于钢筋混凝土材料的桥墩建立三维有限元模型时,除了需要桥墩与钢筋的基于公有制的几何特征之外,还从用户获取桥墩所需的钢筋和混凝土的材料特性、桥墩的荷载以及桥墩的边界约束条件;所述材料特性包括但不限于材料的密度、弹性模量和弹性刚度;所述荷载包括重力荷载、侧向荷载和地震荷载。Furthermore, when building a three-dimensional finite element model for a bridge pier based on reinforced concrete materials, in addition to the public-owned geometric features of the pier and steel bars, the material properties of the steel bars and concrete required for the bridge pier, and the load of the pier are also obtained from the user. And the boundary constraints of the bridge pier; the material properties include but not limited to the density, elastic modulus and elastic stiffness of the material; the loads include gravity load, lateral load and earthquake load.

进一步的,所述桥墩的弹性模型,用于对桥墩进行模态分析和静力分析;所述桥墩的弹塑性模型,用于对桥墩进行时程分析。Further, the elastic model of the bridge pier is used for modal analysis and static analysis of the bridge pier; the elastic-plastic model of the bridge pier is used for time-history analysis of the bridge pier.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一项所述的基于计算机视觉的桥墩图纸识别自动化建模方法。A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer vision-based automated modeling method for bridge pier blueprint recognition described in any one of the above is implemented.

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

(1)本发明基于计算机视觉与机器学习技术,根据输入的桥墩图纸,可以识别桥墩横截面尺寸、钢筋尺寸和坐标位置,能够高效地计算出有限元建模所需要的结构构件几何参数,并自动把参数传递给有限元模型,实现自动化地有限元建模。该方法计算结构尺寸与几何参数,不需要进行繁琐的建模参数设置,因此在工程实际应用中具有显著优势。(1) The present invention is based on computer vision and machine learning technology. According to the input pier drawings, it can identify the cross-sectional size of the pier, the size of the steel bar and the coordinate position, and can efficiently calculate the geometric parameters of the structural components required for finite element modeling, and Automatically transfer parameters to the finite element model to realize automatic finite element modeling. This method calculates the structural size and geometric parameters without cumbersome modeling parameter settings, so it has significant advantages in practical engineering applications.

(2)本发明可实现桥墩钢筋尺寸的标注识别,几何建模参数计算、有限元建模计算、分析和可视化。(2) The present invention can realize the marked recognition of the steel bar size of the bridge pier, the calculation of geometric modeling parameters, the calculation, analysis and visualization of finite element modeling.

(3)本发明实现了图纸到有限元模型的转化、考虑了不同模型力学行为、实现了结构模态响应分析、静力分析、时程分析以及结果的可视化。对于桥墩模型的地震响应分析,可输入不同的地震波进行桥墩的抗震性能分析与评估。整个建模过程形式简单,计算方便,对桥墩的抗震设计和抗震性能评估具有重要的工程应用意义。(3) The present invention realizes the conversion of drawings to finite element models, considers the mechanical behavior of different models, and realizes structural modal response analysis, static force analysis, time history analysis and visualization of results. For the seismic response analysis of the bridge pier model, different seismic waves can be input to analyze and evaluate the seismic performance of the bridge pier. The whole modeling process is simple in form and convenient in calculation, which has important engineering application significance for the seismic design and performance evaluation of bridge piers.

附图说明Description of drawings

图1为基于计算机视觉的桥墩图纸识别自动化建模方法的结构示意图;Fig. 1 is a structural schematic diagram of an automatic modeling method for pier drawing recognition based on computer vision;

图2为图像前处理模块示意图,具体展示了图像从输入到处理后的过程;Fig. 2 is a schematic diagram of the image pre-processing module, specifically showing the process of the image from input to processing;

图3为文字标注识别、轮廓检测以及像素单位转化公有制单位模块原理示意图,具体展示了本发明实施例通过OCR提取桥墩图纸中桥墩和钢筋的尺寸,对检测的桥墩和钢筋轮廓进行标识,并得到了像素值与公有制单位之间的转化;Fig. 3 is a schematic diagram of the module principle of text annotation recognition, contour detection and pixel unit conversion into public units, which specifically shows that the embodiment of the present invention uses OCR to extract the dimensions of bridge piers and steel bars in the bridge pier drawings, identifies the detected bridge piers and steel bar outlines, and obtains The transformation between pixel value and public ownership unit is realized;

图4为形态学操作和坐标转化模块原理示意图,主要是为了去除图纸中多余的线条,从而保证所提取的桥墩轮廓和钢筋几何特征的准确性;Figure 4 is a schematic diagram of the principle of the morphological operation and coordinate conversion module, which is mainly to remove redundant lines in the drawing, so as to ensure the accuracy of the extracted pier outline and steel bar geometric features;

图5为桥墩物理模型转化为有限元模型以及输入的地震动示意图;Figure 5 is a schematic diagram of the transformation of the pier physical model into a finite element model and the input earthquake motion;

图6为有限元建模和结果可视化模块。Figure 6 is the finite element modeling and result visualization module.

具体实施方式detailed description

下面对本发明的实施例作详细说明,本实施例以本发明的技术方案为依据开展,给出了详细的实施方式和具体的操作过程,对本发明的技术方案作进一步解释说明。The following is a detailed description of the embodiments of the present invention. This embodiment is carried out based on the technical solution of the present invention, and provides detailed implementation methods and specific operation processes to further explain the technical solution of the present invention.

本实施例提供一种基于计算机视觉的桥墩图纸识别自动化建模方法,参考图1所示,包括以下步骤:This embodiment provides a computer vision-based automatic modeling method for bridge pier drawing recognition, as shown in FIG. 1 , including the following steps:

S1:获取桥墩平面图纸的图像,识别其中桥墩与钢筋的轮廓和标注的基于公有制的几何尺寸。如图2、3所示。S1: Obtain the image of the plan drawing of the bridge pier, and identify the contours of the bridge pier and steel bars and the marked geometric dimensions based on public ownership. As shown in Figure 2 and 3.

在识别图像中的轮廓和几何尺寸之前,先对图像进行二值化预处理:由于获取的桥墩平面图纸的图像,一个包含RGB的三个通道的彩色图像,因此需要把RGB图片转化为灰度图,并通过从cv2.threshold函数将灰度图转化为二值图,以便进行文字识别(基于公有制的几何尺寸)和轮廓检测(桥墩与钢筋的轮廓)Before identifying the contour and geometric dimensions in the image, the image is binarized and preprocessed: since the image of the pier plan drawing obtained is a color image containing three channels of RGB, it is necessary to convert the RGB image into grayscale Figure, and convert the grayscale image into a binary image from the cv2.threshold function for text recognition (based on public geometric dimensions) and contour detection (contours of bridge piers and steel bars)

标注的基于公有制的几何尺寸,是指标注在桥墩平面图像中桥墩轮廓沿任一直线方向的直线长度。本实施例桥墩横截面x方向的尺寸为依据,以获得基于公有制的几何尺寸和基于像素的几何特征之间的转换关系。The annotated geometric dimension based on public ownership refers to the linear length of the pier outline marked in any straight line direction in the pier plan image. In this embodiment, the dimension in the x-direction of the cross-section of the bridge pier is used as the basis to obtain the conversion relationship between the geometric dimension based on public ownership and the geometric feature based on pixels.

采用边缘检测算法(如Canny、Sobel、Prewitt、Roberts等算子)识别桥墩的轮廓和钢筋的轮廓。本实施例基于Canny的边缘检测算子由于在梯度算子基础上,引入了一种能获得抗噪性能好、定位精度高的单像素边缘的计算策略、且增加了非最大值抑制和双阈值检测,减少了错检以及漏检的概率,可大大提高轮廓检测的精确度和准确度。Use edge detection algorithms (such as Canny, Sobel, Prewitt, Roberts, etc.) to identify the outline of the pier and the outline of the reinforcement. This embodiment is based on Canny's edge detection operator. On the basis of the gradient operator, it introduces a calculation strategy that can obtain single-pixel edges with good anti-noise performance and high positioning accuracy, and adds non-maximum suppression and double thresholds. detection, which reduces the probability of false detection and missed detection, and can greatly improve the accuracy and accuracy of contour detection.

本实施例采用成熟的Tesseract-OCR(Optical Character Recognition,光学字符识别)对图像进行扫描、检查图纸上打印的字符、对图像文件进行分析处理,从而实现文字识别算法提取图像中标的基于公有制的几何尺寸。This embodiment uses the mature Tesseract-OCR (Optical Character Recognition, optical character recognition) to scan the image, check the characters printed on the drawing, and analyze and process the image file, so as to realize the text recognition algorithm to extract the public-owned geometry of the bid in the image. size.

S2:从识别到的桥墩轮廓和钢筋轮廓中提取基于像素的几何特征,并从中获取与标注的几何尺寸所对应的基于像素的几何特征,然后根据基于公有制的几何尺寸和对应的基于像素的几何特征,对提取的基于像素的所有几何特征进行公有制单位转换,得到基于公有制的所有几何特征。S2: Extract the pixel-based geometric features from the identified pier outline and steel bar outline, and obtain the pixel-based geometric features corresponding to the marked geometric dimensions, and then according to the public ownership-based geometric dimensions and the corresponding pixel-based geometry Features, perform public unit conversion on all the extracted pixel-based geometric features, and obtain all public-owned geometric features.

在提取基于像素的几何特征之前,先对图像进行形态学操作预处理,以消除图像中包括横向钢筋轮廓在内的噪声:Before extracting pixel-based geometric features, the image is preprocessed with morphological operations to remove noise including the outline of transverse steel bars in the image:

由于轮廓检测算子能检测出图像中所有物体的边缘,因此检测出的图像仍保留了一些噪声,如表示横向钢筋的直线,因此需要对图像进行形态学操作。如图4所示,OpenCV中常用的形态学操作包括腐蚀与膨胀。膨胀主要用于处理图像的缺陷问题,将缺陷进行补全;腐蚀用于处理图像的毛刺问题,用于消除图像中多余的线条等。这两种基本操作结合使用可有效地对图像进行消噪,提高图像检测的精度。因此,在对桥墩图纸进行轮廓检测后,首先对图像进行腐蚀,以消除多余的线条,然后在对图像进行膨胀,恢复因腐蚀带来的缺陷,从而有效地分割出纵向钢筋元素。通过再次调用轮廓检测函数,即可获取每个纵向钢筋的位置,最后通过像素值与公有单位制的关系确定纵向钢筋的最终坐标位置。如图4所示.Since the contour detection operator can detect the edges of all objects in the image, the detected image still retains some noise, such as straight lines representing horizontal steel bars, so it is necessary to perform morphological operations on the image. As shown in Figure 4, the commonly used morphological operations in OpenCV include erosion and dilation. Expansion is mainly used to deal with image defects and complement them; corrosion is used to deal with image glitches and eliminate redundant lines in the image. The combination of these two basic operations can effectively denoise the image and improve the accuracy of image detection. Therefore, after the contour detection of the pier drawings, the image is first corroded to eliminate redundant lines, and then the image is expanded to restore the defects caused by corrosion, so as to effectively segment the longitudinal reinforcement elements. By calling the contour detection function again, the position of each longitudinal reinforcement can be obtained, and finally the final coordinate position of the longitudinal reinforcement is determined through the relationship between the pixel value and the public unit system. As shown in Figure 4.

所述几何特征包括桥墩轮廓的尺寸、几何中心、面积、惯性矩,钢筋的数量、各钢筋轮廓的面积和分布位置,以及与标注的基于公有制的几何尺寸所对应的几何特征。The geometric features include the size, geometric center, area, and moment of inertia of the pier profile, the number of steel bars, the area and distribution position of each steel bar profile, and the geometric features corresponding to the marked geometric dimensions based on public ownership.

为了确定桥墩横截面的面积、惯性矩和几何中心以及纵向钢筋分布位置,首先需要对桥墩横截面轮廓进行识别,采用cv2.findContours()函数快速识别桥墩横截面轮廓。In order to determine the area, moment of inertia and geometric center of the cross-section of the bridge pier, as well as the distribution position of the longitudinal reinforcement, it is first necessary to identify the cross-sectional profile of the bridge pier. The cv2.findContours() function is used to quickly identify the cross-sectional profile of the bridge pier.

为了计算轮廓的几何特征,需要采用cv2.moment()函数求解轮廓的各阶矩。矩的 解释如下:从概率与统计方面看,矩是是随机变量的一种数字特征。设x为随机变量,c为常 数,k为正整数。则

Figure 192148DEST_PATH_IMAGE005
表示x关于c点的k阶矩。对于一幅图像,我们把像素的坐标看成 是一个二维随机变量(x,y),那么一幅灰度图像可以用二维灰度密度函数来表示,因此可以 用矩来描述灰度图像的特征. 对于二值化图像,空间矩可表示为:
Figure 713653DEST_PATH_IMAGE006
Figure 561523DEST_PATH_IMAGE007
当j, i=0时,
Figure 283491DEST_PATH_IMAGE008
表示轮廓的面积;当j=2, i=0,
Figure 242220DEST_PATH_IMAGE009
表 示关于y轴的惯性矩,当j=0, i=2,
Figure 100455DEST_PATH_IMAGE010
表示关于x轴的惯性矩。相应地,轮廓的几何中心可 表示为
Figure 119226DEST_PATH_IMAGE011
Figure 328491DEST_PATH_IMAGE012
。由于计算机识别图纸读取的是二维像素值,因此需要将计算获取 的轮廓面积,惯性矩以及几何中心转化为真实的尺寸参数。 In order to calculate the geometric features of the contour, it is necessary to use the cv2.moment() function to solve the moments of each order of the contour. The explanation of moment is as follows: From the perspective of probability and statistics, moment is a digital characteristic of random variable. Let x be a random variable, c be a constant, and k be a positive integer. but
Figure 192148DEST_PATH_IMAGE005
Represents the kth order moment of x about point c. For an image, we regard the coordinates of the pixels as a two-dimensional random variable (x, y), then a grayscale image can be represented by a two-dimensional grayscale density function, so the grayscale image can be described by moments Features of . For binarized images, the spatial moments can be expressed as:
Figure 713653DEST_PATH_IMAGE006
Figure 561523DEST_PATH_IMAGE007
When j, i=0,
Figure 283491DEST_PATH_IMAGE008
Represents the area of the contour; when j=2, i=0,
Figure 242220DEST_PATH_IMAGE009
Represents the moment of inertia about the y-axis, when j=0, i=2,
Figure 100455DEST_PATH_IMAGE010
Indicates the moment of inertia about the x-axis. Correspondingly, the geometric center of the contour can be expressed as
Figure 119226DEST_PATH_IMAGE011
,
Figure 328491DEST_PATH_IMAGE012
. Since the computer recognizes drawings to read two-dimensional pixel values, it is necessary to convert the calculated contour area, moment of inertia, and geometric center into real size parameters.

本实施例以桥墩横截面x方向的几何尺寸(即桥墩轮廓沿图像x坐标轴方向的直线距离),可得到基于像素的几何特征与桥墩真实的几何基于公有制几何尺寸之间的转化关系,即:In this embodiment, the geometric dimension of the cross-section of the pier in the x direction (that is, the linear distance of the pier profile along the x coordinate axis of the image) can be used to obtain the conversion relationship between the pixel-based geometric features and the real geometry of the pier based on the public-owned geometric dimension, namely :

Figure 90910DEST_PATH_IMAGE001
Figure 90910DEST_PATH_IMAGE001

式中,

Figure 272493DEST_PATH_IMAGE013
为基于像素的几何特征,
Figure 9636DEST_PATH_IMAGE014
Figure 643879DEST_PATH_IMAGE013
对应的基于公有制的几何尺寸,
Figure 6728DEST_PATH_IMAGE015
为从
Figure 42817DEST_PATH_IMAGE016
转换为
Figure 200129DEST_PATH_IMAGE017
的转换比例。本实施例中,桥墩横截面x方向的几何尺寸
Figure 321668DEST_PATH_IMAGE018
,再将提取到的基于像素的桥墩横截面x方向的几何尺寸(属于几何特征)代入 上述转化关系式中,即可得到从
Figure 488208DEST_PATH_IMAGE019
转换为
Figure 113224DEST_PATH_IMAGE020
的转换比例
Figure 956284DEST_PATH_IMAGE004
。从而可根据提 取到的基于像素的所有几何特征,通过
Figure 565120DEST_PATH_IMAGE004
,计算得到基于公有制的所有几何 特征。 In the formula,
Figure 272493DEST_PATH_IMAGE013
is a pixel-based geometric feature,
Figure 9636DEST_PATH_IMAGE014
for
Figure 643879DEST_PATH_IMAGE013
The corresponding geometric dimensions based on public ownership,
Figure 6728DEST_PATH_IMAGE015
for from
Figure 42817DEST_PATH_IMAGE016
converted to
Figure 200129DEST_PATH_IMAGE017
conversion ratio. In this embodiment, the geometric dimension of the cross-section of the pier in the x direction
Figure 321668DEST_PATH_IMAGE018
, and then substituting the extracted pixel-based geometric dimensions (belonging to geometric features) of the cross-section of the pier in the x direction into the above conversion relation, we can get
Figure 488208DEST_PATH_IMAGE019
converted to
Figure 113224DEST_PATH_IMAGE020
Conversion ratio of
Figure 956284DEST_PATH_IMAGE004
. Therefore, according to all the extracted geometric features based on pixels, through
Figure 565120DEST_PATH_IMAGE004
, calculate all the geometric features based on public ownership.

S3:根据桥墩与钢筋的基于公有制的几何特征,对基于钢筋混凝土材料的桥墩建立三维有限元模型;如图5、6所示。S3: According to the public ownership-based geometric characteristics of bridge piers and steel bars, establish a three-dimensional finite element model for bridge piers based on reinforced concrete materials; as shown in Figures 5 and 6.

其中,在建立三维有限元模型时:采用梁柱单元(elasticBeamColumn)模拟桥墩的弹性力学行为,建立得到桥墩的弹性模型,通过考虑桥墩的弹性变形以用于桥墩的抗震设计,具体可用于对桥墩进行模态分析和静力分析;采用非线性梁柱单元(如dispBeamColumn, forceBeamColumn)模拟桥墩的弹塑性力学行为,建立得到桥墩的弹塑性模型,能充分考虑桥墩在地震作用下的非线性行为,可用于桥墩的地震响应分析与抗震性能评估,用于对桥墩进行时程分析。Among them, when establishing the three-dimensional finite element model: use the beam-column element (elasticBeamColumn) to simulate the elastic mechanical behavior of the bridge pier, establish the elastic model of the bridge pier, and consider the elastic deformation of the bridge pier for the aseismic design of the bridge pier. Carry out modal analysis and static analysis; use nonlinear beam-column elements (such as dispBeamColumn, forceBeamColumn) to simulate the elastic-plastic mechanical behavior of bridge piers, and establish elastic-plastic models of bridge piers, which can fully consider the nonlinear behavior of bridge piers under earthquake action, It can be used for seismic response analysis and seismic performance evaluation of bridge piers, and for time-history analysis of bridge piers.

在对基于钢筋混凝土材料的桥墩建立三维有限元模型时,除了需要桥墩与钢筋的基于公有制的几何特征之外,还从用户获取桥墩所需的钢筋和混凝土的材料特性、桥墩的荷载以及桥墩的边界约束条件;所述材料特性包括但不限于材料的密度、弹性模量和弹性刚度;所述荷载包括重力荷载、侧向荷载和地震荷载。根据这些获取的数据建立桥墩的三维有限模型属于现有技术,本实施例不再赘述。When building a three-dimensional finite element model for a bridge pier based on reinforced concrete materials, in addition to the public-owned geometric features of the pier and steel bars, the material properties of the steel bars and concrete required for the pier, the load of the pier, and the properties of the pier Boundary constraints; the material properties include but not limited to the density, elastic modulus and elastic stiffness of the material; the loads include gravity loads, lateral loads and earthquake loads. Establishing a three-dimensional finite model of a bridge pier based on these acquired data belongs to the prior art, and will not be described in detail in this embodiment.

基于上述的基于计算机视觉与图纸识别的桥墩自动化建模方法实施例,本发明还相应提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述实施例中所述的基于计算机视觉与图纸智能识别的桥墩自动化建模方法。Based on the above-mentioned embodiment of the automatic modeling method for bridge piers based on computer vision and drawing recognition, the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned implementation is realized. The automatic modeling method of bridge piers based on computer vision and intelligent recognition of drawings described in the example.

以上实施例为本申请的优选实施例,本领域的普通技术人员还可以在此基础上进行各种变换或改进,在不脱离本申请总的构思的前提下,这些变换或改进都应当属于本申请要求保护的范围之内。The above embodiments are preferred embodiments of the present application, and those skilled in the art can also perform various transformations or improvements on this basis, and without departing from the general concept of the application, these transformations or improvements should all belong to the present application. within the scope of the application.

Claims (9)

1.基于计算机视觉的桥墩图纸识别自动化建模方法,其特征在于,包括:1. The automated modeling method for bridge pier drawing recognition based on computer vision, is characterized in that, comprises: 获取桥墩平面图纸的图像,识别其中桥墩与钢筋的轮廓和标注的基于公有制的几何尺寸;Obtain the image of the plan drawing of the bridge pier, identify the outline of the bridge pier and steel bars and the marked geometric dimensions based on public ownership; 从识别到的桥墩轮廓和钢筋轮廓中提取基于像素的几何特征,并从中获取与标注的几何尺寸所对应的基于像素的几何特征,然后根据基于公有制的几何尺寸和对应的基于像素的几何特征,对提取的基于像素的所有几何特征进行公有制单位转换,得到基于公有制的所有几何特征;Extract the pixel-based geometric features from the identified pier outline and steel bar outline, and obtain the pixel-based geometric features corresponding to the marked geometric dimensions, and then according to the public ownership-based geometric dimensions and the corresponding pixel-based geometric features, Perform public unit conversion on all the extracted pixel-based geometric features to obtain all public-owned geometric features; 所述几何特征包括桥墩轮廓的尺寸、几何中心、面积、惯性矩,钢筋的数量、各钢筋轮廓的面积和分布位置,以及与标注的基于公有制的几何尺寸所对应的几何特征;The geometric features include the size, geometric center, area, moment of inertia of the pier profile, the number of steel bars, the area and distribution position of each steel bar profile, and the geometric features corresponding to the marked geometric dimensions based on public ownership; 其中,对几何特征进行公有制单位转换的转换关系为:Among them, the conversion relationship of public ownership unit conversion for geometric features is:
Figure DEST_PATH_IMAGE001
Figure DEST_PATH_IMAGE001
式中,
Figure DEST_PATH_IMAGE002
为基于像素的几何特征,
Figure DEST_PATH_IMAGE003
Figure 802777DEST_PATH_IMAGE002
对应的基于公有制的几何尺寸,
Figure DEST_PATH_IMAGE004
为从
Figure 562660DEST_PATH_IMAGE002
转换为
Figure 607976DEST_PATH_IMAGE003
的转换比例;
In the formula,
Figure DEST_PATH_IMAGE002
is a pixel-based geometric feature,
Figure DEST_PATH_IMAGE003
for
Figure 802777DEST_PATH_IMAGE002
The corresponding geometric dimensions based on public ownership,
Figure DEST_PATH_IMAGE004
for from
Figure 562660DEST_PATH_IMAGE002
converted to
Figure 607976DEST_PATH_IMAGE003
conversion ratio;
根据桥墩与钢筋的基于公有制的几何特征,对基于钢筋混凝土材料的桥墩建立三维有限元模型;According to the geometric characteristics of bridge piers and steel bars based on public ownership, a three-dimensional finite element model is established for bridge piers based on reinforced concrete materials; 其中,在建立三维有限元模型时:采用梁柱单元模拟桥墩的弹性力学行为,建立得到桥墩的弹性模型;采用非线性梁柱单元模拟桥墩的弹塑性力学行为,建立得到桥墩的弹塑性模型。Among them, when establishing the three-dimensional finite element model: use the beam-column element to simulate the elastic mechanical behavior of the bridge pier to establish the elastic model of the bridge pier; use the nonlinear beam-column element to simulate the elastic-plastic mechanical behavior of the bridge pier to establish the elastic-plastic model of the bridge pier.
2.根据权利要求1所述的方法,其特征在于,标注的基于公有制的几何尺寸,是指标注在桥墩平面图像中桥墩轮廓沿任一直线方向的直线长度。2. The method according to claim 1, wherein the marked geometric dimension based on public ownership refers to the linear length of the pier outline marked in the plane image of the pier along any straight line direction. 3.根据权利要求1所述的方法,其特征在于,采用光学字符识别算法识别图像中标的基于公有制的几何尺寸。3. The method according to claim 1, characterized in that an optical character recognition algorithm is used to identify the geometric dimensions based on public ownership of the mark in the image. 4.根据权利要求1所述的方法,其特征在于,采用边缘检测算法识别桥墩的轮廓和钢筋的轮廓。4. The method according to claim 1, characterized in that an edge detection algorithm is used to identify the outline of the pier and the outline of the reinforcement. 5.根据权利要求1所述的方法,其特征在于,在识别图像中的轮廓和几何尺寸之前,先对图像进行二值化预处理。5. The method according to claim 1, characterized in that, before recognizing the contour and geometric dimensions in the image, the image is first binarized and preprocessed. 6.根据权利要求1所述的方法,其特征在于,在提取基于像素的几何特征之前,先对图像进行形态学操作预处理,以消除图像中包括横向钢筋轮廓在内的噪声。6. The method according to claim 1, characterized in that, before extracting the pixel-based geometric features, the image is preprocessed with morphological operations to eliminate noise including the outline of transverse steel bars in the image. 7.根据权利要求1所述的方法,其特征在于,在对基于钢筋混凝土材料的桥墩建立三维有限元模型时,除了需要桥墩与钢筋的基于公有制的几何特征之外,还从用户获取桥墩所需的钢筋和混凝土的材料特性、桥墩的荷载以及桥墩的边界约束条件;所述材料特性包括但不限于材料的密度、弹性模量和弹性刚度;所述荷载包括重力荷载、侧向荷载和地震荷载。7. The method according to claim 1, characterized in that, when a three-dimensional finite element model is established for a bridge pier based on reinforced concrete materials, in addition to the geometric features based on the public ownership of the pier and the steel bar, the pier is also obtained from the user. The material properties of the required steel bars and concrete, the loads of the piers, and the boundary constraints of the piers; the material properties include but not limited to the density, elastic modulus, and elastic stiffness of the materials; the loads include gravity loads, lateral loads, and earthquakes load. 8.根据权利要求1所述的方法,其特征在于,所述桥墩的弹性模型,用于对桥墩进行模态分析和静力分析;所述桥墩的弹塑性模型,用于对桥墩进行时程分析。8. The method according to claim 1, wherein the elastic model of the bridge pier is used for carrying out modal analysis and static analysis to the bridge pier; the elastic-plastic model of the bridge pier is used for carrying out the time history of the bridge pier analyze. 9.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1~8中任一项所述的方法。9. A computer-readable storage medium, on which a computer program is stored, wherein the computer program implements the method according to any one of claims 1-8 when executed by a processor.
CN202211147983.2A 2022-09-21 2022-09-21 Automated modeling method and medium for bridge pier drawing recognition based on computer vision Active CN115238368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211147983.2A CN115238368B (en) 2022-09-21 2022-09-21 Automated modeling method and medium for bridge pier drawing recognition based on computer vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211147983.2A CN115238368B (en) 2022-09-21 2022-09-21 Automated modeling method and medium for bridge pier drawing recognition based on computer vision

Publications (2)

Publication Number Publication Date
CN115238368A CN115238368A (en) 2022-10-25
CN115238368B true CN115238368B (en) 2022-12-16

Family

ID=83680763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211147983.2A Active CN115238368B (en) 2022-09-21 2022-09-21 Automated modeling method and medium for bridge pier drawing recognition based on computer vision

Country Status (1)

Country Link
CN (1) CN115238368B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118397634B (en) * 2024-06-27 2024-09-03 浙江正泰新能源开发有限公司 Digital twin modeling marking method, system, equipment and medium for ground power station

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100241507A1 (en) * 2008-07-02 2010-09-23 Michael Joseph Quinn System and method for searching, advertising, producing and displaying geographic territory-specific content in inter-operable co-located user-interface components
US20180330018A1 (en) * 2017-05-12 2018-11-15 The Boeing Company Methods and systems for part geometry extraction
CA3171381A1 (en) * 2020-02-27 2021-09-02 Tailorbird, Inc. Apparatus and method of converting digital images to three-dimensional construction images
CN113742810B (en) * 2020-05-28 2023-08-15 杭州群核信息技术有限公司 Scale identification method and three-dimensional model building system based on copy
CN112967249B (en) * 2021-03-03 2023-04-07 南京工业大学 Intelligent identification method for manufacturing errors of prefabricated pier reinforcing steel bar holes based on deep learning
CN113221355A (en) * 2021-05-10 2021-08-06 中国计量大学上虞高等研究院有限公司 Arrangement method of irregular roof photovoltaic panels of complex building
CN113658244A (en) * 2021-07-01 2021-11-16 哈尔滨工业大学 Three-dimensional geometric dimension identification method of navigable ships in bridge area

Also Published As

Publication number Publication date
CN115238368A (en) 2022-10-25

Similar Documents

Publication Publication Date Title
Ghosh Mondal et al. Deep learning‐based multi‐class damage detection for autonomous post‐disaster reconnaissance
Xue et al. A fast detection method via region‐based fully convolutional neural networks for shield tunnel lining defects
CN110738207B (en) Character detection method for fusing character area edge information in character image
CN112767357A (en) Yolov 4-based concrete structure disease detection method
Li et al. A deep learning-based fine crack segmentation network on full-scale steel bridge images with complicated backgrounds
CN105787486B (en) A method for crack detection of steel beams based on image processing
CN113706464B (en) Printed matter appearance quality detection method and system
Fu et al. Extended efficient convolutional neural network for concrete crack detection with illustrated merits
CN114862829B (en) Method, device, equipment and storage medium for positioning binding points of reinforcing steel bars
CN101504770B (en) A method for extracting the center of a structured light strip
Xu et al. Real-time monitoring of concrete crack based on deep learning algorithms and image processing techniques
CN110158967A (en) A kind of binding reinforcing bars method and system
CN115238368B (en) Automated modeling method and medium for bridge pier drawing recognition based on computer vision
CN110751154A (en) Complex environment multi-shape text detection method based on pixel-level segmentation
CN115423995A (en) Lightweight curtain wall crack target detection method and system and safety early warning system
CN110135248A (en) A deep learning-based text detection method in natural scenes
CN117314917A (en) Bridge crack detection method and device, computer equipment and storage medium
CN117094999A (en) Cross-scale defect detection method
CN113449656A (en) Driver state identification method based on improved convolutional neural network
CN116912158A (en) Workpiece quality inspection method, device, equipment and readable storage medium
Jayaraju et al. A Deep Learning-Image Based Approach for Detecting Cracks in Buildings.
CN115952704A (en) Neural network-based method for quickly positioning damage of steel bars in concrete beam
CN115272287A (en) A kind of railway freight car buffer and fault detection method, medium and system of slave plate
CN114648520A (en) Method, system, electronic device and storage medium for detecting track defects
Cai et al. Unfeatured weld positioning technology based on neural network and 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
GR01 Patent grant
GR01 Patent grant