Journal of Agricultural Machinery (Sep 2017)
Development of a Grapevine Pruning Algorithm for Using in Pruning
Abstract
Introduction Great areas of the orchards in the world are dedicated to cultivation of the grapevine. Normally grape vineyards are pruned twice a year. Among the operations of grape production, winter pruning of the bushes is the only operation that still has not been fully mechanized while it is known as the most laborious jobs in the farm. Some of the grape producing countries use various mechanical machines to prune the grapevines, but in most cases, these machines do not have a good performance. Therefore intelligent pruning machine seems to be necessary in this regard and this intelligent pruning machines can reduce the labor required to prune the vineyards. It this study in was attempted to develop an algorithm that uses image processing techniques to identify which parts of the grapevine should be cut. Stereo vision technique was used to obtain three dimensional images from the bare bushes whose leaves were fallen in autumn. Stereo vision systems are used to determine the depth from two images taken at the same time but from slightly different viewpoints using two cameras. Each pair of images of a common scene is related by a popular geometry, and corresponding points in the images pairs are constrained to lie on pairs of conjugate popular lines. Materials and Methods Photos were taken from gardens of the Research Center for Agriculture and Natural Resources of Fars province, Iran. At first, the distance between the plants and the cameras should be determined. The distance between the plants and cameras can be obtained by using the stereo vision techniques. Therefore, this method was used in this paper by two pictures taken from each plant with the left and right cameras. The algorithm was written in MATLAB. To facilitate the segmentation of the branches from the rows at the back, a blue plate with dimensions of 2×2 m2 were used at the background. After invoking the images, branches were segmented from the background to produce the binary image. Then, the plant distance from the cameras was calculated by using the stereo vision. In next stage, the main trunk and one year old branches were identified and branches with thicknesses less than 7 mm were removed from the image. To omit these branches consecutive dilation and erosion operations were applied with circular structures having radii of 2 and 4 pixels. Then, based on the branch diameter, one-year-old branches were detected and pruned through considering the pruning parameters. The branches were pruned so that only three buds were left on them. For this aim, the branches should be pruned to have a length of 15 cm. To truncate the branches to 15 cm, the length of the main stem was measured for each of the branches, and branches with length less than 15 cm were omitted from the images. Then the main skeleton of grapevine was determined. Using this skeleton, the attaching points of the branches as well as attachment points to the trunk were identified. Distance between the branches was maintained. At the last step, the cutting points on the branches were determined by labeling the removed branches at each step. Results and Discussion The results indicated that the color components in the texture of the branches could not be used to identify one year old branches and evaluation results of algorithm showed that the proposed algorithm had acceptable performance and in all photos, one year old branches were correctly identified and pruning point of the grapevines were correctly marked. Also among 254 cut off-points extracted from 20 images, just 7 pruning points were misdiagnosed. These results revealed that the accuracy of the algorithm was about 96.8 percent. Conclusions Based on the reasonable achievement of the algorithm it can be concluded that it is possible to use machine vision routines to determine the most suitable cut off points for pruning robots. By an intelligent pruning robot, the one year old branches are diagnosed properly and the cut off points of the plants are determined. This can reduce the required labor to perform winter pruning in vineyards which subsequently reduces the time required and the costs needed for pruning the vineyards.
Keywords