[go: up one dir, main page]

CN111854616A - A laser-assisted visual measurement method and system for tree diameter at breast height - Google Patents

A laser-assisted visual measurement method and system for tree diameter at breast height Download PDF

Info

Publication number
CN111854616A
CN111854616A CN202010435589.3A CN202010435589A CN111854616A CN 111854616 A CN111854616 A CN 111854616A CN 202010435589 A CN202010435589 A CN 202010435589A CN 111854616 A CN111854616 A CN 111854616A
Authority
CN
China
Prior art keywords
tree
laser
image
diameter
photo
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010435589.3A
Other languages
Chinese (zh)
Inventor
任桐炜
王博
田宇
张馨中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Hongyihe Intelligent Technology Co ltd
Nanjing University
Original Assignee
Nanjing Hongyihe Intelligent Technology Co ltd
Nanjing University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Hongyihe Intelligent Technology Co ltd, Nanjing University filed Critical Nanjing Hongyihe Intelligent Technology Co ltd
Priority to CN202010435589.3A priority Critical patent/CN111854616A/en
Publication of CN111854616A publication Critical patent/CN111854616A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/08Measuring arrangements characterised by the use of optical techniques for measuring diameters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0029Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device the arrangement being specially adapted for wireless interrogation of grouped or bundled articles tagged with wireless record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

A tree breast height diameter visual measurement method and system under the assistance of laser, the hardware device includes: the tree diameter measuring method comprises the steps that a smart phone, laser emitting equipment, RFID read-write equipment and handheld equipment are used, two beams of parallel laser are emitted to a tree to be measured to mark the tree during measurement, a tree photo with laser points is collected, two laser points in the photo are located at the position of the breast diameter of the tree to be measured, the connecting line of the two laser points is parallel to the growth extension direction of the tree, the photo is subjected to image processing, the breast diameter of the tree to be measured is obtained, meanwhile, the RFID read-write equipment identifies the RFDI label of the tree, and the measured breast diameter is stored corresponding to the corresponding tree label. The device is simple and convenient to carry, and can improve the tree breast-height diameter measurement rate.

Description

一种激光辅助下的树木胸径视觉测量方法与系统A laser-assisted visual measurement method and system for tree diameter at breast height

技术领域technical field

本发明涉及林业测量技术领域,为一种激光辅助下的树木胸径视觉测量方法与系统。The invention relates to the technical field of forestry measurement, and relates to a method and system for visual measurement of tree diameter at breast height assisted by laser.

背景技术Background technique

胸径是衡量苗木价格的很重要的一个依据,在苗圃的树木胸径盘点中,树木胸径的测量工作极其重要。Diameter at breast height is an important basis for measuring the price of seedlings. In the inventory of tree diameter at breast height in nurseries, the measurement of tree diameter at breast height is extremely important.

现有测量技术,可以分为两大类:接触式测量和非接触式测量。接触式测量主要通过胸径尺,围绕树干一周,测量者必须接近树干,测量效率很低,对于动辄数十万的苗木数量,苗木胸径的测量难以完成。非接触式测量装置中,使用三角原理和激光测距等原理的测量系统需要相对稳定的平台才能测量。另外,目前使用图像采集并处理的测量装置无法避免使用测距尺测量图像采集点与待测量树木的距离,测量速度也相对很慢,不能适用于苗木数量庞大的测量环境。Existing measurement technologies can be divided into two categories: contact measurement and non-contact measurement. The contact measurement is mainly through the diameter at breast height, which surrounds the trunk, and the measurer must be close to the trunk, and the measurement efficiency is very low. In the non-contact measurement device, the measurement system using the principles of triangulation and laser ranging requires a relatively stable platform to measure. In addition, the current measurement devices using image acquisition and processing cannot avoid using a distance ruler to measure the distance between the image acquisition point and the tree to be measured, and the measurement speed is relatively slow, which cannot be applied to a measurement environment with a large number of seedlings.

发明内容SUMMARY OF THE INVENTION

本发明要解决的问题是:针对现有技术缺陷,提供一种非接触树木胸径测量方式,同时,满足快速和准确的要求。The problem to be solved by the present invention is: aiming at the defects of the prior art, it provides a non-contact measurement method of tree diameter at breast height, and at the same time, it meets the requirements of speed and accuracy.

本发明的技术方案为:一种激光辅助下的树木胸径视觉测量方法,树木设有RFID标签,通过向待测树木发射两束平行激光标记树木,采集带有激光点的树木照片,使照片中两个点激光位于待测量树木胸径位置,两个激光点连线平行于树木生长延伸方向,对该照片进行图像处理,获得待测树木的胸径,同时,由RFID读写设备识别树木的RFDI 标签,并将测得胸径与对应树木标签对应存储;其中,所述图像处理为:通过特征点查找确定照片中激光点位置,根据2个激光点图像中像素距离与两束激光的激光发射器的实际距离计算获得与待测量树木胸径的拍摄距离,得到像素与实际的几何关系;再由据图像分割算法获得树木轮廓,进一步获得实际树木胸径。The technical scheme of the present invention is as follows: a laser-assisted visual measurement method for tree diameter at breast height. Trees are provided with RFID tags, the trees are marked by emitting two parallel laser beams to the trees to be measured, and photos of trees with laser points are collected, so that the photos can be displayed in the photos. Two laser points are located at the DBH position of the tree to be measured, and the line connecting the two laser points is parallel to the direction of tree growth. The image is processed to obtain the DBH of the tree to be tested. At the same time, the RFID reading and writing equipment identifies the tree's RFDI tag. , and store the measured DBH corresponding to the corresponding tree label; wherein, the image processing is: determining the position of the laser point in the photo through feature point search, according to the pixel distance in the two laser point images and the laser transmitter of the two laser beams. The actual distance is calculated to obtain the shooting distance of the tree diameter at breast height to be measured, and the geometric relationship between the pixel and the actual is obtained; then the tree outline is obtained by the image segmentation algorithm, and the actual tree diameter at breast height is further obtained.

进一步的,在采集照片前进行倾斜度校验,通过智能手机采集照片,由智能手机内部的陀螺仪获取当前智能手机的倾斜度,当所述倾斜度在允许区间内时,允许进行照片采集。Further, the inclination verification is performed before the photos are collected, the photos are collected by the smart phone, and the current inclination of the smart phone is obtained by the gyroscope inside the smart phone. When the inclination is within the allowable range, photo collection is allowed.

作为优选方式,所述特征点查找具体为:将图像由RGB颜色空间转换为HSV颜色空间,使用基于经验设置的阈值过滤出图像中的激光颜色区域并膨胀;再将图像转换为灰度图像,根据设定的阈值过滤出高亮度区域;对膨胀区域及高亮度区域的交集计算连通区域以及每个连通区域的质心,获得高亮度激光点对的位置;如无法检测到高亮度激光点,则对激光颜色区域进行闭运算后直接执行后续步骤。As a preferred way, the feature point search is specifically: converting the image from RGB color space to HSV color space, filtering out the laser color area in the image using a threshold set based on experience and expanding; then converting the image into a grayscale image, Filter out the high-brightness area according to the set threshold; calculate the connected area and the centroid of each connected area for the intersection of the expansion area and the high-brightness area, and obtain the position of the high-brightness laser point pair; if the high-brightness laser point cannot be detected, then Follow the steps directly after closing the laser color area.

作为优选方式,所述图像分割及胸径计算具体为:移除照片中的两个激光点,再对图像进行切割,降低图像背景的复杂度,减小图像面积;采用基于深度卷积神经网络的交互式图像分割算法对图像中的树干区域进行分割,获得轮廓线宽度为一个像素的树干轮廓;将树干轮廓沿树木垂直方向分为等高的四份,树干轮廓被对应分割为4组近似平行边缘,对每一组边缘上的像素点应用最小二乘法进行线性回归,估计出2条边缘直线表达式,并计算2条边缘直线之间的夹角,若夹角小于规定阈值且2条直线的均方误差小于指定阈值,则测量2条边缘直线之间的近似距离,最后对测得的近似距离取平均值,得到树木像素胸径;根据几何关系将树木像素胸径转换为实际胸径。As a preferred method, the image segmentation and DBH calculation are specifically: remove two laser points in the photo, and then cut the image to reduce the complexity of the image background and reduce the image area; The interactive image segmentation algorithm divides the trunk area in the image to obtain the trunk outline with a contour line width of one pixel; the trunk outline is divided into four parts of equal height along the vertical direction of the tree, and the trunk outline is correspondingly divided into 4 groups of approximately parallel Edge, apply the least squares method to the pixels on each set of edges to perform linear regression, estimate the expression of two edge straight lines, and calculate the angle between the two edge straight lines, if the angle is less than the specified threshold and the two straight lines If the mean square error is less than the specified threshold, the approximate distance between the two edge straight lines is measured, and finally the measured approximate distance is averaged to obtain the tree pixel DBH; the tree pixel DBH is converted to the actual DBH according to the geometric relationship.

本发明还提供一种激光辅助下的树木胸径视觉测量系统,包括:智能手机、激光发射设备、RFID读写设备和手持设备,手持设备用于装载智能手机、激光发射设备和RFID 读写设备,智能手机中配置有计算机程序,所述程序被执行时实现上述检测方法;激光发射设备包括两个点激光器,两个点激光器距离固定,用于发射两束平行激光,在待测树木上标记两个红色激光点;RFID读写设备用于读取树木的RFID标签。The present invention also provides a laser-assisted tree diameter at breast height visual measurement system, comprising: a smart phone, a laser emission device, an RFID reading and writing device and a handheld device, the handheld device is used for loading the smart phone, the laser emission device and the RFID reading and writing device, A computer program is configured in the smart phone, and the above-mentioned detection method is realized when the program is executed; the laser emission device includes two point lasers, and the distance between the two point lasers is fixed, which is used to emit two parallel laser beams, and mark two laser beams on the tree to be tested. A red laser point; RFID reading and writing equipment is used to read the RFID tags of trees.

进一步的,智能手机通过串口为激光发射设备和RFID读写设备供电,并接收来自RFID读写设备的数据。Further, the smartphone supplies power to the laser emitting device and the RFID reading and writing device through the serial port, and receives data from the RFID reading and writing device.

进一步的,所述手持设备装有宽度可调节的手机支架,用于适用于不同型号手机装载支持;手持设备设置两个开关,两个开关设置于串口线路上,分别用于控制激光发射设备电路和RFID读写设备的电源通断,手持设备还设有充电插口,充电插口连接串口线路,用于外部充电。Further, the handheld device is equipped with a mobile phone bracket with adjustable width, which is suitable for loading support of different types of mobile phones; the handheld device is provided with two switches, and the two switches are provided on the serial port line, which are respectively used to control the circuit of the laser emitting device. The power supply of the RFID reading and writing device is connected and disconnected, and the handheld device is also provided with a charging socket, which is connected to the serial port line for external charging.

现有的树木胸径测量方法多需要与树木接触,测量过程较为繁琐,在需要测量并记录大量树木的场景下多有不便。为解决这一问题,本发明通过软硬件协同工作,可以在不接触树木的情况下完成树木胸径的测量,并将测量结果存储于服务器中,同时予以展示。本发明提供了一种非接触式树木胸径测量的方法和系统,通过点激光计算像素距离与实际距离的比例,在不接触树木的情况下获得树木的实际胸径,提高测量的效率,同事设备装置简单、便于携带。Most of the existing tree diameter measurement methods need to be in contact with the trees, and the measurement process is cumbersome, which is inconvenient in scenarios where a large number of trees need to be measured and recorded. In order to solve this problem, the present invention can complete the measurement of tree diameter at breast height without touching the tree, and store the measurement result in the server, and display it at the same time. The invention provides a method and system for non-contact measurement of tree diameter at breast height. The ratio of pixel distance to actual distance is calculated by point lasers, and the actual diameter at breast height of trees is obtained without contacting trees, thereby improving the measurement efficiency. Simple and easy to carry.

附图说明Description of drawings

图1为本发明实施例中用于树木胸径测量的硬件装置示意图。FIG. 1 is a schematic diagram of a hardware device for measuring tree diameter at breast height in an embodiment of the present invention.

图2为本发明实施例树木胸径测量的方法流程示意图。2 is a schematic flowchart of a method for measuring tree diameter at breast height according to an embodiment of the present invention.

图3为本发明实施例树木胸径测量中图像处理的流程示意图。FIG. 3 is a schematic flowchart of image processing in tree diameter at breast height measurement according to an embodiment of the present invention.

图4为本发明实施例树木胸径测量中图像处理时所述的几何关系示意图。FIG. 4 is a schematic diagram of the geometric relationship described in the image processing in the tree diameter at breast height measurement according to the embodiment of the present invention.

具体实施方式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 work fall within the protection scope of the present invention.

图1是本发明实施例用于测量树木胸径的装置结构示意图,下面结合图1,对本发明实施例作详细的描述。FIG. 1 is a schematic structural diagram of an apparatus for measuring tree diameter at breast height according to an embodiment of the present invention. The embodiment of the present invention will be described in detail below with reference to FIG. 1 .

如图1所示,本实施例提供的用于非接触式树木胸径测量的系统包括:智能手机1、激光发射设备7、RFID读写设备和手持设备6,所述智能手机1和激光发射设备7设置在手持设备6上;所述智能手机1的摄像头2与所述激光发射设备7面朝同一方向,所述激光发射设备7用于在智能手机1采集待测量树木胸径照片时,向所述待测量树木发射激光,以在获取的待测量树木的胸径图片中形成两个激光点。As shown in FIG. 1 , the system for non-contact tree diameter measurement provided in this embodiment includes: a smart phone 1 , a laser emitting device 7 , an RFID reading and writing device, and a handheld device 6 . The smart phone 1 and the laser emitting device 7 is arranged on the handheld device 6; the camera 2 of the smartphone 1 faces the same direction as the laser emitting device 7, and the laser emitting device 7 is used for collecting the diameter at breast height photo of the tree to be measured by the smartphone 1. The tree to be measured emits laser light to form two laser spots in the obtained picture of the diameter at breast height of the tree to be measured.

手持设备6上设置有可调节宽度的手机支架3,用于放置智能手机1,激光发射设备在待测量树木上打出2个点激光后,智能手机采集到带有2个点激光的待测量树木胸径图片,所述2个点激光用于计算所述非接触式树木胸径测量装置与待测量树木的距离。如图1所示,激光发射设备设置在智能手机摄像头左侧,只要智能手机摄像头与激光发射设备之间不相互遮挡,保证智能手机能采集到激光发射设备在待测量树木上形成的2 个点激光即可,其具体位置本发明实施例不做具体限定。The handheld device 6 is provided with a mobile phone holder 3 with an adjustable width, which is used to place the smartphone 1. After the laser emitting device shoots two laser points on the tree to be measured, the smartphone collects the tree to be measured with the two point lasers. Diameter at breast height picture, the two point lasers are used to calculate the distance between the non-contact tree diameter at breast height measuring device and the tree to be measured. As shown in Figure 1, the laser emitting device is set on the left side of the smartphone camera. As long as the smartphone camera and the laser emitting device do not block each other, it is ensured that the smartphone can capture the two points formed by the laser emitting device on the tree to be measured. A laser may be used, and its specific position is not specifically limited in the embodiment of the present invention.

此外,本发明实施例中所述装置中由智能手机1通过串口为整个硬件电路供电。手持设备上设有总开关4和激光发射设备开关5,分别用来控制装置的启动和激光的发射。串口在供电的同时,亦可完成数据传输的功能。In addition, in the device described in the embodiment of the present invention, the smart phone 1 supplies power to the entire hardware circuit through the serial port. The hand-held device is provided with a master switch 4 and a laser emission device switch 5, which are used to control the startup of the device and the emission of laser light respectively. The serial port can also complete the function of data transmission while supplying power.

本发明实施例中所述激光发射设备包括的2个点激光器。因为红色激光相对于树木的颜色比较明显,本发明实施例中可以使用2个红色点激光器。当然根据需要也可以使用其他激光发射设备,如2个蓝色点激光器等,本发明实施例不做具体限定。In the embodiment of the present invention, the laser emitting device includes two point lasers. Because the color of the red laser is more obvious than that of the trees, two red point lasers can be used in the embodiment of the present invention. Of course, other laser emitting devices, such as two blue dot lasers, etc., may also be used as required, which is not specifically limited in the embodiment of the present invention.

本发明提供一种用于树木胸径测量的方法,所述方法通过计算机程序方式结合上述装置实现。如图2所示,测量方法具体为:树木设有RFID标签,通过向待测树木发射两束平行激光标记树木,采集带有激光点的树木照片,使照片中两个点激光位于待测量树木胸径位置,两个激光点连线平行于树木生长延伸方向,对该照片进行图像处理,获得待测树木的胸径,同时,由RFID读写设备识别树木的RFDI标签,并将测得胸径与对应树木标签对应存储;其中,所述图像处理为:通过特征点查找确定照片中激光点位置,根据2个激光点图像中像素距离与两束激光的激光发射器的实际距离计算获得与待测量树木胸径的拍摄距离,得到像素与实际的几何关系;再由据图像分割算法获得树木轮廓,进一步获得实际树木胸径。优选在采集照片前进行倾斜度校验,通过智能手机采集照片,由智能手机内部的陀螺仪获取当前智能手机的倾斜度,当所述倾斜度在允许区间内时,允许进行照片采集。The present invention provides a method for measuring tree diameter at breast height, which is realized by means of a computer program in combination with the above-mentioned device. As shown in Figure 2, the measurement method is as follows: the trees are equipped with RFID tags, and the trees are marked by sending two parallel laser beams to the trees to be measured, and a photo of the trees with laser points is collected, so that the two laser points in the photo are located in the trees to be measured. At the DBH position, the line connecting the two laser points is parallel to the tree growth and extension direction, and image processing is performed on the photo to obtain the DBH of the tree to be tested. The tree labels are stored correspondingly; wherein, the image processing is: determining the position of the laser point in the photo through feature point search, and calculating the distance between the pixels in the two laser point images and the actual distance of the laser emitters of the two laser beams and the tree to be measured. The shooting distance of DBH is used to obtain the actual geometric relationship between pixels and the actual tree diameter. Then, the tree outline is obtained according to the image segmentation algorithm, and the actual tree DBH is further obtained. Preferably, the inclination verification is performed before capturing the photo, the photo is captured by the smartphone, and the current inclination of the smartphone is obtained by the gyroscope inside the smartphone. When the inclination is within the allowable range, the photo capture is allowed.

如图3所示,所述特征点查找用于缩小激光点的搜索范围,降低激光点检测的错误率:将图像由RGB颜色空间转换为HSV颜色空间,使用基于经验的阈值过滤出图像中的红色区域并膨胀;再将图像转换为灰度图像,使用基于经验的阈值过滤出高亮度区域;对二部分区域的交集计算连通区域以及每个连通区域的质心,准确获得高亮度激光点对的位置;在获得高亮度激光点失败时,不再使用红色区域与高亮度区域的交集,而是对红色区域进行闭运算后直接执行后续步骤;有效提升了激光点检测的稳定性。As shown in Figure 3, the feature point search is used to narrow the search range of laser points and reduce the error rate of laser point detection: convert the image from the RGB color space to the HSV color space, and use an experience-based threshold to filter out the The red area is expanded; then the image is converted into a grayscale image, and the high-brightness area is filtered out using an experience-based threshold; the connected area and the centroid of each connected area are calculated for the intersection of the two parts to accurately obtain the high-brightness laser point pair. position; when obtaining a high-brightness laser spot fails, the intersection of the red area and the high-brightness area is no longer used, but the red area is closed and the subsequent steps are executed directly; the stability of the laser spot detection is effectively improved.

图像分割及胸径计算具体为:移除照片中的两个激光点,再对图像进行切割,降低图像背景的复杂度,减小图像面积;采用现有的基于深度卷积神经网络的交互式图像分割算法(Interactive Image Segmentation with Latent diversity(CVPR2018,MIT许可证可商用),对图像中的树干区域进行分割,获得轮廓线宽度为一个像素的树干轮廓;将树干轮廓沿树木垂直方向分为等高的四份,树干轮廓被对应分割为4组近似平行边缘,对每一组边缘上的像素点应用最小二乘法进行线性回归,估计出2条边缘直线表达式,并计算2条边缘直线之间的夹角,若夹角小于规定阈值且2条直线的均方误差小于指定阈值,则测量2条边缘直线之间的近似距离,最后对测得的近似距离取平均值,得到树木像素胸径;根据几何关系(如图4所示)将树木像素胸径转换为实际胸径。The image segmentation and DBH calculation are as follows: remove the two laser points in the photo, and then cut the image to reduce the complexity of the image background and reduce the image area; using the existing interactive image based on deep convolutional neural network Segmentation algorithm (Interactive Image Segmentation with Latent diversity (CVPR2018, MIT license is available for commercial use), segment the trunk area in the image, and obtain the trunk outline with a contour line width of one pixel; divide the trunk outline into equal heights along the vertical direction of the tree The four parts of , the trunk outline is correspondingly divided into 4 groups of approximately parallel edges, the least squares method is applied to the pixels on each group of edges to perform linear regression, 2 edge line expressions are estimated, and the distance between the 2 edge lines is calculated. If the angle is less than the specified threshold and the mean square error of the two straight lines is less than the specified threshold, measure the approximate distance between the two edge straight lines, and finally average the measured approximate distances to obtain the tree pixel diameter at breast height; Convert the tree pixel DBH to actual DBH according to the geometric relationship (shown in Figure 4).

本发明实施例提供的用于树木胸径测量的方法、装置与系统,结构简单,方便携带,通过使用2个点激光器,智能手机采集待测量树木胸径图片后即可快速准确的获取待测量树木胸径,提高了树木胸径的测量效率和精度。The method, device and system for measuring tree diameter at breast height provided by the embodiments of the present invention have a simple structure and are easy to carry. By using two point lasers, the diameter at breast height of the tree to be measured can be quickly and accurately obtained after the smartphone collects the DBH picture of the tree to be measured , which improves the measurement efficiency and accuracy of tree diameter at breast height.

Claims (7)

1.一种激光辅助下的树木胸径视觉测量方法,其特征是树木设有RFID标签,通过向待测树木发射两束平行激光标记树木,采集带有激光点的树木照片,使照片中两个点激光位于待测量树木胸径位置,两个激光点连线平行于树木生长延伸方向,对该照片进行图像处理,获得待测树木的胸径,同时,由RFID读写设备识别树木的RFDI标签,并将测得胸径与对应树木标签对应存储;其中,所述图像处理为:通过特征点查找确定照片中激光点位置,根据2个激光点图像中像素距离与两束激光的激光发射器的实际距离计算获得与待测量树木胸径的拍摄距离,得到像素与实际的几何关系;再由据图像分割算法获得树木轮廓,进一步获得实际树木胸径。1. A method for visual measurement of tree diameter at breast height under laser assistance, characterized in that the tree is provided with an RFID tag, and the tree is marked by sending two parallel laser beams to the tree to be tested, and a photo of the tree with the laser point is collected, so that two in the photo are marked. The point laser is located at the DBH position of the tree to be measured, and the line connecting the two laser points is parallel to the direction of tree growth. The image is processed to obtain the DBH of the tree to be tested. The measured diameter at breast height and the corresponding tree label are stored correspondingly; wherein, the image processing is: determining the position of the laser point in the photo through feature point search, according to the pixel distance in the two laser point images and the actual distance of the laser emitters of the two laser beams Calculate the shooting distance from the DBH of the tree to be measured, and obtain the actual geometric relationship between the pixels and the actual tree; then obtain the tree outline according to the image segmentation algorithm, and further obtain the actual tree DBH. 2.根据权利要求1所述的一种激光辅助下的树木胸径视觉测量方法,其特征是在采集照片前进行倾斜度校验,通过智能手机采集照片,由智能手机内部的陀螺仪获取当前智能手机的倾斜度,当所述倾斜度在允许区间内时,允许进行照片采集。2. the visual measurement method of tree diameter at breast height under a kind of laser aid according to claim 1, it is characterized in that carrying out inclination verification before collecting photo, collecting photo by smart phone, obtain current intelligence by the gyroscope inside smart phone. The inclination of the mobile phone, when the inclination is within the allowable interval, photo collection is allowed. 3.根据权利要求1所述的一种激光辅助下的树木胸径视觉测量方法,其特征是所述特征点查找具体为:将图像由RGB颜色空间转换为HSV颜色空间,使用基于经验设置的阈值过滤出图像中的激光颜色区域并膨胀;再将图像转换为灰度图像,根据设定的阈值过滤出高亮度区域;对膨胀区域及高亮度区域的交集计算连通区域以及每个连通区域的质心,获得高亮度激光点对的位置;如无法检测到高亮度激光点,则对激光颜色区域进行闭运算后直接执行后续步骤。3. the visual measurement method of tree diameter at breast height under a kind of laser aid according to claim 1, it is characterized in that described feature point search is specifically: image is converted into HSV color space by RGB color space, use the threshold value that is set based on experience Filter out the laser color area in the image and expand it; then convert the image to a grayscale image, and filter out the high-brightness area according to the set threshold; calculate the connected area and the centroid of each connected area for the intersection of the expanded area and the high-brightness area , obtain the position of the high-brightness laser point pair; if the high-brightness laser point cannot be detected, perform the subsequent steps directly after closing the laser color area. 4.根据权利要求1所述的一种激光辅助下的树木胸径视觉测量方法,其特征是所述图像分割及胸径计算具体为:移除照片中的两个激光点,再对图像进行切割,降低图像背景的复杂度,减小图像面积;采用基于深度卷积神经网络的交互式图像分割算法对图像中的树干区域进行分割,获得轮廓线宽度为一个像素的树干轮廓;将树干轮廓沿树木垂直方向分为等高的四份,树干轮廓被对应分割为4组近似平行边缘,对每一组边缘上的像素点应用最小二乘法进行线性回归,估计出2条边缘直线表达式,并计算2条边缘直线之间的夹角,若夹角小于规定阈值且2条直线的均方误差小于指定阈值,则测量2条边缘直线之间的近似距离,最后对测得的近似距离取平均值,得到树木像素胸径;根据几何关系将树木像素胸径转换为实际胸径。4. the visual measurement method of tree diameter at breast height under a kind of laser aid according to claim 1, it is characterized in that described image segmentation and DBH calculation are specifically: remove two laser points in the photo, then the image is cut, Reduce the complexity of the image background and reduce the image area; use the interactive image segmentation algorithm based on the deep convolutional neural network to segment the trunk area in the image, and obtain the trunk outline with a contour line width of one pixel; The vertical direction is divided into four parts of equal height, and the trunk outline is correspondingly divided into 4 groups of approximately parallel edges. The pixels on each group of edges are subjected to linear regression by applying the least squares method to estimate 2 edge straight line expressions, and calculate The angle between the two edge lines, if the angle is less than the specified threshold and the mean square error of the two lines is less than the specified threshold, then measure the approximate distance between the two edge lines, and finally take the average of the measured approximate distances , get the tree pixel DBH; convert the tree pixel DBH to the actual DBH according to the geometric relationship. 5.一种激光辅助下的树木胸径视觉测量系统,其特征是包括:智能手机、激光发射设备、RFID读写设备和手持设备,手持设备用于装载智能手机、激光发射设备和RFID读写设备,智能手机中配置有计算机程序,所述程序被执行时实现权利要求1-3任一项所述的方法;激光发射设备包括两个点激光器,两个点激光器距离固定,用于发射两束平行激光,在待测树木上标记两个红色激光点;RFID读写设备用于读取树木的RFID标签。5. A visual measurement system for tree diameter at breast height under a laser aid, which is characterized in that it comprises: a smart phone, a laser emission device, an RFID reading and writing device and a handheld device, and the handheld device is used to load a smart phone, a laser emission device and an RFID reading and writing device. , a computer program is configured in the smart phone, and when the program is executed, the method described in any one of claims 1-3 is realized; the laser emitting device includes two point lasers, and the distance between the two point lasers is fixed, for emitting two beams The parallel laser marks two red laser points on the trees to be tested; the RFID reading and writing equipment is used to read the RFID tags of the trees. 6.根据权利要求5所述的一种激光辅助下的树木胸径视觉测量系统,其特征是智能手机通过串口为激光发射设备和RFID读写设备供电,并接收来自RFID读写设备的数据。6. The visual measurement system of tree diameter at breast height under a kind of laser aid according to claim 5, wherein the smart phone supplies power for the laser emission device and the RFID reading and writing device through the serial port, and receives data from the RFID reading and writing device. 7.根据权利要求6所述的一种激光辅助下的树木胸径视觉测量系统,其特征是所述手持设备装有宽度可调节的手机支架,用于适用于不同型号手机装载支持;手持设备设置两个开关,两个开关设置于串口线路上,分别用于控制激光发射设备电路和RFID读写设备的电源通断,手持设备还设有充电插口,充电插口连接串口线路,用于外部充电。7. The visual measurement system of tree diameter at breast height under a kind of laser aid according to claim 6, it is characterized in that described handheld device is equipped with the mobile phone bracket with adjustable width, for being applicable to different model mobile phone loading support; Two switches, two switches are arranged on the serial port line, which are used to control the power supply of the laser emitting device circuit and the RFID reading and writing device respectively. The handheld device also has a charging socket, which is connected to the serial port line for external charging.
CN202010435589.3A 2020-05-21 2020-05-21 A laser-assisted visual measurement method and system for tree diameter at breast height Pending CN111854616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010435589.3A CN111854616A (en) 2020-05-21 2020-05-21 A laser-assisted visual measurement method and system for tree diameter at breast height

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010435589.3A CN111854616A (en) 2020-05-21 2020-05-21 A laser-assisted visual measurement method and system for tree diameter at breast height

Publications (1)

Publication Number Publication Date
CN111854616A true CN111854616A (en) 2020-10-30

Family

ID=72985199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010435589.3A Pending CN111854616A (en) 2020-05-21 2020-05-21 A laser-assisted visual measurement method and system for tree diameter at breast height

Country Status (1)

Country Link
CN (1) CN111854616A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114279431A (en) * 2021-11-22 2022-04-05 北京林业大学 A method and device for measuring tree position in dense canopy forests
CN114415204A (en) * 2022-03-07 2022-04-29 山东农业大学 Tree breast-height diameter obtaining method based on mobile phone laser radar
CN114813752A (en) * 2022-04-26 2022-07-29 维迪智能装备(邯郸)有限公司 Method for measuring and judging surface quality of guide rail
CN115077402A (en) * 2022-06-22 2022-09-20 广州市城市规划勘测设计研究院 Device and method for measuring buried depth and diameter of pipeline

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4837717A (en) * 1986-02-04 1989-06-06 Geotronics Ab Device for measuring substantially vertical, circular-cylindrical objects
CN102980510A (en) * 2012-08-07 2013-03-20 孟繁志 Laser optical ruler image tree measuring device and method thereof
CN103810474A (en) * 2014-02-14 2014-05-21 西安电子科技大学 Car plate detection method based on multiple feature and low rank matrix representation
CN104091075A (en) * 2014-07-11 2014-10-08 东莞中国科学院云计算产业技术创新与育成中心 Tree management and transportation path planning system based on Internet of Things and its implementation method
CN105913419A (en) * 2016-04-07 2016-08-31 南京汇川图像视觉技术有限公司 TFT-LCD mura defect detection method based on ICA learning and multichannel fusion
CN106157310A (en) * 2016-07-06 2016-11-23 南京汇川图像视觉技术有限公司 The TFT LCD mura defect inspection method being combined with multichannel based on mixed self-adapting Level Set Models
CN106546263A (en) * 2016-10-12 2017-03-29 上海大学 A kind of laser leveler shoot laser line detecting method based on machine vision
CN107330380A (en) * 2017-06-14 2017-11-07 千寻位置网络有限公司 Lane line based on unmanned plane image is automatically extracted and recognition methods
CN107607053A (en) * 2017-09-20 2018-01-19 浙江农林大学 A kind of standing tree tree breast diameter survey method based on machine vision and three-dimensional reconstruction
CN108280454A (en) * 2018-01-18 2018-07-13 天津市国瑞数码安全系统股份有限公司 The nude picture detection method being combined with LBP features based on HSV
CN108305287A (en) * 2018-02-02 2018-07-20 天津工业大学 A kind of textile material fibre diameter measurement method based on phase information
CN110057291A (en) * 2019-05-26 2019-07-26 苏州大学 The tall delivery receiving acceptance method for filling plant specification in landscape engineering
CN110969113A (en) * 2019-11-28 2020-04-07 江苏农林职业技术学院 Auxiliary judgment system and method for float state

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4837717A (en) * 1986-02-04 1989-06-06 Geotronics Ab Device for measuring substantially vertical, circular-cylindrical objects
CN102980510A (en) * 2012-08-07 2013-03-20 孟繁志 Laser optical ruler image tree measuring device and method thereof
CN103810474A (en) * 2014-02-14 2014-05-21 西安电子科技大学 Car plate detection method based on multiple feature and low rank matrix representation
CN104091075A (en) * 2014-07-11 2014-10-08 东莞中国科学院云计算产业技术创新与育成中心 Tree management and transportation path planning system based on Internet of Things and its implementation method
CN105913419A (en) * 2016-04-07 2016-08-31 南京汇川图像视觉技术有限公司 TFT-LCD mura defect detection method based on ICA learning and multichannel fusion
CN106157310A (en) * 2016-07-06 2016-11-23 南京汇川图像视觉技术有限公司 The TFT LCD mura defect inspection method being combined with multichannel based on mixed self-adapting Level Set Models
CN106546263A (en) * 2016-10-12 2017-03-29 上海大学 A kind of laser leveler shoot laser line detecting method based on machine vision
CN107330380A (en) * 2017-06-14 2017-11-07 千寻位置网络有限公司 Lane line based on unmanned plane image is automatically extracted and recognition methods
CN107607053A (en) * 2017-09-20 2018-01-19 浙江农林大学 A kind of standing tree tree breast diameter survey method based on machine vision and three-dimensional reconstruction
CN108280454A (en) * 2018-01-18 2018-07-13 天津市国瑞数码安全系统股份有限公司 The nude picture detection method being combined with LBP features based on HSV
CN108305287A (en) * 2018-02-02 2018-07-20 天津工业大学 A kind of textile material fibre diameter measurement method based on phase information
CN110057291A (en) * 2019-05-26 2019-07-26 苏州大学 The tall delivery receiving acceptance method for filling plant specification in landscape engineering
CN110969113A (en) * 2019-11-28 2020-04-07 江苏农林职业技术学院 Auxiliary judgment system and method for float state

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114279431A (en) * 2021-11-22 2022-04-05 北京林业大学 A method and device for measuring tree position in dense canopy forests
CN114415204A (en) * 2022-03-07 2022-04-29 山东农业大学 Tree breast-height diameter obtaining method based on mobile phone laser radar
CN114813752A (en) * 2022-04-26 2022-07-29 维迪智能装备(邯郸)有限公司 Method for measuring and judging surface quality of guide rail
CN115077402A (en) * 2022-06-22 2022-09-20 广州市城市规划勘测设计研究院 Device and method for measuring buried depth and diameter of pipeline

Similar Documents

Publication Publication Date Title
CN111854616A (en) A laser-assisted visual measurement method and system for tree diameter at breast height
WO2022078467A1 (en) Automatic robot recharging method and apparatus, and robot and storage medium
WO2020088076A1 (en) Image labeling method, device, and system
JP3624353B2 (en) Three-dimensional shape measuring method and apparatus
US20200288065A1 (en) Target tracking method and device, movable platform, and storage medium
CN110095062A (en) A kind of object volume measurement method of parameters, device and equipment
US9842399B2 (en) Image processing device and image processing method
CN111899299B (en) Ground obstacle map marking method, mobile robot and storage medium
CN110084842B (en) Servo secondary alignment method and device for robot holder
US11875524B2 (en) Unmanned aerial vehicle platform based vision measurement method for static rigid object
CN106767399A (en) The non-contact measurement method of the logistics measurement of cargo found range based on binocular stereo vision and dot laser
CN114494468B (en) Three-dimensional color point cloud construction method, device, system and storage medium
US10445872B2 (en) Machine control measurements device
Lyu et al. An interactive LiDAR to camera calibration
JP2014202502A (en) Information process device and information process method
CN111238368A (en) Three-dimensional scanning method and device
CN114004899B (en) Pallet pose recognition method, storage medium and equipment
WO2019113859A1 (en) Machine vision-based virtual wall construction method and device, map construction method, and portable electronic device
JP7448035B2 (en) Information processing device, three-dimensional position estimation method, and program
CN111504208A (en) A non-contact method and system for measuring tree diameter at breast height based on computer vision
TWI623899B (en) Object size comparison shopping system
CN110163056A (en) Intelligent vision identifies sweep cable disc centre coordinate system
CN108549877A (en) A kind of tracking robot trajectory's recognition methods based on neural network
CN111783659A (en) Machine vision-based remote lofting method and device, terminal equipment and storage medium
CN112598736A (en) Map construction based visual positioning method and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201030