[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2020093436A1 - Three-dimensional reconstruction method for inner wall of pipe - Google Patents

Three-dimensional reconstruction method for inner wall of pipe Download PDF

Info

Publication number
WO2020093436A1
WO2020093436A1 PCT/CN2018/115851 CN2018115851W WO2020093436A1 WO 2020093436 A1 WO2020093436 A1 WO 2020093436A1 CN 2018115851 W CN2018115851 W CN 2018115851W WO 2020093436 A1 WO2020093436 A1 WO 2020093436A1
Authority
WO
WIPO (PCT)
Prior art keywords
coordinates
image
wall
laser
coordinate system
Prior art date
Application number
PCT/CN2018/115851
Other languages
French (fr)
Chinese (zh)
Inventor
宋展
Original Assignee
深圳先进技术研究院
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 深圳先进技术研究院 filed Critical 深圳先进技术研究院
Publication of WO2020093436A1 publication Critical patent/WO2020093436A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • G06T7/85Stereo camera calibration

Definitions

  • the invention belongs to the field of computer vision technology, and in particular, relates to a three-dimensional reconstruction method of an inner wall of a pipeline.
  • pipelines are widely used in power transmission, urban sewage, petrochemical and other fields.
  • the effect of pipelines on our lives is as important as arteries to the human body.
  • pipeline problems with various forms and a variety of types will continue to appear with the increase of pipeline use time, such as accidental damage of pipelines, aging of materials, chemical corrosion of pipeline walls, cracks and intrusion of debris, etc. If these cannot be found and resolved Problems will bury hidden dangers. In order to improve the service life of the pipeline and ensure safety, regular inspection and maintenance of the pipeline is imperative.
  • the Chinese patent application number is CN201210012237.2, which is a patent for an optical-based pipeline rapid detection method.
  • the detection method disclosed in this patent mainly includes the following steps: pretreatment of the surface of the pipeline under test; and placement of marks on and around the pipeline surface Point; place a ruler; take a sequence of photos of global marker points; calculate the coordinates of the marker points in the photo group; collect and align the local dense point cloud on the surface of the measured pipeline; pre-process and model the dense point cloud; integrate the pipeline measurement model with the pipeline CAD design model The coordinate system is aligned, and the coordinate conversion of the pipeline measurement model is performed; the deviation of the pipeline measurement model and the pipeline CAD design model is compared.
  • This method has fast detection speed and high precision, and will not cause damage to the pipe surface. It mainly adopts the traditional three-dimensional scanning method to carry out accurate three-dimensional scanning on the pipeline, which is not suitable for three-dimensional scanning under the condition of robot movement, and the huge amount of data and short working distance are not suitable for the 3D scanning of underground pipelines.
  • the Chinese patent application number is CN201210365683.1, which is a patent for a three-dimensional reconstruction method of pipeline structure.
  • the reconstruction method of this patent includes: acquiring the point cloud data of the pipeline and the unit normal vector of the ground; transforming the point cloud data to The normal vector of the ground is the coordinate system of the Z axis; the normal vector of the point cloud data after the coordinate transformation is calculated; the point cloud data whose normal vector is parallel to the ground is separated from it, and projected onto the plane parallel to the ground; the normal vector is not parallel
  • the point cloud data on the ground is projected onto the Gaussian sphere, projected onto the equator along the latitude direction, and the peak point is detected on the equator; the point cloud data within the area of the peak point is projected onto the plane formed by the direction of the peak and the Z axis Get the point cloud circle formed by the point cloud data; get the three-dimensional map of the pipeline through the point cloud circle.
  • the method of the present invention avoids the noise interference to the greatest extent. It can still clearly classify the point cloud data under the condition that the point cloud data is not completely obtained, and the calculation amount is small, which is suitable for the three-dimensional reconstruction of various pipelines. It is mainly for the processing of CAD pipeline models, and does not involve the 3D imaging part inside the actual pipeline.
  • the Chinese patent application number is CN201110001166.1, the name is the patent of the automatic non-destructive testing method for the inner wall of the binocular vision pipeline.
  • the detection method of this patent includes the following steps: Step 1: Calibration of the binocular CCD camera; Step 2: Setting the measurement parameters ; Step three, real-time measurement; Step four, data management.
  • the measurement method does not cause damage to the inner wall of the pipeline, has a high degree of automation, is simple and flexible to use, and has high measurement accuracy; the measurement device is light in weight, small in size, and convenient to use.
  • This binocular vision measurement method can only obtain very sparse three-dimensional point cloud data, and cannot obtain an accurate 3D model of the inner wall of the pipeline.
  • None of the existing technologies disclosed above can dynamically scan the inner wall of the pipeline, so that a high-precision three-dimensional model of the inner wall of the pipeline cannot be obtained.
  • the technical problem to be solved by the present invention is: how to perform dynamic three-dimensional scanning on the inner wall of the pipeline to obtain a high-precision three-dimensional model of the inner wall of the pipeline.
  • a three-dimensional reconstruction method of a pipeline inner wall includes the following steps:
  • the laser device is controlled to emit laser light to the inner wall of the pipe to form a laser stripe on the inner wall of the pipe, and the camera device is simultaneously controlled to acquire the image information of the laser stripe at each moment from two different angles and record each The pose parameters of the camera device at the moment;
  • the method of controlling the laser device to emit laser light to the inner wall of the pipe to form a laser stripe on the inner wall of the pipe specifically includes:
  • the laser device is controlled to emit a ring laser to the inner wall of the pipe to form a ring-shaped laser stripe on the inner wall of the pipe.
  • the method for controlling the camera device to synchronously acquire the image information of the laser stripes formed by the laser on the inner wall of the pipeline from two different angles specifically includes:
  • the first angle and the second angle are different.
  • the method before controlling the laser device and the camera device to move synchronously in the pipeline, the method further includes:
  • the method for obtaining the three-dimensional coordinates of the center point of the laser stripe at each moment in the coordinate system of the camera device corresponding to each moment according to the image information specifically includes:
  • the three-dimensional coordinates of the center point of the laser stripe in the first camera coordinate system or the second camera coordinate system are obtained according to the first skeleton point coordinates, the second skeleton point coordinates, and the dual-target fixed parameters.
  • the center point of the laser stripe is acquired in the first camera coordinate system or the second camera coordinate system according to the first skeleton point coordinates, the second skeleton point coordinates and the dual target fixed parameters
  • the method further includes:
  • the acquiring the center point of the laser stripe in the first camera coordinate system or the second camera coordinate according to the first skeleton point coordinate, the second skeleton point coordinate and the dual target fixed parameter is as follows:
  • the method for obtaining the first sub-pixel coordinates of the center point of the laser stripe in the first image according to the coordinates of the first skeleton point is:
  • the first sub-pixel coordinates of the center point of the laser stripe in the first image are obtained according to the first image gradient and the first grayscale image corresponding to the first image.
  • the method for obtaining the second sub-pixel coordinates of the center point of the laser stripe in the second image according to the coordinates of the second skeleton point is:
  • the method for three-dimensionally reconstructing the inner wall of the pipeline according to the three-dimensional coordinates and the pose parameters of the camera device specifically includes:
  • the starting global coordinate system is The coordinate system where the camera device in the initial position is located;
  • the three-dimensional reconstruction method of the inner wall of the pipeline disclosed by the present invention can dynamically obtain real-time image information of the laser stripes by controlling the laser device and the camera device to move in the pipeline, thereby acquiring the image information of the inner wall of the pipeline in real time, and realizing high-precision pipeline Three-dimensional image of the inner wall.
  • the image information of the inner wall of the pipeline can be obtained more quickly and comprehensively, and the cost is also reduced.
  • FIG. 1 is a structural block diagram of a three-dimensional reconstruction system according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a three-dimensional reconstruction method according to an embodiment of the present invention.
  • the three-dimensional reconstruction method of the inner wall of the pipeline is performed on the three-dimensional reconstruction system of the inner wall of the pipeline.
  • the system includes: a laser device 10, a camera device 20, a mobile device 30, and a processor 40, in which processing
  • the device 40 includes an image processing module 41 and a three-dimensional reconstruction module 42, and the processor 40 is communicatively connected to the laser device 10, the camera device 20, and the mobile device 30.
  • FIG. 2 shows a flowchart of a three-dimensional reconstruction method of an inner wall of a pipe according to an embodiment of the present invention.
  • the three-dimensional reconstruction method includes steps S1 to S4:
  • Step S1 Control the laser device 10 and the camera device 20 to move synchronously in the pipeline.
  • the laser device 10 and the camera device 20 are mounted on the mobile device 30, and the mobile device 30 can move within the pipeline.
  • the mobile device 30 may be a pipeline inspection robot. The movement of the moving device 30 in the pipeline drives the laser device 10 and the camera device 20 to move synchronously in the pipeline.
  • the laser device 10 and the camera device 20 can be separately installed, as long as the laser device 10 and the camera device 20 are moved synchronously.
  • Step S2 The laser device 10 is controlled to emit laser light to the inner wall of the pipe to form laser stripes on the inner wall of the pipe, and the camera device 20 is simultaneously controlled to acquire image information of the laser stripes from two different angles synchronously, and the posture parameters of the camera device 20 are recorded.
  • the laser device 10 is controlled to emit a ring laser to the inner wall of the pipe to form a ring-shaped laser stripe on the inner wall of the pipe.
  • the position of the center point of the laser stripe is the same as the position of the inner wall surface of the pipe corresponding to the center point of the laser stripe.
  • the laser device 10 includes a point laser and a grating provided at the front of the point laser. After the point laser emits laser light, a ring or circular laser can be generated after the conversion of the grating, so that a ring-shaped laser stripe can be formed on the inner wall of the pipe.
  • a circle laser of brand Anford and model T850AY16100 can be used for the laser device 10.
  • the imaging device 20 includes a first camera 21 and a second camera 22.
  • the first camera 21 and the second camera 22 are installed on opposite sides of the laser device 10, respectively.
  • the one camera 21 and the second camera 22 are arranged in parallel, and ensure that the shooting angles of the first camera 21 and the second camera 22 can cover the laser stripes.
  • the first camera 21 is used to capture a first image of a laser stripe from a first angle
  • the second camera 22 is used to capture a second image of a laser stripe from a second angle, where the first angle and the second angle are different
  • the first camera 21 It is synchronized with the second camera 22 when shooting.
  • the cameras of the first camera 21 and the second camera 22 use cameras with a resolution of 1280 * 720.
  • the shooting frame rate of the first camera 21 and the second camera 22 is 30 FPS.
  • the simultaneous shooting of the two cameras 22 can collect 30 binocular images per second.
  • the laser emitted by the laser device may be a laser in the visible band or a laser in the non-visible band, such as an infrared band laser.
  • the first camera 21 and the second camera 22 need to be equipped with red light filters to improve Imaging effect.
  • this embodiment uses the principle of binocular stereo vision imaging for three-dimensional reconstruction, before controlling the laser device 10 and the camera device 20 to move synchronously in the pipeline, the first camera 21 and the second camera 22 need to be bi-targeted, and The image processing module 41 is used to acquire the dual target fixed parameters.
  • the bi-targeting method is a common method in binocular stereo vision imaging, which will not be repeated in the embodiments of the present invention.
  • Step S3 Obtain the three-dimensional coordinates of the center point of the laser stripe at each moment in the coordinate system of the camera 20 at each moment according to the image information.
  • this step includes steps S31 to S32:
  • Step S31 Obtain the coordinates of the first skeleton point of the laser stripe in the first image and the coordinates of the second skeleton point in the second image, respectively;
  • the first image and the second image are the original images obtained by the first camera 21 and the second camera 22 directly shooting the laser stripes.
  • this step S21 includes the following steps:
  • Step S311 Gaussian filtering is performed on the first image and the second image to smooth the image and remove image noise, respectively, to obtain a first gray image I 1 (x 1 , y 1 ) and a second gray image I 1 (x 2 , Y 2 ).
  • Step S312 Perform binarization processing on the first gray image I 1 (x 1 , y 1 ) and the second gray image I 1 (x 2 , y 2 ), respectively, to obtain the binarized image I 2 (x 1 , y 1 ) and I 2 (x 2 , y 2 ).
  • the threshold of the binarization process can be set according to the brightness of the laser stripes in the original image, for example, the threshold is set to 150.
  • Step S313 Refine the images I 2 (x 1 , y 1 ) and I 2 (x 2 , y 2 ) obtained after the binarization process to obtain the first skeleton image L (x 1 , y 1 ) And the second skeleton image L (x 2 , y 2 ), wherein the skeleton image can be obtained by using a conventional binary image skeleton extraction algorithm, which will not be repeated here.
  • the skeleton point in the first skeleton image L (x 1 , y 1 ) is the first skeleton point coordinate of the center point of the laser stripe in the first image
  • the skeleton point of is the second skeleton point coordinate of the center point of the laser stripe in the second image. It should be noted that the positioning accuracy of the skeleton image is pixel-level accuracy.
  • Step S32 Acquire the three-dimensional coordinates of the center point of the laser stripe in the first camera coordinate system or the second camera coordinate system according to the first skeleton point coordinates, the second skeleton point coordinates and the dual-target fixed parameters.
  • the coordinate system where the first skeleton point coordinates are located is the first image coordinate system O 1 X 1 Y 1
  • the first image coordinate system O 1 X 1 Y 1 is located in the first camera
  • the origin O 1 of the first image coordinate system O 1 X 1 Y 1 is the focal point of the first camera
  • the first skeleton point coordinate is the connection between the optical center of the first camera and the center point of the laser stripe
  • the coordinates of the intersection point of the line and the focal plane, that is, the coordinates of the first skeleton point are two-dimensional coordinates.
  • the second skeleton point coordinates can also be analyzed similarly, and will not be repeated here.
  • the dual target fixed parameters include the first focal length f 1 of the first camera 21, the second focal length f 2 of the second camera 22, the optical center distance B of the first camera 21 and the second camera 22 and the second The pixel coordinates (u 1 , v 1 ) of the origin O 1 of an image coordinate system O 1 X 1 Y 1 .
  • the first skeleton point coordinates, the second skeleton point coordinates and the dual target fixed parameters can be obtained to obtain the three-dimensional coordinates of the center point of the laser stripe in the first camera coordinate system or the second camera coordinate system.
  • the three-dimensional coordinates obtained above are the three-dimensional coordinates of the center point of the laser stripe at each moment corresponding to the first camera coordinate system and the second camera coordinate system at each moment. According to the same method described above, the three-dimensional coordinates of the center point of the laser stripe at multiple times in the first camera coordinate system or the second camera coordinate system can be obtained, and the three-dimensional coordinate point cloud can be obtained after the laser device scans the inner wall of the pipeline data.
  • the calculation process in step S3 is completed in the image processing module 41.
  • the positioning accuracy is not accurate enough.
  • a sub-pixel calculation strategy is used to accurately position the coordinates of the skeleton points. Specifically, the sub-pixel calculation method specifically includes steps one to two:
  • Step 1 Obtain the first image gradient q 1 of the first skeleton point coordinate and the second image gradient q 2 of the second skeleton point coordinate, respectively.
  • Step 2 Obtain the first sub-pixel coordinates of the center point of the laser stripe according to the first image gradient q 1 and the first gray image I 1 (x 1 , y 1 ), and according to the second image gradient q 2 and the first gray image I 1 (x 2 , y 2 ) acquires the second sub-pixel coordinates of the center point of the laser stripe.
  • the first grayscale image I 1 (x 1 , y 1 )
  • 2n adjacent image points are searched in a direction perpendicular to the first image gradient q 1 .
  • the luminance value of 2n adjacent image points and the luminance value of the first skeleton point p 1 are calculated.
  • the second sub-pixel coordinates of the center point of the laser stripe are calculated, which can improve the positioning accuracy of the center point of the laser stripe.
  • the three-dimensional coordinates of the center point of the laser stripe in the first camera coordinate system or the second camera coordinate system are calculated according to the first sub-pixel coordinates, the second sub-pixel coordinates and the dual-target fixed parameters, which can improve the center of the laser stripes
  • the three-dimensional coordinate accuracy of the point is similar to the calculation method in step S32, and will not be repeated here.
  • Step S4 Three-dimensionally reconstruct the inner wall of the pipeline according to the three-dimensional coordinates at multiple times and the pose parameters of the camera device.
  • the camera device in this embodiment is installed on a mobile device, and the mobile device and the camera device have the same coordinate system, so the posture parameters of the mobile device are acquired through the sensor, and then the camera device and the mobile
  • the relative relationship of the devices can indirectly obtain the pose parameters of the mobile device.
  • the mobile device selects the pipeline inspection robot, it has a built-in encoder and attitude sensor, which can obtain the initial position of the mobile device, the position at each time, and the direction of the mobile device at each time, so that the initial position of the camera device can be obtained , The location at each moment and the direction of the mobile device at each moment.
  • step S3 is completed in the three-dimensional reconstruction module 42.
  • the embodiment of the present invention discloses a three-dimensional reconstruction method for the inner wall of a pipeline.
  • the real-time image information of the laser stripes can be dynamically obtained, so that the image information of the inner wall of the pipeline can be obtained in real time.
  • the image information of the inner wall of the pipeline can be obtained more quickly and comprehensively, and the cost is also reduced.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

A three-dimensional reconstruction method for the inner wall of a pipe, comprising the following steps: controlling a laser device and a photography device to move together in a pipe (S1); controlling the laser device to emit laser light to the inner wall of the pipe so as to form a laser stripe on the inner wall of the pipe, controlling the photography device to synchronously obtain image information of the laser stripe at each moment from two different angles, and recording pose parameters of the photography device at each moment (S2); obtaining, according to the image information, three-dimensional coordinates of the central point of the laser stripe at each moment in a photography device coordinate system corresponding to each moment (S3); and performing three-dimensional reconstruction of the inner wall of the pipe according to the three-dimensional coordinates and the pose parameters of the photography device at multiple moments (S4). By controlling the laser device and the photography device to move in the pipe, real-time image information of the laser stripe can be dynamically obtained, so as to obtain image information of the inner wall of the pipe in real time, thus obtaining a high-precision three-dimensional image of the inner wall of the pipe.

Description

管道内壁的三维重建方法Three-dimensional reconstruction method of pipeline inner wall 技术领域Technical field
本发明属于计算机视觉技术领域,具体地讲,涉及一种管道内壁的三维重建方法。The invention belongs to the field of computer vision technology, and in particular, relates to a three-dimensional reconstruction method of an inner wall of a pipeline.
背景技术Background technique
管道作为一种重要的输送装置,广泛应用于电力传输、城市排污、石油化工等领域。管道对我们生活的作用就像动脉之于人体,有着举足轻重的作用。然而,形式多变、种类繁多的管道问题会随着管道使用时间的增加不断出现,如管道的意外破损、材质的老化、管壁化学腐蚀、裂缝和杂物侵入等,如果不能发现并解决这些问题就会埋下隐患。为了提高管道的使用寿命并确保安全,对管道进行定期检测和维护势在必行。As an important transportation device, pipelines are widely used in power transmission, urban sewage, petrochemical and other fields. The effect of pipelines on our lives is as important as arteries to the human body. However, pipeline problems with various forms and a variety of types will continue to appear with the increase of pipeline use time, such as accidental damage of pipelines, aging of materials, chemical corrosion of pipeline walls, cracks and intrusion of debris, etc. If these cannot be found and resolved Problems will bury hidden dangers. In order to improve the service life of the pipeline and ensure safety, regular inspection and maintenance of the pipeline is imperative.
目前管道的维护主要依赖于人工的肉眼检测,对管道缺陷的检测精度及自动化、智能化都不是很高。而且,据统计,我国现有的管道网络超过2/3都没有详细的管道内部环境三维数据,管道内部的情况无从得知。鉴于此,最近出现了基于轮式移动机器人的管道巡检装置,通过机器人装载的闭路电视系统,记录管道内的画面情况,由地面人员做出判断,但由于缺少管道内部的三维信息,因此很多信息仍无从获知,如管道内障碍物的距离、大小,管道内壁缺陷的三维尺寸等等,随着智能检测技术的发展,对于地下管道的三维可视化逐渐成为迫切的需求,但目前还没有一种很好的技术手段可以实现这一功能。针对上述问题,对现有文献进行了检索:At present, the maintenance of pipelines mainly depends on manual visual inspection, and the detection accuracy, automation, and intelligence of pipeline defects are not very high. Moreover, according to statistics, more than 2/3 of the existing pipeline network in China does not have detailed three-dimensional data of the internal environment of the pipeline, and the internal situation of the pipeline is not known. In view of this, a pipeline inspection device based on a wheeled mobile robot has recently appeared. The closed-circuit television system loaded by the robot records the picture in the pipeline and is judged by ground personnel. Information is still not available, such as the distance and size of obstacles in the pipeline, the three-dimensional size of the inner wall defects of the pipeline, etc. With the development of intelligent detection technology, the three-dimensional visualization of underground pipelines has gradually become an urgent demand, but there is no Very good technical means can achieve this function. In response to the above problems, the existing literature was searched:
1:中国专利申请号为CN201210012237.2,名称为一种基于光学的管道快速检测方法的专利,该专利公开的检测方法主要包括以下步骤:被测管道表面预处理;在管道表面及周围布置标志点;放置标尺;拍摄全局标志点照片序列;计算照片组中标志点坐标;被测管道表面局部密集点云采集及对齐;密集点云预处理及建模;将管道测量模型与管道CAD设计模型的坐标系对齐,对管道测量模型进行坐标转换;管道测量模型与管道CAD设计模型的偏差对比。该方法 检测速度快、精度高,且不会对管道表面造成伤害。主要是采用传统的三维扫描方法,对管道进行精确三维扫描,不适合机器人运动条件下的三维扫描,且数据量庞大,工作距离短,不适合地下管道的3D扫描。1: The Chinese patent application number is CN201210012237.2, which is a patent for an optical-based pipeline rapid detection method. The detection method disclosed in this patent mainly includes the following steps: pretreatment of the surface of the pipeline under test; and placement of marks on and around the pipeline surface Point; place a ruler; take a sequence of photos of global marker points; calculate the coordinates of the marker points in the photo group; collect and align the local dense point cloud on the surface of the measured pipeline; pre-process and model the dense point cloud; integrate the pipeline measurement model with the pipeline CAD design model The coordinate system is aligned, and the coordinate conversion of the pipeline measurement model is performed; the deviation of the pipeline measurement model and the pipeline CAD design model is compared. This method has fast detection speed and high precision, and will not cause damage to the pipe surface. It mainly adopts the traditional three-dimensional scanning method to carry out accurate three-dimensional scanning on the pipeline, which is not suitable for three-dimensional scanning under the condition of robot movement, and the huge amount of data and short working distance are not suitable for the 3D scanning of underground pipelines.
2:中国专利申请号为CN201210365683.1,名称为一种管道结构三维重建方法的专利,该专利的重建方法包括:获取管道的点云数据和地面的单位法向量;将点云数据变换到以地面的法向量为Z轴的坐标系;计算坐标变换后的点云数据的法向量;从中分离出法向量平行于地面的点云数据,并投影到平行于地面的平面上;法向量不平行于地面的点云数据,并投影到高斯球上,沿纬度方向投影到赤道上,在赤道上检测峰值点;将峰值点所在区域内的点云数据投影到峰值的方向和Z轴构成的平面上;得到点云数据构成的点云圆;通过点云圆得到管道的三维图。本发明方法最大程度地避免了噪声干扰,在没有完全获得点云数据的条件下,依然能够对点云数据进行清晰分类,且计算量小,适用于各类管道的三维重建。主要是对于CAD管道模型的处理,不涉及到实际管道内部3D成像部分。2: The Chinese patent application number is CN201210365683.1, which is a patent for a three-dimensional reconstruction method of pipeline structure. The reconstruction method of this patent includes: acquiring the point cloud data of the pipeline and the unit normal vector of the ground; transforming the point cloud data to The normal vector of the ground is the coordinate system of the Z axis; the normal vector of the point cloud data after the coordinate transformation is calculated; the point cloud data whose normal vector is parallel to the ground is separated from it, and projected onto the plane parallel to the ground; the normal vector is not parallel The point cloud data on the ground is projected onto the Gaussian sphere, projected onto the equator along the latitude direction, and the peak point is detected on the equator; the point cloud data within the area of the peak point is projected onto the plane formed by the direction of the peak and the Z axis Get the point cloud circle formed by the point cloud data; get the three-dimensional map of the pipeline through the point cloud circle. The method of the present invention avoids the noise interference to the greatest extent. It can still clearly classify the point cloud data under the condition that the point cloud data is not completely obtained, and the calculation amount is small, which is suitable for the three-dimensional reconstruction of various pipelines. It is mainly for the processing of CAD pipeline models, and does not involve the 3D imaging part inside the actual pipeline.
3:中国专利申请号为CN201110001166.1,名称为双目视觉管道内壁自动无损检测方法的专利,该专利的检测方法包括如下步骤:步骤一、双目CCD摄像机的标定;步骤二、设置测量参数;步骤三、实时测量;步骤四、数据管理。该测量方法对管道内壁不造成损伤,自动化程度高,使用简便灵活,测量精度高;测量装置重量轻,体积小,使用方便。这种双目视觉测量方法只能获得很稀疏的三维点云数据,无法获得管道内壁精确3D模型。3: The Chinese patent application number is CN201110001166.1, the name is the patent of the automatic non-destructive testing method for the inner wall of the binocular vision pipeline. The detection method of this patent includes the following steps: Step 1: Calibration of the binocular CCD camera; Step 2: Setting the measurement parameters ; Step three, real-time measurement; Step four, data management. The measurement method does not cause damage to the inner wall of the pipeline, has a high degree of automation, is simple and flexible to use, and has high measurement accuracy; the measurement device is light in weight, small in size, and convenient to use. This binocular vision measurement method can only obtain very sparse three-dimensional point cloud data, and cannot obtain an accurate 3D model of the inner wall of the pipeline.
以上公开的现有技术都不能对管道内壁进行动态扫描,从而无法获取高精度的管道内壁的三维模型。None of the existing technologies disclosed above can dynamically scan the inner wall of the pipeline, so that a high-precision three-dimensional model of the inner wall of the pipeline cannot be obtained.
发明内容Summary of the invention
(一)要解决的技术问题(1) Technical problems to be solved
本发明要解决的技术问题是:如何对管道内壁进行动态的三维扫描以获得高精度的管道内壁的三维模型。The technical problem to be solved by the present invention is: how to perform dynamic three-dimensional scanning on the inner wall of the pipeline to obtain a high-precision three-dimensional model of the inner wall of the pipeline.
(二)技术方案(2) Technical solution
为了实现上述的目的,本发明采用了如下的技术方案:In order to achieve the above objectives, the present invention adopts the following technical solutions:
一种管道内壁的三维重建方法,包括如下步骤:A three-dimensional reconstruction method of a pipeline inner wall includes the following steps:
控制激光装置和摄像装置在管道内同步运动;Control the laser device and camera device to move synchronously in the pipeline;
控制所述激光装置向管道内壁发射激光,以在所述管道内壁形成激光条纹,同时控制所述摄像装置从两个不同角度同步获取每个时刻的所述激光条纹的图像信息,并记录每个时刻的所述摄像装置的位姿参数;The laser device is controlled to emit laser light to the inner wall of the pipe to form a laser stripe on the inner wall of the pipe, and the camera device is simultaneously controlled to acquire the image information of the laser stripe at each moment from two different angles and record each The pose parameters of the camera device at the moment;
根据所述图像信息得到每个时刻的所述激光条纹的中心点在对应于每个时刻下的摄像装置坐标系中的三维坐标;Obtaining the three-dimensional coordinates of the center point of the laser stripe at each moment in the coordinate system of the camera device corresponding to each moment according to the image information;
根据多个时刻的所述三维坐标和所述摄像装置的位姿参数对所述管道内壁进行三维重建。Three-dimensionally reconstruct the inner wall of the pipeline according to the three-dimensional coordinates at multiple times and the pose parameters of the camera device.
可选地,所述控制所述激光装置向管道内壁发射激光,以在所述管道内壁形成激光条纹的方法具体包括:Optionally, the method of controlling the laser device to emit laser light to the inner wall of the pipe to form a laser stripe on the inner wall of the pipe specifically includes:
控制所述激光装置向所述管道内壁发射环形激光,以在所述管道内壁形成环形的激光条纹。The laser device is controlled to emit a ring laser to the inner wall of the pipe to form a ring-shaped laser stripe on the inner wall of the pipe.
可选地,所述控制所述摄像装置从两个不同角度同步获取所述激光在所述管道内壁形成的激光条纹的图像信息的方法具体包括:Optionally, the method for controlling the camera device to synchronously acquire the image information of the laser stripes formed by the laser on the inner wall of the pipeline from two different angles specifically includes:
利用所述摄像装置的第一相机从第一角度获取所述激光条纹的第一图像;Acquiring the first image of the laser stripe from a first angle using the first camera of the camera device;
利用所述摄像装置的第二相机从第二角度同步获取所述激光条纹的第二图像;Using the second camera of the camera device to synchronously acquire the second image of the laser stripes from a second angle;
其中,所述第一角度和第二角度不同。The first angle and the second angle are different.
可选地,在控制激光装置和摄像装置在管道内同步运动之前,所述方法还包括:Optionally, before controlling the laser device and the camera device to move synchronously in the pipeline, the method further includes:
对所述摄像装置进行双目标定并获得双目标定参数。Perform dual target setting on the camera device and obtain dual target setting parameters.
可选地,根据所述图像信息得到每个时刻的所述激光条纹的中心点在对应于每个时刻下的摄像装置坐标系中的三维坐标的方法具体包括:Optionally, the method for obtaining the three-dimensional coordinates of the center point of the laser stripe at each moment in the coordinate system of the camera device corresponding to each moment according to the image information specifically includes:
分别获取所述激光条纹的中心点在所述第一图像的第一骨架点坐标以及在所述第二图像中的第二骨架点坐标;Obtain the coordinates of the first skeleton point of the laser stripe in the first image and the coordinates of the second skeleton point in the second image, respectively;
根据所述第一骨架点坐标、第二骨架点坐标和所述双目标定参数获取所述 激光条纹的中心点在所述第一相机坐标系或所述第二相机坐标系中的三维坐标。The three-dimensional coordinates of the center point of the laser stripe in the first camera coordinate system or the second camera coordinate system are obtained according to the first skeleton point coordinates, the second skeleton point coordinates, and the dual-target fixed parameters.
可选地,在根据所述第一骨架点坐标、第二骨架点坐标和所述双目标定参数获取所述激光条纹的中心点在所述第一相机坐标系或所述第二相机坐标系中的三维坐标之前,所述方法还包括:Optionally, the center point of the laser stripe is acquired in the first camera coordinate system or the second camera coordinate system according to the first skeleton point coordinates, the second skeleton point coordinates and the dual target fixed parameters Before the three-dimensional coordinates in, the method further includes:
根据所述第一骨架点坐标获取所述激光条纹的中心点在所述第一图像中的第一亚像素坐标;Obtaining the first sub-pixel coordinates of the center point of the laser stripe in the first image according to the coordinates of the first skeleton point;
根据所述第二骨架点坐标获取所述激光条纹的中心点在所述第二图像中的第二亚像素坐标。Obtain the second sub-pixel coordinates of the center point of the laser stripe in the second image according to the coordinates of the second skeleton point.
可选地,所述根据所述第一骨架点坐标、第二骨架点坐标和所述双目标定参数获取所述激光条纹的中心点在所述第一相机坐标系或所述第二相机坐标系中的三维坐标的方法具体为:Optionally, the acquiring the center point of the laser stripe in the first camera coordinate system or the second camera coordinate according to the first skeleton point coordinate, the second skeleton point coordinate and the dual target fixed parameter The method of three-dimensional coordinates in the system is as follows:
根据所述第一亚像素坐标、所述第二亚像素坐标和所述双目标定参数获取所述激光条纹的中心点在所述第一相机坐标系或所述第二相机坐标系中的三维坐标。Acquiring the three-dimensional of the center point of the laser stripe in the first camera coordinate system or the second camera coordinate system according to the first sub-pixel coordinates, the second sub-pixel coordinates and the dual-target fixed parameters coordinate.
可选地,所述根据所述第一骨架点坐标获取所述激光条纹的中心点在所述第一图像中的第一亚像素坐标的方法为:Optionally, the method for obtaining the first sub-pixel coordinates of the center point of the laser stripe in the first image according to the coordinates of the first skeleton point is:
获取与所述第一骨架点坐标对应的第一图像梯度;Acquiring a first image gradient corresponding to the coordinates of the first skeleton point;
根据所述第一图像梯度以及与所述第一图像对应的第一灰度图像获取所述激光条纹的中心点在所述第一图像中的第一亚像素坐标。The first sub-pixel coordinates of the center point of the laser stripe in the first image are obtained according to the first image gradient and the first grayscale image corresponding to the first image.
可选地,所述根据所述第二骨架点坐标获取所述激光条纹的中心点在所述第二图像中的第二亚像素坐标的方法为:Optionally, the method for obtaining the second sub-pixel coordinates of the center point of the laser stripe in the second image according to the coordinates of the second skeleton point is:
获取与所述第二骨架点坐标对应的第二图像梯度;Acquiring a second image gradient corresponding to the coordinates of the second skeleton point;
根据所述第二图像梯度以及与第二图像对应的第二灰度图像获取所述激光条纹的中心点在所述第二图像中的第二亚像素坐标。Obtain the second sub-pixel coordinates of the center point of the laser stripe in the second image according to the second image gradient and the second grayscale image corresponding to the second image.
可选地,所述根据所述三维坐标和所述摄像装置的位姿参数对所述管道内壁进行三维重建的方法具体包括:Optionally, the method for three-dimensionally reconstructing the inner wall of the pipeline according to the three-dimensional coordinates and the pose parameters of the camera device specifically includes:
根据每个时刻的所述三维坐标和所述摄像装置的位姿参数获取每个时刻 下所述激光条纹的中心点在起始全局坐标系中的坐标,其中,所述起始全局坐标系为处于初始位置的所述摄像装置所在的坐标系;Obtain the coordinates of the center point of the laser stripe in the starting global coordinate system at each moment according to the three-dimensional coordinates at each moment and the pose parameters of the camera device, where the starting global coordinate system is The coordinate system where the camera device in the initial position is located;
根据多个时刻的所述激光条纹的中心点在起始全局坐标系中的坐标对所述管道内壁进行三维重建。Three-dimensionally reconstruct the inner wall of the pipeline according to the coordinates of the center point of the laser stripes in the starting global coordinate system at multiple moments.
(三)有益效果(3) Beneficial effects
本发明公开的一种管道内壁的三维重建方法,通过控制激光装置和摄像装置在管道内移动,可动态获取激光条纹的实时图像信息,从而实时获取管道内壁的图像信息,可实现高精度的管道内壁的三维图像。另外通过采用环形激光实现360度扫描,可更快速地且更全面地获取管道内壁的图像信息,同时也降低了成本。The three-dimensional reconstruction method of the inner wall of the pipeline disclosed by the present invention can dynamically obtain real-time image information of the laser stripes by controlling the laser device and the camera device to move in the pipeline, thereby acquiring the image information of the inner wall of the pipeline in real time, and realizing high-precision pipeline Three-dimensional image of the inner wall. In addition, by using a ring laser to achieve 360-degree scanning, the image information of the inner wall of the pipeline can be obtained more quickly and comprehensively, and the cost is also reduced.
附图说明BRIEF DESCRIPTION
图1为本发明的实施例的三维重建系统的结构框图;FIG. 1 is a structural block diagram of a three-dimensional reconstruction system according to an embodiment of the present invention;
图2为本发明的实施例的三维重建方法的流程图。2 is a flowchart of a three-dimensional reconstruction method according to an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not intended to limit the present invention.
如图1所示,本发明的实施例的管道内壁的三维重建方法基于管道内壁的三维重建系统上进行,该系统包括:激光装置10、摄像装置20、移动装置30和处理器40,其中处理器40包括图像处理模块41和三维重建模块42,且处理器40与激光装置10、摄像装置20、移动装置30通信连接。As shown in FIG. 1, the three-dimensional reconstruction method of the inner wall of the pipeline according to the embodiment of the present invention is performed on the three-dimensional reconstruction system of the inner wall of the pipeline. The system includes: a laser device 10, a camera device 20, a mobile device 30, and a processor 40, in which processing The device 40 includes an image processing module 41 and a three-dimensional reconstruction module 42, and the processor 40 is communicatively connected to the laser device 10, the camera device 20, and the mobile device 30.
图2示出了根据本发明的实施例的管道内壁的三维重建方法的流程图,该三维重建方法包括步骤S1至步骤S4:FIG. 2 shows a flowchart of a three-dimensional reconstruction method of an inner wall of a pipe according to an embodiment of the present invention. The three-dimensional reconstruction method includes steps S1 to S4:
步骤S1:控制激光装置10和摄像装置20在管道内同步移动。Step S1: Control the laser device 10 and the camera device 20 to move synchronously in the pipeline.
具体地,作为优选实施例,将激光装置10和摄像装置20安装至移动装置30上,移动装置30可在管道内运动。其中,移动装置30可选用管道巡检机器 人。通过移动装置30在管道内运动,带动激光装置10和摄像装置20在管道内同步移动。Specifically, as a preferred embodiment, the laser device 10 and the camera device 20 are mounted on the mobile device 30, and the mobile device 30 can move within the pipeline. Among them, the mobile device 30 may be a pipeline inspection robot. The movement of the moving device 30 in the pipeline drives the laser device 10 and the camera device 20 to move synchronously in the pipeline.
当然在其他实施方式中,激光装置10和摄像装置20可分别单独安装,只要保证激光装置10和摄像装置20同步移动即可。Of course, in other embodiments, the laser device 10 and the camera device 20 can be separately installed, as long as the laser device 10 and the camera device 20 are moved synchronously.
步骤S2:控制激光装置10向管道内壁发射激光,以在管道内壁形成激光条纹,同时控制摄像装置20从两个不同角度同步获取激光条纹的图像信息,并记录摄像装置20的位姿参数。Step S2: The laser device 10 is controlled to emit laser light to the inner wall of the pipe to form laser stripes on the inner wall of the pipe, and the camera device 20 is simultaneously controlled to acquire image information of the laser stripes from two different angles synchronously, and the posture parameters of the camera device 20 are recorded.
作为优选实施例,控制激光装置10向管道内壁发射环形激光,以在管道内壁形成环形的激光条纹。其中,激光条纹的中心点的位置与对应于激光条纹的中心点的管道内壁表面的位置相同。具体地,激光装置10包括点激光器和设置于点激光器前端的光栅,点激光器发射激光后,经过光栅的转换可生成环形或者是圆形的激光,这样可在管道内壁形成环形的激光条纹。例如,激光装置10可选用品牌为为安福德(Anford)、型号为T850AY16100的圆圈激光器。As a preferred embodiment, the laser device 10 is controlled to emit a ring laser to the inner wall of the pipe to form a ring-shaped laser stripe on the inner wall of the pipe. The position of the center point of the laser stripe is the same as the position of the inner wall surface of the pipe corresponding to the center point of the laser stripe. Specifically, the laser device 10 includes a point laser and a grating provided at the front of the point laser. After the point laser emits laser light, a ring or circular laser can be generated after the conversion of the grating, so that a ring-shaped laser stripe can be formed on the inner wall of the pipe. For example, for the laser device 10, a circle laser of brand Anford and model T850AY16100 can be used.
进一步地,作为优选实施例,如图1所示,摄像装置20包括第一相机21和第二相机22,第一相机21和第二相机22分别安装于激光装置10的相对两侧,且第一相机21和第二相机22平行设置,且保证第一相机21和第二相机22的拍摄视角均能覆盖激光条纹。利用第一相机21从第一角度拍摄激光条纹的第一图像,利用第二相机22从第二角度拍摄激光条纹的第二图像,其中,第一角度和第二角度不同,且第一相机21和第二相机22的拍摄时同步进行的。Further, as a preferred embodiment, as shown in FIG. 1, the imaging device 20 includes a first camera 21 and a second camera 22. The first camera 21 and the second camera 22 are installed on opposite sides of the laser device 10, respectively. The one camera 21 and the second camera 22 are arranged in parallel, and ensure that the shooting angles of the first camera 21 and the second camera 22 can cover the laser stripes. The first camera 21 is used to capture a first image of a laser stripe from a first angle, and the second camera 22 is used to capture a second image of a laser stripe from a second angle, where the first angle and the second angle are different, and the first camera 21 It is synchronized with the second camera 22 when shooting.
作为优选实施例,第一相机21和第二相机22的摄像头采用分辨率为1280*720的摄像头,第一相机21和第二相机22的拍摄帧率为30FPS,这样通过第一相机21和第二相机22的同步拍摄,每秒可以采集30幅双目图像。激光装置的发射的激光可以为可见光波段的激光,也可以为非可见光波段的激光,例如红外波段的激光,此时第一相机21和第二相机22需要加装红光滤光片,以提高成像效果。As a preferred embodiment, the cameras of the first camera 21 and the second camera 22 use cameras with a resolution of 1280 * 720. The shooting frame rate of the first camera 21 and the second camera 22 is 30 FPS. The simultaneous shooting of the two cameras 22 can collect 30 binocular images per second. The laser emitted by the laser device may be a laser in the visible band or a laser in the non-visible band, such as an infrared band laser. In this case, the first camera 21 and the second camera 22 need to be equipped with red light filters to improve Imaging effect.
由于本实施例采用双目立体视觉成像原理来进行三维重建,因此在控制激光装置10和摄像装置20在管道内同步移动之前,需要对第一相机21和第二相机22进行双目标定,并利用图像处理模块41获取双目标定参数。其中双目标定方法为双目立体视觉成像中的常见方法,本发明实施例不再进行赘述。Since this embodiment uses the principle of binocular stereo vision imaging for three-dimensional reconstruction, before controlling the laser device 10 and the camera device 20 to move synchronously in the pipeline, the first camera 21 and the second camera 22 need to be bi-targeted, and The image processing module 41 is used to acquire the dual target fixed parameters. The bi-targeting method is a common method in binocular stereo vision imaging, which will not be repeated in the embodiments of the present invention.
步骤S3:根据图像信息得到每个时刻的激光条纹的中心点在对应于每个时刻下的摄像装置20坐标系中的三维坐标。Step S3: Obtain the three-dimensional coordinates of the center point of the laser stripe at each moment in the coordinate system of the camera 20 at each moment according to the image information.
具体地,该步骤包括步骤S31至步骤S32:Specifically, this step includes steps S31 to S32:
步骤S31:分别获取激光条纹的中心点在第一图像的第一骨架点坐标以及在第二图像中的第二骨架点坐标;Step S31: Obtain the coordinates of the first skeleton point of the laser stripe in the first image and the coordinates of the second skeleton point in the second image, respectively;
其中,第一图像和第二图像分别为第一相机21和第二相机22直接对激光条纹拍摄获得的原始图像。The first image and the second image are the original images obtained by the first camera 21 and the second camera 22 directly shooting the laser stripes.
具体地,该步骤S21包括如下步骤:Specifically, this step S21 includes the following steps:
步骤S311:分别对第一图像和第二图像进行高斯滤波,以平滑图像和去除图像噪声,得到第一灰度图像I 1(x 1,y 1)和第二灰度图像I 1(x 2,y 2)。 Step S311: Gaussian filtering is performed on the first image and the second image to smooth the image and remove image noise, respectively, to obtain a first gray image I 1 (x 1 , y 1 ) and a second gray image I 1 (x 2 , Y 2 ).
步骤S312:分别对第一灰度图像I 1(x 1,y 1)和第二灰度图像I 1(x 2,y 2)进行二值化处理,得到二值化处理后的图像I 2(x 1,y 1)和I 2(x 2,y 2)。其中二值化处理的阈值可根据原始图像中的激光条纹亮度进行设置,例如将阈值设置为150。 Step S312: Perform binarization processing on the first gray image I 1 (x 1 , y 1 ) and the second gray image I 1 (x 2 , y 2 ), respectively, to obtain the binarized image I 2 (x 1 , y 1 ) and I 2 (x 2 , y 2 ). The threshold of the binarization process can be set according to the brightness of the laser stripes in the original image, for example, the threshold is set to 150.
步骤S313:分别对二值化处理后得到的图像I 2(x 1,y 1)和I 2(x 2,y 2)进行细化处理,得到第一骨架图像L(x 1,y 1)和第二骨架图像L(x 2,y 2),其中,采用常规的二值图像骨架提取算法即可得到骨架图像,在这里不进行赘述。这样,第一骨架图像L(x 1,y 1)中的骨架点即为激光条纹的中心点在第一图像中的第一骨架点坐标,第二骨架图像L(x 2,y 2)中的骨架点即为激光条纹的中心点在第二图像中的第二骨架点坐标。需要说明的是,骨架图像的定位精度为像素级精度。 Step S313: Refine the images I 2 (x 1 , y 1 ) and I 2 (x 2 , y 2 ) obtained after the binarization process to obtain the first skeleton image L (x 1 , y 1 ) And the second skeleton image L (x 2 , y 2 ), wherein the skeleton image can be obtained by using a conventional binary image skeleton extraction algorithm, which will not be repeated here. In this way, the skeleton point in the first skeleton image L (x 1 , y 1 ) is the first skeleton point coordinate of the center point of the laser stripe in the first image, and the second skeleton image L (x 2 , y 2 ) The skeleton point of is the second skeleton point coordinate of the center point of the laser stripe in the second image. It should be noted that the positioning accuracy of the skeleton image is pixel-level accuracy.
步骤S32:根据第一骨架点坐标、第二骨架点坐标和双目标定参数获取激光条纹的中心点在第一相机坐标系或第二相机坐标系中的三维坐标。Step S32: Acquire the three-dimensional coordinates of the center point of the laser stripe in the first camera coordinate system or the second camera coordinate system according to the first skeleton point coordinates, the second skeleton point coordinates and the dual-target fixed parameters.
具体地,以第一骨架点坐标为例,第一骨架点坐标所在的坐标系为第一图像坐标系O 1X 1Y 1,该第一图像坐标系O 1X 1Y 1位于第一相机21的焦平面内,第一图像坐标系O 1X 1Y 1的原点O 1为第一相机21的焦点,第一骨架点坐标为第一相机的光心与激光条纹中心点之间的连线与焦平面的交点坐标,即第一骨架点坐标为二维坐标。第二骨架点坐标也可进行类似分析,在此不进行赘述。 Specifically, taking the coordinates of the first skeleton point as an example, the coordinate system where the first skeleton point coordinates are located is the first image coordinate system O 1 X 1 Y 1 , and the first image coordinate system O 1 X 1 Y 1 is located in the first camera In the focal plane of 21, the origin O 1 of the first image coordinate system O 1 X 1 Y 1 is the focal point of the first camera 21, and the first skeleton point coordinate is the connection between the optical center of the first camera and the center point of the laser stripe The coordinates of the intersection point of the line and the focal plane, that is, the coordinates of the first skeleton point are two-dimensional coordinates. The second skeleton point coordinates can also be analyzed similarly, and will not be repeated here.
进一步地,双目标定参数包括第一相机21的第一焦距f 1、第二相机22的第二焦距f 2、第一相机21的光心和第二相机22的光心距离B和以及第一图像坐标系O 1X 1Y 1的原点O 1的像素坐标(u 1,v 1)。根据双目视觉立体成像原理,已知 第一骨架点坐标、第二骨架点坐标和双目标定参数可得到激光条纹的中心点在第一相机坐标系或第二相机坐标系中的三维坐标。 Further, the dual target fixed parameters include the first focal length f 1 of the first camera 21, the second focal length f 2 of the second camera 22, the optical center distance B of the first camera 21 and the second camera 22 and the second The pixel coordinates (u 1 , v 1 ) of the origin O 1 of an image coordinate system O 1 X 1 Y 1 . According to the principle of binocular visual stereo imaging, the first skeleton point coordinates, the second skeleton point coordinates and the dual target fixed parameters can be obtained to obtain the three-dimensional coordinates of the center point of the laser stripe in the first camera coordinate system or the second camera coordinate system.
需要说明的是,上述得到的三维坐标为每个时刻的激光条纹的中心点在对应于每个时刻下的第一相机坐标系和第二相机坐标系中的三维坐标。根据上述同样的方法,可以获取多个时刻的激光条纹的中心点在第一相机坐标系或第二相机坐标系中的三维坐标,当激光装置对管道内壁扫描完成后即可得到三维坐标点云数据。其中,步骤S3的计算过程均在图像处理模块41中完成。It should be noted that the three-dimensional coordinates obtained above are the three-dimensional coordinates of the center point of the laser stripe at each moment corresponding to the first camera coordinate system and the second camera coordinate system at each moment. According to the same method described above, the three-dimensional coordinates of the center point of the laser stripe at multiple times in the first camera coordinate system or the second camera coordinate system can be obtained, and the three-dimensional coordinate point cloud can be obtained after the laser device scans the inner wall of the pipeline data. The calculation process in step S3 is completed in the image processing module 41.
在其他实施方式中,由于第一骨架点坐标和第二骨架点坐标均为像素级精度的坐标,其定位精度不够准确。为了进一步地提高,激光条纹的中心点的定位精度,采用亚像素计算策略,对骨架点坐标进行精确定位。具体地,亚像素计算方法具体包括步骤一至步骤二:In other embodiments, since the coordinates of the first skeleton point and the coordinates of the second skeleton point are both coordinates with pixel accuracy, the positioning accuracy is not accurate enough. In order to further improve the positioning accuracy of the center point of the laser stripes, a sub-pixel calculation strategy is used to accurately position the coordinates of the skeleton points. Specifically, the sub-pixel calculation method specifically includes steps one to two:
步骤一:分别获取第一骨架点坐标的第一图像梯度q 1和第二骨架点坐标的第二图像梯度q 2Step 1: Obtain the first image gradient q 1 of the first skeleton point coordinate and the second image gradient q 2 of the second skeleton point coordinate, respectively.
具体,以第一骨架点坐标为例,将第一骨架点p 1作为中心,沿第一骨架图像上寻找第一骨架点p 1相邻的2m个骨架点,其中m为定义的局部邻域半径,m的值可根据实际精度需要来设置,由2m个骨架点和第一骨架点p 1可以计算出第一骨架点p 1处第一图像梯度q 1。类似地,采用上述方法可计算得出第二骨架点p 2处的第二图像梯度q 2Specifically, taking the coordinates of the first skeleton point as an example, the first skeleton point p 1 is taken as the center, and 2m skeleton points adjacent to the first skeleton point p 1 are found along the first skeleton image, where m is a defined local neighborhood radius, the value of m may be set according to the actual accuracy required by skeletal point 2m and the first skeleton point p 1 can be calculated first skeleton point p at a gradient image a first q 1. Similarly, the second image gradient q 2 at the second skeleton point p 2 can be calculated using the above method.
步骤二:根据第一图像梯度q 1和第一灰度图像I 1(x 1,y 1)获取激光条纹中心点的第一亚像素坐标,根据第二图像梯度q 2和第一灰度图像I 1(x 2,y 2)获取激光条纹中心点的第二亚像素坐标。 Step 2: Obtain the first sub-pixel coordinates of the center point of the laser stripe according to the first image gradient q 1 and the first gray image I 1 (x 1 , y 1 ), and according to the second image gradient q 2 and the first gray image I 1 (x 2 , y 2 ) acquires the second sub-pixel coordinates of the center point of the laser stripe.
具体地,在第一灰度图像I 1(x 1,y 1)中,以第一骨架点p 1为中心,沿垂直于第一图像梯度q 1的方向上搜索2n个相邻图像点,以2n个相邻图像点的亮度值和第一骨架点p 1的亮度值作为加权系数,计算得到激光条纹中心点的第一亚像素坐标。同样地,在第一灰度图像I 1(x 2,y 2)中,以第二骨架点p 2为中心,沿垂直于第二图像梯度q 2的方向上搜索2n个相邻图像点,以2n个相邻图像点的亮度值和第二骨架点p 2的亮度值作为加权系数,计算得到激光条纹中心点的第二亚像素坐标,这样可以提高激光条纹中心点的定位精度。 Specifically, in the first grayscale image I 1 (x 1 , y 1 ), with the first skeleton point p 1 as the center, 2n adjacent image points are searched in a direction perpendicular to the first image gradient q 1 , Taking the luminance value of 2n adjacent image points and the luminance value of the first skeleton point p 1 as weighting coefficients, the first sub-pixel coordinates of the center point of the laser stripe are calculated. Similarly, in the first grayscale image I 1 (x 2 , y 2 ), with the second skeleton point p 2 as the center, 2n adjacent image points are searched in the direction perpendicular to the second image gradient q 2 , Taking the brightness value of 2n adjacent image points and the brightness value of the second skeleton point p 2 as weighting coefficients, the second sub-pixel coordinates of the center point of the laser stripe are calculated, which can improve the positioning accuracy of the center point of the laser stripe.
进一步地,根据第一亚像素坐标、第二亚像素坐标和双目标定参数计算激 光条纹的中心点在在第一相机坐标系或第二相机坐标系中的三维坐标,这样可提高激光条纹中心点的三维坐标精度。其计算方法与步骤S32的计算方法类似,在此不进行赘述。Further, the three-dimensional coordinates of the center point of the laser stripe in the first camera coordinate system or the second camera coordinate system are calculated according to the first sub-pixel coordinates, the second sub-pixel coordinates and the dual-target fixed parameters, which can improve the center of the laser stripes The three-dimensional coordinate accuracy of the point. The calculation method is similar to the calculation method in step S32, and will not be repeated here.
步骤S4:根据多个时刻的三维坐标和摄像装置的位姿参数对所述管道内壁进行三维重建。Step S4: Three-dimensionally reconstruct the inner wall of the pipeline according to the three-dimensional coordinates at multiple times and the pose parameters of the camera device.
具体地,作为优选实施例,本实施例中的摄像装置安装于移动装置上,移动装置和摄像装置的具有相同的坐标系统,因此通过传感器获取移动装置的位姿参数,再根据摄像装置和移动装置的相对关系,可间接获取移动装置的位姿参数。其中,移动装置选用管道巡检机器人时,其内置有编码器和姿态传感器,可获取移动装置的初始位置、每个时刻的位置以及每个时刻移动装置的方向,从而可以获取摄像装置的初始位置、每个时刻的位置以及每个时刻移动装置的方向。Specifically, as a preferred embodiment, the camera device in this embodiment is installed on a mobile device, and the mobile device and the camera device have the same coordinate system, so the posture parameters of the mobile device are acquired through the sensor, and then the camera device and the mobile The relative relationship of the devices can indirectly obtain the pose parameters of the mobile device. Among them, when the mobile device selects the pipeline inspection robot, it has a built-in encoder and attitude sensor, which can obtain the initial position of the mobile device, the position at each time, and the direction of the mobile device at each time, so that the initial position of the camera device can be obtained , The location at each moment and the direction of the mobile device at each moment.
进一步地,根据每个时刻的激光条纹中心在摄像装置坐标系中三维坐标和摄像装置的位姿参数进行坐标变换,以获取每个时刻的激光条纹中心在摄像装置所在坐标系中的三维坐标。进一步地,将每个时刻的激光条纹中心在摄像装置所在坐标系中的三维坐标转换至起始全局坐标系中,其中,起始全局坐标系为摄像装置处于初始位置时所在的坐标系。当移动装置和摄像装置对管道内壁扫描完成后,根据多个时刻的激光条纹中心在起始全局坐标系中的坐标绘制出三维轮廓线,实现管道内壁的三维重建。其中,步骤S3的计算过程均在三维重建模块42中完成。Further, coordinate transformation is performed according to the three-dimensional coordinates of the laser stripe center at each moment in the camera coordinate system and the pose parameter of the camera to obtain the three-dimensional coordinates of the laser stripe center at each moment in the coordinate system where the camera is located. Further, the three-dimensional coordinates of the laser stripe center at each moment in the coordinate system where the camera device is located are converted into a starting global coordinate system, where the starting global coordinate system is the coordinate system where the camera device is at the initial position. After the mobile device and the camera device scan the inner wall of the pipeline, a three-dimensional contour line is drawn according to the coordinates of the laser stripe center in the starting global coordinate system at multiple times to realize three-dimensional reconstruction of the inner wall of the pipeline. The calculation process of step S3 is completed in the three-dimensional reconstruction module 42.
本发明的实施例公开的一种管道内壁的三维重建方法,通过控制激光装置和摄像装置在管道内移动,可动态获取激光条纹的实时图像信息,从而实时获取管道内壁的图像信息,可实现高精度的管道内壁的三维图像。另外通过采用环形激光实现360度扫描,可更快速地且更全面地获取管道内壁的图像信息,同时也降低了成本。The embodiment of the present invention discloses a three-dimensional reconstruction method for the inner wall of a pipeline. By controlling the movement of the laser device and the camera device in the pipeline, the real-time image information of the laser stripes can be dynamically obtained, so that the image information of the inner wall of the pipeline can be obtained in real time. Accurate 3D image of the inner wall of the pipe. In addition, by using a ring laser to achieve 360-degree scanning, the image information of the inner wall of the pipeline can be obtained more quickly and comprehensively, and the cost is also reduced.
上面对本发明的具体实施方式进行了详细描述,虽然已表示和描述了一些实施例,但本领域技术人员应该理解,在不脱离由权利要求及其等同物限定其范围的本发明的原理和精神的情况下,可以对这些实施例进行修改和完善,这些修改和完善也应在本发明的保护范围内。The specific embodiments of the present invention have been described in detail above, and although some embodiments have been shown and described, those skilled in the art should understand that the principle and spirit of the present invention defined by the claims and their equivalents are not deviated from Under the circumstances, these embodiments can be modified and improved, and these modifications and improvements should also fall within the protection scope of the present invention.

Claims (18)

  1. 一种管道内壁的三维重建方法,其中,包括如下步骤:A three-dimensional reconstruction method of the inner wall of a pipeline, which includes the following steps:
    控制激光装置和摄像装置在管道内同步运动;Control the laser device and camera device to move synchronously in the pipeline;
    控制所述激光装置向管道内壁发射激光,以在所述管道内壁形成激光条纹,同时控制所述摄像装置从两个不同角度同步获取每个时刻的所述激光条纹的图像信息,并记录每个时刻的所述摄像装置的位姿参数;The laser device is controlled to emit laser light to the inner wall of the pipe to form a laser stripe on the inner wall of the pipe, and the camera device is simultaneously controlled to acquire the image information of the laser stripe at each moment from two different angles and record each The pose parameters of the camera device at the moment;
    根据所述图像信息得到每个时刻的所述激光条纹的中心点在对应于每个时刻下的摄像装置坐标系中的三维坐标;Obtaining the three-dimensional coordinates of the center point of the laser stripe at each moment in the coordinate system of the camera device corresponding to each moment according to the image information;
    根据多个时刻的所述三维坐标和所述摄像装置的位姿参数对所述管道内壁进行三维重建。Three-dimensionally reconstruct the inner wall of the pipeline according to the three-dimensional coordinates at multiple times and the pose parameters of the camera device.
  2. 根据权利要求1所述的管道内壁的三维重建方法,其中,所述控制所述摄像装置从两个不同角度同步获取所述激光在所述管道内壁形成的激光条纹的图像信息的方法具体包括:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 1, wherein the method for controlling the camera device to acquire the image information of the laser stripes formed by the laser on the inner wall of the pipeline from two different angles specifically includes:
    利用所述摄像装置的第一相机从第一角度获取所述激光条纹的第一图像;Acquiring the first image of the laser stripe from a first angle using the first camera of the camera device;
    利用所述摄像装置的第二相机从第二角度同步获取所述激光条纹的第二图像;Using the second camera of the camera device to synchronously acquire the second image of the laser stripes from a second angle;
    其中,所述第一角度和第二角度不同。The first angle and the second angle are different.
  3. 根据权利要求1所述的管道内壁的三维重建方法,其中,在控制激光装置和摄像装置在管道内同步运动之前,所述方法还包括:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 1, wherein before the laser device and the camera device are controlled to move synchronously in the pipeline, the method further comprises:
    对所述摄像装置进行双目标定并获得双目标定参数。Perform dual target setting on the camera device and obtain dual target setting parameters.
  4. 根据权利要求3所述的管道内壁的三维重建方法,其中,根据所述图像信息得到每个时刻的所述激光条纹的中心点在对应于每个时刻下的摄像装置坐标系中的三维坐标的方法具体包括:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 3, wherein the center point of the laser stripe at each moment corresponding to the three-dimensional coordinates of the camera coordinate system at each moment is obtained from the image information The methods include:
    分别获取所述激光条纹的中心点在所述第一图像的第一骨架点坐标以及在所述第二图像中的第二骨架点坐标;Obtain the coordinates of the first skeleton point of the laser stripe in the first image and the coordinates of the second skeleton point in the second image, respectively;
    根据所述第一骨架点坐标、第二骨架点坐标和所述双目标定参数获取所述激光条纹的中心点在所述第一相机坐标系或所述第二相机坐标系中的三维坐 标。The three-dimensional coordinates of the center point of the laser stripe in the first camera coordinate system or the second camera coordinate system are obtained according to the first skeleton point coordinates, the second skeleton point coordinates, and the dual-target fixed parameters.
  5. 根据权利要求4所述的管道内壁的三维重建方法,其中,在根据所述第一骨架点坐标、第二骨架点坐标和所述双目标定参数获取所述激光条纹的中心点在所述第一相机坐标系或所述第二相机坐标系中的三维坐标之前,所述方法还包括:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 4, wherein the center point of the laser stripe obtained based on the coordinates of the first skeleton point, the coordinates of the second skeleton point, and the dual target fixed parameter is Before the three-dimensional coordinates in a camera coordinate system or the second camera coordinate system, the method further includes:
    根据所述第一骨架点坐标获取所述激光条纹的中心点在所述第一图像中的第一亚像素坐标;Obtaining the first sub-pixel coordinates of the center point of the laser stripe in the first image according to the coordinates of the first skeleton point;
    根据所述第二骨架点坐标获取所述激光条纹的中心点在所述第二图像中的第二亚像素坐标。Obtain the second sub-pixel coordinates of the center point of the laser stripe in the second image according to the coordinates of the second skeleton point.
  6. 根据权利要求5所述的管道内壁的三维重建方法,其中,所述根据所述第一骨架点坐标、第二骨架点坐标和所述双目标定参数获取所述激光条纹的中心点在所述第一相机坐标系或所述第二相机坐标系中的三维坐标的方法具体为:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 5, wherein the center point of the laser stripe obtained from the first skeleton point coordinate, the second skeleton point coordinate and the dual target fixed parameter is The method of the three-dimensional coordinates in the first camera coordinate system or the second camera coordinate system is specifically:
    根据所述第一亚像素坐标、所述第二亚像素坐标和所述双目标定参数获取所述激光条纹的中心点在所述第一相机坐标系或所述第二相机坐标系中的三维坐标。Acquiring the three-dimensional of the center point of the laser stripe in the first camera coordinate system or the second camera coordinate system according to the first sub-pixel coordinates, the second sub-pixel coordinates and the dual-target fixed parameters coordinate.
  7. 根据权利要求6所述的管道内壁的三维重建方法,其中,所述根据所述第一骨架点坐标获取所述激光条纹的中心点在所述第一图像中的第一亚像素坐标的方法为:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 6, wherein the method of acquiring the first sub-pixel coordinates of the center point of the laser stripe in the first image according to the coordinates of the first skeleton point is :
    获取与所述第一骨架点坐标对应的第一图像梯度;Acquiring a first image gradient corresponding to the coordinates of the first skeleton point;
    根据所述第一图像梯度以及与所述第一图像对应的第一灰度图像获取所述激光条纹的中心点在所述第一图像中的第一亚像素坐标。The first sub-pixel coordinates of the center point of the laser stripe in the first image are obtained according to the first image gradient and the first grayscale image corresponding to the first image.
  8. 根据权利要求6所述的管道内壁的三维重建方法,其中,所述根据所述第二骨架点坐标获取所述激光条纹的中心点在所述第二图像中的第二亚像素坐标的方法为:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 6, wherein the method of acquiring the second sub-pixel coordinates of the center point of the laser stripe in the second image according to the coordinates of the second skeleton point is :
    获取与所述第二骨架点坐标对应的第二图像梯度;Acquiring a second image gradient corresponding to the coordinates of the second skeleton point;
    根据所述第二图像梯度以及与第二图像对应的第二灰度图像获取所述激光条纹的中心点在所述第二图像中的第二亚像素坐标。Obtain the second sub-pixel coordinates of the center point of the laser stripe in the second image according to the second image gradient and the second grayscale image corresponding to the second image.
  9. 根据权利要求1所述的管道内壁的三维重建方法,其中,所述根据所述三维坐标和所述摄像装置的位姿参数对所述管道内壁进行三维重建的方法具体包括:The three-dimensional reconstruction method for the inner wall of the pipeline according to claim 1, wherein the method for three-dimensionally reconstructing the inner wall of the pipeline according to the three-dimensional coordinates and the posture parameters of the camera device specifically includes:
    根据每个时刻的所述三维坐标和所述摄像装置的位姿参数获取每个时刻下所述激光条纹的中心点在起始全局坐标系中的坐标,其中,所述起始全局坐标系为处于初始位置的所述摄像装置所在的坐标系;Obtain the coordinates of the center point of the laser stripe in the starting global coordinate system at each moment according to the three-dimensional coordinates at each moment and the pose parameters of the camera device, where the starting global coordinate system is The coordinate system where the camera device in the initial position is located;
    根据多个时刻的所述激光条纹的中心点在起始全局坐标系中的坐标对所述管道内壁进行三维重建。Three-dimensionally reconstruct the inner wall of the pipeline according to the coordinates of the center point of the laser stripes in the starting global coordinate system at multiple moments.
  10. 根据权利要求1所述的管道内壁的三维重建方法,其中,所述控制所述激光装置向管道内壁发射激光,以在所述管道内壁形成激光条纹的方法具体包括:The three-dimensional reconstruction method of the inner wall of the pipe according to claim 1, wherein the method of controlling the laser device to emit laser light to the inner wall of the pipe to form laser stripes on the inner wall of the pipe specifically includes:
    控制所述激光装置向所述管道内壁发射环形激光,以在所述管道内壁形成环形的激光条纹。The laser device is controlled to emit a ring laser to the inner wall of the pipe to form a ring-shaped laser stripe on the inner wall of the pipe.
  11. 根据权利要求10所述的管道内壁的三维重建方法,其中,所述控制所述摄像装置从两个不同角度同步获取所述激光在所述管道内壁形成的激光条纹的图像信息的方法具体包括:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 10, wherein the method of controlling the camera device to simultaneously acquire the image information of the laser stripes formed on the inner wall of the pipeline from two different angles specifically includes:
    利用所述摄像装置的第一相机从第一角度获取所述激光条纹的第一图像;Acquiring the first image of the laser stripe from a first angle using the first camera of the camera device;
    利用所述摄像装置的第二相机从第二角度同步获取所述激光条纹的第二图像;Using the second camera of the camera device to synchronously acquire the second image of the laser stripes from a second angle;
    其中,所述第一角度和第二角度不同。The first angle and the second angle are different.
  12. 根据权利要求10所述的管道内壁的三维重建方法,其中,在控制激光装置和摄像装置在管道内同步运动之前,所述方法还包括:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 10, wherein before the laser device and the camera device are controlled to move synchronously in the pipeline, the method further comprises:
    对所述摄像装置进行双目标定并获得双目标定参数。Perform dual target setting on the camera device and obtain dual target setting parameters.
  13. 根据权利要求12所述的管道内壁的三维重建方法,其中,根据所述图像信息得到每个时刻的所述激光条纹的中心点在对应于每个时刻下的摄像装置坐标系中的三维坐标的方法具体包括:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 12, wherein the center point of the laser stripe at each moment corresponding to the three-dimensional coordinates in the coordinate system of the camera device at each moment is obtained from the image information The methods include:
    分别获取所述激光条纹的中心点在所述第一图像的第一骨架点坐标以及在所述第二图像中的第二骨架点坐标;Obtain the coordinates of the first skeleton point of the laser stripe in the first image and the coordinates of the second skeleton point in the second image, respectively;
    根据所述第一骨架点坐标、第二骨架点坐标和所述双目标定参数获取所述激光条纹的中心点在所述第一相机坐标系或所述第二相机坐标系中的三维坐标。The three-dimensional coordinates of the center point of the laser stripe in the first camera coordinate system or the second camera coordinate system are obtained according to the first skeleton point coordinates, the second skeleton point coordinates, and the dual-target fixed parameters.
  14. 根据权利要求13所述的管道内壁的三维重建方法,其中,在根据所述第一骨架点坐标、第二骨架点坐标和所述双目标定参数获取所述激光条纹的中心点在所述第一相机坐标系或所述第二相机坐标系中的三维坐标之前,所述方法还包括:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 13, wherein the center point of the laser fringe obtained based on the coordinates of the first skeleton point, the coordinates of the second skeleton point and the dual-target fixed parameter is in the first Before the three-dimensional coordinates in a camera coordinate system or the second camera coordinate system, the method further includes:
    根据所述第一骨架点坐标获取所述激光条纹的中心点在所述第一图像中的第一亚像素坐标;Obtaining the first sub-pixel coordinates of the center point of the laser stripe in the first image according to the coordinates of the first skeleton point;
    根据所述第二骨架点坐标获取所述激光条纹的中心点在所述第二图像中的第二亚像素坐标。Obtain the second sub-pixel coordinates of the center point of the laser stripe in the second image according to the coordinates of the second skeleton point.
  15. 根据权利要求14所述的管道内壁的三维重建方法,其中,所述根据所述第一骨架点坐标、第二骨架点坐标和所述双目标定参数获取所述激光条纹的中心点在所述第一相机坐标系或所述第二相机坐标系中的三维坐标的方法具体为:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 14, wherein the center point of the laser stripe obtained according to the coordinates of the first skeleton point, the coordinates of the second skeleton point and the dual-target fixed parameter is located in the The method of the three-dimensional coordinates in the first camera coordinate system or the second camera coordinate system is specifically:
    根据所述第一亚像素坐标、所述第二亚像素坐标和所述双目标定参数获取所述激光条纹的中心点在所述第一相机坐标系或所述第二相机坐标系中的三维坐标。Acquiring the three-dimensional of the center point of the laser stripe in the first camera coordinate system or the second camera coordinate system according to the first sub-pixel coordinates, the second sub-pixel coordinates and the dual-target fixed parameters coordinate.
  16. 根据权利要求15所述的管道内壁的三维重建方法,其中,所述根据所述第一骨架点坐标获取所述激光条纹的中心点在所述第一图像中的第一亚像素坐标的方法为:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 15, wherein the method of acquiring the first sub-pixel coordinates of the center point of the laser stripe in the first image according to the coordinates of the first skeleton point is :
    获取与所述第一骨架点坐标对应的第一图像梯度;Acquiring a first image gradient corresponding to the coordinates of the first skeleton point;
    根据所述第一图像梯度以及与所述第一图像对应的第一灰度图像获取所述激光条纹的中心点在所述第一图像中的第一亚像素坐标。The first sub-pixel coordinates of the center point of the laser stripe in the first image are obtained according to the first image gradient and the first grayscale image corresponding to the first image.
  17. 根据权利要求15所述的管道内壁的三维重建方法,其中,所述根据所述第二骨架点坐标获取所述激光条纹的中心点在所述第二图像中的第二亚像素坐标的方法为:The three-dimensional reconstruction method of the inner wall of the pipeline according to claim 15, wherein the method for obtaining the second sub-pixel coordinates of the center point of the laser stripe in the second image according to the coordinates of the second skeleton point is :
    获取与所述第二骨架点坐标对应的第二图像梯度;Acquiring a second image gradient corresponding to the coordinates of the second skeleton point;
    根据所述第二图像梯度以及与第二图像对应的第二灰度图像获取所述激光条纹的中心点在所述第二图像中的第二亚像素坐标。Obtain the second sub-pixel coordinates of the center point of the laser stripe in the second image according to the second image gradient and the second grayscale image corresponding to the second image.
  18. 根据权利要求10所述的管道内壁的三维重建方法,其中,所述根据所述三维坐标和所述摄像装置的位姿参数对所述管道内壁进行三维重建的方法具体包括:The three-dimensional reconstruction method for the inner wall of the pipeline according to claim 10, wherein the method for three-dimensionally reconstructing the inner wall of the pipeline according to the three-dimensional coordinates and the posture parameters of the camera device specifically includes:
    根据每个时刻的所述三维坐标和所述摄像装置的位姿参数获取每个时刻下所述激光条纹的中心点在起始全局坐标系中的坐标,其中,所述起始全局坐标系为处于初始位置的所述摄像装置所在的坐标系;Obtain the coordinates of the center point of the laser stripe in the starting global coordinate system at each moment according to the three-dimensional coordinates at each moment and the pose parameters of the camera device, where the starting global coordinate system is The coordinate system where the camera device in the initial position is located;
    根据多个时刻的所述激光条纹的中心点在起始全局坐标系中的坐标对所述管道内壁进行三维重建。Three-dimensionally reconstruct the inner wall of the pipeline according to the coordinates of the center point of the laser stripes in the starting global coordinate system at multiple moments.
PCT/CN2018/115851 2018-11-09 2018-11-16 Three-dimensional reconstruction method for inner wall of pipe WO2020093436A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811333150.9 2018-11-09
CN201811333150.9A CN109544679B (en) 2018-11-09 2018-11-09 Three-dimensional reconstruction method for inner wall of pipeline

Publications (1)

Publication Number Publication Date
WO2020093436A1 true WO2020093436A1 (en) 2020-05-14

Family

ID=65846659

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/115851 WO2020093436A1 (en) 2018-11-09 2018-11-16 Three-dimensional reconstruction method for inner wall of pipe

Country Status (2)

Country Link
CN (1) CN109544679B (en)
WO (1) WO2020093436A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111915758A (en) * 2020-07-24 2020-11-10 广东电网有限责任公司广州供电局 Inspection device and inspection method
CN115657061A (en) * 2022-12-13 2023-01-31 成都量芯集成科技有限公司 Indoor wall surface three-dimensional scanning device and method
CN116908217A (en) * 2023-09-11 2023-10-20 中北大学 Deep hole measurement and three-dimensional reconstruction system and application method thereof
WO2024077084A1 (en) * 2022-10-04 2024-04-11 Nutech Ventures Dual-function depth camera array for inline 3d reconstruction of complex pipelines

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110766785B (en) * 2019-09-17 2023-05-05 武汉大学 Real-time positioning and three-dimensional reconstruction device and method for underground pipeline
CN111551126B (en) * 2020-04-20 2021-05-14 清华大学 Irregular pipeline inner wall mobile measurement robot and three-dimensional reconstruction method and system
CN111540002A (en) * 2020-04-24 2020-08-14 西安正源井像电子科技有限公司 Method and device for detecting tubular column through laser scanning visual three-dimensional modeling
CN113721249A (en) * 2020-05-21 2021-11-30 武汉中仪物联技术股份有限公司 Method, system and equipment for detecting defects in pipeline
CN112576861B (en) * 2020-11-25 2021-11-05 深圳市博铭维智能科技有限公司 Geological radar robot, control system, method, terminal and readable storage medium
CN113188476B (en) * 2021-04-19 2023-01-31 思看科技(杭州)股份有限公司 Three-dimensional scanning system and three-dimensional scanning method
CN113223180B (en) * 2021-05-12 2022-09-20 武汉中仪物联技术股份有限公司 Pipeline three-dimensional modeling method and system based on multi-sensor fusion
CN113223082B (en) * 2021-05-12 2022-08-02 武汉中仪物联技术股份有限公司 Pipeline scanning method, scanning device, radar crawler and electronic equipment
CN113701664A (en) * 2021-08-04 2021-11-26 广州市运通水务有限公司 Underground target feature rapid extraction method based on three-dimensional laser scanning technology
CN114299157B (en) * 2021-12-15 2022-11-08 苏州大学 Method and system for continuation relay calibration of stereo camera in tokamak cabin
CN114397305B (en) * 2022-01-31 2024-08-13 北京航空航天大学 Variable inner diameter pipeline inner wall defect detection robot based on annular structured light vision
CN116132814B (en) * 2022-04-01 2023-12-22 港珠澳大桥管理局 Submarine immersed tube splicing structure information acquisition equipment, acquisition method, device and equipment
CN114812414B (en) * 2022-04-12 2024-01-12 西安交通大学 Composite measuring device for inner diameter and inner wall surface defects of pipeline
CN115046499B (en) * 2022-06-17 2023-06-30 中国地质大学(武汉) Annular laser pipeline detection system and method based on triangulation principle
CN117808966A (en) * 2023-12-15 2024-04-02 国网江苏省电力有限公司盐城供电分公司 Underground pipeline three-dimensional reconstruction method based on binocular laser scanning

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1497585A1 (en) * 2002-04-19 2005-01-19 Norsk Elektro Optikk AS Pipeline internal inspection device and method
CN101012912A (en) * 2005-05-18 2007-08-08 浙江大学 Appearance measuring and detecting method for inner surface of space curve type long-distance microtubule
CN102003946A (en) * 2010-09-02 2011-04-06 北京航空航天大学 High-temperature three-dimensional digital image related measurement system and measurement method
CN102062588A (en) * 2009-11-11 2011-05-18 中国科学院沈阳自动化研究所 Computer binocular vision denture scanning device and three-dimensional reconstruction method thereof
CN102135236A (en) * 2011-01-05 2011-07-27 北京航空航天大学 Automatic non-destructive testing method for internal wall of binocular vision pipeline
CN102590217A (en) * 2012-01-12 2012-07-18 北京化工大学 Pipeline inner surface detection system based on circular structured light vision sensor
CN103940369A (en) * 2014-04-09 2014-07-23 大连理工大学 Quick morphology vision measuring method in multi-laser synergic scanning mode
CN104215198A (en) * 2014-08-25 2014-12-17 南京天睿朗自动化科技有限公司 Scanner for scanning three-dimensional profile of internal surface of tubular object
CN104266615A (en) * 2014-10-14 2015-01-07 上海电气集团股份有限公司 Visual detection device and method for pipeline inner wall
CN104390584A (en) * 2014-05-22 2015-03-04 北京中天荣泰科技发展有限公司 Binocular vision laser calibration measurement device and measurement method
CN104657587A (en) * 2015-01-08 2015-05-27 华中科技大学 Method for extracting center line of laser stripe
CN105023270A (en) * 2015-05-29 2015-11-04 汤一平 Proactive 3D stereoscopic panorama visual sensor for monitoring underground infrastructure structure
CN105931232A (en) * 2016-04-18 2016-09-07 南京航空航天大学 High-precision sub-pixel extraction method for centers of light bars of structured light
CN108109177A (en) * 2016-11-24 2018-06-01 广州映博智能科技有限公司 Pipe robot vision processing system and method based on monocular cam
CN108534704A (en) * 2018-04-19 2018-09-14 中国人民解放军陆军工程大学 Cylinder inner wall detection system based on structured light
CN209013921U (en) * 2018-11-09 2019-06-21 深圳先进技术研究院 The three-dimensional scanner of inner wall of the pipe

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3837431B2 (en) * 2004-07-26 2006-10-25 国立大学法人 宮崎大学 Pipe inner surface shape measuring device
JP2009192272A (en) * 2008-02-12 2009-08-27 Univ Of Miyazaki Position measuring device and method
CN101499168B (en) * 2009-03-19 2011-01-26 哈尔滨工业大学 Structured light strip center extraction method based on ridge line tracing and Hessian matrix
CN104424630A (en) * 2013-08-20 2015-03-18 华为技术有限公司 Three-dimension reconstruction method and device, and mobile terminal
CN106292653B (en) * 2015-05-21 2018-12-14 中国科学院沈阳自动化研究所 The pipeline vehicle method for correcting error of view-based access control model sensing system

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1497585A1 (en) * 2002-04-19 2005-01-19 Norsk Elektro Optikk AS Pipeline internal inspection device and method
CN101012912A (en) * 2005-05-18 2007-08-08 浙江大学 Appearance measuring and detecting method for inner surface of space curve type long-distance microtubule
CN102062588A (en) * 2009-11-11 2011-05-18 中国科学院沈阳自动化研究所 Computer binocular vision denture scanning device and three-dimensional reconstruction method thereof
CN102003946A (en) * 2010-09-02 2011-04-06 北京航空航天大学 High-temperature three-dimensional digital image related measurement system and measurement method
CN102135236A (en) * 2011-01-05 2011-07-27 北京航空航天大学 Automatic non-destructive testing method for internal wall of binocular vision pipeline
CN102590217A (en) * 2012-01-12 2012-07-18 北京化工大学 Pipeline inner surface detection system based on circular structured light vision sensor
CN103940369A (en) * 2014-04-09 2014-07-23 大连理工大学 Quick morphology vision measuring method in multi-laser synergic scanning mode
CN104390584A (en) * 2014-05-22 2015-03-04 北京中天荣泰科技发展有限公司 Binocular vision laser calibration measurement device and measurement method
CN104215198A (en) * 2014-08-25 2014-12-17 南京天睿朗自动化科技有限公司 Scanner for scanning three-dimensional profile of internal surface of tubular object
CN104266615A (en) * 2014-10-14 2015-01-07 上海电气集团股份有限公司 Visual detection device and method for pipeline inner wall
CN104657587A (en) * 2015-01-08 2015-05-27 华中科技大学 Method for extracting center line of laser stripe
CN105023270A (en) * 2015-05-29 2015-11-04 汤一平 Proactive 3D stereoscopic panorama visual sensor for monitoring underground infrastructure structure
CN105931232A (en) * 2016-04-18 2016-09-07 南京航空航天大学 High-precision sub-pixel extraction method for centers of light bars of structured light
CN108109177A (en) * 2016-11-24 2018-06-01 广州映博智能科技有限公司 Pipe robot vision processing system and method based on monocular cam
CN108534704A (en) * 2018-04-19 2018-09-14 中国人民解放军陆军工程大学 Cylinder inner wall detection system based on structured light
CN209013921U (en) * 2018-11-09 2019-06-21 深圳先进技术研究院 The three-dimensional scanner of inner wall of the pipe

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111915758A (en) * 2020-07-24 2020-11-10 广东电网有限责任公司广州供电局 Inspection device and inspection method
WO2024077084A1 (en) * 2022-10-04 2024-04-11 Nutech Ventures Dual-function depth camera array for inline 3d reconstruction of complex pipelines
CN115657061A (en) * 2022-12-13 2023-01-31 成都量芯集成科技有限公司 Indoor wall surface three-dimensional scanning device and method
CN116908217A (en) * 2023-09-11 2023-10-20 中北大学 Deep hole measurement and three-dimensional reconstruction system and application method thereof
CN116908217B (en) * 2023-09-11 2023-11-17 中北大学 Deep hole measurement and three-dimensional reconstruction system and application method thereof

Also Published As

Publication number Publication date
CN109544679B (en) 2023-04-18
CN109544679A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
WO2020093436A1 (en) Three-dimensional reconstruction method for inner wall of pipe
Shariq et al. Revolutionising building inspection techniques to meet large-scale energy demands: A review of the state-of-the-art
CN102072725B (en) Spatial three-dimension (3D) measurement method based on laser point cloud and digital measurable images
CN102927448B (en) Pipeline non-destructive testing method
CN103971406B (en) Submarine target three-dimensional rebuilding method based on line-structured light
US10302424B2 (en) Motion contrast depth scanning
Liu et al. The use of laser range finder on a robotic platform for pipe inspection
CN105115560B (en) A kind of non-contact measurement method of cabin volume of compartment
CN103700140B (en) Spatial modeling method used for linkage of single gun camera and multiple dome cameras
CN116879308A (en) Industrial machine vision system image processing method
CN110766785B (en) Real-time positioning and three-dimensional reconstruction device and method for underground pipeline
CN114638909A (en) Substation semantic map construction method based on laser SLAM and visual fusion
CN102155923A (en) Splicing measuring method and system based on three-dimensional target
CN104330074A (en) Intelligent surveying and mapping platform and realizing method thereof
CN104574393A (en) Three-dimensional pavement crack image generation system and method
CN103196370A (en) Measuring method and measuring device of conduit connector space pose parameters
CN104034263A (en) Non-contact measurement method for sizes of forged pieces
CN106996748A (en) Wheel diameter measuring method based on binocular vision
CN109101935A (en) Figure action based on thermal imaging camera captures system and method
CN114067197A (en) Pipeline defect identification and positioning method based on target detection and binocular vision
Pahwa et al. Dense 3D reconstruction for visual tunnel inspection using unmanned aerial vehicle
CN105023270A (en) Proactive 3D stereoscopic panorama visual sensor for monitoring underground infrastructure structure
Mahmoudzadeh et al. Kinect, a novel cutting edge tool in pavement data collection
CN113359154A (en) Indoor and outdoor universal high-precision real-time measurement method
Harvent et al. Multi-view dense 3D modelling of untextured objects from a moving projector-cameras system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18939527

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18939527

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 05/11/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18939527

Country of ref document: EP

Kind code of ref document: A1