CN115439526A - Tree diameter measurement method based on halcon binocular stereo vision - Google Patents
Tree diameter measurement method based on halcon binocular stereo vision Download PDFInfo
- Publication number
- CN115439526A CN115439526A CN202211014079.4A CN202211014079A CN115439526A CN 115439526 A CN115439526 A CN 115439526A CN 202211014079 A CN202211014079 A CN 202211014079A CN 115439526 A CN115439526 A CN 115439526A
- Authority
- CN
- China
- Prior art keywords
- image
- calibration
- camera
- tree
- operator
- 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
- 241001292396 Cirrhitidae Species 0.000 title claims abstract description 24
- 238000000691 measurement method Methods 0.000 title description 7
- 210000000481 breast Anatomy 0.000 claims abstract description 40
- 238000000034 method Methods 0.000 claims abstract description 39
- 238000001514 detection method Methods 0.000 claims abstract description 22
- 238000013135 deep learning Methods 0.000 claims abstract description 20
- 238000012549 training Methods 0.000 claims abstract description 13
- 238000004364 calculation method Methods 0.000 claims abstract description 9
- 230000009466 transformation Effects 0.000 claims description 11
- 239000011159 matrix material Substances 0.000 claims description 10
- 238000004422 calculation algorithm Methods 0.000 claims description 9
- 230000011218 segmentation Effects 0.000 claims description 8
- 238000003384 imaging method Methods 0.000 claims description 7
- 210000000038 chest Anatomy 0.000 claims description 4
- 238000003702 image correction Methods 0.000 claims description 4
- 238000002372 labelling Methods 0.000 claims description 4
- 238000013507 mapping Methods 0.000 claims description 3
- 230000000877 morphologic effect Effects 0.000 claims description 3
- 238000003672 processing method Methods 0.000 claims description 3
- 238000013499 data model Methods 0.000 claims description 2
- 230000000007 visual effect Effects 0.000 claims 2
- 230000001427 coherent effect Effects 0.000 claims 1
- 238000009499 grossing Methods 0.000 claims 1
- 230000003068 static effect Effects 0.000 claims 1
- 238000005259 measurement Methods 0.000 abstract description 23
- 238000005516 engineering process Methods 0.000 abstract description 7
- 238000013473 artificial intelligence Methods 0.000 abstract description 2
- 238000012545 processing Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 238000011161 development Methods 0.000 description 5
- 230000018109 developmental process Effects 0.000 description 5
- 238000003860 storage Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 3
- 238000010276 construction Methods 0.000 description 3
- 238000013527 convolutional neural network Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000008447 perception Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/62—Analysis of geometric attributes of area, perimeter, diameter or volume
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/181—Segmentation; Edge detection involving edge growing; involving edge linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
- G06T2207/10012—Stereo images
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- Image Processing (AREA)
Abstract
本发明公开的一种基于halcon双目立体视觉的树木胸径测量方法,属于人工智能技术领域,包括如下步骤:步骤S1,对双目相机进行标定;步骤S2,根据标定参数进行双目校正;步骤S3,对图像进行立体匹配和视差图的计算;步骤S4,对采集图像进行预处理;步骤S5,基于深度学习进行树木目标检测训练;步骤S6,根据树木的边缘,对两侧交点进行距离测量,获得树木胸径。本发明的树木胸径测量方法,通过双目相机采集人工林林木的图像,并通过深度学习和双目视觉技术得到树木胸径的尺寸,减少了人工工作量,同时提高了测量精度,避免了因测量误差而带来的损失。
A method for measuring tree diameter at breast height based on halcon binocular stereo vision disclosed by the invention belongs to the technical field of artificial intelligence and includes the following steps: step S1, calibrate the binocular camera; step S2, perform binocular correction according to the calibration parameters; step S3, perform stereo matching and disparity map calculation on the image; step S4, preprocess the collected image; step S5, perform tree target detection training based on deep learning; step S6, measure the distance between the intersection points on both sides according to the edge of the tree , to obtain the tree diameter at breast height. The method for measuring tree diameter at breast height of the present invention collects images of artificial forest trees through binocular cameras, and obtains the size of tree diameter at breast height through deep learning and binocular vision technology, which reduces manual workload, improves measurement accuracy at the same time, and avoids losses due to errors.
Description
技术领域technical field
本发明涉及人工智能自动化尺寸测量领域,特别涉及一种基于halcon双目立体视觉的树木胸径测量方法。The invention relates to the field of artificial intelligence automatic size measurement, in particular to a tree diameter measurement method based on halcon binocular stereo vision.
背景技术Background technique
在人工林种植过程中,及时充分掌握林木胸径信息非常必要,其数据信息能够直接反应林木生长速率和树木材积量,是衡量单棵林木价值的重要森林资源清单属性,也是判断林木群体是否正常生长的重要指标。In the process of planting plantations, it is very necessary to timely and fully grasp the information of tree diameter at breast height. The data information can directly reflect the growth rate of trees and the volume of trees. important indicators.
传统的人工林林木胸径数据的采集大多依赖于人力作业,主要利用轮尺、卡尺、直径卷尺等仪器进行手工测量与记录,效率极低、劳动强度大、准确率差。而利用深度学习和计算机视觉技术运用在林木胸径数据信息采集领域有积极意义,不仅能够在技术层面满足快速、高效、准确、自动化的采集需求,提高树木胸径测量效率,更对促进人工林行业的高效发展、高质生产具有显著的现实意义,进一步解放劳动力,减少劳动成本。The collection of DBH data of traditional forest plantations mostly relies on manual operations, mainly using calipers, calipers, diameter tapes and other instruments for manual measurement and recording, which is extremely inefficient, labor-intensive, and poor in accuracy. The use of deep learning and computer vision technology is of positive significance in the field of tree diameter information collection. It can not only meet the needs of fast, efficient, accurate and automatic collection at the technical level, improve the efficiency of tree diameter measurement, but also promote the development of plantation forest industry. Efficient development and high-quality production have significant practical significance, further liberating the labor force and reducing labor costs.
发明内容Contents of the invention
本发明要解决的技术问题是:克服现有技术的不足,提供一种通过双目相机采集林木的图像,并通过对图像进行处理和深度学习后可自动化得到林木胸径的尺寸,减少了人力劳动的工作量和成本,同时提高了测量效率与精度,避免了因测量误差而带来损失的基于halcon双目立体视觉的树木胸径测量方法。The technical problem to be solved by the present invention is: to overcome the deficiencies of the prior art, to provide an image collected by a binocular camera, and to automatically obtain the diameter of the forest tree after processing the image and deep learning, reducing manpower At the same time, it improves the measurement efficiency and accuracy, and avoids the loss caused by measurement errors. The tree diameter measurement method based on halcon binocular stereo vision.
为实现所述目的,提供基于halcon双目立体视觉的树木胸径测量方法,包括:In order to achieve the stated purpose, a tree diameter measurement method based on halcon binocular stereo vision is provided, including:
S1、双目相机标定S1, binocular camera calibration
通过圆点型标定板对双目相机的内外参进行标定,基于halcon非线性模型句柄标定法得到标定参数,根据标定参数对图像进行校正,并采用Block Matching算法进行立体匹配与视差图计算;Calibrate the internal and external parameters of the binocular camera through the dot-type calibration plate, obtain the calibration parameters based on the halcon nonlinear model handle calibration method, correct the image according to the calibration parameters, and use the Block Matching algorithm for stereo matching and disparity map calculation;
S2、深度学习与模型训练S2. Deep learning and model training
(1)对双目相机采集图像进行预处理,包括采用gen_rectangle算子进行左右图像分割,用smooth类算子或mean类算子平滑图像,去除噪点,用invert_image、scale_image等算子进行图像增强,并进行图像标注,完成深度学习图像数据集的构建;(1) Preprocessing the image collected by the binocular camera, including using the gen_rectangle operator to segment the left and right images, using smooth operators or mean operators to smooth the image, removing noise, and using operators such as invert_image and scale_image to enhance the image, And carry out image annotation to complete the construction of deep learning image data set;
(2)基于halcon深度学习网络框架进行树木目标检测训练,通过调节参数得到最优模型;(2) Carry out tree target detection training based on the halcon deep learning network framework, and obtain the optimal model by adjusting parameters;
S3、林木胸径统计S3, tree diameter statistics
(1)采用read_cam_par和read_pose算子,读取双目立体视觉标定获取到的左右相机的摄像机内部参数和右相机相对左相机的位姿;(1) Use the read_cam_par and read_pose operators to read the camera internal parameters of the left and right cameras obtained by binocular stereo vision calibration and the pose of the right camera relative to the left camera;
(2)采用gen_binocular_rectification_map算子,获取非标准外极限图像和标准外极限图像之间的变换矩阵,即映射图像。根据变换矩阵对左右相机成像进行图像校正;(2) Use the gen_binocular_rectification_map operator to obtain the transformation matrix between the non-standard outer limit image and the standard outer limit image, that is, the mapped image. Perform image correction on the left and right camera images according to the transformation matrix;
(3)采用read_dl_model算子,引入已训练好的林木胸径检测模型,并利用参数设置set_dl_model_param算子设置相应参数;(3) Use the read_dl_model operator to introduce the trained tree DBH detection model, and use the parameter setting set_dl_model_param operator to set the corresponding parameters;
(4)采用list_files、tuple_regexp_select算子进行摄像机的打开或图像的读取,其中图像读取类型可设置bmp、gif、jpg等多样类型;(4) Use list_files and tuple_regexp_select operators to open the camera or read the image, and the image reading type can be set to various types such as bmp, gif, jpg, etc.;
(5)采用gen_dl_samples_from_images、preprocess_dl_samples算子对左右图像分别进行检测,通过形态学处理方法,获取阈值分割后的林木胸径以下边界区域,选取边界左上与右上两目标点坐标位置,定义其横坐标差值为胸径大小;(5) Use gen_dl_samples_from_images and preprocess_dl_samples operators to detect the left and right images respectively, and obtain the boundary area below the DBH of the forest tree after threshold segmentation through the morphological processing method, select the coordinate positions of the upper left and upper right target points on the boundary, and define the difference in abscissa is the breast diameter size;
所述检测出树木图像目标,具体为:The tree image target detected is specifically:
采用gray_features(RectangleR,V,“mean”,ValueR)算子,计算指定区域的灰度特征值,其输入是一组区域,每个区域的特征都存储在一组value数组中,从而获取读到的图像区域灰度值,根据threshold(B,RegionB,L1,255),threshold(H,RegionH,L2,255)算子得到灰度值信息,之后进行树干胸径部分及以下区域两边界阈值的确定L1:=ValueR/1.3,L2:=ValueR/1.7,最后对两个通道分割,再取并集,即得到目标检测区域;The gray_features(RectangleR,V,“mean”,ValueR) operator is used to calculate the gray feature value of the specified area. The input is a set of areas, and the features of each area are stored in a set of value arrays, so as to obtain the read According to the threshold(B,RegionB,L1,255) and threshold(H,RegionH,L2,255) operators, the gray value information of the image area is obtained, and then the two boundary thresholds of the trunk diameter and the following area are determined L1:=ValueR/1.3, L2:=ValueR/1.7, finally divide the two channels, and then take the union to obtain the target detection area;
(6)采用open_framegrabber算子,在循环体中,从图像数据中依次读入林木图像,开始时选取头两帧图像;往后每次保留时间靠后的一张图像,读入新图像,覆盖时间靠前的一张图像;(6) Using the open_framegrabber operator, in the loop body, read in the forest images sequentially from the image data, select the first two frames of images at the beginning; keep an image later each time, read in a new image, overwrite An image earlier in time;
(7)胸径均值计算(7) Calculation of mean diameter at breast height
采用tuple_mean和disp_message算子,并定义All:=[All,Mean]对识别次数进行统计,识别次数符合规定设定要求,进行林木胸径均值求取,否则视为识别无效,不进行胸径数值统计;Use tuple_mean and disp_message operators, and define All:=[All,Mean] to count the number of recognition times. If the number of recognition times meets the specified setting requirements, calculate the mean value of the tree diameter at breast height, otherwise the recognition will be considered invalid, and the diameter at breast height will not be counted;
(8)检测有效识别的林木,当目标林木在视野边缘消失且求取有效的胸径值时,相应的林木数量统计计数器加1;(8) Detect effectively identified trees, when the target trees disappear at the edge of the field of view and obtain an effective DBH value, the corresponding tree quantity statistics counter adds 1;
(9)采用open_file和fwrite_string算子进行Excel表格导出统计数值,主要包括林木数量计数器数值和其所对应的林木胸径均值。(9) Use the open_file and fwrite_string operators to export statistical values from the Excel table, mainly including the forest tree number counter value and the corresponding forest tree DBH average value.
优选的,所述的步骤S1,包括如下步骤:Preferably, said step S1 includes the following steps:
双目相机标定采用halcon校准数据模型,采集过程中,上张校准图像采集完毕后,进行采集的图像方向的转动,然后采集下张校准图像直至获得全部校准图像集,单张校准图像采集过程中控制保持静止状态确保没有移动,避免模糊和同步的问题。The binocular camera calibration uses the halcon calibration data model. During the collection process, after the previous calibration image is collected, the direction of the collected image is rotated, and then the next calibration image is collected until all calibration image sets are obtained. During the collection of a single calibration image Controls stay still to ensure there is no movement, avoiding blur and sync issues.
优选的,所述的步骤S2,包括如下步骤:Preferably, said step S2 includes the following steps:
步骤(1),所述图像增强主要是对比度与亮度的调节,所述图像标注利用MVTecDeep Learning Tool标注工具,标注方式主要为针对胸径及以下区域矩形框标注;Step (1), the image enhancement is mainly the adjustment of contrast and brightness, and the image annotation utilizes the MVTecDeep Learning Tool annotation tool, and the annotation mode is mainly for the chest diameter and the following area rectangular frame annotation;
步骤(2)中,所述模型网络为SqueezeNet,其相应算子为pretrained_dl_classifier_compact.hdl,调节的主要参数为batch-size(批处理量)、iterations(迭代次数)和learning_rate(学习率)三个参数。In step (2), the model network is SqueezeNet, and its corresponding operator is pretrained_dl_classifier_compact.hdl, and the main parameters to be adjusted are batch-size (batch size), iterations (number of iterations) and learning_rate (learning rate) three parameters .
优选的,所述的步骤S3,包括如下步骤:Preferably, said step S3 includes the following steps:
步骤(1)、(2)、(3)中,所述参数、变换矩阵和林木胸径检测模型,需放置电脑固定位置进行读取;In steps (1), (2), and (3), the parameters, transformation matrix and tree diameter at breast height detection model need to be placed in a fixed position of the computer for reading;
步骤(4)中,所读取图像为彩色图像;In step (4), the read image is a color image;
步骤(5)中,根据标注方式得到林木胸径矩形框,根据灰度值信息和两边界阈值设定得到检测区域。In step (5), the rectangular frame of tree diameter at breast height is obtained according to the labeling method, and the detection area is obtained according to the gray value information and the two boundary threshold settings.
本发明步骤S3的步骤(7)中,所述对林木识别次数进行统计是为防止误识别,同一棵林木会进行十次拍摄,如果低于六次识别次数,那么此图像一般不是林木为主体。In step (7) of step S3 of the present invention, the counting of forest tree identification times is to prevent misidentification. The same forest tree will be photographed ten times. If the number of recognition times is less than six times, the image is generally not a forest tree as the main body. .
与现有技术相比,本发明所具有的有益效果是:Compared with prior art, the beneficial effect that the present invention has is:
1、通过双目相机采集人工林林木的图像,并通过深度学习和双目视觉技术得到树木胸径的尺寸,减少了人工工作量,同时提高了测量精度,避免了因测量误差而带来的损失;1. Collect images of artificial forest trees through binocular cameras, and obtain the size of tree diameter at breast height through deep learning and binocular vision technology, which reduces manual workload, improves measurement accuracy, and avoids losses caused by measurement errors ;
2、采用深度学习卷积神经网络模型,在保证精度不损失的同时,更加高效、快速实现目标检测任务,获取目标矩形框区域;2. Using the deep learning convolutional neural network model, while ensuring no loss of accuracy, it is more efficient and fast to achieve the target detection task and obtain the target rectangular frame area;
3、通过区域灰度值获取进行树干胸径部分及以下区域两边界阈值的确定,最后对两个通道分割,再取并集,能够使得所要提取的边缘轮廓更加明显,增强图像的区分度,尽可能的减小其他背景环境因素对所测对象的影响;3. Determine the two boundary thresholds of the diameter of the trunk and the following area through the acquisition of the gray value of the area. Finally, segment the two channels and then take the union, which can make the edge contour to be extracted more obvious and enhance the discrimination of the image. It is possible to reduce the influence of other background environmental factors on the measured object;
4、使用双目立体视觉技术进行测距,较单目视觉而言没有识别率的限制,因为从原理上无需先进行识别再进行测算,而是对目标识别物直接进行测量。双目立体视觉在精度上比单目视觉高,直接利用视差计算距离;4. Using binocular stereo vision technology for distance measurement, there is no limit to the recognition rate compared with monocular vision, because in principle, it is not necessary to first identify and then measure, but directly measure the target recognition object. Binocular stereo vision is more accurate than monocular vision, and directly uses parallax to calculate distance;
5、在对林木图像进行胸径测量时,能够处理较大数据量,自动化获取统计结果,并且对于一些灌木、障碍物等非林木目标,其识别次数不足,不进行实际的统计和胸径测量,避免了误识别和误测量。5. When measuring the diameter at breast height of forest images, it can process a large amount of data and automatically obtain statistical results. For some non-forest targets such as shrubs and obstacles, the number of recognition times is insufficient, and actual statistics and diameter measurement are not performed to avoid misidentification and mismeasurement.
所述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的所述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious It is easy to understand that the specific embodiments of the present invention are given below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的台件。Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same stage is denoted by the same reference numeral.
图1为本发明所述一种基于halcon双目立体视觉的树木胸径测量方法的硬件示意图。Fig. 1 is a hardware schematic diagram of a tree diameter measurement method based on halcon binocular stereo vision according to the present invention.
图2为本发明所述一种基于halcon双目立体视觉的树木胸径测量方法的流程图。Fig. 2 is a flowchart of a tree diameter measurement method based on halcon binocular stereo vision according to the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
参见图1,本实施例给出一种基于halcon双目立体视觉的树木胸径测量方法的装置示意图,包括林木图像采集平台、林木图像处理平台和林木胸径测量显示平台。林木图像采集平台负责图像获取,与工控机相连;林木图像处理平台内嵌halcon处理软件,对采集的图像数据进行处理,以求解出采集图像的胸径数据;林木胸径测量显示平台主要负责对图像采集和图像处理进行实时监测,以进行人机交互和显示结果,其主要包含显示屏,与工控机相连。Referring to FIG. 1 , the present embodiment provides a device schematic diagram of a tree diameter measurement method based on halcon binocular stereo vision, including a tree image acquisition platform, a forest image processing platform, and a tree diameter measurement display platform. The forest tree image acquisition platform is responsible for image acquisition and is connected to the industrial computer; the forest tree image processing platform is embedded with halcon processing software to process the collected image data to obtain the DBH data of the collected images; the forest tree DBH measurement and display platform is mainly responsible for image collection Real-time monitoring with image processing for human-computer interaction and display results, which mainly includes a display screen connected to an industrial computer.
本实施例给出的林木图像采集平台通过开发板程序设定能够实现红外传感器与双目相机组合使用从而实时图像采集,针对林木间隔设置采集时长,达到每棵林木采集指定张数图像,再通过halcon自动在工控机创建文件夹,输入所采集的林木图像,并做好命名区分。其中红外传感器1被林木感知触发后对工控机传输指令,此时双目相机进行图像拍摄,当红外传感器2被感知触发,双目相机结束拍摄,具体地,红外传感器1感知被测目标通过时,利用传输线将号传输给工控机,经过工控机处理后启动双目相机,当双目相机开始拍照采集照片并且开始编号存储,采集频率和时间间隔由可触摸显示屏和工控机进行控制,红外传感器2被感知触发后对工控机传输信号,由工控机进行处理后控制双目相机结束采集照片。The forest image acquisition platform given in this embodiment can realize real-time image acquisition through the combination of infrared sensor and binocular camera through the setting of the development board program, and set the acquisition time for the interval of forest trees to reach the specified number of images collected by each tree, and then pass halcon automatically creates a folder on the industrial computer, imports the collected forest images, and makes a naming distinction. Among them, the infrared sensor 1 is triggered by the tree perception and transmits instructions to the industrial computer. At this time, the binocular camera takes image shooting. When the infrared sensor 2 is triggered by the perception, the binocular camera ends the shooting. , use the transmission line to transmit the number to the industrial computer, and start the binocular camera after processing by the industrial computer. When the binocular camera starts to take pictures, collect photos and start number storage, the acquisition frequency and time interval are controlled by the touch screen and the industrial computer. Infrared After the sensor 2 is sensed and triggered, it transmits a signal to the industrial computer, and the industrial computer controls the binocular camera to finish collecting photos after processing.
本实施例给出的林木图像处理平台中工控机核心算法为基于halcon目标检测框架的SqueezeNet卷积神经网络模型,用于获取目标检测识别矩形框,从而得到林木胸径及以下树干位置区域,结合gray_features和threshold算子,获取标准林木胸径及一下区域边界轮廓。The core algorithm of the industrial computer in the tree image processing platform given in this embodiment is the SqueezeNet convolutional neural network model based on the halcon target detection framework, which is used to obtain the target detection and recognition rectangular frame, so as to obtain the forest tree diameter at breast height and the trunk position area below, combined with gray_features and the threshold operator to obtain the standard tree diameter at breast height and the boundary contour of the following areas.
本实施例给出的林木胸径测量显示平台中显示屏主要用于结果显示和图像处理进行实时监测。The display screen in the tree diameter measurement and display platform given in this embodiment is mainly used for result display and image processing for real-time monitoring.
参见图2,林木胸径测量与统计的实现主要由四个部分组成:双目相机标定、深度学习与模型训练、林木图像识别与采集、林木胸径测量与统计。See Figure 2. The realization of tree diameter measurement and statistics mainly consists of four parts: binocular camera calibration, deep learning and model training, tree image recognition and collection, forest tree diameter measurement and statistics.
具体的实施步骤为:The specific implementation steps are:
1.双目相机标定;1. Binocular camera calibration;
通过圆点型标定板对双目相机的内外参进行标定,基于halcon非线性模型句柄标定法得到标定参数。根据标定参数对图像进行校正,获得校正后的图像,采用BlockMatching算法对校正图像进行立体匹配与视差图计算。The internal and external parameters of the binocular camera are calibrated through the dot-type calibration plate, and the calibration parameters are obtained based on the halcon nonlinear model handle calibration method. The image is corrected according to the calibration parameters to obtain the corrected image, and the BlockMatching algorithm is used to perform stereo matching and disparity map calculation on the corrected image.
在完整的相机成像模型中,由相机和镜头组成,在本发明中,采用面阵相机和普通镜头的组合。要完成林木图像胸径的测量,需要确定林木胸径三维几何位置与其在拍摄图像中对应的相关系,主要是世界坐标系与相机坐标系、相机坐标系与成像平面坐标系、成像平面坐标系与图像坐标系之间的相互转换,经过4个坐标系之间的三次变换,从而实现三维空间点从世界坐标系转换到图像坐标系中。由于镜头加工工艺等原因,采集的图像会产生不同程度的畸变。在实际应用中工业镜头的畸变主要为径向畸变,畸变会使成像平面坐标系的点(u,v)T发生改变:In the complete camera imaging model, it is composed of a camera and a lens. In the present invention, a combination of an area array camera and a common lens is used. To complete the measurement of tree image diameter at breast height, it is necessary to determine the three-dimensional geometric position of forest tree diameter at breast height and its corresponding phase relationship in the captured image, mainly the world coordinate system and camera coordinate system, camera coordinate system and imaging plane coordinate system, imaging plane coordinate system and image The mutual conversion between the coordinate systems undergoes three transformations between the four coordinate systems, so as to realize the conversion of the three-dimensional space points from the world coordinate system to the image coordinate system. Due to the lens processing technology and other reasons, the collected images will have different degrees of distortion. In practical applications, the distortion of industrial lenses is mainly radial distortion, which will change the point (u, v) T of the imaging plane coordinate system:
其中k为镜头径向畸变系数,为由于镜头畸变在成像平面上偏移的投影点坐标。where k is the lens radial distortion coefficient, is the coordinate of the projected point offset on the imaging plane due to lens distortion.
因此,径向畸变会使图像中目标点的实际坐标产生偏移,而空间图像定位算法的精度与坐标信息密切相关,需要对相机进行标定以获取其内部相机单个像元的宽、高,相机的焦距,镜头光心在成像平面上的垂直投影以及镜头畸变系数6个参数,并对图像进行畸变校正。Therefore, the radial distortion will cause the actual coordinates of the target point in the image to shift, and the accuracy of the spatial image positioning algorithm is closely related to the coordinate information. It is necessary to calibrate the camera to obtain the width and height of a single pixel of the internal camera. The focal length of the lens, the vertical projection of the optical center of the lens on the imaging plane, and the lens distortion coefficient are 6 parameters, and the image is corrected for distortion.
(1)选择160×160mm的圆点型标定板进行相机标定,其上圆的直径为10mm,圆心距为20mm,左上角黑色三角形为其方向标记。通过halcon标定助手窗口,根据相机参数,设定摄像机模型为面扫描类型,确定焦距和单个像元的宽、高3个参数;(1) Select a 160×160mm dot-shaped calibration plate for camera calibration. The diameter of the circle on it is 10mm, the distance between the centers of the circles is 20mm, and the black triangle in the upper left corner is its direction mark. Through the halcon calibration assistant window, according to the camera parameters, set the camera model to the area scanning type, and determine the focal length and the width and height of a single pixel;
(2)在相机视野中不断变换标定板位姿并且使用左、右相机各采集16幅标定图像,通过标定板图像对相机进行标定,获取了相机内部参数。并采用反投影误差的方法对相机标定精度进行计算,得出左、右相机标定平均误差;(2) Constantly change the pose of the calibration board in the camera field of view and use the left and right cameras to collect 16 calibration images, calibrate the camera through the calibration board images, and obtain the internal parameters of the camera. And the method of back projection error is used to calculate the calibration accuracy of the camera, and the average error of the left and right camera calibration is obtained;
(3)通过gen_radial_distortion_map算子建立有、无畸变时相机内参映射关系,并通过Block Matching算法进行立体匹配与视差图计算,校正图像畸变,提高目标点空间定位的精度。(3) Use the gen_radial_distortion_map operator to establish the camera internal reference mapping relationship with and without distortion, and use the Block Matching algorithm to perform stereo matching and disparity map calculations to correct image distortion and improve the accuracy of spatial positioning of target points.
2.林木图像识别与采集;2. Tree image recognition and collection;
红外传感器1信号线与开发板对应引脚连接,给出红外判断信号;开发板利用USB数据线与工控机连接,给工控机发送逻辑判断信号,判断是否保存图像;若上述判断为是,则双目相机利用USB连接线连接至工控机上,将采集到的图像传输到工控机中,当红外传感器2给出红外判断信号,单棵林木图像采集完成,程序循环直至程序关闭;The infrared sensor 1 signal line is connected to the corresponding pin of the development board, and an infrared judgment signal is given; the development board uses a USB data cable to connect to the industrial computer, and sends a logic judgment signal to the industrial computer to judge whether to save the image; if the above judgment is yes, then The binocular camera is connected to the industrial computer with a USB cable, and the collected images are transmitted to the industrial computer. When the infrared sensor 2 gives an infrared judgment signal, the image acquisition of a single tree is completed, and the program loops until the program is closed;
3.深度学习与模型训练;3. Deep learning and model training;
(1)数据集构建。首先对采集图像进行预处理,因所采集图像为双目图像,因此采用gen_rectangle算子进行左右图像沿竖直方向中轴线平均分割;分割后采用smooth类算子或mean类算子平滑图像,去除噪点,以保证图像在训练前去除背景干扰等情况;用invert_image、scale_image等算子进行图像增强,主要是图像翻转、对比度和亮度变化等增强方式,从而增加数据集图像数据并提升模型鲁棒性;最后进行图像标注,采用MVTecDeep Learning Tool标注工具进行胸径部分矩形框标注,完成深度学习图像数据集的构建;(1) Data set construction. Firstly, the collected image is preprocessed. Because the collected image is a binocular image, the left and right images are equally divided along the vertical central axis by using the gen_rectangle operator; after the segmentation, the smooth operator or the mean operator is used to smooth the image and remove Noise, to ensure that the image removes background interference before training; use invert_image, scale_image and other operators for image enhancement, mainly image flipping, contrast and brightness changes, etc., so as to increase the image data of the dataset and improve the robustness of the model ;Finally, image annotation is carried out, and MVTecDeep Learning Tool is used to mark the rectangular frame of the breast diameter part, and the construction of the deep learning image data set is completed;
(2)模型训练与优化。基于halcon深度学习网络框架进行树木目标检测训练,通过算子pretrained_dl_classifier_compact.hdl引入SqueezeNet网络模型,通过调节batch-size(批处理量)、iterations(迭代次数)和learning_rate(学习率)三个参数不断优化模型,通过确定平均精度均值、准确率和召回率确定最优训练模型;(2) Model training and optimization. Based on the halcon deep learning network framework for tree target detection training, the SqueezeNet network model is introduced through the operator pretrained_dl_classifier_compact.hdl, and the three parameters of batch-size (batch processing), iterations (iterations) and learning_rate (learning rate) are continuously optimized. Model, determine the optimal training model by determining the average precision mean, precision and recall;
(3)最优模型导出。在训练中,指定最优模型best_dl_model_detection.hdl保存路径,以确保训练中最佳模型的应用。(3) Optimal model export. During training, specify the optimal model best_dl_model_detection.hdl save path to ensure the application of the best model during training.
4.林木胸径测量与统计;4. Forest tree diameter measurement and statistics;
(1)采用read_cam_par和read_pose算子,读取双目立体视觉标定获取到的左右相机的摄像机内部参数和右相机相对左相机的位姿,以确保下一步实时进行双目图像的校正;采用gen_binocular_rectification_map算子,获取非标准外极限图像和标准外极限图像之间的变换矩阵,即映射图像,根据变换矩阵对左右相机成像进行图像校正,从而获取校正好的左、右相机图像界面;采用read_dl_model算子,引入已训练好的林木胸径检测模型,并利用参数设置set_dl_model_param算子设置相应参数,以适应实时测量胸径的工作要求;(1) Use the read_cam_par and read_pose operators to read the internal camera parameters of the left and right cameras obtained by binocular stereo vision calibration and the pose of the right camera relative to the left camera to ensure that the next step is to correct the binocular image in real time; use gen_binocular_rectification_map Operator, to obtain the transformation matrix between the non-standard outer limit image and the standard outer limit image, that is, the mapping image, and perform image correction on the left and right camera images according to the transformation matrix, so as to obtain the corrected left and right camera image interfaces; use read_dl_model to calculate Introduce the trained tree DBH detection model, and use the parameter setting set_dl_model_param operator to set the corresponding parameters to meet the working requirements of real-time DBH measurement;
(2)实时图像界面读取,当双目相机识别不进行图像保存时,程序进行林木胸径测量过程,采用list_files、tuple_regexp_select算子打开双目相机实时读取图像数据,其中图像读取类型可设置bmp、gif、jpg等多样类型;(2) Real-time image interface reading. When the binocular camera recognizes and does not save the image, the program performs the tree diameter measurement process. The list_files and tuple_regexp_select operators are used to open the binocular camera to read image data in real time, and the image reading type can be set Various types such as bmp, gif, jpg;
(3)设置相应识别时间,当识别时间内识别到林木图像,进行图像检测环节。首先采用invert_image、scale_image等算子进行图像增强,以确保检测过程的鲁棒性,再根据变换矩阵对左、右相机分别进行图像校正;随后采用gray_features算子进行指定区域的灰度特征值的计算,从而获取读到的图像区域灰度值。(3) Set the corresponding recognition time, and when the forest image is recognized within the recognition time, the image detection link is performed. First, invert_image, scale_image and other operators are used to enhance the image to ensure the robustness of the detection process, and then the images of the left and right cameras are respectively corrected according to the transformation matrix; then the gray_features operator is used to calculate the gray feature value of the specified area , so as to obtain the gray value of the read image area.
(4)采用gen_dl_samples_from_images、preprocess_dl_samples算子对左右图像分别进行检测,根据threshold(B,RegionB,L1,255),threshold(H,RegionH,L2,255)算子得到灰度值信息,之后进行树干胸径部分及以下区域两边界阈值的确定L1:=ValueR/1.3,L2:=ValueR/1.7,最后对两个通道分割,再取并集,最终得到目标检测区域。(4) Use the gen_dl_samples_from_images and preprocess_dl_samples operators to detect the left and right images respectively, and obtain the gray value information according to the threshold(B, RegionB, L1, 255) and threshold(H, RegionH, L2, 255) operators, and then perform the trunk diameter Determination of the two boundary thresholds of some and the following areas: L1:=ValueR/1.3, L2:=ValueR/1.7, and finally divide the two channels, and then take the union to finally obtain the target detection area.
(5)通过形态学处理方法,采用get_dict_tuple和gen_circle获取阈值分割后的林木胸径以下边界区域和边界左上与右上两目标点坐标位置。(5) Through the morphological processing method, use get_dict_tuple and gen_circle to obtain the boundary area below the tree diameter after threshold segmentation and the coordinate positions of the upper left and upper right target points of the boundary.
(6)采用open_framegrabber算子,在循环体中,从图像数据中依次读入林木图像,开始时选取头两帧图像;往后每次保留时间靠后的一张图像,读入新图像,覆盖时间靠前的一张图像;(6) Using the open_framegrabber operator, in the loop body, read in the forest images sequentially from the image data, select the first two frames of images at the beginning; keep an image later each time, read in a new image, overwrite An image earlier in time;
(7)胸径均值计算。采用tuple_mean和disp_message算子,并定义All:=[All,Mean]对识别次数进行统计,识别次数符合规定设定要求,进行林木胸径均值求取,否则视为识别无效,不进行胸径数值统计;(7) Calculation of mean DBH. Use tuple_mean and disp_message operators, and define All:=[All,Mean] to count the number of recognition times. If the number of recognition times meets the specified setting requirements, calculate the mean value of the tree diameter at breast height, otherwise the recognition will be considered invalid, and the diameter at breast height will not be counted;
(8)检测有效识别的林木,当目标林木在视野边缘消失且求取有效的胸径值时,相应的林木数量统计计数器加1;(8) Detect effectively identified trees, when the target trees disappear at the edge of the field of view and obtain an effective DBH value, the corresponding tree quantity statistics counter adds 1;
(9)采用open_file和fwrite_string算子进行Excel表格导出统计数值,主要包括林木数量计数器数值和其所对应的林木胸径均值。(9) Use the open_file and fwrite_string operators to export statistical values from the Excel table, mainly including the forest tree number counter value and the corresponding forest tree DBH average value.
与现有技术相比,本发明所具有的有益效果是:Compared with prior art, the beneficial effect that the present invention has is:
1、通过双目相机采集人工林林木的图像,并通过深度学习和双目视觉技术得到树木胸径的尺寸,减少了人工工作量,同时提高了测量精度,避免了因测量误差而带来的损失;1. Collect images of artificial forest trees through binocular cameras, and obtain the size of tree diameter at breast height through deep learning and binocular vision technology, which reduces manual workload, improves measurement accuracy, and avoids losses caused by measurement errors ;
2、采用深度学习卷积神经网络模型SqueezeNet,在保证精度不损失的同时,将原始AlexNet模型大小压缩至原来的1/50,其参数比AlexNet少50倍,能够更加高效、快速实现目标检测任务,获取目标矩形框区域;2. Using the deep learning convolutional neural network model SqueezeNet, the size of the original AlexNet model is compressed to 1/50 of the original while ensuring no loss of accuracy, and its parameters are 50 times less than AlexNet, which can achieve target detection tasks more efficiently and quickly , get the area of the target rectangle;
3、通过区域灰度值获取进行树干胸径部分及以下区域两边界阈值的确定,最后对两个通道分割,再取并集,能够使得所要提取的边缘轮廓更加明显,增强图像的区分度,尽可能的减小其他背景环境因素对所测对象的影响;3. Determine the two boundary thresholds of the diameter of the trunk and the following area through the acquisition of the gray value of the area. Finally, segment the two channels and then take the union, which can make the edge contour to be extracted more obvious and enhance the discrimination of the image. It is possible to reduce the influence of other background environmental factors on the measured object;
4、使用双目立体视觉技术进行测距,较单目视觉而言没有识别率的限制,因为从原理上无需先进行识别再进行测算,而是对目标识别物直接进行测量。双目立体视觉在精度上比单目视觉高,直接利用视差计算距离;4. Using binocular stereo vision technology for distance measurement, there is no limit to the recognition rate compared with monocular vision, because in principle, it is not necessary to first identify and then measure, but directly measure the target recognition object. Binocular stereo vision is more accurate than monocular vision, and directly uses parallax to calculate distance;
5、在对林木图像进行胸径测量时,能够处理较大数据量,自动化获取统计结果,并且对于一些灌木、障碍物等非林木目标,其识别次数不足,不进行实际的统计和胸径测量,避免了误识别和误测量。5. When measuring the diameter at breast height of forest images, it can process a large amount of data and automatically obtain statistical results. For some non-forest targets such as shrubs and obstacles, the number of recognition times is insufficient, and actual statistics and diameter measurement are not performed to avoid misidentification and mismeasurement.
本实施例中,还提供一种计算机可读存储介质,其中,计算机可读存储介质存储一个或多个程序,一个或多个程序当被处理器执行时,实现所述的方法。In this embodiment, a computer-readable storage medium is also provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method is implemented.
本实施例中,还提供一种电子设备,其中,该电子设备包括:In this embodiment, an electronic device is also provided, wherein the electronic device includes:
处理器;以及,Processor; and,
被安排成存储计算机可执行指令的存储器,可执行指令在被执行时使处理器执行所述的方法。A memory arranged to store computer-executable instructions which, when executed, cause the processor to perform the described method.
需要说明的是:It should be noted:
本实施例所用的方法,可转化为可存储于计算机存储介质中的程序步骤及装置,通过被控制器调用执行的方式进行实施,其中所述装置应当被理解为计算机程序实现的功能模块。The method used in this embodiment can be transformed into program steps and devices that can be stored in a computer storage medium, and implemented by being called and executed by a controller, wherein the devices should be understood as functional modules implemented by computer programs.
在此提供的算法和显示不与任何特定计算机、虚拟装置或者其它设备固有相关。各种通用装置也可以与基于在此的示教一起使用。根据上面的描述,构造这类装置所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual appliance, or other device. Various general purpose devices can also be used with the teachings based on this. The structure required to construct such an apparatus will be apparent from the foregoing description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是所述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211014079.4A CN115439526B (en) | 2022-08-23 | 2022-08-23 | Tree breast diameter measurement method based on halcon binocular stereo vision |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211014079.4A CN115439526B (en) | 2022-08-23 | 2022-08-23 | Tree breast diameter measurement method based on halcon binocular stereo vision |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115439526A true CN115439526A (en) | 2022-12-06 |
CN115439526B CN115439526B (en) | 2025-02-07 |
Family
ID=84245512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211014079.4A Active CN115439526B (en) | 2022-08-23 | 2022-08-23 | Tree breast diameter measurement method based on halcon binocular stereo vision |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115439526B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN110307783A (en) * | 2019-06-26 | 2019-10-08 | 浙江农林大学 | A tree volume measurement device based on binocular stereo vision |
CN111179335A (en) * | 2019-12-28 | 2020-05-19 | 东北林业大学 | Standing tree measuring method based on binocular vision |
CN112837257A (en) * | 2019-11-06 | 2021-05-25 | 广州达普绅智能设备有限公司 | Curved surface label splicing detection method based on machine vision |
CN113284111A (en) * | 2021-05-26 | 2021-08-20 | 汕头大学 | Hair follicle region positioning method and system based on binocular stereo vision |
CN113837927A (en) * | 2021-09-14 | 2021-12-24 | 广西大学 | Standing tree height measuring system and method based on machine vision |
CN113888641A (en) * | 2021-09-16 | 2022-01-04 | 广西大学 | A method for measuring diameter at breast height of standing trees based on machine vision and deep learning |
KR20220004491A (en) * | 2020-07-03 | 2022-01-11 | 국민대학교산학협력단 | Artificial intelligence based tree data management system and tree data management method |
CN114234805A (en) * | 2021-12-14 | 2022-03-25 | 福建工程学院 | A system and method for automatic inspection of wood volume based on spectral imaging technology |
-
2022
- 2022-08-23 CN CN202211014079.4A patent/CN115439526B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN110307783A (en) * | 2019-06-26 | 2019-10-08 | 浙江农林大学 | A tree volume measurement device based on binocular stereo vision |
CN112837257A (en) * | 2019-11-06 | 2021-05-25 | 广州达普绅智能设备有限公司 | Curved surface label splicing detection method based on machine vision |
CN111179335A (en) * | 2019-12-28 | 2020-05-19 | 东北林业大学 | Standing tree measuring method based on binocular vision |
KR20220004491A (en) * | 2020-07-03 | 2022-01-11 | 국민대학교산학협력단 | Artificial intelligence based tree data management system and tree data management method |
CN113284111A (en) * | 2021-05-26 | 2021-08-20 | 汕头大学 | Hair follicle region positioning method and system based on binocular stereo vision |
CN113837927A (en) * | 2021-09-14 | 2021-12-24 | 广西大学 | Standing tree height measuring system and method based on machine vision |
CN113888641A (en) * | 2021-09-16 | 2022-01-04 | 广西大学 | A method for measuring diameter at breast height of standing trees based on machine vision and deep learning |
CN114234805A (en) * | 2021-12-14 | 2022-03-25 | 福建工程学院 | A system and method for automatic inspection of wood volume based on spectral imaging technology |
Non-Patent Citations (4)
Title |
---|
JIANHUA YANG ET AL.: "3D SURFACE DEFECTS RECOGNITION OF LUMBER AND STRAW-BASED PANELS BASED ON STRUCTURE LASER SENSOR SCANNING TECHNOLOGY", 《INMATEH》, vol. 57, no. 1, 31 December 2019 (2019-12-31) * |
于春和;祁乐阳;: "基于HALCON的双目摄像机标定", 电子设计工程, no. 19, 5 October 2017 (2017-10-05) * |
马继东等: "基于 HALCON 的树木检测方法应用研究", 《森林工程》, vol. 31, no. 3, 31 May 2015 (2015-05-31) * |
高翔: "旋切机用原木直径测量系统开发与方法研宄", 《中国优秀硕士学位论文全文数据库 工程科技I辑》, 15 April 2020 (2020-04-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN115439526B (en) | 2025-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Liu et al. | A detection and recognition system of pointer meters in substations based on computer vision | |
CN105740856B (en) | A kind of pointer instrument registration read method based on machine vision | |
CN111340797A (en) | Laser radar and binocular camera data fusion detection method and system | |
CN107657639A (en) | A kind of method and apparatus of quickly positioning target | |
CN102704215B (en) | Automatic cutting method of embroidery cloth based on combination of DST file parsing and machine vision | |
CN108416791A (en) | A Binocular Vision-Based Pose Monitoring and Tracking Method for Parallel Mechanism Maneuvering Platform | |
CN106650701B (en) | Binocular vision-based obstacle detection method and device in indoor shadow environment | |
CN110223355B (en) | Feature mark point matching method based on dual epipolar constraint | |
CN105913013A (en) | Binocular vision face recognition algorithm | |
CN104224212A (en) | CT system, CT system scanning positioning method and CT system calibration method | |
CN110648362B (en) | A Binocular Stereo Vision Badminton Positioning Recognition and Attitude Calculation Method | |
CN111179335A (en) | Standing tree measuring method based on binocular vision | |
CN110766669A (en) | A Multi-Vision-Based Pipeline Measurement Method | |
CN112132886A (en) | Circular hole center rapid positioning and roundness detection method for aviation part | |
CN108805939B (en) | Calibration device and method for trinocular vision system based on statistical features | |
CN116883480A (en) | Corn plant height detection method based on binocular image and ground-based radar fusion point cloud | |
CN113920138A (en) | An RGB-D camera-based detection device for cow body size and its detection method | |
CN114663344A (en) | Train wheel set tread defect identification method and device based on image fusion | |
CN114120354A (en) | Human body detection and positioning method and device applied to air conditioner and intelligent sensing system | |
CN110954555A (en) | WDT 3D vision detection system | |
CN110097540A (en) | The visible detection method and device of polygon workpeace | |
CN102608349B (en) | Intelligent greenhouse nectarine fruit growth rate wireless monitoring system based on embedded dual-camera platform | |
CN110853080A (en) | Method for measuring size of field fruit | |
CN113190564A (en) | Map updating system, method and device | |
CN113269729B (en) | Assembly body multi-view detection method and system based on depth image contrast |
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 |