CN117490579A - Foundation pit displacement monitoring system based on image vision processing - Google Patents

Foundation pit displacement monitoring system based on image vision processing Download PDF

Info

Publication number
CN117490579A
CN117490579A CN202410005871.6A CN202410005871A CN117490579A CN 117490579 A CN117490579 A CN 117490579A CN 202410005871 A CN202410005871 A CN 202410005871A CN 117490579 A CN117490579 A CN 117490579A
Authority
CN
China
Prior art keywords
image
displacement
module
distortion
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410005871.6A
Other languages
Chinese (zh)
Inventor
徐向阳
杨浩
李秋乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou University
Original Assignee
Suzhou 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 Suzhou University filed Critical Suzhou University
Priority to CN202410005871.6A priority Critical patent/CN117490579A/en
Publication of CN117490579A publication Critical patent/CN117490579A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/16Measuring arrangements characterised by the use of optical techniques for measuring the deformation in a solid, e.g. optical strain gauge
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

本发明公开了一种基于图像视觉处理的基坑位移监测系统,包括图像传感模块、数据处理模块、监控模块和智能预警模块。在数据处理模块中,包括图像畸变校准、图像像素点智能划分提取,以及图像像素点位移的高精度计算等子模块。经过畸变校准后的图像,通过基于深度学习的机器视觉算法进行处理,实现对像素点的提取、区域划分以及基于时间变化的像素点区域平均位移计算。本发明所提供的基于图像视觉处理的基坑位移监测系统,采用一体化设计,集图像采集、数据处理、监控可视化和智能检测预警于一体,不仅操作简便、造价低廉,而且能实时智能地监测基坑内部的位移情况,是一种高效、可靠的基坑监测解决方案。

The invention discloses a foundation pit displacement monitoring system based on image visual processing, which includes an image sensing module, a data processing module, a monitoring module and an intelligent early warning module. The data processing module includes sub-modules such as image distortion calibration, intelligent division and extraction of image pixels, and high-precision calculation of image pixel displacement. The distortion-calibrated image is processed through a machine vision algorithm based on deep learning to realize the extraction of pixels, regional division, and calculation of the average displacement of the pixel region based on time changes. The foundation pit displacement monitoring system based on image visual processing provided by the present invention adopts an integrated design and integrates image collection, data processing, monitoring visualization and intelligent detection and early warning. It is not only easy to operate and low in cost, but also can monitor intelligently in real time. The displacement inside the foundation pit is an efficient and reliable foundation pit monitoring solution.

Description

一种基于图像视觉处理的基坑位移监测系统A foundation pit displacement monitoring system based on image vision processing

技术领域Technical field

本发明属于机器视觉领域,特别涉及一种基于图像视觉处理的基坑位移监测系统。The invention belongs to the field of machine vision, and in particular relates to a foundation pit displacement monitoring system based on image vision processing.

背景技术Background technique

几何变形监测是发现建、构筑物异常行为的重要方法一。在过去实际工程项目中,主要依靠工程人员进行手工监测以及大地测量仪器实现相关监测;目前,在实际工程中,工程人员常用经纬仪、全站仪等相关专业测量仪器对基坑位移进行监测。但基于上述人工监测虽应用广泛,但在实际过程中操作繁琐、人工费用高以及不能排除人为因素出现数据误差、不能实时监测获取数据等缺点。Geometric deformation monitoring is an important method for discovering abnormal behaviors of buildings and structures. In actual engineering projects in the past, engineers mainly relied on manual monitoring and geodetic measuring instruments to achieve relevant monitoring; currently, in actual projects, engineers often use theodolite, total station and other related professional measuring instruments to monitor foundation pit displacement. However, although manual monitoring is widely used based on the above, it has shortcomings such as cumbersome operation in the actual process, high labor costs, data errors caused by human factors, and the inability to monitor and obtain data in real time.

随着工程现场日趋复杂、施工要求越来越高,为了确保施工环境及周围环境的安全,工程项目对监测的要求也不断提高。随着机器视觉相关领域的不断发展,针对复杂环境所需的监测要求,提高监测效率准确率、降低监测成本是目前实际工程监测的主要发展方向,因此就需要一个智能化高、成本低的监测系统。As engineering sites become increasingly complex and construction requirements become higher and higher, in order to ensure the safety of the construction environment and the surrounding environment, the monitoring requirements of engineering projects are also constantly increasing. With the continuous development of machine vision-related fields, in response to the monitoring requirements required in complex environments, improving monitoring efficiency and accuracy and reducing monitoring costs are the main development directions of actual engineering monitoring. Therefore, a highly intelligent and low-cost monitoring system is needed. system.

发明内容Contents of the invention

为了克服上述现有相关监测技术的缺陷与不足,本发明提供了一种基于图像视觉处理的基坑位移监测系统。In order to overcome the above-mentioned defects and shortcomings of existing related monitoring technologies, the present invention provides a foundation pit displacement monitoring system based on image vision processing.

本发明的技术方案是:The technical solution of the present invention is:

本发明公开了一种基于图像视觉处理的基坑位移监测系统,包括图像传感模块、数据处理模块、监控模块和智能预警模块。所述图像传感模块利用LED照明灯照亮目标基坑的内部表面,并通过高精度工业相机捕捉基坑的内部图像,这些图像随后通过有线或无线方式传输至数据处理模块。在数据处理模块中,包括图像畸变校准、图像像素点智能划分提取,以及图像像素点位移的高精度计算等子模块。经过畸变校准后的图像,通过基于深度学习的机器视觉算法进行处理,实现对像素点的提取、区域划分以及基于时间变化的像素点区域平均位移计算。这样,就能准确得到基坑的平均位移数值,并通过有线或无线方式传输至监控模块供作业人员查看。The invention discloses a foundation pit displacement monitoring system based on image visual processing, which includes an image sensing module, a data processing module, a monitoring module and an intelligent early warning module. The image sensing module uses LED lighting to illuminate the internal surface of the target foundation pit, and captures internal images of the foundation pit through high-precision industrial cameras. These images are then transmitted to the data processing module through wired or wireless means. The data processing module includes sub-modules such as image distortion calibration, intelligent division and extraction of image pixels, and high-precision calculation of image pixel displacement. The distortion-calibrated image is processed through a machine vision algorithm based on deep learning to realize the extraction of pixels, regional division, and calculation of the average displacement of the pixel region based on time changes. In this way, the average displacement value of the foundation pit can be accurately obtained and transmitted to the monitoring module through wired or wireless means for operators to view.

监控模块由电脑主机终端和移动设备终端构成。作业人员不仅可以通过电脑主机终端进行可视化数据分析,还可以利用5G无线传输技术通过移动设备实时查看数据。智能预警模块根据设定的像素点位移阈值范围,监测数据处理模块得出的像素点平均位移数值。一旦位移超过阈值,便会触发预警,若监测数据出现异常,也会触发报错模块。该智能预警模块在监控模块内设有嵌入式可视化窗口。The monitoring module consists of a computer host terminal and a mobile device terminal. Workers can not only conduct visual data analysis through computer host terminals, but also use 5G wireless transmission technology to view data in real time through mobile devices. The intelligent early warning module monitors the average pixel displacement value obtained by the data processing module according to the set pixel displacement threshold range. Once the displacement exceeds the threshold, an early warning will be triggered. If the monitoring data is abnormal, the error module will also be triggered. The intelligent early warning module is equipped with an embedded visualization window in the monitoring module.

本发明所提供的基于图像视觉处理的基坑位移监测系统,采用一体化设计,集图像采集、数据处理、监控可视化和智能检测预警于一体。它不仅操作简便、造价低廉,而且能实时智能地监测基坑内部的位移情况,是一种高效、可靠的基坑监测解决方案。The foundation pit displacement monitoring system based on image visual processing provided by the present invention adopts an integrated design and integrates image acquisition, data processing, monitoring visualization and intelligent detection and early warning. It is not only easy to operate and low in cost, but also can intelligently monitor the displacement inside the foundation pit in real time. It is an efficient and reliable foundation pit monitoring solution.

优选的,所述图像传感模块利用LED照明灯照亮目标基坑的内部表面及用于目标识别的高对比度黑白双色棋盘格,通过工业相机捕捉基坑的内部图像,这些图像随后通过有线或无线方式传输至数据处理模块。图像传感模块具体包括太阳能供电子模块、LED照明灯子模块以及工业相机拍摄子模块。所述太阳能供电子模块,该模块由太阳能电板和蓄电池组成,能够利用太阳能为整个监测系统提供持续且环保的电力支持。太阳能电板高效转换太阳光为电能,同时蓄电池确保了即使在无光照条件下系统也能稳定运行;所述LED照明灯子模块,LED灯具备高亮度和低能耗的特点,能够确保在各种光照条件下都能为基坑内部及目标棋盘格标志物提供均匀且充足的照明,从而保证拍摄图像的清晰度和准确性;工业相机拍摄子模块,包括一台工业相机,专门用于捕捉基坑内部的高质量图像。这些图像将作为数据处理模块的主要分析对象,用于后续的位移监测和分析。工业相机的使用确保了图像数据的细节和准确性,为后续的数据处理提供了可靠的基础。Preferably, the image sensing module uses LED lighting to illuminate the internal surface of the target foundation pit and a high-contrast black and white checkerboard for target identification, and captures the internal images of the foundation pit through an industrial camera. These images are then passed through a wired or Wirelessly transmitted to the data processing module. The image sensing module specifically includes a solar power supply module, an LED lighting sub-module and an industrial camera shooting sub-module. The solar power supply module is composed of solar panels and batteries, and can use solar energy to provide continuous and environmentally friendly power support for the entire monitoring system. The solar panels efficiently convert sunlight into electrical energy, and the battery ensures that the system can operate stably even under no light conditions; the LED lighting sub-module and LED lights have the characteristics of high brightness and low energy consumption, which can ensure that the system can be used in various situations. Under lighting conditions, it can provide uniform and sufficient illumination for the interior of the foundation pit and the target checkerboard markers, thereby ensuring the clarity and accuracy of the captured images; the industrial camera shooting sub-module, including an industrial camera, is specially used to capture the foundation High-quality images of the pit's interior. These images will be used as the main analysis objects of the data processing module for subsequent displacement monitoring and analysis. The use of industrial cameras ensures the details and accuracy of image data, providing a reliable foundation for subsequent data processing.

进一步优选的,所述数据处理模块包括图像畸变校准模块、图像像素点智能划分提取及图像像素点位移计算模块。Further preferably, the data processing module includes an image distortion calibration module, an intelligent division and extraction of image pixels, and an image pixel displacement calculation module.

进一步优选的,所述图像畸变校准模块,目的在于纠正拍摄到的基坑内部表面图像的畸变问题,该模块基于LED照明灯布点位置,结合张正友棋盘格标定法来对图像进行畸变校准,工业相机基于自身参数进行校准。Further preferably, the image distortion calibration module aims to correct the distortion problem of the captured internal surface image of the foundation pit. This module is based on the position of the LED lighting points and combined with Zhang Zhengyou's checkerboard calibration method to perform distortion calibration on the image. Industrial camera Calibrate based on its own parameters.

进一步优选的,针对基坑场景的特殊需求,基于张正友棋盘格标定法的要求,采用高对比度的黑白双色棋盘格标定板,以确保其在工业相机捕捉过程中的清晰度和识别率。为此,我们选定了一个5×5的棋盘格布局,该布局旨在最大程度地提高图像捕捉的精确性。Further preferably, in view of the special needs of the foundation pit scene, based on the requirements of Zhang Zhengyou's checkerboard calibration method, a high-contrast black and white two-color checkerboard calibration plate is used to ensure its clarity and recognition rate during the industrial camera capture process. To do this, we settled on a 5×5 checkerboard layout designed to maximize image capture accuracy.

进一步优选的,基于棋盘格布局设计LED照明灯布点方案。共设置9个LED照明灯,以确保标定板能够被充分且均匀地照亮。通过这种方式,考虑了照明的均匀性和有效性,还充分考虑了基坑环境的特殊性,保证图像捕捉质量的同时,还保持了系统的经济性和实用性。It is further preferred to design the LED lighting distribution plan based on the checkerboard layout. A total of 9 LED lighting lights are set up to ensure that the calibration plate can be fully and evenly illuminated. In this way, the uniformity and effectiveness of the lighting are taken into consideration, and the particularity of the foundation pit environment is also fully considered, ensuring the quality of image capture while maintaining the economy and practicality of the system.

进一步优选的,具体针对图像畸变校准的相关实现过程和计算过程如下:Further preferably, the relevant implementation process and calculation process specifically for image distortion calibration are as follows:

步骤一:使用工业相机,用于从固定角度捕捉带有LED照明灯的黑白双色棋盘格标定板图像,这种方法的关键在于图像处理阶段的特征点识别和追踪。特别地,重点关注带有LED照明灯的棋盘格角点。LED照明灯提供了清晰的视觉标记环境,极大地促进了特征点的精确识别,从而提高识别标记点准确性。Step 1: Use an industrial camera to capture a black and white two-color checkerboard calibration plate image with LED lighting from a fixed angle. The key to this method lies in the identification and tracking of feature points in the image processing stage. In particular, focus on the checkerboard corner points with LED lighting. LED lighting provides a clear visual marking environment, which greatly facilitates the accurate identification of feature points, thereby improving the accuracy of identifying marked points.

步骤二:捕获到LED照明灯的特征点坐标,将其代入用于计算工业相机的畸变参数。这些参数随后被用于对图像进行校准,以矫正可能存在的任何畸变。为了验证校准的效果,我们基于校准结果选取其他特征点进行进一步的确认。Step 2: Capture the characteristic point coordinates of the LED lighting and substitute them into the distortion parameters of the industrial camera. These parameters are then used to calibrate the image to correct any distortion that may be present. In order to verify the effect of calibration, we select other feature points based on the calibration results for further confirmation.

图像畸变校正步骤有:Image distortion correction steps are:

步骤1:识别带有LED照明灯的棋盘格角点坐标:LED照明灯提供更为明显的视觉标记,有助于更准确识别特征点;Step 1: Identify the corner point coordinates of the checkerboard with LED lighting: LED lighting provides more obvious visual markers, helping to identify feature points more accurately;

步骤2:计算工业相机畸变参数:使用识别出的LED照明灯特征点坐标来计算工业相机的参数,包括内参矩阵和畸变系数;Step 2: Calculate the distortion parameters of the industrial camera: Use the identified coordinates of the LED lighting feature points to calculate the parameters of the industrial camera, including the internal parameter matrix and distortion coefficient;

步骤3:基于计算的相关参数对所拍摄的棋盘格图像像素点进行畸变校正。应用计算所得的内参矩阵和畸变参数对图像像素点进行精确的畸变校正。Step 3: Perform distortion correction on the pixels of the captured checkerboard image based on the calculated relevant parameters. The calculated internal parameter matrix and distortion parameters are used to accurately correct the distortion of the image pixels.

针对步骤1,基于已知正常情况下LED照明灯所在标记点坐标,需要确定LED照明灯在拍摄图像中的标记点坐标,即假设I(x,y)表示图像在点(x,y)的亮度值,阈值设定为T。对于每个检测到的角点(xi,yi),进行下述计算:For step 1, based on the known coordinates of the marker point where the LED lighting is located under normal circumstances, it is necessary to determine the coordinates of the marker point of the LED lighting in the captured image, that is, assuming that I(x,y) represents the image at point (x,y) Brightness value, threshold is set to T. For each detected corner point (x i ,y i ), the following calculation is performed:

计算角点的亮度:,其中,N是角点(xi,yi)的领域内的像素数量;Calculate the brightness of a corner point: , where N is the number of pixels in the area of the corner point (x i , y i );

如果L > T,则(xi,yi)是LED照明灯的坐标;If L > T, then (x i ,y i ) are the coordinates of the LED lighting lamp;

注:阈值T需要根据具体环境的光照条件进行调整。Note: The threshold T needs to be adjusted according to the lighting conditions of the specific environment.

针对步骤2,确定LED照明灯在拍摄图像中的标记点坐标后,利用工业相机捕捉到的棋盘格图像来建立物理坐标系和图像坐标系之间的对应关系。首先,通过对棋盘格图像的分析,确定物理空间中每个点的位置以及它们在图像中的对应位置。基于这种坐标关系,能够计算出工业相机的畸变系数。畸变系数是对工业相机镜头固有畸变的量化表示,包括径向畸变和切向畸变等。利用计算得出的畸变系数,我们对捕捉到的图像进行畸变校正。For step 2, after determining the coordinates of the marker points of the LED lighting lamp in the captured image, use the checkerboard image captured by the industrial camera to establish the correspondence between the physical coordinate system and the image coordinate system. First, by analyzing the checkerboard image, the position of each point in the physical space and their corresponding position in the image are determined. Based on this coordinate relationship, the distortion coefficient of the industrial camera can be calculated. The distortion coefficient is a quantitative expression of the inherent distortion of the industrial camera lens, including radial distortion and tangential distortion. Using the calculated distortion coefficients, we perform distortion correction on the captured images.

其中,相机内参矩阵A:Among them, the camera internal parameter matrix A:

,

其中,fx,fy是焦距,cx,cy是图像的中心坐标;Among them, f x and f y are the focal lengths, c x and c y are the center coordinates of the image;

所述畸变系数包括:径向畸变系数k1,k2,……和切向畸变系数p1,p2The distortion coefficients include: radial distortion coefficients k 1 , k 2 , ... and tangential distortion coefficients p 1 , p 2 ;

对于畸变系数,通常选用优化算法在相机标定过程中计算获得,本发明中采用最小二乘法获取相机畸变系数,计算公式如下:For the distortion coefficient, an optimization algorithm is usually used to calculate it during the camera calibration process. In the present invention, the least squares method is used to obtain the camera distortion coefficient. The calculation formula is as follows:

,

xij是第i个图像中第j个角点的图像坐标;n表示图像数量,m表示角点数量;x ij is the image coordinate of the j-th corner point in the i-th image; n represents the number of images, and m represents the number of corner points;

Xij是对应的物理坐标;X ij is the corresponding physical coordinate;

A是相机的内参矩阵;A is the internal parameter matrix of the camera;

k1,k2是径向畸变系数,p1,p2是切向畸变系数;k 1 , k 2 are radial distortion coefficients, p 1 , p 2 are tangential distortion coefficients;

R,t相机的旋转和平移矩阵。R,t the rotation and translation matrices of the camera.

基于畸变系数的棋盘格图像校正,对于图像中的每个像素点(x,y):Checkerboard image correction based on distortion coefficient, for each pixel (x, y) in the image:

步骤1:径向畸变校正Step 1: Radial Distortion Correction

xRD= x(1 + k1r2+ k2r4+ …) xRD = x(1 + k 1 r 2 + k 2 r 4 + …)

yRD= y(1 + k1r2+ k2r4+ …)y RD = y(1 + k 1 r 2 + k 2 r 4 + …)

其中,r2= x2+ y2 ,x,y是畸变前图像像素坐标;xRD,yRD是径向畸变校准后图像像素坐标;其中RD是径向畸变(Radial Distortion)的缩写。Among them, r 2 = x 2 + y 2 , x, y are the image pixel coordinates before distortion; x RD , y RD are the image pixel coordinates after radial distortion calibration; where RD is the abbreviation of Radial Distortion.

步骤2:切向畸变校正Step 2: Tangential distortion correction

xTD= xRD+ [2p1yRD+ p2(r2+ 2 x2 RD)]x TD = x RD + [2p 1 y RD + p 2 (r 2 + 2 x 2 RD )]

yTD= yRD+ [2p2xRD+ p1(r2+ 2 y2 RD)]y TD = y RD + [2p 2 x RD + p 1 (r 2 + 2 y 2 RD )]

其中,xTD,yTD是径向畸变校准后图像像素坐标;其中TD是切向畸变(TangentialDistortion)的缩写。Among them, x TD and y TD are the image pixel coordinates after radial distortion calibration; where TD is the abbreviation of tangential distortion (TangentialDistortion).

进一步优选的,所述图像像素点智能划分提取模块,可以按照以下原理和计算步骤进行操作:Further preferably, the image pixel intelligent division and extraction module can operate according to the following principles and calculation steps:

像素点智能划分提取:Intelligent division and extraction of pixels:

步骤一:区域划分。将校准后的棋盘格图像依旧按照之前的黑白双色进行区域划分,共划分为25个区域,每个区域将代表棋盘格的一个小格子。Step 1: Regional division. The calibrated checkerboard image is still divided into areas according to the previous black and white colors, and is divided into a total of 25 areas. Each area will represent a small grid of the checkerboard.

步骤二:区域大小计算。假设图像的像素分辨率为 W×H(宽度×高度),则每个区域的像素大小计算为 (W/5)×(H/5)。Step 2: Calculate area size. Assuming that the pixel resolution of the image is W×H (width×height), the pixel size of each region is calculated as (W/5)×(H/5).

步骤三:区域编号。对这25个区域进行编号,编号方式为从左至右、从上至下依次排序。对于第i个区域,则提取坐标范围在[((i-1) mod 5)×(W/5), ((i-1) ÷ 5)×(H/5)]内的所有像素点,其中mod为取模运算符。Step 3: Area number. These 25 areas are numbered, and the numbering method is from left to right and from top to bottom. For the i-th area, extract all pixels within the coordinate range [((i-1) mod 5)×(W/5), ((i-1) ÷ 5)×(H/5)], Where mod is the modulus operator.

步骤四:图像像素点提取。对于每个区域,基于深度学习机器视觉相关方法提取该区域内的所有像素点。Step 4: Image pixel extraction. For each area, all pixels in the area are extracted based on deep learning machine vision related methods.

针对步骤四,图像像素点提取采用基于深度学习机器视觉相关算法提取棋盘格各个区域的像素点。这个过程可以被分为几个步骤:特征学习、区域识别,以及像素点提取。以下是相关概念和提取公式:For step four, the image pixel points are extracted using deep learning machine vision-related algorithms to extract pixel points in each area of the checkerboard. This process can be divided into several steps: feature learning, area recognition, and pixel extraction. The following are related concepts and extraction formulas:

特征学习:利用CNN从图像中学习特征,公式如下:Feature learning: Use CNN to learn features from images. The formula is as follows:

, ,

其中,x是输入图像,W是卷积核的权重,b是偏置项,*表示卷积操作,ReLU是激活函数;Among them, x is the input image, W is the weight of the convolution kernel, b is the bias term, * represents the convolution operation, and ReLU is the activation function;

区域识别:用于定位棋盘格的每个区域,公式如下:Area identification: used to locate each area of the checkerboard, the formula is as follows:

,

其中,F代表提议的区域,是卷积层的输出;RegionProposalNetwork表示候选区域生成网络;Among them, F represents the proposed area, is the output of the convolutional layer; RegionProposalNetwork represents the candidate region generation network;

像素点提取:对每个区域进行像素级处理,以提取区域内的像素点,公式如下,其中SegmentationNetwork表示分割网络:Pixel extraction: Perform pixel-level processing on each area to extract pixels in the area. The formula is as follows, where SegmentationNetwork represents the segmentation network:

, ,

其中,P表示提取的像素点,F是识别的区域。Among them, P represents the extracted pixels, and F is the identified area.

将上述步骤公式进行整合,则具体公式为:Integrating the above step formulas, the specific formula is:

, ,

进一步优选的,所述图像像素点位移计算模块,为了准确计算基坑位移值,我们提出了一种基于两幅图像的像素点位移计算方法:一幅是畸变校正后首次拍摄的图像,另一幅是首次拍摄后经过一段时间的图像。通过对这两幅图像进行分析,我们能够测量基坑的位移情况。可以按照以下原理和计算步骤进行操作:Further preferably, in the image pixel displacement calculation module, in order to accurately calculate the foundation pit displacement value, we propose a pixel displacement calculation method based on two images: one is the image taken for the first time after distortion correction, and the other is The images are taken some time after they were first taken. By analyzing these two images, we were able to measure the displacement of the foundation pit. It can be operated according to the following principles and calculation steps:

步骤一:像素点位移计算。对于每个像素点,我们计算其在两幅图像之间的位移,表示为(△x, △y)。△x和△y分别是该像素点在X轴和Y轴上的移动距离。Step 1: Pixel displacement calculation. For each pixel, we calculate its displacement between the two images, expressed as (△x, △y). △x and △y are the movement distance of the pixel on the X-axis and Y-axis respectively.

步骤二:区域内平均位移计算。对于棋盘格中的每个区域,我们计算该区域内所有像素点位移的平均值。这一平均值将代表该区域的整体像素点位移。Step 2: Calculate the average displacement within the area. For each region in the checkerboard, we calculate the average of the displacements of all pixels in the region. This average will represent the overall pixel displacement in the area.

对于第i个区域的平均位移,计算公式如下:For the average displacement of the i-th area, the calculation formula is as follows:

平均位移,/>,average displacement ,/> ,

其中,n是第i个区域内的像素点总数,和/>是第i个区域内每个像素点的位移。Among them, n is the total number of pixels in the i-th area, and/> is the displacement of each pixel in the i-th area.

步骤三:基于相机校准和内参矩阵,确定相机与监测目标之间的几何关系,包括距离和角度,以建立世界坐标系(实际物理空间)与图像坐标系(像素空间)之间的关系。Step 3: Based on the camera calibration and internal parameter matrix, determine the geometric relationship between the camera and the monitoring target, including distance and angle, to establish the relationship between the world coordinate system (actual physical space) and the image coordinate system (pixel space).

假设Pworld= (X,Y,Z)是世界坐标系中的一点,Pimage= (x,y)是图像坐标系中的对应像素点,转换关系可表示为:Assume that P world = (X, Y, Z) is a point in the world coordinate system, and P image = (x, y) is the corresponding pixel point in the image coordinate system. The conversion relationship can be expressed as:

Pimage= A · [ R丨t ] · Pworld P image = A · [ R丨t ] · P world

其中,A是相机的内参矩阵,R丨t 是从世界坐标系到相机坐标系的旋转和平移矩阵。Among them, A is the internal parameter matrix of the camera, and R丨t is the rotation and translation matrix from the world coordinate system to the camera coordinate system.

步骤四:基坑位移判断。使用每个区域的平均位移来代表该区域的整体位移,基于所述平均位移、世界坐标系与图像坐标系之间的关系判断基坑的整体位移情况。Step 4: Judgment of foundation pit displacement. The average displacement of each area is used to represent the overall displacement of the area, and the overall displacement of the foundation pit is judged based on the relationship between the average displacement, the world coordinate system and the image coordinate system.

进一步优选的,所述监控模块包括电脑主机终端模块和移动设备终端模块;电脑主机终端模块由有线传输设备、电脑主机及显示器子模块组成。通过有线传输设备,具体的物理位移数据和分析结果被直接传输并存储在电脑主机的磁盘中。通过连接的显示器,这些数据和分析结果能够清晰、直观地呈现给相关人员;移动设备终端模块,基于5G等高速无线传输技术,该模块允许多方人员通过移动设备随时随地查看相关数据和分析结果。这种无线连接方式增加了监控系统的灵活性,并且提高了数据访问的便捷性。Further preferably, the monitoring module includes a computer host terminal module and a mobile device terminal module; the computer host terminal module is composed of a wired transmission device, a computer host and a display sub-module. Through wired transmission equipment, specific physical displacement data and analysis results are directly transmitted and stored in the disk of the computer host. Through the connected display, these data and analysis results can be presented to relevant personnel clearly and intuitively; the mobile device terminal module is based on high-speed wireless transmission technology such as 5G. This module allows multiple parties to view relevant data and analysis results anytime and anywhere through mobile devices. This wireless connection increases the flexibility of the monitoring system and improves the convenience of data access.

进一步优选的,所述智能预警模块包括图像像素点位移阈值设定模块、超阈值预警模块和监测数据突变报错模块;图像像素点位移阈值设定模块基于预设的阈值对具体的物理位移数据进行比对和筛选。通过设定合理的位移阈值,可以有效地识别出那些可能导致结构风险的异常位移情况;超阈值预警模块基于图像像素点位移阈值设定模块的筛选结果,当监测到的位移超过设定的阈值时,此模块将触发预警提示;监测数据突变报错模块,该模块专门负责对非正常的超阈值预警数据进行报错处理,方便多方工作人员进行基坑监测与检修。Further preferably, the intelligent early warning module includes an image pixel displacement threshold setting module, a super-threshold early warning module and a monitoring data mutation error reporting module; the image pixel displacement threshold setting module performs specific physical displacement data based on a preset threshold. Compare and filter. By setting a reasonable displacement threshold, abnormal displacements that may cause structural risks can be effectively identified; the super-threshold early warning module is based on the screening results of the image pixel displacement threshold setting module. When the monitored displacement exceeds the set threshold When the alarm occurs, this module will trigger an early warning prompt; the monitoring data mutation error reporting module is specifically responsible for error reporting of abnormal over-threshold warning data, making it convenient for multiple staff to monitor and repair foundation pits.

进一步优选的,集图像采集、数据处理、监控可视化与智能检测预警于一体的高智能基坑位移情况采集设备,可以做到实时智能监测基坑内部位移情况。Further preferably, a highly intelligent foundation pit displacement acquisition equipment that integrates image acquisition, data processing, monitoring visualization and intelligent detection and early warning can achieve real-time intelligent monitoring of the internal displacement of the foundation pit.

本发明的优点是:The advantages of the present invention are:

1、本发明所提供的基于图像视觉处理的基坑位移监测系统,对系统有高度集成,能够为全体各个层级相关工作人员提供智能、便捷的监测操作,同时该数据轻量化,便于随时随地查看相关数据、了解基坑相关作业进展以及基坑内部位移情况改变。1. The foundation pit displacement monitoring system based on image visual processing provided by the present invention is highly integrated with the system and can provide intelligent and convenient monitoring operations for all relevant staff at all levels. At the same time, the data is lightweight and easy to view anytime and anywhere. Relevant data, understanding the progress of foundation pit related operations and changes in the internal displacement of the foundation pit.

2、本发明所提供的基于图像视觉处理的基坑位移监测系统,通过多点位移监测并能够做到消除高清工业相机本身因外部环境产生的位移误差。2. The foundation pit displacement monitoring system based on image vision processing provided by the present invention can eliminate the displacement error of the high-definition industrial camera itself due to the external environment through multi-point displacement monitoring.

3、本发明所提供的基于图像视觉处理的基坑位移监测系统,其所采用的相关配套设备成本低,人工成本优势高于传统技术,并且大大提高工作监测效率,综合价值更高。3. The foundation pit displacement monitoring system based on image vision processing provided by the present invention uses related supporting equipment at low cost, has a higher labor cost advantage than traditional technology, greatly improves work monitoring efficiency, and has a higher overall value.

附图说明Description of the drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be construed as limiting the invention. Also throughout the drawings, the same reference characters are used to designate the same components. In the attached picture:

图1为本发明所述的基于图像视觉处理的基坑位移监测系统的结构原理图;Figure 1 is a schematic structural diagram of the foundation pit displacement monitoring system based on image vision processing according to the present invention;

图2为本发明所述的黑白双色棋盘格标定板示意图;Figure 2 is a schematic diagram of the black and white two-color checkerboard calibration board according to the present invention;

图3为本发明所述的图像畸变校准模块流程图;Figure 3 is a flow chart of the image distortion calibration module according to the present invention;

图4为本发明所述的像素点提取模块流程图;Figure 4 is a flow chart of the pixel extraction module according to the present invention;

图5为本发明所述的像素点位移计算流程图;Figure 5 is a flow chart of pixel displacement calculation according to the present invention;

图6为本发明所述的智能预警模块流程图;Figure 6 is a flow chart of the intelligent early warning module according to the present invention;

图7为基于图像视觉处理的基坑位移监测系统工作过程示意图。Figure 7 is a schematic diagram of the working process of the foundation pit displacement monitoring system based on image vision processing.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施方式。虽然附图中显示了本公开的示例性实施方式,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施方式所限制。相反,提供这些实施方式是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a thorough understanding of the disclosure, and to fully convey the scope of the disclosure to those skilled in the art.

如图1所示,本发明所揭示的基于图像视觉处理的基坑位移监测系统,包括图像传感模块、数据处理模块、监控模块和智能预警模块,其整套系统智能化程度高、整体造价低,具有操作简易、实时监察的优点。As shown in Figure 1, the foundation pit displacement monitoring system based on image vision processing disclosed by the present invention includes an image sensing module, a data processing module, a monitoring module and an intelligent early warning module. The entire system has a high degree of intelligence and low overall cost. , with the advantages of simple operation and real-time monitoring.

本发明提供了一种基于图像视觉处理的基坑位移监测系统,该系统由图像传感模块、数据处理模块、监控模块及智能预警模块组成,旨在实现对基坑位移的高精度、实时监测。The invention provides a foundation pit displacement monitoring system based on image visual processing. The system is composed of an image sensing module, a data processing module, a monitoring module and an intelligent early warning module, and is designed to achieve high-precision and real-time monitoring of foundation pit displacement. .

图像传感模块:本模块利用LED光源对目标基坑内部表面进行照明,并配备工业相机以采集基坑内部对应棋盘格标定板的图像。所采集的图片信息通过有线或无线方式传输至数据处理模块,确保了图像信息的清晰度和准确性。Image sensing module: This module uses LED light sources to illuminate the internal surface of the target foundation pit, and is equipped with an industrial camera to collect images of the corresponding checkerboard calibration plate inside the foundation pit. The collected picture information is transmitted to the data processing module through wired or wireless means, ensuring the clarity and accuracy of the image information.

数据处理模块:此模块采用基于机器视觉算法,包括图像畸变校准、图片像素点提取、像素点区域划分以及基于时间变化的像素点区域平均位移计算。这些技术的应用使得能够从拍摄的图片中计算出基坑区域的平均位移数值。此外,数据处理模块具有数据轻量化的特点,能够快速实时进行监测数据的上传。Data processing module: This module uses machine vision-based algorithms, including image distortion calibration, image pixel extraction, pixel area division, and calculation of the average displacement of the pixel area based on time changes. The application of these techniques makes it possible to calculate the average displacement value of the pit area from the pictures taken. In addition, the data processing module has the characteristics of lightweight data and can quickly upload monitoring data in real time.

监控模块:该模块包括电脑主机终端和移动设备终端,使作业人员能够通过电脑主机终端进行可视化数据结果的分析和查看。同时,基于5G无线传输技术,作业人员也可通过移动设备终端进行实时数据的查看,增加了监测系统的灵活性和便捷性。Monitoring module: This module includes a computer host terminal and a mobile device terminal, allowing operators to analyze and view visual data results through the computer host terminal. At the same time, based on 5G wireless transmission technology, operators can also view real-time data through mobile device terminals, increasing the flexibility and convenience of the monitoring system.

智能预警模块:基于设定的像素点位移阈值范围,智能预警模块对数据处理模块所得的像素点平均位移数值进行监测。一旦监测数据超过阈值,将触发预警模块,如果监测到数据异常,也会触发报错模块。阈值根据具体基坑具体要求而定。智能预警模块在监控模块内设有嵌入式可视化窗口,为作业人员提供即时的安全预警。Intelligent early warning module: Based on the set pixel displacement threshold range, the intelligent early warning module monitors the average pixel displacement value obtained by the data processing module. Once the monitoring data exceeds the threshold, the early warning module will be triggered. If abnormal data is detected, the error reporting module will also be triggered. The threshold value is determined according to the specific requirements of the specific foundation pit. The intelligent early warning module has an embedded visual window in the monitoring module to provide workers with immediate safety warnings.

具体的,本发明所述的基于图像视觉的基坑位移监测系统的方法包括以下内容。图7为基于图像视觉处理的基坑位移监测系统工作过程示意图。Specifically, the method of the foundation pit displacement monitoring system based on image vision according to the present invention includes the following contents. Figure 7 is a schematic diagram of the working process of the foundation pit displacement monitoring system based on image vision processing.

1、基于图像视觉处理的基坑位移监测系统,所述数据处理模块包括图像畸变校准模块、图像像素点智能划分提取及图像像素点位移计算模块。1. Foundation pit displacement monitoring system based on image vision processing. The data processing module includes an image distortion calibration module, an intelligent division and extraction of image pixels, and an image pixel displacement calculation module.

2、所述图像畸变校准模块,目的在于纠正拍摄到的基坑表面图像的畸变问题,该模块基于LED照明灯布点位置,结合张正友棋盘格标定法来对图像进行畸变校准,工业相机基于自身参数进行校准。2. The image distortion calibration module aims to correct the distortion problem of the captured foundation pit surface image. This module is based on the position of LED lighting points and combined with Zhang Zhengyou's checkerboard calibration method to perform distortion calibration on the image. The industrial camera is based on its own parameters. Perform calibration.

3、针对基坑场景的特殊需求,基于张正友棋盘格标定法的要求,采用高对比度的黑白双色棋盘格标定板,以确保其在工业相机捕捉过程中的清晰度和识别率。为此,我们选定了一个5×5的棋盘格布局,该布局旨在最大程度地提高图像捕捉的精确性。3. In view of the special needs of the foundation pit scene, based on the requirements of Zhang Zhengyou's checkerboard calibration method, a high-contrast black and white two-color checkerboard calibration plate is used to ensure its clarity and recognition rate during the industrial camera capture process. To do this, we settled on a 5×5 checkerboard layout designed to maximize image capture accuracy.

4、基于棋盘格布局设计LED照明灯布点方案。共设置9个LED照明灯,以确保标定板能够被充分且均匀地照亮。通过这种方式,考虑了照明的均匀性和有效性,还充分考虑了基坑环境的特殊性,保证图像捕捉质量的同时,还保持了系统的经济性和实用性。其中黑白双色棋盘格及LED照明灯布点方案如图2黑白双色棋盘格标定板示意图所示。4. Design the LED lighting layout plan based on the checkerboard layout. A total of 9 LED lighting lights are set up to ensure that the calibration plate can be fully and evenly illuminated. In this way, the uniformity and effectiveness of the lighting are taken into consideration, and the particularity of the foundation pit environment is also fully considered, ensuring the quality of image capture while maintaining the economy and practicality of the system. The black and white two-color checkerboard and LED lighting layout scheme is shown in Figure 2, the schematic diagram of the black and white two-color checkerboard calibration board.

5、具体针对图像畸变校准的相关实现过程和计算过程如下:5. The specific implementation and calculation processes for image distortion calibration are as follows:

步骤一:使用工业相机,用于从固定角度捕捉带有LED照明灯的黑白双色棋盘格标定板图像,这种方法的关键在于图像处理阶段的特征点识别和追踪。特别地,重点关注带有LED照明灯的棋盘格角点。LED照明灯提供了清晰的视觉标记环境,极大地促进了特征点的精确识别,从而提高识别标记点准确性。Step 1: Use an industrial camera to capture a black and white two-color checkerboard calibration plate image with LED lighting from a fixed angle. The key to this method lies in the identification and tracking of feature points in the image processing stage. In particular, focus on the checkerboard corner points with LED lighting. LED lighting provides a clear visual marking environment, which greatly facilitates the accurate identification of feature points, thereby improving the accuracy of identifying marked points.

步骤二:捕获到LED照明灯的特征点坐标,将其代入用于计算工业相机的畸变参数。这些参数随后被用于对图像进行校准,以矫正可能存在的任何畸变。为了验证校准的效果,我们基于校准结果选取其他特征点进行进一步的确认。Step 2: Capture the characteristic point coordinates of the LED lighting and substitute them into the distortion parameters of the industrial camera. These parameters are then used to calibrate the image to correct any distortion that may be present. In order to verify the effect of calibration, we select other feature points based on the calibration results for further confirmation.

图像畸变校正步骤有:Image distortion correction steps are:

步骤1:识别带有LED照明灯的棋盘格角点坐标:LED照明灯提供更为明显的视觉标记,有助于更准确识别特征点;Step 1: Identify the corner point coordinates of the checkerboard with LED lighting: LED lighting provides more obvious visual markers, helping to identify feature points more accurately;

步骤2:计算工业相机畸变参数:使用识别出的LED照明灯特征点坐标来计算工业相机的参数,包括内参矩阵和畸变系数。Step 2: Calculate the distortion parameters of the industrial camera: Use the identified coordinates of the LED lighting feature points to calculate the parameters of the industrial camera, including the internal parameter matrix and distortion coefficient.

步骤3:基于计算的相关参数对所拍摄的棋盘格图像像素点进行畸变校正。应用计算所得的内参矩阵和畸变参数对图像像素点进行精确的畸变校正。Step 3: Perform distortion correction on the pixels of the captured checkerboard image based on the calculated relevant parameters. The calculated internal parameter matrix and distortion parameters are used to accurately correct the distortion of the image pixels.

针对步骤1,基于已知正常情况下LED照明灯所在标记点坐标,需要确定LED照明灯在拍摄图像中的标记点坐标,即假设I(x,y)表示图像在点(x,y)的亮度值,阈值设定为T。对于每个检测到的角点(xi,yi),进行下述计算:For step 1, based on the known coordinates of the marker point where the LED lighting is located under normal circumstances, it is necessary to determine the coordinates of the marker point of the LED lighting in the captured image, that is, assuming that I(x,y) represents the image at point (x,y) Brightness value, the threshold is set to T. For each detected corner point (x i ,y i ), the following calculation is performed:

计算角点的亮度:,其中,N是角点(xi,yi)的领域内的像素数量;Calculate the brightness of a corner point: , where N is the number of pixels in the area of the corner point (x i , y i );

如果L > T,则(xi,yi)是LED照明灯的坐标;If L > T, then (x i ,y i ) are the coordinates of the LED lighting lamp;

注:阈值T需要根据具体环境的光照条件进行调整。Note: The threshold T needs to be adjusted according to the lighting conditions of the specific environment.

针对步骤2,确定LED照明灯在拍摄图像中的标记点坐标后,利用工业相机捕捉到的棋盘格图像来建立物理坐标系和图像坐标系之间的对应关系。首先,通过对棋盘格图像的分析,确定物理空间中每个点的位置以及它们在图像中的对应位置。基于这种坐标关系,能够计算出工业相机的畸变系数。畸变系数是对工业相机镜头固有畸变的量化表示,包括径向畸变和切向畸变等。利用计算得出的畸变系数,我们对捕捉到的图像进行畸变校正。For step 2, after determining the coordinates of the marker points of the LED lighting lamp in the captured image, use the checkerboard image captured by the industrial camera to establish the correspondence between the physical coordinate system and the image coordinate system. First, by analyzing the checkerboard image, the position of each point in the physical space and their corresponding position in the image are determined. Based on this coordinate relationship, the distortion coefficient of the industrial camera can be calculated. The distortion coefficient is a quantitative expression of the inherent distortion of the industrial camera lens, including radial distortion and tangential distortion. Using the calculated distortion coefficients, we perform distortion correction on the captured images.

其中,相机内参矩阵A:Among them, the camera internal parameter matrix A:

其中,fx,fy是焦距,cx,cy是图像的中心坐标;畸变系数:径向畸变系数k1,k2,……和切向畸变系数p1,p2Among them, f x and f y are the focal length, c x and c y are the center coordinates of the image; distortion coefficients: radial distortion coefficients k 1 , k 2 ,...and tangential distortion coefficients p 1 , p 2 .

对于畸变系数,通常选用优化算法在相机标定过程中计算获得,本发明中采用最小二乘法获取相机畸变系数,计算公式如下:For the distortion coefficient, an optimization algorithm is usually used to calculate it during the camera calibration process. In the present invention, the least squares method is used to obtain the camera distortion coefficient. The calculation formula is as follows:

, ,

xij是第i个图像中第j个角点的图像坐标;n表示图像数量,m表示角点数量;x ij is the image coordinate of the j-th corner point in the i-th image; n represents the number of images, and m represents the number of corner points;

Xij是对应的物理坐标;X ij is the corresponding physical coordinate;

A是相机的内参矩阵;A is the internal parameter matrix of the camera;

k1,k2是径向畸变系数,p1,p2是切向畸变系数;k 1 , k 2 are radial distortion coefficients, p 1 , p 2 are tangential distortion coefficients;

R,t相机的旋转和平移矩阵。R,t the rotation and translation matrices of the camera.

基于畸变系数的棋盘格图像校正,对于图像中的每个像素点(x,y):Checkerboard image correction based on distortion coefficient, for each pixel (x, y) in the image:

步骤1:径向畸变校正Step 1: Radial Distortion Correction

xRD= x(1 + k1r2+ k2r4+ …) xRD = x(1 + k 1 r 2 + k 2 r 4 + …)

yRD= y(1 + k1r2+ k2r4+ …)y RD = y(1 + k 1 r 2 + k 2 r 4 + …)

其中,r2= x2+ y2 ,x,y是畸变前图像像素坐标;xRD,yRD是径向畸变校准后图像像素坐标;其中RD是径向畸变(Radial Distortion)的缩写。Among them, r 2 = x 2 + y 2 , x, y are the image pixel coordinates before distortion; x RD , y RD are the image pixel coordinates after radial distortion calibration; where RD is the abbreviation of Radial Distortion.

步骤2:切向畸变校正Step 2: Tangential distortion correction

xTD= xRD+ [2p1yRD+ p2(r2+ 2 x2 RD)]x TD = x RD + [2p 1 y RD + p 2 (r 2 + 2 x 2 RD )]

yTD= yRD+ [2p2xRD+ p1(r2+ 2 y2 RD)]y TD = y RD + [2p 2 x RD + p 1 (r 2 + 2 y 2 RD )]

其中,xTD,yTD是径向畸变校准后图像像素坐标;其中TD是切向畸变(TangentialDistortion)的缩写。Among them, x TD and y TD are the image pixel coordinates after radial distortion calibration; where TD is the abbreviation of tangential distortion (TangentialDistortion).

具体流程如图3图像畸变模块流程图所示。The specific process is shown in Figure 3. Image distortion module flow chart.

6、所述图像像素点智能划分提取模块,可以按照以下原理和计算步骤进行操作:6. The image pixel intelligent division and extraction module can operate according to the following principles and calculation steps:

像素点智能划分提取:Intelligent division and extraction of pixels:

步骤一:区域划分。将校准后的棋盘格图像依旧按照之前的黑白双色进行区域划分,共划分为25个区域,每个区域将代表棋盘格的一个小格子。Step 1: Regional division. The calibrated checkerboard image is still divided into areas according to the previous black and white colors, and is divided into a total of 25 areas. Each area will represent a small grid of the checkerboard.

步骤二:区域大小计算。假设图像的像素分辨率为 W×H(宽度×高度),则每个区域的像素大小计算为 (W/5)×(H/5)。Step 2: Calculate area size. Assuming that the pixel resolution of the image is W×H (width×height), the pixel size of each region is calculated as (W/5)×(H/5).

步骤三:区域编号。对这25个区域进行编号,编号方式为从左至右、从上至下依次排序。对于第i个区域,则提取坐标范围在[((i-1) mod 5)×(W/5), ((i-1) ÷ 5)×(H/5)]内的所有像素点,其中mod为取模运算符。Step 3: Area number. These 25 areas are numbered, and the numbering method is from left to right and from top to bottom. For the i-th area, extract all pixels within the coordinate range [((i-1) mod 5)×(W/5), ((i-1) ÷ 5)×(H/5)], Where mod is the modulus operator.

步骤四:图像像素点提取。对于每个区域,基于深度学习机器视觉相关方法提取该区域内的所有像素点。Step 4: Image pixel extraction. For each area, all pixels in the area are extracted based on deep learning machine vision related methods.

针对步骤四,图像像素点提取采用基于深度学习机器视觉相关方法提取棋盘格各个区域的像素点。这个过程可以被分为几个步骤:特征学习、区域识别,以及像素点提取。以下是相关概念和提取公式:For step four, image pixel extraction uses machine vision-related methods based on deep learning to extract pixels in each area of the checkerboard. This process can be divided into several steps: feature learning, area recognition, and pixel extraction. The following are related concepts and extraction formulas:

特征学习:利用CNN从图像中学习特征,公式如下:Feature learning: Use CNN to learn features from images. The formula is as follows:

, ,

其中,x是输入图像,W是卷积核的权重,b是偏置项,*表示卷积操作,ReLU是激活函数;Among them, x is the input image, W is the weight of the convolution kernel, b is the bias term, * represents the convolution operation, and ReLU is the activation function;

区域识别:用于定位棋盘格的每个区域,公式如下:Area identification: used to locate each area of the checkerboard, the formula is as follows:

, ,

其中,F代表提议的区域,是卷积层的输出;RegionProposalNetwork表示候选区域生成网络;Among them, F represents the proposed area, is the output of the convolutional layer; RegionProposalNetwork represents the candidate region generation network;

像素点提取:对每个区域进行像素级处理,以提取区域内的像素点,公式如下,其中SegmentationNetwork表示分割网络:Pixel extraction: Perform pixel-level processing on each area to extract pixels in the area. The formula is as follows, where SegmentationNetwork represents the segmentation network:

, ,

其中,P表示提取的像素点,F是识别的区域。Among them, P represents the extracted pixels, and F is the identified area.

将上述步骤公式进行整合,则具体公式为:Integrating the above step formulas, the specific formula is:

, ,

具体流程如图4像素点提取模块流程图所示。The specific process is shown in Figure 4, the pixel extraction module flow chart.

7、所述图像像素点位移计算模块,为了准确计算基坑位移值,我们提出了一种基于两幅图像的像素点位移计算方法:一幅是畸变校正后首次拍摄的图像,另一幅是首次拍摄后经过一段时间的图像。通过对这两幅图像进行分析,我们能够测量基坑的位移情况。可以按照以下原理和计算步骤进行操作:7. In the image pixel displacement calculation module, in order to accurately calculate the foundation pit displacement value, we propose a pixel displacement calculation method based on two images: one is the image taken for the first time after distortion correction, and the other is An image taken some time after it was first taken. By analyzing these two images, we were able to measure the displacement of the foundation pit. It can be operated according to the following principles and calculation steps:

步骤一:像素点位移计算。对于每个像素点,我们计算其在两幅图像之间的位移,表示为(△x, △y)。△x和△y分别是该像素点在X轴和Y轴上的移动距离。Step 1: Pixel displacement calculation. For each pixel, we calculate its displacement between the two images, expressed as (△x, △y). △x and △y are the movement distance of the pixel on the X-axis and Y-axis respectively.

步骤二:区域内平均位移计算。对于棋盘格中的每个区域,我们计算该区域内所有像素点位移的平均值。这一平均值将代表该区域的整体像素点位移。Step 2: Calculate the average displacement within the area. For each region in the checkerboard, we calculate the average of the displacements of all pixels in the region. This average will represent the overall pixel displacement in the area.

对于第i个区域的平均位移,计算公式如下:For the average displacement of the i-th area, the calculation formula is as follows:

平均位移,/>,average displacement ,/> ,

其中,n是第i个区域内的像素点总数,和/>是第i个区域内每个像素点的位移。Among them, n is the total number of pixels in the i-th area, and/> is the displacement of each pixel in the i-th area.

步骤三:基于相机校准和内参矩阵,确定相机与监测目标之间的几何关系,包括距离和角度,以建立世界坐标系(实际物理空间)与图像坐标系(像素空间)之间的关系。Step 3: Based on the camera calibration and internal parameter matrix, determine the geometric relationship between the camera and the monitoring target, including distance and angle, to establish the relationship between the world coordinate system (actual physical space) and the image coordinate system (pixel space).

假设Pworld= (X,Y,Z)是世界坐标系中的一点,Pimage= (x,y)是图像坐标系中的对应像素点,转换关系可表示为:Assume that P world = (X, Y, Z) is a point in the world coordinate system, and P image = (x, y) is the corresponding pixel point in the image coordinate system. The conversion relationship can be expressed as:

Pimage= A · [ R丨t ] · Pworld P image = A · [ R丨t ] · P world

其中,A是相机的内参矩阵,R丨t 是从世界坐标系到相机坐标系的旋转和平移矩阵。Among them, A is the internal parameter matrix of the camera, and R丨t is the rotation and translation matrix from the world coordinate system to the camera coordinate system.

步骤四:基坑位移判断。使用每个区域的平均位移来代表该区域的整体位移,基于所述平均位移、世界坐标系与图像坐标系之间的关系判断基坑的整体位移情况。Step 4: Judgment of foundation pit displacement. The average displacement of each area is used to represent the overall displacement of the area, and the overall displacement of the foundation pit is judged based on the relationship between the average displacement, the world coordinate system and the image coordinate system.

具体流程如图5像素点位移计算流程图所示。The specific process is shown in Figure 5, the pixel displacement calculation flow chart.

8、所述监控模块包括电脑主机终端模块和移动设备终端模块;电脑主机终端模块由有线传输设备、电脑主机及显示器子模块组成。通过有线传输设备,具体的物理位移数据和分析结果被直接传输并存储在电脑主机的磁盘中。通过连接的显示器,这些数据和分析结果能够清晰、直观地呈现给相关人员;移动设备终端模块,基于5G等高速无线传输技术,该模块允许多方人员通过移动设备随时随地查看相关数据和分析结果。这种无线连接方式增加了监控系统的灵活性,并且提高了数据访问的便捷性。8. The monitoring module includes a computer host terminal module and a mobile device terminal module; the computer host terminal module is composed of a wired transmission device, a computer host and a display sub-module. Through wired transmission equipment, specific physical displacement data and analysis results are directly transmitted and stored in the disk of the computer host. Through the connected display, these data and analysis results can be presented to relevant personnel clearly and intuitively; the mobile device terminal module is based on high-speed wireless transmission technology such as 5G. This module allows multiple parties to view relevant data and analysis results anytime and anywhere through mobile devices. This wireless connection increases the flexibility of the monitoring system and improves the convenience of data access.

9、所述智能预警模块包括图像像素点位移阈值设定模块、超阈值预警模块和监测数据突变报错模块;图像像素点位移阈值设定模块基于预设的阈值对具体的物理位移数据进行比对和筛选。通过设定合理的位移阈值,可以有效地识别出那些可能导致结构风险的异常位移情况;超阈值预警模块基于图像像素点位移阈值设定模块的筛选结果,当监测到的位移超过设定的阈值时,此模块将触发预警提示;监测数据突变报错模块,该模块专门负责对非正常的超阈值预警数据进行报错处理,方便多方工作人员进行基坑监测与检修。智能预警模块的工作流程如图6所示。9. The intelligent early warning module includes an image pixel displacement threshold setting module, a super-threshold early warning module and a monitoring data mutation error reporting module; the image pixel displacement threshold setting module compares specific physical displacement data based on preset thresholds. and screening. By setting a reasonable displacement threshold, abnormal displacements that may cause structural risks can be effectively identified; the super-threshold early warning module is based on the screening results of the image pixel displacement threshold setting module. When the monitored displacement exceeds the set threshold When the alarm occurs, this module will trigger an early warning prompt; the monitoring data mutation error reporting module is specifically responsible for error reporting of abnormal over-threshold warning data, making it convenient for multiple staff to monitor and repair foundation pits. The workflow of the intelligent early warning module is shown in Figure 6.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only preferred specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of changes or modifications within the technical scope disclosed in the present invention. All substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (10)

1. The utility model provides a foundation ditch displacement monitoring system based on image vision processing which characterized in that: the intelligent early warning system comprises an image sensing module, a data processing module, a monitoring module and an intelligent early warning module;
in the image sensing module, an LED illuminating lamp is used for illuminating the inner surface of a target foundation pit and a black-white double-color checkerboard calibration plate for target identification, and an industrial camera is used for capturing the image of the checkerboard calibration plate placed in the foundation pit and transmitting the inner image to a data processing module;
the data processing module comprises an image distortion calibration module, an image pixel point intelligent dividing and extracting module and an image pixel point displacement calculation module; and the image distortion calibration module performs distortion calibration on the checkerboard calibration plate image in the foundation pit, the image after the distortion calibration is processed through a machine vision algorithm based on deep learning, and the foundation pit displacement is obtained through pixel point extraction, region division and pixel point region average displacement calculation based on time variation.
2. The foundation pit displacement monitoring system of claim 1, wherein: the image distortion calibration module performs distortion calibration on the image based on the LED illuminating lamp point distribution position and by combining a Zhang Zhengyou checkerboard calibration method.
3. The foundation pit displacement monitoring system of claim 1 or 2, wherein: the distortion calibration process of the image is as follows:
step 1: identifying the angular point coordinates of the checkerboard with the LED illuminating lamp:
step 2: calculating distortion parameters of the industrial camera: calculating parameters of the industrial camera, including an internal reference matrix and distortion coefficients, by using the identified LED illuminating lamp characteristic point coordinates;
step 3: and carrying out distortion correction on the photographed checkerboard image pixel points based on the internal reference matrix and the distortion coefficient.
4. A pit displacement monitoring system according to claim 3, wherein:
the step 1 comprises the following steps:
assuming that I (x, y) represents the luminance value of the image at point (x, y), for each detected corner point (x i ,y i ) The following calculations were performed:
calculating the brightness of the corner points:wherein N is the corner point (x i ,y i ) The number of pixels in the field;
if L > T, then (x i ,y i ) The coordinate of the LED illuminating lamp is T which is a preset threshold value.
5. The foundation pit displacement monitoring system of claim 4, wherein:
the steps 2 and 3 comprise:
after the coordinates of the mark points of the LED illuminating lamp in the shot image are determined, a corresponding relation between a physical coordinate system and an image coordinate system is established by utilizing a checkerboard image captured by an industrial camera; determining the position of each point in a physical space and the corresponding position of each point in the image through analysis of the checkerboard image, and calculating the distortion coefficient of the industrial camera based on the corresponding relation between coordinate systems;
wherein, camera internal reference matrix A:
,
wherein f x ,f y Is focal length, c x ,c y Is the center coordinates of the image;
the distortion coefficients include: coefficient of radial distortion k 1 ,k 2 … … and tangential distortion coefficient p 1 ,p 2
The camera distortion coefficient is obtained by adopting a least square method, and the calculation formula is as follows:
,
x ij is the image coordinate of the jth corner in the ith image; n represents the number of images and m represents the number of corner points;
X ij is the corresponding physical coordinates;
a is an internal reference matrix of the camera;
k 1 ,k 2 is the radial distortion coefficient, p 1 ,p 2 Is the tangential distortion coefficient;
r, t is the rotation and translation matrix of the camera;
checkerboard image correction based on distortion coefficients, for each pixel point (x, y) in the image:
step 1: radial distortion correction
x RD = x(1 + k 1 r 2 + k 2 r 4 + …)
y RD = y(1 + k 1 r 2 + k 2 r 4 + …)
Wherein r is 2 = x 2 + y 2 X, y are the pre-distortion image pixel coordinates; x is x RD ,y RD The radial distortion is calibrated image pixel coordinates; where RD is an abbreviation for radial distortion (Radial Distortion);
step 2: tangential distortion correction
x TD = x RD + [2p 1 y RD + p 2 (r 2 + 2 x 2 RD )]
y TD = y RD + [2p 2 x RD + p 1 (r 2 + 2 y 2 RD )]
Wherein x is TD ,y TD The radial distortion is calibrated image pixel coordinates; wherein TD is an abbreviation for tangential distortion (Tangential Distortion);
in performing image distortion correction, the pixel coordinates are typically first adjusted according to the radial distortion coefficients and then further adjusted according to the tangential distortion coefficients, which are typically performed on the basis of having considered the radial distortion correction.
6. The foundation pit displacement monitoring system of claim 1, wherein: the intelligent dividing and extracting module for the image pixel points operates according to the following steps:
step one: dividing the area: dividing the calibrated checkerboard image into 25 areas according to the previous black-white double colors, wherein each area represents a small checkerboard;
step two: area size calculation: assuming that the pixel resolution of the image is w×h, i.e., width×height, the pixel size of each region is calculated as (W/5) × (H/5);
step three: region number: numbering 25 areas, wherein the numbering mode is that the areas are orderly ordered from left to right and from top to bottom; extracting all pixel points with the coordinate range of [ ((i-1) mod 5) x (W/5) ((i-1) 5) x (H/5) ] for the i-th region, wherein mod is a modulo operator;
step four: extracting image pixel points: for each region, all pixels within the region are extracted based on a deep learning machine vision method.
7. The foundation pit displacement monitoring system of claim 6, wherein:
the deep learning machine vision algorithm comprises the following steps: feature learning, region identification, and pixel point extraction, wherein:
and (3) feature learning: the CNN is used to learn the features from the image, and the formula is as follows:
,
where x is the input image, W is the weight of the convolution kernel, b is the bias term, x represents the convolution operation, and ReLU is the activation function;
and (3) area identification: for locating each region of the checkerboard, the formula is as follows:
,
wherein F represents the proposed area,is the output of the convolutional layer; region proposalnetwork represents a candidate region generation network;
pixel point extraction: and carrying out pixel level processing on each region to extract pixel points in the region, wherein the formula is as follows, and the segmentation network is represented by the following formula:
,
wherein P represents the extracted pixel point, and F is the identified region;
integrating the above step formulas, the specific formulas are as follows:
8. the foundation pit displacement monitoring system of claim 1, wherein: the image pixel point displacement calculation module uses a pixel point displacement calculation method based on two images based on the image pixel point coordinates after distortion calibration, wherein one image is the first shot image after distortion correction, and the other image is the image after a period of time after the first shot, and the image pixel point displacement calculation module operates according to the following steps:
step one: calculating pixel displacement: for each pixel, calculating the displacement of the pixel between the two images, denoted as (Deltax, deltay), deltax and Deltay being the movement distance of the pixel on the X-axis and the Y-axis respectively;
step two: calculating average displacement in the region: for each region in the checkerboard, calculating the average value of all pixel point displacements in the region, wherein the average value represents the whole pixel point displacement of the region;
for the average displacement of the i-th region, the calculation formula is as follows:
average displacement,/>,
Where n is the total number of pixels in the ith region,and->Is the displacement of each pixel point in the ith area;
step three: based on camera calibration and an internal reference matrix, determining a geometric relationship between a camera and a monitored target, including a distance and an angle, to establish a relationship between a world coordinate system and an image coordinate system;
step four: and (3) foundation pit displacement judgment: and judging the overall displacement condition of the foundation pit based on the relation among the average displacement, the world coordinate system and the image coordinate system.
9. The foundation pit displacement monitoring system of claim 1, wherein: the monitoring module comprises a computer host terminal module and a mobile equipment terminal module; the computer host terminal module consists of wired transmission equipment, a computer host and a display submodule.
10. The foundation pit displacement monitoring system of claim 1, wherein: the intelligent early warning module comprises an image pixel position displacement threshold setting module, a super threshold early warning module and a monitoring data mutation error reporting module; the image pixel displacement threshold setting module compares and screens the physical displacement data based on a preset threshold to identify abnormal displacement conditions causing structural risks; the super-threshold early warning module triggers early warning prompt when the monitored displacement exceeds a set threshold value based on the screening result of the image pixel displacement threshold value setting module; and the monitoring data mutation error reporting module is used for reporting the abnormal super-threshold early warning data.
CN202410005871.6A 2024-01-03 2024-01-03 Foundation pit displacement monitoring system based on image vision processing Pending CN117490579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410005871.6A CN117490579A (en) 2024-01-03 2024-01-03 Foundation pit displacement monitoring system based on image vision processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410005871.6A CN117490579A (en) 2024-01-03 2024-01-03 Foundation pit displacement monitoring system based on image vision processing

Publications (1)

Publication Number Publication Date
CN117490579A true CN117490579A (en) 2024-02-02

Family

ID=89683447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410005871.6A Pending CN117490579A (en) 2024-01-03 2024-01-03 Foundation pit displacement monitoring system based on image vision processing

Country Status (1)

Country Link
CN (1) CN117490579A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016176800A (en) * 2015-03-19 2016-10-06 株式会社安藤・間 Displacement or strain calculation program and displacement or strain measurement method
CN113240747A (en) * 2021-04-21 2021-08-10 浙江大学 Outdoor structure vibration displacement automatic monitoring method based on computer vision
CN115511878A (en) * 2022-11-04 2022-12-23 中南大学 Method, device, medium and equipment for monitoring surface displacement of slope
KR20220170122A (en) * 2021-06-22 2022-12-29 인천대학교 산학협력단 System for monitoring of structural and method ithereof
US11619556B1 (en) * 2021-11-26 2023-04-04 Shenzhen University Construction monitoring method and system for v-shaped column in underground foundation pit, terminal and storage medium
CN116678337A (en) * 2023-06-08 2023-09-01 交通运输部公路科学研究所 Monitoring and early warning system and method for the height difference at the front and rear fulcrums of the main girder of the bridge erecting machine and the deformation of the main girder based on image recognition
CN117190875A (en) * 2023-09-08 2023-12-08 重庆交通大学 A bridge tower displacement measurement device and method based on computer intelligent vision

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016176800A (en) * 2015-03-19 2016-10-06 株式会社安藤・間 Displacement or strain calculation program and displacement or strain measurement method
CN113240747A (en) * 2021-04-21 2021-08-10 浙江大学 Outdoor structure vibration displacement automatic monitoring method based on computer vision
KR20220170122A (en) * 2021-06-22 2022-12-29 인천대학교 산학협력단 System for monitoring of structural and method ithereof
US11619556B1 (en) * 2021-11-26 2023-04-04 Shenzhen University Construction monitoring method and system for v-shaped column in underground foundation pit, terminal and storage medium
CN115511878A (en) * 2022-11-04 2022-12-23 中南大学 Method, device, medium and equipment for monitoring surface displacement of slope
CN116678337A (en) * 2023-06-08 2023-09-01 交通运输部公路科学研究所 Monitoring and early warning system and method for the height difference at the front and rear fulcrums of the main girder of the bridge erecting machine and the deformation of the main girder based on image recognition
CN117190875A (en) * 2023-09-08 2023-12-08 重庆交通大学 A bridge tower displacement measurement device and method based on computer intelligent vision

Similar Documents

Publication Publication Date Title
CN110142785A (en) A kind of crusing robot visual servo method based on target detection
CN102673106B (en) Silk screen print positioning equipment and method for photovoltaic solar silicon chip
CN110529186A (en) Tunnel structure percolating water based on infrared thermal imaging accurately identifies device and method
CN111604916B (en) Machine room IT equipment fault cabinet U-position positioning system and method
CN110850723A (en) Fault diagnosis and positioning method based on transformer substation inspection robot system
CN107229930A (en) A kind of pointer instrument numerical value intelligent identification Method and device
CN101819024B (en) Machine vision-based two-dimensional displacement detection method
CN110646434A (en) Device and method for automatic real-time monitoring of dam damage and deformation by video
CN111986267B (en) Coordinate system calibration method of multi-camera vision system
CN109949231B (en) Method and device for collecting and processing city management information
CN117333675B (en) Monitoring and early warning method and system for GIS expansion joint
CN107749055A (en) A kind of fault detection method, system and the device of LED traffic guidances screen
CN112595236A (en) Measuring device for underwater laser three-dimensional scanning and real-time distance measurement
CN107509055A (en) A kind of rotary panorama focus identification optronic tracker and its implementation
CN113240747A (en) Outdoor structure vibration displacement automatic monitoring method based on computer vision
CN115187612A (en) Plane area measuring method, device and system based on machine vision
CN110991360A (en) Robot inspection point location intelligent configuration method based on visual algorithm
CN101776437A (en) Calibration technology for vision sub-pixel of embedded type machine with optical path adjustment
CN117704970A (en) Building visual displacement monitoring system and monitoring method thereof
CN117968537A (en) Wireless intelligent laser displacement sensor system, application and monitoring method
CN108896552A (en) Disease automatic checkout system in bridge chamber
CN115100309B (en) Pedestrian heat map generation method and system
CN114581760B (en) Equipment fault detection method and system for machine room inspection
CN117490579A (en) Foundation pit displacement monitoring system based on image vision processing
CN102779341B (en) Novel method for identifying support position in pit construction process

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