CN114427835A - A method and device for detecting the center of a support hole under low light in a mine - Google Patents
A method and device for detecting the center of a support hole under low light in a mine Download PDFInfo
- Publication number
- CN114427835A CN114427835A CN202210117936.7A CN202210117936A CN114427835A CN 114427835 A CN114427835 A CN 114427835A CN 202210117936 A CN202210117936 A CN 202210117936A CN 114427835 A CN114427835 A CN 114427835A
- Authority
- CN
- China
- Prior art keywords
- line laser
- pixel
- blocks
- anchor net
- anchor
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000003384 imaging method Methods 0.000 claims abstract description 61
- 238000005286 illumination Methods 0.000 claims abstract 7
- 238000000605 extraction Methods 0.000 claims description 33
- 230000005484 gravity Effects 0.000 claims description 18
- 238000001514 detection method Methods 0.000 claims description 8
- 230000011218 segmentation Effects 0.000 claims description 6
- 238000003709 image segmentation Methods 0.000 claims description 3
- 230000001681 protective effect Effects 0.000 claims 3
- 238000010586 diagram Methods 0.000 description 8
- 238000005065 mining Methods 0.000 description 4
- 239000003245 coal Substances 0.000 description 3
- 230000018109 developmental process Effects 0.000 description 3
- 238000001914 filtration Methods 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000005553 drilling Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000011435 rock Substances 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/002—Measuring arrangements characterised by the use of optical techniques for measuring two or more coordinates
-
- E—FIXED CONSTRUCTIONS
- E21—EARTH OR ROCK DRILLING; MINING
- E21D—SHAFTS; TUNNELS; GALLERIES; LARGE UNDERGROUND CHAMBERS
- E21D19/00—Provisional protective covers for working space
- E21D19/04—Provisional protective covers for working space for use in drifting galleries
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Mining & Mineral Resources (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Life Sciences & Earth Sciences (AREA)
- Geochemistry & Mineralogy (AREA)
- Geology (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
Description
技术领域technical field
本发明涉及矿井支护和三维视觉传感器技术领域,特别是涉及一种矿井低光照下支护孔中心检测方法及装置。The invention relates to the technical field of mine support and three-dimensional vision sensors, in particular to a method and device for detecting the center of a support hole under low light in a mine.
背景技术Background technique
在煤矿开采作业时,通常先用掘进机将岩体和煤矿击碎,形成巷道空间方便作业,对巷道进行开采之前需做好安全措施才能对煤矿进行充分的开采,随着开采的深度不断加深,地质也越来越复杂,为了确保开采过程中巷道不会塌陷掉落碎石等,需要对掘进巷道的岩壁进行支护。In coal mining operations, the rock mass and coal mine are usually crushed by a roadheader to form a roadway space for easy operation. Before mining the roadway, safety measures must be taken before the coal mine can be fully exploited. With the deepening of the mining depth In order to ensure that the roadway will not collapse and drop gravel during the mining process, the rock wall of the roadway needs to be supported.
综合考虑地质经济等条件,根据不同的地质情况支护主要分为:锚杆支护、锚网支护和锚网带支护。为了防止在打锚杆的过程中破坏锚网,需要寻找合适的位置让锚杆顺利穿过锚网和锚网带,目前穿锚杆的位置由人工确定。人工虽然大体上可以为打锚杆确定合适的位置,但是人工确定位置带来以下几个问题:1)由于人为因素可能找到的位置并非理想位置;2)人工识别存在一定的安全隐患;3)不符合全自动钻锚机的发展。Considering the geological and economic conditions, the support is mainly divided into: bolt support, anchor mesh support and anchor mesh belt support according to different geological conditions. In order to prevent the anchor net from being damaged in the process of driving the anchor rod, it is necessary to find a suitable position for the anchor rod to pass through the anchor net and the anchor net belt smoothly. At present, the position of the anchor rod is manually determined. Although manual work can generally determine the appropriate position for bolting, the manual position determination brings the following problems: 1) The position that may be found due to human factors is not an ideal position; 2) There are certain safety hazards in manual identification; 3) It is not in line with the development of fully automatic anchor drilling machines.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种矿井低光照下支护孔中心检测方法及装置,可以自动实现锚杆位置的确定。The purpose of the present invention is to provide a method and device for detecting the center of a support hole under low light in a mine, which can automatically realize the determination of the position of the bolt.
为实现上述目的,本发明提供了如下方案:For achieving the above object, the present invention provides the following scheme:
一种矿井低光照下支护孔中心检测方法,包括:A method for detecting the center of a support hole under low light in a mine, comprising:
按照时间序列获取多张激光图片,所述激光图片为线激光发生装置在扫描支护系统的过程中形成的图片;所述支护系统包括支护支架和锚网,所述锚网设置在所述支护支架上;Acquire a plurality of laser pictures according to time series, and the laser pictures are pictures formed by the line laser generating device in the process of scanning the support system; the support system includes a support bracket and an anchor net, and the anchor net is arranged at the on the support bracket;
对于任意一张激光图片,采用HSV颜色模型对所述激光图片中的线激光块所在的像素点和图片背景所在像素点进行标记得到标记后的图片;For any laser image, the HSV color model is used to mark the pixel points where the line laser blocks in the laser image are located and the pixel points where the image background is located to obtain the marked image;
对所述标记后的图片进行轮廓提取得到所述线激光块的数量和各所述线激光块的长和宽;Perform contour extraction on the marked picture to obtain the number of the line laser blocks and the length and width of each of the line laser blocks;
根据所述线激光块的数量和各线激光块的长和宽确定各线激光块所在像素的像素类型并将所述像素类型标定到各所述线激光块;所述像素类型包括背景像素、锚网像素和锚网带像素;According to the number of the line laser blocks and the length and width of each line laser block, determine the pixel type of the pixel where each line laser block is located, and calibrate the pixel type to each of the line laser blocks; the pixel type includes background pixels, Anchor web pixels and anchor web band pixels;
将所有标定后的线激光块整合形成整合后图像;Integrate all calibrated line laser blocks to form an integrated image;
基于各所述线激光块的宽、激光标定关系、所述成像装置的内参和所述线激光发生装置的扫描角度得到所述整合后图像中各像素点在世界坐标系下的三维坐标,所述激光标定关系为标定的所述支护系统到所述激光发生装置之间的距离与线激光块的宽度之间的关系;Based on the width of each line laser block, the laser calibration relationship, the internal reference of the imaging device and the scanning angle of the line laser generating device, the three-dimensional coordinates of each pixel in the integrated image in the world coordinate system are obtained. The laser calibration relationship is the relationship between the calibrated distance between the support system and the laser generating device and the width of the line laser block;
对所述整合后图像进行轮廓提取得到锚网轮廓和锚网带轮廓并根据所述锚网轮廓中各像素点在世界坐标系下的三维坐标和所述锚网带轮廓中各像素点在世界坐标系下的三维坐标得到锚网孔重心在世界坐标系下的三维坐标和锚网带孔中心在世界坐标系下的三维坐标。Perform contour extraction on the integrated image to obtain the anchor net contour and the anchor net belt contour, and according to the three-dimensional coordinates of each pixel in the anchor net contour under the world coordinate system and the The three-dimensional coordinates in the coordinate system are obtained to obtain the three-dimensional coordinates of the center of gravity of the anchor mesh in the world coordinate system and the three-dimensional coordinates of the center of the anchor mesh with holes in the world coordinate system.
可选的,所述对所述标记后的图片进行轮廓提取得到所述线激光块的数量和各所述线激光块的长和宽,具体包括:Optionally, performing contour extraction on the marked picture to obtain the number of the line laser blocks and the length and width of each of the line laser blocks, specifically including:
对所述标记后的图片进行轮廓提取得到所述线激光块的数量和各所述线激光块的轮廓坐标;Perform contour extraction on the marked picture to obtain the number of the line laser blocks and the contour coordinates of each of the line laser blocks;
根据各所述线激光块的轮廓坐标计算各所述线激光块的长和宽。The length and width of each of the line laser blocks are calculated according to the contour coordinates of each of the line laser blocks.
可选的,所述对所述整合后图像进行轮廓提取得到锚网轮廓和锚网带轮廓并根据所述锚网轮廓中各像素点在世界坐标系下的三维坐标和所述锚网带轮廓中各像素点在世界坐标系下的三维坐标得到锚网孔重心在世界坐标系下的三维坐标和锚网带孔中心在世界坐标系下的三维坐标,具体包括:Optionally, performing contour extraction on the integrated image to obtain an anchor mesh outline and an anchor mesh belt outline, and according to the three-dimensional coordinates of each pixel in the anchor mesh outline under the world coordinate system and the anchor mesh strip outline. The three-dimensional coordinates of each pixel in the world coordinate system can obtain the three-dimensional coordinates of the anchor mesh center of gravity in the world coordinate system and the three-dimensional coordinates of the anchor mesh belt hole center in the world coordinate system, including:
对所述整合后图像进行图像分割得到第一图像和第二图像;所述第一图像包括锚网像素和背景像素;所述第二图像包括锚网带像素和背景像素;Perform image segmentation on the integrated image to obtain a first image and a second image; the first image includes anchor mesh pixels and background pixels; the second image includes anchor mesh belt pixels and background pixels;
对所述第一图像和所述第二图像分别进行轮廓提取得到锚网轮廓和锚网带轮廓并根据所述锚网轮廓中各像素点在世界坐标系下的三维坐标和所述锚网带轮廓中各像素点在世界坐标系下的三维坐标得到锚网孔重心在世界坐标系下的三维坐标和锚网带孔中心在世界坐标系下的三维坐标。Perform contour extraction on the first image and the second image respectively to obtain the anchor net contour and the anchor net belt contour, and according to the three-dimensional coordinates of each pixel in the anchor net contour under the world coordinate system and the anchor net belt The three-dimensional coordinates of each pixel in the outline in the world coordinate system are obtained to obtain the three-dimensional coordinates of the anchor mesh center of gravity in the world coordinate system and the three-dimensional coordinates of the anchor mesh belt hole center in the world coordinate system.
可选的,所述根据所述线激光块的数量和各线激光块的长和宽确定各线激光块所在像素的像素类型,具体包括:Optionally, determining the pixel type of the pixel where each line laser block is located according to the number of the line laser blocks and the length and width of each line laser block specifically includes:
根据各线激光块的长和宽确定各线激光块的长宽比;Determine the aspect ratio of each line laser block according to the length and width of each line laser block;
一张所述激光图片中的所述线激光块的数量大于第一设定阈值且所述线激光块的长宽比大于第二设定阈值则所述线激光块的像素类型为背景像素;If the number of the line laser blocks in one of the laser pictures is greater than the first set threshold and the aspect ratio of the line laser blocks is greater than the second set threshold, the pixel type of the line laser block is background pixels;
一张所述激光图片中的所述线激光块的数量大于所述第一设定阈值且所述线激光块的长宽比小于第三设定阈值则所述线激光块的像素类型为锚网像素;If the number of the line laser blocks in one of the laser pictures is greater than the first set threshold and the aspect ratio of the line laser blocks is less than the third set threshold, the pixel type of the line laser block is anchor web pixel;
所述线激光块为一条直线且在第一设定数量的图中出现则所述线激光块的像素类型为锚网像素;If the line laser block is a straight line and appears in the first set number of pictures, the pixel type of the line laser block is anchor mesh pixels;
所述线激光块为一条直线且在第二设定数量的图中出现且所述线激光块数量小于第四设定阈值且所述线激光块的长宽比大于第五设定阈值则所述线激光块的像素类型为锚网带;The line laser block is a straight line and appears in the diagram of the second set number and the number of the line laser block is less than the fourth set threshold and the aspect ratio of the line laser block is greater than the fifth set threshold. The pixel type of the line laser block is anchor mesh belt;
所述线激光块为一条直线且在所述第二设定数量的图中出现且所述线激光块数量小于所述第四设定阈值且所述线激光块的长宽比小于第六设定阈值则所述线激光块的像素类型为背景。The line laser block is a straight line and appears in the graph of the second set number and the number of line laser blocks is less than the fourth set threshold and the aspect ratio of the line laser block is less than the sixth set threshold. If the threshold is set, the pixel type of the line laser block is background.
可选的,所述基于各所述线激光块的宽、激光标定关系、所述成像装置的内参和所述线激光发生装置的扫描角度得到所述整合后图像中各像素点在世界坐标系下的三维坐标,具体包括:Optionally, the world coordinate system of each pixel in the integrated image is obtained based on the width of each of the line laser blocks, the laser calibration relationship, the internal reference of the imaging device, and the scanning angle of the line laser generator. The three-dimensional coordinates below, specifically include:
根据所述线激光块的宽和所述激光标定关系得到所述线激光发生装置到所述支护系统的距离;Obtain the distance from the line laser generator to the support system according to the width of the line laser block and the laser calibration relationship;
根据所述线激光发生装置到所述支护系统的距离和所述线激光发生装置的扫描角度确定线激光块在世界坐标系下Z方向上的坐标;Determine the coordinates of the line laser block in the Z direction in the world coordinate system according to the distance from the line laser generating device to the support system and the scanning angle of the line laser generating device;
基于所述成像装置的内参和所述线激光块在世界坐标系下Z方向上的坐标得到整合后图像中各像素点在世界坐标系下的三维坐标。Based on the internal reference of the imaging device and the coordinates of the line laser block in the Z direction in the world coordinate system, the three-dimensional coordinates of each pixel in the integrated image in the world coordinate system are obtained.
一种矿井低光照下支护孔中心检测装置,包括:A device for detecting the center of a support hole under low light in a mine, comprising:
支护系统、扫描成像子系统和数据处理子系统;Support system, scanning imaging subsystem and data processing subsystem;
所述支护系统包括支护支架、锚网带和锚网,所述锚网设置在所述支护支架上,所述锚网带用于将所述锚网固定在所述支护支架上;The support system includes a support bracket, an anchor mesh belt and an anchor mesh, the anchor mesh is arranged on the support bracket, and the anchor mesh strip is used to fix the anchor mesh on the support bracket ;
所述扫描成像子系统包括:线激光发生装置和成像装置,所述锚网和所述锚网带设置在所述线激光发生装置的出射光路上,所述成像装置设置在所述锚网和所述锚网带对所述线激光发生装置的反射光路上,所述成像装置用于拍摄多张激光图片;The scanning imaging subsystem includes: a line laser generating device and an imaging device, the anchor mesh and the anchor mesh belt are arranged on the outgoing optical path of the line laser generating device, and the imaging device is arranged on the anchor mesh and the anchor mesh. On the reflection light path of the anchor mesh belt to the line laser generating device, the imaging device is used for taking a plurality of laser pictures;
所述数据处理子系统与所述成像装置连接,所述数据处理子系统用于获取所述成像装置拍摄的激光图片,并按照上述所述的矿井低光照下支护孔中心检测方法对所述激光图片进行处理。The data processing subsystem is connected to the imaging device, and the data processing subsystem is used to obtain the laser pictures taken by the imaging device, and to detect the center of the support hole under the low light of the mine as described above. Laser images are processed.
可选的,所述数据处理子系统包括:依次连接的图像处理模块、三维重建模块和轮廓提取模块;所述图像处理模块与所述成像装置连接;Optionally, the data processing subsystem includes: an image processing module, a three-dimensional reconstruction module and a contour extraction module connected in sequence; the image processing module is connected to the imaging device;
所述图像处理模块用于获取所述成像装置拍摄的激光图片,根据所述线激光块的数量和所述线激光块的长和宽确定各所述线激光块所在像素的像素类型并将所述像素类型标定到各所述线激光块并将所有标定后的线激光块整合形成整合后图像;所述像素类型包括背景像素、锚网像素和锚网带像素;The image processing module is used to obtain the laser pictures taken by the imaging device, determine the pixel type of the pixel where each of the line laser blocks is located according to the number of the line laser blocks and the length and width of the line laser blocks The pixel type is calibrated to each of the line laser blocks and all the calibrated line laser blocks are integrated to form an integrated image; the pixel types include background pixels, anchor mesh pixels and anchor mesh belt pixels;
所述三维重建模块用于基于各所述线激光块的宽、激光标定关系、所述成像装置的内参和所述线激光发生装置的扫描角度得到所述整合后图像中各像素点在世界坐标系下的三维坐标;所述激光标定关系为标定的所述支护系统到所述激光发生装置之间的距离与线激光块的宽度之间的关系;The three-dimensional reconstruction module is used to obtain the world coordinates of each pixel in the integrated image based on the width of each of the line laser blocks, the laser calibration relationship, the internal reference of the imaging device, and the scanning angle of the line laser generator. The three-dimensional coordinates under the system; the laser calibration relationship is the relationship between the distance between the calibrated support system and the laser generating device and the width of the line laser block;
所述轮廓提取模块用于对所述整合后图像进行轮廓提取得到锚网轮廓和锚网带轮廓并根据所述锚网轮廓中各像素点在世界坐标系下的三维坐标和所述锚网带轮廓中各像素点在世界坐标系下的三维坐标得到锚网孔重心在世界坐标系下的三维坐标和锚网带孔中心在世界坐标系下的三维坐标。The contour extraction module is used to perform contour extraction on the integrated image to obtain the anchor net contour and the anchor net belt contour, and according to the three-dimensional coordinates of each pixel in the anchor net contour under the world coordinate system and the anchor net belt. The three-dimensional coordinates of each pixel in the outline in the world coordinate system are obtained to obtain the three-dimensional coordinates of the anchor mesh center of gravity in the world coordinate system and the three-dimensional coordinates of the anchor mesh belt hole center in the world coordinate system.
可选的,所述数据处理子系统还包括:相机标定模块,所述相机标定模块用于标定所述成像装置的内参和标定激光标定关系。Optionally, the data processing subsystem further includes: a camera calibration module, where the camera calibration module is used for calibrating the internal parameters of the imaging device and calibrating the laser calibration relationship.
可选的,所述三维重建模块具体包括:距离确定子模块、Z坐标确定子模块和三维坐标确定子模块;Optionally, the three-dimensional reconstruction module specifically includes: a distance determination sub-module, a Z-coordinate determination sub-module, and a three-dimensional coordinate determination sub-module;
所述距离确定子模块,用于根据所述线激光块的宽和所述激光标定关系得到所述线激光发生装置到所述支护系统的距离;The distance determination submodule is used to obtain the distance from the line laser generator to the support system according to the width of the line laser block and the laser calibration relationship;
所述Z坐标确定子模块,用于根据所述线激光发生装置到所述支护系统的距离和所述线激光发生装置的扫描角度确定线激光块在世界坐标系下Z方向上的坐标;The Z coordinate determination submodule is used to determine the coordinates of the line laser block in the Z direction in the world coordinate system according to the distance from the line laser generator to the support system and the scanning angle of the line laser generator;
所述三维坐标确定子模块,用于基于所述成像装置的内参和所述线激光块在世界坐标系下Z方向上的坐标得到整合后图像中各像素点在世界坐标系下的三维坐标。The three-dimensional coordinate determination sub-module is configured to obtain the three-dimensional coordinates of each pixel in the integrated image in the world coordinate system based on the internal reference of the imaging device and the coordinates of the line laser block in the Z direction in the world coordinate system.
可选的,所述图像处理模块包括:图像HSV分割子模块、轮廓提取子模块、类型判断子模块和类型图像生成子模块;Optionally, the image processing module includes: an image HSV segmentation submodule, a contour extraction submodule, a type judgment submodule, and a type image generation submodule;
所述HSV分割子模块,用于采用HSV颜色模型对所述激光图片中的线激光块所在的像素点和图片背景所在像素点进行标记得到标记后的图片;The HSV segmentation sub-module is used to mark the pixel points where the line laser blocks in the laser picture are located and the pixel points where the picture background is located by using the HSV color model to obtain the marked picture;
所述轮廓提取子模块,用于对所述标记后的图片进行轮廓提取得到所述线激光块的数量和各所述线激光块的长和宽;The contour extraction sub-module is configured to perform contour extraction on the marked picture to obtain the number of the line laser blocks and the length and width of each of the line laser blocks;
所述类型判断子模块,用于根据所述线激光块的数量和各线激光块的长和宽确定各线激光块所在像素的像素类型并将所述像素类型标定到各所述线激光块;The type judging submodule is used to determine the pixel type of the pixel where each line laser block is located according to the number of the line laser blocks and the length and width of each line laser block, and demarcate the pixel type to each of the line laser blocks ;
所述类型图像生成子模块,用于将所有标定后的线激光块整合形成整合后图像。The image generation sub-module of the type is used to integrate all the calibrated line laser blocks to form an integrated image.
根据本发明提供的具体实施例,本发明公开了以下技术效果:本发明按照时间序列获取多张激光图片,所述激光图片为线激光发生装置照射在支护系统上形成的图片;所述支护系统包括支护支架和锚网,所述锚网设置在所述支护支架上;对于任意一张激光图片,采用HSV颜色模型对所述激光图片中的线激光块所在的像素点和图片背景所在像素点进行标记得到标记后的图片;对所述标记后的图片进行轮廓提取得到所述线激光块的数量和各所述线激光块的长和宽;根据所述线激光块的数量和各线激光块的长和宽确定各线激光块所在像素的像素类型并将所述像素类型标定到各所述线激光块;所述像素类型包括背景像素、锚网像素和锚网带像素;将所有标定后的线激光块整合形成整合后图像;基于各所述线激光块的宽、激光标定关系、所述成像装置的内参和所述线激光发生装置的扫描角度得到所述整合后图像中各像素点在世界坐标系下的三维坐标;对所述整合后图像进行轮廓提取得到锚网轮廓和锚网带轮廓并根据所述锚网轮廓中各像素点在世界坐标系下的三维坐标和所述锚网带轮廓中各像素点在世界坐标系下的三维坐标得到锚网孔重心在世界坐标系下的三维坐标和锚网带孔中心在世界坐标系下的三维坐标,可以实现锚杆位置的自动确定。According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: the present invention obtains a plurality of laser pictures according to time series, and the laser pictures are pictures formed by the line laser generating device irradiated on the support system; The support system includes a support bracket and an anchor net, and the anchor net is arranged on the support bracket; for any laser picture, the pixel points and pictures where the line laser blocks in the laser picture are located are determined by the HSV color model. Mark the pixels where the background is located to obtain the marked picture; perform contour extraction on the marked picture to obtain the number of the line laser blocks and the length and width of each line laser block; according to the number of the line laser blocks and the length and width of each line laser block to determine the pixel type of the pixel where each line laser block is located and calibrate the pixel type to each line laser block; the pixel types include background pixels, anchor mesh pixels and anchor mesh belt pixels Integrate all the calibrated line laser blocks to form an integrated image; obtain the integrated image based on the width of each of the line laser blocks, the laser calibration relationship, the internal reference of the imaging device and the scanning angle of the line laser generator The three-dimensional coordinates of each pixel in the image under the world coordinate system; the contour extraction is performed on the integrated image to obtain the anchor net contour and the anchor net belt contour, and the three-dimensional coordinates of each pixel in the anchor net contour under the world coordinate system are obtained. The coordinates and the three-dimensional coordinates of each pixel in the outline of the anchor mesh belt under the world coordinate system are obtained to obtain the three-dimensional coordinates of the center of gravity of the anchor mesh under the world coordinate system and the three-dimensional coordinates of the center of the anchor mesh belt hole under the world coordinate system, which can realize Automatic determination of anchor position.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings required in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some of the present invention. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative labor.
图1为本发明实施例提供的支护孔中心检测方法的流程图;1 is a flowchart of a method for detecting the center of a support hole provided by an embodiment of the present invention;
图2为本发明实施例提供的支护孔中心检测装置的结构示意图;2 is a schematic structural diagram of a support hole center detection device provided by an embodiment of the present invention;
图3为本发明实施例提供的扫描成像系统的结构示意图;3 is a schematic structural diagram of a scanning imaging system provided by an embodiment of the present invention;
图4为本发明实施例提供的像素所属类型示意图;4 is a schematic diagram of a type of a pixel provided by an embodiment of the present invention;
图5为本发明实施例提供的扫描示意图;5 is a schematic diagram of scanning provided by an embodiment of the present invention;
图6为本发明实施例提供的锚网轮廓提取类型示意图;6 is a schematic diagram of an anchor net outline extraction type provided by an embodiment of the present invention;
图7为本发明实施例提供的锚网带轮廓提取类型示意图。FIG. 7 is a schematic diagram of an anchor mesh belt outline extraction type provided by an embodiment of the present invention.
符号说明:Symbol Description:
1-支护系统,2-扫描成像系统,11-支护支架,12-锚网,13-锚网带,14-挂钩,21-传感器支架,22-线激光发生装置,23-成像装置,211-三脚架,212-传感器基座,221-舵机支架,222-线激光发生器,223-舵机。1-Support system, 2-Scan imaging system, 11-Support bracket, 12-Anchor mesh, 13-Anchor mesh belt, 14-Hook, 21-Sensor bracket, 22-Line laser generator, 23-Imaging device, 211- tripod, 212- sensor base, 221- servo bracket, 222- line laser generator, 223- servo.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more clearly understood, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
本发明实施例提供了一种矿井低光照下支护孔中心检测方法及装置,解决了人工确定支护孔中心位置精度差,安全性低等问题,推动全自动钻锚机的发展。如图1所示,矿井低光照下支护孔中心检测方法,包括:The embodiments of the present invention provide a method and device for detecting the center of a support hole under low light in a mine, which solves the problems of poor accuracy and low safety in manually determining the center of the support hole, and promotes the development of an automatic bolting machine. As shown in Figure 1, the detection method for the center of the support hole under low light in the mine includes:
步骤101:按照时间序列获取多张激光图片,所述激光图片为线激光发生装置在扫描支护系统的过程中成像装置拍摄形成的图片;所述支护系统包括支护支架和锚网,所述锚网设置在所述支护支架上。Step 101: Acquire a plurality of laser pictures according to time series, and the laser pictures are pictures formed by the imaging device during the scanning of the support system by the line laser generator; the support system includes a support bracket and an anchor net, so The anchor net is arranged on the support bracket.
步骤102:对于任意一张激光图片,采用HSV颜色模型对所述激光图片中的线激光块所在的像素点和图片背景所在像素点进行标记得到标记后的图片。Step 102 : For any laser picture, use the HSV color model to mark the pixel points where the line laser blocks are located and the pixel points where the picture background is located in the laser picture to obtain a marked picture.
步骤103:对所述标记后的图片进行轮廓提取得到所述线激光块的数量和各所述线激光块的长和宽。Step 103: Perform contour extraction on the marked picture to obtain the number of the line laser blocks and the length and width of each of the line laser blocks.
步骤104:根据所述线激光块的数量和各线激光块的长和宽确定各线激光块所在像素的像素类型并将所述像素类型标定到各所述线激光块;所述像素类型包括背景像素、锚网像素和锚网带像素。Step 104: Determine the pixel type of the pixel where each line laser block is located according to the number of the line laser blocks and the length and width of each line laser block, and calibrate the pixel type to each of the line laser blocks; the pixel type includes Background Pixels, Anchor Pixels, and Anchor Band Pixels.
步骤105:将所有标定后的线激光块整合形成整合后图像。Step 105: Integrate all the calibrated line laser blocks to form an integrated image.
步骤106:基于各所述线激光块的宽、激光标定关系、所述成像装置的内参和所述线激光发生装置的扫描角度得到所述整合后图像中各像素点在世界坐标系下的三维坐标,所述激光标定关系为标定的所述支护系统到所述激光发生装置之间的距离与线激光块的宽度之间的关系。Step 106: Based on the width of each line laser block, the laser calibration relationship, the internal reference of the imaging device, and the scanning angle of the line laser generating device, obtain the three-dimensional image of each pixel in the integrated image in the world coordinate system. Coordinates, and the laser calibration relationship is the relationship between the calibrated distance between the support system and the laser generating device and the width of the line laser block.
步骤107:对所述整合后图像进行轮廓提取得到锚网轮廓和锚网带轮廓并根据所述锚网轮廓中各像素点在世界坐标系下的三维坐标和所述锚网带轮廓中各像素点在世界坐标系下的三维坐标得到锚网孔重心在世界坐标系下的三维坐标和锚网带孔中心在世界坐标系下的三维坐标。锚网孔和锚网带孔统称为支护孔,根据锚网孔重心的三维坐标和锚网带孔中心的三维坐标就是支护孔中心坐标,根据支护孔中心坐标确定锚杆的位置。Step 107: Perform contour extraction on the integrated image to obtain the anchor net contour and the anchor net belt contour, and according to the three-dimensional coordinates of each pixel point in the anchor net contour in the world coordinate system and each pixel in the anchor net belt contour. The three-dimensional coordinates of the point in the world coordinate system are obtained to obtain the three-dimensional coordinates of the center of gravity of the anchor mesh in the world coordinate system and the three-dimensional coordinates of the center of the anchor mesh with holes in the world coordinate system. The anchor mesh hole and the anchor mesh belt hole are collectively referred to as the support hole. According to the three-dimensional coordinates of the anchor mesh hole gravity center and the three-dimensional coordinate of the anchor mesh belt hole center are the center coordinates of the support hole, and the position of the anchor rod is determined according to the center coordinate of the support hole.
在实际应用中,将所有标定后的线激光块整合形成整合后图像具体包括:In practical applications, integrating all the calibrated line laser blocks to form an integrated image specifically includes:
在单张图中激光块的坐标即为整合后的激光块在整合后图像中的坐标,类似于PhotoShop中的图层,在图层中是什么位置,整合后还在同一位置。The coordinates of the laser block in the single image are the coordinates of the integrated laser block in the integrated image, which is similar to the layer in PhotoShop. Where is it in the layer, and it is still in the same position after integration.
在实际应用中,在采用HSV颜色模型对所述激光图片中的线激光块所在的像素点和图片背景所在像素点进行标记得到标记后的图片之前还包括:In practical applications, before using the HSV color model to mark the pixels where the line laser blocks are located in the laser picture and the pixels where the picture background is located, the marked picture further includes:
对所述激光图片采用大小为3x3的中值滤波,剔除噪声点。A median filter with a size of 3×3 is used for the laser image to remove noise points.
在实际应用中,所述对所述标记后的图片进行轮廓提取得到所述线激光块的数量和各所述线激光块的长和宽,具体包括:In practical applications, the number of the line laser blocks and the length and width of each line laser block are obtained by performing contour extraction on the marked picture, specifically including:
对所述标记后的图片进行轮廓提取得到所述线激光块的数量和各所述线激光块的轮廓坐标。Perform contour extraction on the marked picture to obtain the number of the line laser blocks and the contour coordinates of each of the line laser blocks.
根据各所述线激光块的轮廓坐标计算各所述线激光块的长和宽。The length and width of each of the line laser blocks are calculated according to the contour coordinates of each of the line laser blocks.
在实际应用中,所述对所述标记后的图片进行轮廓提取得到线激光块的数量和各线激光块的轮廓坐标,具体包括:In practical applications, the number of line laser blocks and the contour coordinates of each line laser block are obtained by performing contour extraction on the marked picture, specifically including:
采用OpenCV中的函数cv::findContour函数对所述标记后的图片进行处理得到线激光块的数量和各线激光块的轮廓坐标。The marked image is processed by using the function cv::findContour in OpenCV to obtain the number of line laser blocks and the contour coordinates of each line laser block.
在实际应用中,所述根据各线激光块的轮廓坐标计算各线激光块的长和宽,具体包括:In practical applications, calculating the length and width of each line laser block according to the contour coordinates of each line laser block specifically includes:
采用OpenCV中的函数cv::boundingRect函数和各线激光块的轮廓坐标得到每个线激光块的长和宽。The length and width of each line laser block are obtained by using the function cv::boundingRect function in OpenCV and the outline coordinates of each line laser block.
在实际应用中,所述对所述整合后图像进行轮廓提取得到锚网轮廓和锚网带轮廓并根据所述锚网轮廓中各像素点在世界坐标系下的三维坐标和所述锚网带轮廓中各像素点在世界坐标系下的三维坐标得到锚网孔重心在世界坐标系下的三维坐标和锚网带孔中心在世界坐标系下的三维坐标,具体包括:In practical application, the outline of the integrated image is extracted to obtain the outline of the anchor network and the outline of the anchor network, and the three-dimensional coordinates of each pixel in the outline of the anchor network in the world coordinate system and the outline of the anchor network are obtained. The three-dimensional coordinates of each pixel in the outline in the world coordinate system are obtained to obtain the three-dimensional coordinates of the anchor mesh center of gravity in the world coordinate system and the three-dimensional coordinates of the anchor mesh belt hole center in the world coordinate system, including:
对所述整合后图像进行图像分割得到第一图像如图6所示和第二图像如图7所示;所述第一图像包括锚网像素和背景像素;所述第二图像包括锚网带像素和背景像素。Perform image segmentation on the integrated image to obtain a first image as shown in Figure 6 and a second image as shown in Figure 7; the first image includes anchor mesh pixels and background pixels; the second image includes anchor mesh belts pixels and background pixels.
对所述第一图像和所述第二图像分别进行轮廓提取得到锚网轮廓和锚网带轮廓并根据所述锚网轮廓中各像素点在世界坐标系下的三维坐标和所述锚网带轮廓中各像素点在世界坐标系下的三维坐标得到锚网孔重心在世界坐标系下的三维坐标和锚网带孔中心在世界坐标系下的三维坐标。Perform contour extraction on the first image and the second image respectively to obtain the anchor net contour and the anchor net belt contour, and according to the three-dimensional coordinates of each pixel in the anchor net contour under the world coordinate system and the anchor net belt The three-dimensional coordinates of each pixel in the outline in the world coordinate system are obtained to obtain the three-dimensional coordinates of the anchor mesh center of gravity in the world coordinate system and the three-dimensional coordinates of the anchor mesh belt hole center in the world coordinate system.
在实际应用中,所述根据所述线激光块的数量和各线激光块的长和宽确定各线激光块所在像素的像素类型,具体包括:In practical applications, determining the pixel type of the pixel where each line laser block is located according to the number of the line laser blocks and the length and width of each line laser block specifically includes:
根据各线激光块的长和宽确定各线激光块的长宽比。The aspect ratio of each line laser block is determined according to the length and width of each line laser block.
一张所述激光图片中的所述线激光块的数量大于第一设定阈值且所述线激光块的长宽比大于第二设定阈值则所述线激光块的像素类型为背景像素。If the number of the line laser blocks in one of the laser pictures is greater than the first set threshold and the aspect ratio of the line laser blocks is greater than the second set threshold, the pixel type of the line laser block is background pixels.
一张所述激光图片中的所述线激光块的数量大于所述第一设定阈值且所述线激光块的长宽比小于第三设定阈值则所述线激光块的像素类型为锚网像素。If the number of the line laser blocks in one of the laser pictures is greater than the first set threshold and the aspect ratio of the line laser blocks is less than the third set threshold, the pixel type of the line laser block is anchor web pixel.
所述线激光块为一条直线且在第一设定数量的图中出现则所述线激光块的像素类型为锚网像素。If the line laser block is a straight line and appears in the first set number of graphs, the pixel type of the line laser block is anchor mesh pixels.
所述线激光块为一条直线且在第二设定数量的图中出现且所述线激光块数量小于第四设定阈值且所述线激光块的长宽比大于第五设定阈值则所述线激光块的像素类型为锚网带。The line laser block is a straight line and appears in the diagram of the second set number and the number of the line laser block is less than the fourth set threshold and the aspect ratio of the line laser block is greater than the fifth set threshold. The pixel type of the line laser block is anchor mesh belt.
所述线激光块为一条直线且在所述第二设定数量的图中出现且所述线激光块数量小于所述第四设定阈值且所述线激光块的长宽比小于第六设定阈值则所述线激光块的像素类型为背景。The line laser block is a straight line and appears in the graph of the second set number and the number of line laser blocks is less than the fourth set threshold and the aspect ratio of the line laser block is less than the sixth set threshold. If the threshold is set, the pixel type of the line laser block is background.
在实际应用中,所述基于各所述线激光块的宽、激光标定关系、所述成像装置的内参和所述线激光发生装置的扫描角度得到所述整合后图像中各像素点在世界坐标系下的三维坐标,具体包括:In practical applications, the world coordinates of each pixel in the integrated image are obtained based on the width of each of the line laser blocks, the laser calibration relationship, the internal reference of the imaging device, and the scanning angle of the line laser generator. The three-dimensional coordinates under the system, including:
根据所述线激光块的宽和所述激光标定关系得到所述线激光发生装置到所述支护系统的距离。The distance from the line laser generator to the support system is obtained according to the width of the line laser block and the laser calibration relationship.
根据所述线激光发生装置到所述支护系统的距离和所述线激光发生装置的扫描角度确定线激光块在世界坐标系下Z方向上的坐标。The coordinates of the line laser block in the Z direction in the world coordinate system are determined according to the distance from the line laser generating device to the supporting system and the scanning angle of the line laser generating device.
基于所述成像装置的内参和所述线激光块在世界坐标系下Z方向上的坐标得到整合后图像中各像素点在世界坐标系下的三维坐标。Based on the internal reference of the imaging device and the coordinates of the line laser block in the Z direction in the world coordinate system, the three-dimensional coordinates of each pixel in the integrated image in the world coordinate system are obtained.
如图5所示,在实际应用中,根据所述线激光发生装置到所述支护系统的距离和线激光发生装置的扫描角度确定线激光块在世界坐标系下Z方向上的坐标具体包括:As shown in FIG. 5 , in practical application, the coordinates of the line laser block in the Z direction in the world coordinate system are determined according to the distance from the line laser generator to the support system and the scanning angle of the line laser generator, which specifically includes: :
根据公式Z=scosθ计算线激光块的深度即线激光块在世界坐标系下Z方向上的坐标,其中s表示线激光发生装置到支护系统的距离,根据所述线激光块的宽和激光标定关系得到,θ表示舵机的旋转角度即线激光发生装置的扫描角度,得到深度信息Z后,通过相机内参可以计算另外两个维度的值X和Y。Calculate the depth of the line laser block according to the formula Z=scosθ, that is, the coordinate of the line laser block in the Z direction in the world coordinate system, where s represents the distance from the line laser generator to the support system, according to the width of the line laser block and the laser The calibration relationship is obtained, θ represents the rotation angle of the steering gear, that is, the scanning angle of the line laser generator. After obtaining the depth information Z, the values X and Y of the other two dimensions can be calculated through the camera internal parameters.
在实际应用中,基于所述成像装置的内参和所述线激光块在世界坐标系下Z方向上的坐标得到整合后图像中各像素点在世界坐标系下的三维坐标,具体包括:In practical applications, the three-dimensional coordinates of each pixel in the integrated image in the world coordinate system are obtained based on the internal reference of the imaging device and the coordinates of the line laser block in the Z direction in the world coordinate system, specifically including:
根据公式得到整合后图像中各像素点在世界坐标系下的三维坐标(X,Y,Z)。According to the formula The three-dimensional coordinates (X, Y, Z) of each pixel in the integrated image in the world coordinate system are obtained.
其中,表示成像装置的内参构成的矩阵的逆矩阵,fx表示x方向焦距,fy表示y方向焦距,cx表示x方向主点坐标,cy表示y方向主点坐标,表示线激光块在图像坐标系下的坐标构成的矩阵即像素坐标,u表示水平方向,v表示竖直方向。in, Represents the inverse matrix of the matrix formed by the internal parameters of the imaging device, f x represents the focal length in the x direction, f y represents the focal length in the y direction, c x represents the coordinates of the principal point in the x direction, and c y represents the coordinates of the principal point in the y direction, The matrix representing the coordinates of the line laser block in the image coordinate system is the pixel coordinates, u represents the horizontal direction, and v represents the vertical direction.
如图2和图3所示,本发明实施例还提供了一种应用上述方法的矿井低光照下支护孔中心检测装置,包括:As shown in FIG. 2 and FIG. 3 , an embodiment of the present invention further provides a device for detecting the center of a support hole under low light in a mine using the above method, including:
支护系统1、扫描成像子系统和数据处理子系统。
所述支护系统1包括支护支架11、锚网带13和锚网12,所述锚网12设置在所述支护支架11上,所述锚网带13用于将所述锚网12固定在所述支护支架11上;具体的支护支架11两侧分布挂钩14,用于放置锚网12和锚网带13;锚网12放置于支护支架11上面;锚网带13放置于锚网12上面并和支护支架11固连,用于将锚网12连成片。The
所述扫描成像子系统包括:线激光发生装置22和成像装置23,所述锚网12和所述锚网带13设置在所述线激光发生装置22的出射光路上,所述成像装置23设置在所述锚网12和所述锚网带13对所述线激光发生装置22的反射光路上,所述成像装置23用于拍摄多张激光图片。The scanning imaging subsystem includes: a line
所述数据处理子系统与所述成像装置23连接,所述数据处理子系统用于获取所述成像装置23拍摄的激光图片,并按照上述所述的矿井低光照下支护孔中心检测方法对所述激光图片进行处理。The data processing subsystem is connected to the
作为一种可选的实施方式,所述数据处理子系统包括:依次连接的图像处理模块、三维重建模块和轮廓提取模块;所述图像处理模块与所述成像装置23连接;所述图像处理模块用于获取所述成像装置23拍摄的激光图片,根据所述线激光块的数量和所述线激光块的长和宽确定各所述线激光块所在像素的像素类型并将所述像素类型标定到各所述线激光块并将所有标定后的线激光块整合形成整合后图像;所述像素类型包括背景像素、锚网像素和锚网带像素;所述三维重建模块用于基于各所述线激光块的宽、激光标定关系、所述成像装置的内参和所述线激光发生装置的扫描角度得到所述整合后图像中各像素点在世界坐标系下的三维坐标,所述激光标定关系为标定的所述支护系统到所述激光发生装置之间的距离与线激光块的宽度之间的关系,所述轮廓提取模块用于对所述整合后图像进行轮廓提取得到锚网轮廓和锚网带轮廓并根据所述锚网轮廓中各像素点在世界坐标系下的三维坐标和所述锚网带轮廓中各像素点在世界坐标系下的三维坐标得到锚网孔重心在世界坐标系下的三维坐标和锚网带孔中心在世界坐标系下的三维坐标。As an optional implementation manner, the data processing subsystem includes: an image processing module, a three-dimensional reconstruction module, and a contour extraction module connected in sequence; the image processing module is connected to the imaging device 23 ; the image processing module It is used to obtain the laser pictures taken by the imaging device 23, determine the pixel type of the pixel where each of the line laser blocks is located according to the number of the line laser blocks and the length and width of the line laser blocks, and calibrate the pixel type to each of the line laser blocks and integrate all the calibrated line laser blocks to form an integrated image; the pixel types include background pixels, anchor mesh pixels and anchor mesh belt pixels; the three-dimensional reconstruction module is used for The width of the line laser block, the laser calibration relationship, the internal reference of the imaging device, and the scanning angle of the line laser generator can obtain the three-dimensional coordinates of each pixel in the integrated image in the world coordinate system, and the laser calibration relationship In order to calibrate the relationship between the distance between the support system and the laser generating device and the width of the line laser block, the contour extraction module is used to perform contour extraction on the integrated image to obtain the anchor net contour and The outline of the anchor mesh is obtained according to the three-dimensional coordinates of each pixel in the outline of the anchor mesh under the world coordinate system and the three-dimensional coordinates of each pixel in the outline of the anchor mesh under the world coordinate system to obtain the center of gravity of the anchor mesh in the world coordinate. The three-dimensional coordinates in the system and the three-dimensional coordinates of the center of the anchor mesh belt hole in the world coordinate system.
作为一种可选的实施方式,所述扫描成像子系统还包括:传感器支架21,传感器支架21用于放置线激光发生装置22和成像装置23;线激光发生装置22固连于传感器支架21上,用于对支护系统1进行垂直扫描;成像装置23放置在传感器支架21上方,用于记录线激光发生装置22在扫描过程中轨迹得到多张激光图片。As an optional implementation manner, the scanning imaging subsystem further includes: a
所述传感器支架21分为三脚架211和传感器基座212,传感器基座212放置于三脚架211的上方,三脚架211固连于世界坐标系中,三脚架211用于调整传感器支架21的高度,传感器基座212整体呈圆柱形,内放线激光发生装置22,上放成像装置23。The
所述成像装置23为摄像头。The
作为一种可选的实施方式,所述线激光发生装置22包括:旋转装置和线激光发生器222;线激光发生器222设置在旋转装置上,旋转装置包括舵机223和舵机支架221,舵机223固连在舵机支架221上,用于产生俯仰运动;线激光发生器222与舵机223轴固连进行竖直扫描。As an optional embodiment, the line
所述旋转装置分为舵机支架221和舵机223,舵机支架221固连在传感器基座212上,舵机223固连在舵机支架221上,线激光发生器222固连在舵机223转轴上。The rotating device is divided into a
作为一种可选的实施方式,所述数据处理子系统还包括:相机标定模块,所述相机标定模块用于标定所述成像装置23的内参和标定激光标定关系。As an optional implementation manner, the data processing subsystem further includes: a camera calibration module, where the camera calibration module is used for calibrating the internal parameters of the
作为一种可选的实施方式,所述相机标定模块包括:As an optional implementation manner, the camera calibration module includes:
内参标定子模块,用于利用张正友棋盘格标定法实现成像装置的内参标定。The internal parameter calibration sub-module is used to realize the internal parameter calibration of the imaging device by using the Zhang Zhengyou checkerboard calibration method.
关系标定子模块,用于将激光打在不同距离的棋盘格上,测量激光图像上线激光块的宽度来标定激光标定关系,即将激光线打在棋盘格上,利用图像处理提取激光线的宽度,改变棋盘格不同的距离进行多组实验,即可求出激光线宽度和距离的关系。激光标定关系的确定过程为:线激光标定公式:s=μw,s为扫描到的位置到线激光发生装置的距离,μ为距离和宽度的比值,w为线激光块的宽度,具体标定方法为采集多组不同距离的s和w,然后用最小二乘法来计算参数μ。The relationship calibration sub-module is used to hit the laser on the checkerboard at different distances, measure the width of the laser block on the laser image to calibrate the laser calibration relationship, that is, mark the laser line on the checkerboard, and use image processing to extract the width of the laser line. The relationship between the width of the laser line and the distance can be obtained by changing the different distances of the checkerboard and conducting multiple sets of experiments. The process of determining the laser calibration relationship is: line laser calibration formula: s=μw, s is the distance from the scanned position to the line laser generator, μ is the ratio of distance and width, w is the width of the line laser block, the specific calibration method In order to collect multiple groups of s and w with different distances, the parameter μ is then calculated by the least square method.
作为一种可选的实施方式,所述三维重建模块具体包括:距离确定子模块、Z坐标确定子模块和三维坐标确定子模块。As an optional implementation manner, the three-dimensional reconstruction module specifically includes: a distance determination sub-module, a Z-coordinate determination sub-module, and a three-dimensional coordinate determination sub-module.
所述距离确定子模块,用于根据所述线激光块的宽和所述激光标定关系得到所述线激光发生装置22到所述支护系统1的距离。The distance determination sub-module is used to obtain the distance from the
所述Z坐标确定子模块,用于根据所述线激光发生装置22到所述支护系统1的距离和线激光发生装置的扫描角度确定线激光块在世界坐标系下Z方向上的坐标。The Z coordinate determination submodule is used to determine the coordinate of the line laser block in the Z direction in the world coordinate system according to the distance from the
所述三维坐标确定子模块,用于基于所述成像装置23的内参和所述线激光块在世界坐标系下Z方向上的坐标得到整合后图像中各像素点的三维坐标。The three-dimensional coordinate determination sub-module is configured to obtain the three-dimensional coordinates of each pixel in the integrated image based on the internal reference of the
作为一种可选的实施方式,所述图像处理模块包括:图像HSV分割子模块、轮廓提取子模块、类型判断子模块和类型图像生成子模块。As an optional implementation manner, the image processing module includes: an image HSV segmentation submodule, a contour extraction submodule, a type judgment submodule, and a type image generation submodule.
所述HSV分割子模块,用于采用HSV颜色模型对所述激光图片中的线激光块所在的像素点和图片背景所在像素点进行标记得到标记后的图片。The HSV segmentation sub-module is configured to use the HSV color model to mark the pixel points where the line laser blocks are located in the laser picture and the pixel points where the picture background is located to obtain a marked picture.
所述轮廓提取子模块,用于对所述标记后的图片进行轮廓提取得到所述线激光块的数量和各所述线激光块的长和宽。The contour extraction sub-module is configured to perform contour extraction on the marked picture to obtain the number of the line laser blocks and the length and width of each of the line laser blocks.
所述类型判断子模块,用于根据所述线激光块的数量和各线激光块的长和宽确定各线激光块所在像素的像素类型并将所述像素类型标定到各所述线激光块。The type judging submodule is used to determine the pixel type of the pixel where each line laser block is located according to the number of the line laser blocks and the length and width of each line laser block, and demarcate the pixel type to each of the line laser blocks .
所述类型图像生成子模块,用于将所有标定后的线激光块整合形成整合后图像。The image generation sub-module of the type is used to integrate all the calibrated line laser blocks to form an integrated image.
作为一种可选的实施方式,所述图像处理模块还包括:图像滤波子模块,用于对所述激光图片采用大小为3x3的中值滤波,剔除噪声点。As an optional implementation manner, the image processing module further includes: an image filtering sub-module, configured to use median filtering with a size of 3×3 on the laser image to remove noise points.
本发明实施例还提供了一种矿井低光照下支护孔中心检测装置,与上述矿井低光照下支护孔中心检测装置不同的是,本实施例的矿井低光照下支护孔中心检测装置如图2所示,所述支护系统1分为支护支架11、锚网12、锚网带13、挂钩14,挂钩14安装在支护支架11上,共6个挂钩14,分别均匀分布在支护支架11两侧,且两侧相对的挂钩14在同一水平线上,锚网12挂在挂钩14上,共有3张锚网12,锚网带13压住锚网12并卡在挂钩14中,锚网带13共2根。The embodiment of the present invention also provides a device for detecting the center of a supporting hole in a mine under low light. Different from the above-mentioned device for detecting the center of a supporting hole in a low-light mine, the device for detecting the center of a supporting hole in a low-light mine in this embodiment is As shown in FIG. 2, the
本发明实施例提供了上述矿井低光照下支护孔中心检测系统的工作流程:The embodiment of the present invention provides the workflow of the above-mentioned mine support hole center detection system under low light:
将线激光打在支护系统1上,由于支护系统1(锚网12、锚网带13、背景)有不同的深度信息,会形成数量不等,长度不等的线段,如图4和图5所示。Hit the line laser on the
线激光块数量和长宽判断方式:The number of line laser blocks and the way of judging the length and width:
首先将图像用中值滤波方式进行去噪,通过HSV判断方式将线激光块所在的像素坐标标记为255,背景标记为0。调用cv::findContour函数提取图像的边界,提取完成后会返回像素块(线激光块)的数量和每个线激光块的轮廓坐标,调用cv::boundingRect函数根据每个线激光块的轮廓坐标计算出每个像素块的长和宽,利用长和宽计算每个像素块的长宽比。First, the image is denoised by median filtering, and the pixel coordinate where the line laser block is located is marked as 255 and the background is marked as 0 by the HSV judgment method. Call the cv::findContour function to extract the boundary of the image. After the extraction is completed, it will return the number of pixel blocks (line laser blocks) and the outline coordinates of each line laser block. Call the cv::boundingRect function according to the outline coordinates of each line laser block. Calculate the length and width of each pixel block, and use the length and width to calculate the aspect ratio of each pixel block.
像素类型确定:Pixel type determination:
根据线激光块数量、长度以及时间序列采集的帧数可以推断出线激光打在了支护系统哪个位置,图像上线激光块像素判断方法如表1和图4所示:According to the number and length of the line laser blocks and the number of frames collected in the time series, it can be inferred where the line laser hits the support system. The pixel judgment method of the laser block on the image is shown in Table 1 and Figure 4:
表1 像素类型确定表Table 1 Pixel type determination table
图像整合:Image integration:
将一系列的图像上的线激光块的像素整合到一张图像上,该图像由背景像素0,锚网像素1,锚网带像素2构成。Integrate the pixels of the line laser blocks on a series of images into a single image consisting of background pixel 0,
线激光块的深度计算方法:Depth calculation method of line laser block:
根据标定的激光标定关系和线激光块的宽度来计算支护到激光发生装置的距离,由于激光线发生装置和摄像头中心在同一水平面上,所以通过舵机旋转的角度θ和Z=scosθ可计算线激光块像素的深度Z。According to the calibrated laser calibration relationship and the width of the line laser block, the distance from the support to the laser generator is calculated. Since the center of the laser line generator and the camera are on the same horizontal plane, the angle θ and Z=scosθ can be calculated by the rotation angle of the steering gear. Depth Z of line laser block pixels.
像素三维坐标计算方法:Pixel 3D coordinate calculation method:
利用标定好的相机内参,通过公式Using the calibrated camera internal parameters, through the formula
计算每个像素点在世界坐标系下的三维坐标。Calculate the three-dimensional coordinates of each pixel in the world coordinate system.
此时,获取到的信息包况支护类型(背景、锚网和锚网带,由时间序列生成)图像和每个像素点在世界坐标系下的三维坐标。At this time, the obtained information package support type (background, anchor net and anchor net belt, generated by time series) image and the three-dimensional coordinates of each pixel in the world coordinate system.
将生成的支护类型图片中的锚网+背景,锚网带+背景生成两张图片,一张包含锚网信息,另一张包含锚网带信息。The anchor net + background and the anchor net belt + background in the generated support type picture are generated into two pictures, one contains the anchor net information, and the other contains the anchor net belt information.
对包含锚网信息的图片用cv::findContour函数提取锚网的边界,通过cv::contourArea计算轮廓的面积,根据大小判断出该轮廓是否为锚网轮廓,然后边界所对应的在世界坐标系下的像素坐标包含的三维坐标求取其重心,重心坐标可等于中心坐标。Use the cv::findContour function to extract the boundary of the anchor network for the picture containing the anchor network information, calculate the area of the outline through cv::contourArea, and determine whether the outline is an anchor network outline according to the size, and then the boundary corresponds to the world coordinate system. The three-dimensional coordinates contained in the pixel coordinates below can obtain its center of gravity, and the coordinates of the center of gravity can be equal to the center coordinates.
对包含锚网带信息的图片用cv::findContour函数提取锚网带的边界,通过cv::contourArea计算轮廓的面积,根据大小判断出该轮廓是否为锚网带轮廓,对锚网带边界所对应的在世界坐标系下的像素坐标包含的三维坐标求取其重心,重心坐标可等于锚网带孔的三维中心坐标。Use the cv::findContour function to extract the boundary of the anchor mesh for the picture containing the information of the anchor mesh, calculate the area of the contour through cv::contourArea, and judge whether the outline is the anchor mesh outline according to the size. The corresponding three-dimensional coordinates contained in the pixel coordinates in the world coordinate system are used to obtain its center of gravity, and the coordinates of the center of gravity can be equal to the three-dimensional center coordinates of the anchor mesh with holes.
本发明有以下技术效果:The present invention has the following technical effects:
1、解决了人工确定支护孔中心位置精度差,安全性低等问题。1. Solve the problems of poor accuracy and low safety in manually determining the center position of the support hole.
2、推动全自动钻锚机的发展,实现锚杆位置的自动确定。2. Promote the development of fully automatic drilling and bolting machine, and realize the automatic determination of the position of the bolt.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other.
本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本发明的限制。In this paper, specific examples are used to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present invention; meanwhile, for those skilled in the art, according to the present invention There will be changes in the specific implementation and application scope. In conclusion, the contents of this specification should not be construed as limiting the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210117936.7A CN114427835B (en) | 2022-02-08 | 2022-02-08 | A method and device for detecting the center of a support hole in a mine under low light |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210117936.7A CN114427835B (en) | 2022-02-08 | 2022-02-08 | A method and device for detecting the center of a support hole in a mine under low light |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114427835A true CN114427835A (en) | 2022-05-03 |
CN114427835B CN114427835B (en) | 2023-07-07 |
Family
ID=81314118
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210117936.7A Active CN114427835B (en) | 2022-02-08 | 2022-02-08 | A method and device for detecting the center of a support hole in a mine under low light |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114427835B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116878381A (en) * | 2023-08-01 | 2023-10-13 | 湖南视比特机器人有限公司 | Online full-size detection method and system based on multi-eye vision |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013122434A (en) * | 2011-12-12 | 2013-06-20 | Itt:Kk | Three-dimensional shape position measuring device by monocular camera using laser, method for measuring three-dimensional shape position, and three-dimensional shape position measuring program |
CN107121064A (en) * | 2017-04-27 | 2017-09-01 | 上海华测导航技术股份有限公司 | A kind of laser scanner |
CN107169981A (en) * | 2017-05-12 | 2017-09-15 | 西南交通大学 | A kind of detection method and device of railway ballast particle three-dimensional profile |
CN113063368A (en) * | 2021-04-07 | 2021-07-02 | 杭州江奥光电科技有限公司 | Linear laser rotary scanning three-dimensional profile measuring method and device |
-
2022
- 2022-02-08 CN CN202210117936.7A patent/CN114427835B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013122434A (en) * | 2011-12-12 | 2013-06-20 | Itt:Kk | Three-dimensional shape position measuring device by monocular camera using laser, method for measuring three-dimensional shape position, and three-dimensional shape position measuring program |
CN107121064A (en) * | 2017-04-27 | 2017-09-01 | 上海华测导航技术股份有限公司 | A kind of laser scanner |
CN107169981A (en) * | 2017-05-12 | 2017-09-15 | 西南交通大学 | A kind of detection method and device of railway ballast particle three-dimensional profile |
CN113063368A (en) * | 2021-04-07 | 2021-07-02 | 杭州江奥光电科技有限公司 | Linear laser rotary scanning three-dimensional profile measuring method and device |
Non-Patent Citations (1)
Title |
---|
李竞;: "三维地质建模技术在岩土工程数值模拟中的应用", 海峡科技与产业, no. 03 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116878381A (en) * | 2023-08-01 | 2023-10-13 | 湖南视比特机器人有限公司 | Online full-size detection method and system based on multi-eye vision |
CN116878381B (en) * | 2023-08-01 | 2024-01-30 | 湖南视比特机器人有限公司 | Online full-size detection method and system based on multi-eye vision |
Also Published As
Publication number | Publication date |
---|---|
CN114427835B (en) | 2023-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111855664B (en) | Adjustable three-dimensional tunnel defect detection system | |
JP6620477B2 (en) | Method and program for detecting cracks in concrete | |
CN108759973B (en) | Water level measuring method | |
CN104574393B (en) | A kind of three-dimensional pavement crack pattern picture generates system and method | |
CN106969706A (en) | Workpiece sensing and three-dimension measuring system and detection method based on binocular stereo vision | |
CN111462503B (en) | Vehicle speed measuring method and device and computer readable storage medium | |
CN103477183A (en) | Tire surface shape measuring device and tire surface shape measuring method | |
CN105784710A (en) | Concrete bridge crack detection device based on digital image processing | |
CN102297660A (en) | Measuring method of shield tunnel lining segment seam open width and apparatus thereof | |
CN106770333B (en) | An automatic detection method for BGA defects | |
CN109166125A (en) | A kind of three dimensional depth image partitioning algorithm based on multiple edge syncretizing mechanism | |
CN116165216B (en) | Liquid crystal display micro scratch flaw 3D detection method, system and computing equipment | |
CN106403901A (en) | Measuring apparatus and method for attitude of buoy | |
CN107271445A (en) | Defect detection method and device | |
CN114427835B (en) | A method and device for detecting the center of a support hole in a mine under low light | |
CN115035141A (en) | Tunnel crack remote monitoring and early warning method based on image processing | |
JP2006023178A5 (en) | ||
JP2011069797A (en) | Displacement measuring device and displacement measuring method | |
CN107657609B (en) | Method for obtaining perforation density of target plate based on laser scanning | |
CN104266594B (en) | Thickness compensation method for block frozen shrimp net content detection based on different visual technologies | |
CN102967277A (en) | Method for measuring depth of parallelism of orienting pipes | |
JP2017161403A (en) | IMAGING DEVICE, METHOD, AND PROGRAM, DISPLAY CONTROL DEVICE, AND PROGRAM | |
CN112001907B (en) | Method for measuring roughness of surrounding rock in tunnel construction site | |
JP2004021496A (en) | Parked vehicle detection method, detection system and parked vehicle detection device | |
JP5631833B2 (en) | Mobile object equipped with object detection device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |