• Scopus
  • Chinese Science Citation Database (CSCD)
  • A Guide to the Core Journal of China
  • CSTPCD
  • F5000 Frontrunner
  • RCCSE
Advanced search
Li Jiayu, Liu Jinhao. A method of log diameter measurement based on instance segmentation model[J]. Journal of Beijing Forestry University, 2023, 45(3): 153-159. DOI: 10.12171/j.1000-1522.20220345
Citation: Li Jiayu, Liu Jinhao. A method of log diameter measurement based on instance segmentation model[J]. Journal of Beijing Forestry University, 2023, 45(3): 153-159. DOI: 10.12171/j.1000-1522.20220345

A method of log diameter measurement based on instance segmentation model

More Information
  • Received Date: August 18, 2022
  • Revised Date: February 08, 2023
  • Available Online: February 14, 2023
  • Published Date: March 24, 2023
  •   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.
  • [1]
    祁述雄. 中国桉树[M]. 2版. 北京: 中国林业出版社, 2002.

    Qi S X. Eucalyptus in China[M]. 2nd ed. Beijing: China Forestry Publishing House, 2002.
    [2]
    Arnold R J, Luo J Z, Clarke B. Trials of cold tolerant eucalypt species in cooler regions of south central China[R]. Canberra: Australian Centre for International Agricultural Research, 2004.
    [3]
    中华人民共和国国家统计局. 中国统计年鉴(2020)[M]. 北京: 中国统计出版社, 2020.

    National Bureau of Statistics of the People’s Republic of China. China statistical yearbook (2020)[M]. Beijing: China Statistics Press, 2020.
    [4]
    华蓓, 曹圃, 黄汝维. 基于计算机视觉的原木材积检测方法研究[J]. 河南科技学院学报(自然科学版), 2022, 50(2): 64−69.

    Hua B, Cao P, Huang R W. Research of log volume measuring method based on computer vision technology[J]. Journal of Henan Institute of Science and Technology (Natural Science Edition), 2022, 50(2): 64−69.
    [5]
    陈广华, 张强, 陈梅倩, 等. 双目视觉的原木径级快速检测算法[J]. 北京交通大学学报, 2018, 42(2): 22−30. doi: 10.11860/j.issn.1673-0291.2018.02.004

    Chen G H, Zhang Q, Chen M Q, et al. Rapid detection algorithms for log diameter classes based on binocular vision[J]. Journal of Beijing Jiaotong University, 2018, 42(2): 22−30. doi: 10.11860/j.issn.1673-0291.2018.02.004
    [6]
    Keck C, Schoedel R. Reference measurement of roundwood by fringe projection[J]. Forest Products Journal, 2021, 71(4): 352−361. doi: 10.13073/FPJ-D-21-00024
    [7]
    唐浩, 王克俭, 李晓烨, 等. 基于色差聚类的原木图像端面检测与统计[J]. 计量学报, 2020, 41(6): 682−688. doi: 10.3969/j.issn.1000-1158.2020.06.09

    Tang H, Wang K J, Li X Y, et al. Logs end detection and statistics by color difference clustering[J]. Acta Metrologica Sinica, 2020, 41(6): 682−688. doi: 10.3969/j.issn.1000-1158.2020.06.09
    [8]
    Tang H, Wang K, Gu J C, et al. Application of SSD framework model in detection of logs end[J]. Journal of Physics: Conference Series, 2020, 1486(7): 072051. doi: 10.1088/1742-6596/1486/7/072051
    [9]
    蔡瑞星, 林培杰, 林耀海, 等. 基于改进 YOLOv4-Tiny 的成捆原木端面检测算法[J]. 电视技术, 2021, 45(9): 92−99.

    Cai R X, Lin P J, Lin Y H, et al. A detection approach for bundled log ends based on an improved YOLOv4-Tiny network[J]. Video Engineering, 2021, 45(9): 92−99.
    [10]
    林耀海, 赵洪璐, 杨泽灿, 等. 结合深度学习与Hough变换的等长原木材积检测系统[J]. 林业工程学报, 2021, 6(1): 136−142.

    Lin Y H, Zhao H L, Yang Z C, et al. An equal length log volume inspection system using deep-learning and Hough transformation[J]. Journal of Forestry Engineering, 2021, 6(1): 136−142.
    [11]
    Antti R, Heikki K, Markku T, et al. Electrical impedance and image analysis methods in detecting and measuring Scots pine heartwood from a log end during tree harvesting[J]. Computers and Electronics in Agriculture, 2020, 177(1): 105690.
    [12]
    Redmon J, Divvala S, Girshick R, et al. You only look once: unified, real-time object detection[C]//O’Conner L. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Las Vegas: IEEE, 2016: 779−788.
    [13]
    Redmon J, Farhadi A. YOLO9000: better, faster, stronger[C]//O’Conner L. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Honolulu: IEEE, 2017: 6517−6525.
    [14]
    Redmon J, Farhadi A. YOLOV3: an incremental improvement[C]//O’Conner L. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Salt Lake City: IEEE, 2018: 1−6.
    [15]
    Liu W, Angueloy D, Erhan D, et al. SSD: single shot multibox detector[C]//Leibe B, Matas J, Sebe N, et al. Proceedings of the European Conference on Computer Vision. Berlin: Springer, 2016: 21−37.
    [16]
    Girshick R, Donahue J, Darrelland T, et al. Rich feature hierarchies for accurate object detection and semantic segmentation[C]//O’Conner L. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Columbus: IEEE, 2014: 580−587.
    [17]
    Girshick R. Fast R-CNN[C]//O’Conner L. Proceedings of the IEEE International Conference on Computer Vision. Santiago: IEEE, 2015: 1440−1448.
    [18]
    Ren S, He K, Girshick R, et al. Faster R-CNN: towards realtime object detection with region proposal networks[C]//Kyoung M L. IEEE Transactions on Pattern Analysis and Machine Intelligence. New York: IEEE, 2017: 1137−1149.
    [19]
    He K M, Gkioxari G, Dollár P, et al. Mask R-CNN[C]//O’Conner L. Proceedings of the IEEE International Conference on Computer Vision. Venice: IEEE, 2017: 2980−2988.
    [20]
    Andrew F, Maurizio P, Robert B F. Direct least square fitting of ellipses[C]//Kyoung M L. IEEE transactions on pattern analysis and machine intelligence. New York: IEEE, 1999: 476−480.
    [21]
    Huang Z J, Huang L C, Gong Y C, et al. Mask scoring R-CNN[C]//O’Conner L. IEEE CVF Conference on Computer Vision and Pattern Recognition (CVPR). Long Beach:IEEE, 2019: 6402−6411.
    [22]
    何鸿宇, 林晓丽, 王林, 等. 中国与俄罗斯、美国、日本原木检验标准比较研究[J]. 世界林业研究, 2021, 34(2): 96−100. doi: 10.13348/j.cnki.sjlyyj.2020.0100.y

    He H Y, Lin X L, Wang L, et al. Comparative study of log inspection standards among China, Russia, the United States of America and Japan[J]. World Forestry Research, 2021, 34(2): 96−100. doi: 10.13348/j.cnki.sjlyyj.2020.0100.y
  • Related Articles

    [1]Wang Xiaoshuang, Chen Jungang, Zhang Yunhai, Yu Xinxiao. Effects of seasonal nitrogen addition on soil net nitrogen mineralization in typical temperate grasslands of Inner Mongolia, northern China[J]. Journal of Beijing Forestry University, 2024, 46(12): 63-70. DOI: 10.12171/j.1000-1522.20230018
    [2]Tian Di, Lin Quanhong, Zhao Changti, Zhu Ruide, Ma Suhui, Yu Qingshui, Ji Chengjun, Shen Haihua. Effects of nitrogen addition on the key carbon sequestration process in a tropical montane rainforest in Hainan Province of southern China: a case study of photosynthesis of dominant trees Cryptocarya chinensis and Gironniera subaequalis[J]. Journal of Beijing Forestry University, 2022, 44(10): 93-101. DOI: 10.12171/j.1000-1522.20220401
    [3]Zhao Han, Wang Haiyan, Luo Peng, Du Xue, Zou Jiahe, Fu Liyong, Lei Xiangdong. Effects of micro-topography on soil organic carbon and total nitrogen in mixed spruce-fir-broadleaf forest[J]. Journal of Beijing Forestry University, 2022, 44(8): 88-97. DOI: 10.12171/j.1000-1522.20210237
    [4]Yu Hui, Song Qinghai, Zhang Yiping, Gnanamoorthy Palingamoorthy, Zhang Jing, Sadia Bibi. Long-term variation characteristics of radiation in the tropical seasonal rainforest in Xishuangbanna, southwestern China[J]. Journal of Beijing Forestry University, 2021, 43(4): 56-67. DOI: 10.12171/j.1000-1522.20200270
    [5]Li Cong, Lu Mei, Ren Yulian, Du Fan, Tao Hai, Yang Luoping, Wang Dongxu. Distribution of soil nitrogen components of Wenshan typical subtropical forests along an altitude gradient and its influencing factors in Yunnan Province of southwestern China[J]. Journal of Beijing Forestry University, 2020, 42(12): 63-73. DOI: 10.12171/j.1000-1522.20200252
    [6]WANG Jin-song, ZHAO Xiu-hai, ZHANG Chun-yu, LI Hua-shan, WANG Na, ZHAO Bo. Effects of simulated nitrogen deposition on soil organic carbon and total nitrogen content in plantation and natural forests of Pinus tabuliformis.[J]. Journal of Beijing Forestry University, 2016, 38(10): 88-94. DOI: 10.13332/j.1000-1522.20140294
    [7]YANG Xiao-yan, FAN Rui-ying, WANG En-heng, XIA Xiang-you, CHEN Xiang-wei, LU Qian-qian, KONG Ling-wei, ZHU Hao.. Effects of extraction conditions on topsoil dissolved organic carbon concentration of black soil.[J]. Journal of Beijing Forestry University, 2013, 35(5): 68-72.
    [8]GUO Hong-wu, WANG Jin-lin, LI Chun-sheng, YAN Hao-Peng. Light-induced discoloration and influencing factors of dyed veneer after painted.[J]. Journal of Beijing Forestry University, 2008, 30(4): 22-27.
    [9]DOU Jun-xia, ZHANG Yi-ping, ZHAO Shuang-ju, SONG Qing-hai. Characteristics of radiation at different heights within the canopy of a tropical seasonal rain forest in Xishuangbanna, Southwest China[J]. Journal of Beijing Forestry University, 2006, 28(2): 15-21.
    [10]ZHANG Yi-ping, DOU Jun-xia, YU Gui-rui, ZHAO Shuang-ju, SONG Qing-hai, SUN Xiao-min. Characteristics of solar radiation and its distribution above the canopy of tropical seasonal rain forest in Xishuangbanna, Southwest China[J]. Journal of Beijing Forestry University, 2005, 27(5): 17-25.
  • Cited by

    Periodical cited type(2)

    1. 蔡文良,谢艳云,唐雯. 海南尖峰岭热带山地雨林土壤有机碳储量和垂直分布特征. 生态环境学报. 2019(08): 1514-1521 .
    2. 王玉哲,刘俊第,严强,方熊,易志刚,胡亚林,刘先. 马尾松林采伐迹地火烧黑炭对土壤活性碳氮库的影响. 生态学报. 2018(20): 7198-7207 .

    Other cited types(4)

Catalog

    Article views (455) PDF downloads (80) Cited by(6)

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return