高级检索

    基于实例分割模型的原木检尺径方法

    A method of log diameter measurement based on instance segmentation model

    • 摘要:
        目的  为降低原木检尺作业中人为因素对检尺结果的影响,提升工作效率,提出一种基于掩膜区域实例分割模型和边缘拟合算法的原木径检尺方法。
        方法  使用单目手机作为采集设备,针对3种不同尺径等级的桉树原木和矩形标尺作为研究对象。首先在不同距离下采集图像制作数据集,以8∶1∶1比例划分训练集、验证集和测试集,建立原木端面识别实验数据集。其次利用实例分割模型提取端面部分生成掩膜,使用边缘拟合算法求得矩形标尺和原木端面像素长度,结合标尺实际大小求得原木端面实际尺径。比较算法测量误差及不同国家标准下材积计算误差,评估该方法的准确性。
        结果  本实例分割模型能够准确地实现原木端面掩膜分割,达到99.89%的精准率与99.41%的召回率,F1分数与均值平均精度相较one-stage算法有明显提升。通过最小二乘边缘拟合算法拟合端面为椭圆,求得椭圆短径作为原木尺径,对比真值,平均百分比误差约为−2.00%,较真实值偏小。对比不同尺径等级原木误差,100%小尺径原木、98%中尺径原木和95%大尺径原木的计算值误差范围为−5% ~ 5%。对比不同距离下采集的原木端面图像,在50 ~ 100 cm以内采集图像效果最佳,平均相对误差不超过−2.22%,距离大于100 cm时误差逐步提升。对比不同国家原木材积计算标准,根据我国标准得出材积误差为−4.5%,与美国、俄罗斯和日本的标准相比较,误差更小。
        结论  相较于人工检尺径,本研究提出的测量方法工作效率更高,人为因素影响更小,能够较为准确地测得原木尺径,可以达到代替人工原木检尺径作业的目标。

       

      Abstract:
        Objective  In order to reduce the influence of human factors on the log sizing results and improve the work efficiency, a log sizing method based on mask region instance segmentation model and edge fitting algorithm was proposed.
        Method  The method used monocular camera as the acquisition equipment, and the end face images of eucalyptus with three different diameter classes and rectangular scaleplate were taken as the research objects. Firstly, the image was collected at different distances to make a data set, and the training set, verification set and test set were divided at the ratio of 8∶1∶1, and the log end face recognition experiment database was established. Secondly, the instance segmentation model was used to extract the end face part to generate the mask, the edge fitting algorithm was used to obtain the pixel size of the rectangular scaleplate and the log end face, combined the actual size of the scaleplate to obtain the actual size of the log end face. Finally, the error of fitting size of the algorithm and the error of different national standard volume calculation formulas were compared.
        Result  It was found that the example segmentation model in this paper can achieve more accurate mask segmentation of log end face, and the accuracy and recall rate were 99.89% and 99.41%, respectively. Compared with the one-stage algorithm, F1 scores and mean average precision were significantly improved. By fitting the end face to an ellipse using a least square edge fitting algorithm, the short diameter of the ellipse was obtained as the log diameter. Compared with the real value, the average percentage error was about −2.00%, which was slightly smaller than the real value. Comparing the error of logs with different sizes, the measurement error of 100% small size logs, 98% medium size logs and 95% large size logs was −5%−5%. By comparing the log end face images collected at different distances, it was found that the best effect was to collect images within 50−100 cm, the average relative error didn’t exceed −2.22%, and the error gradually increased when the distance was greater than 100 cm. By comparing the calculation standards of log volume in different countries, the volume error was −4.5% according to the calculation formula of wood volume in China, which was the lowest among the four national standards of China, America, Russia and Japan.
        Conclusion  Compared with manual measuring, the measuring method proposed in this paper is more efficient, less affected by human factors, and can more accurately measure the log size, and achieve the goal of replacing manual log sizing operations.

       

    /

    返回文章
    返回