Automatic measurement of trunk and branch diameter of standing trees based on computer vision

The diameters of trunk and branch of the standing tree are important working parameters of the intelligent pruning robots. This paper presented a method based on computer vision to measure the diameters of trunk and branch of the standing tree. The method includes following six steps: (1) the image, which includes the calibration stick and the standing tree, is acquired by the CCD earner a. ( 2 ) the calibration stick is detected by using the twice template matching, the number of the pixels in the horizontal direction of calibration stick in the image is counted. (3) By dividing the size of the calibration stick by the number of the pixels in the area of the calibration stick , the actual size of a pixel in the image is got. (4) detecting the intersections of trunks and branches by using template matching. (5) the trunks and branches of the standing tree are detected by detecting the joint of the trunk and branch, and then the number of the pixels of trunk and that of branch are counted. (6) the actual diameters of the trunk and the branch of the standing tree are got by multiplying the numbers of the pixel of trunk and branch by the actual size of a pixel. The diameters of 12 trunks and branches were got in the experiments, the mean absolute error is 0.67cm, and the mean relative error is 1.9%. The results of experiments show that the method presented in the paper can exactly get the diameters of trunks and branches of the standing trees. When the diameters of trunks and branches of the standing trees in a complex background are measured by the method presented in the paper, the precision of it is relatively low.