In order to improve the recognition accuracy of vision system on tomato picking robots, the paper proposed a method of feature extraction and recognition for ripe tomato based on illumination irrelevant images and support vector machine (SVM). In this method, we adopted vector median filter (VMF) to process the tomato images to eliminate noise and make the images more smooth firstly. To avoid the effects of natural environment illumination to the vision system, we processed tomato images and obtained the tomato illumination irrelevant images according to color constancy algorithm of the single pixel. Secondly, we segmented illumination irrelevant images using OSTU method, separated multiple objects by a watershed algorithm based on distance transform and got the target area with mathematical morphology. Also we extracted color, shape and textural features of the ripe tomatoes. Finally, we did experiments on recognizing tomatoes using support vector machine (SVM) with different kernel functions. At the same time, in order to obtain optimal model of SVM, we adopted cross validation and grid search method to optimize the model parameters. The experiment results show that illumination irrelevant processing not only can eliminate the influence of light intensity, but save a gray transferring step for further image segmentation. SVM with radial basis function is better than other kernel functions SVM and the tomato recognition accuracy is 95.7%. Through optimizing the parameter C and r of radial basis function, the tomato recognition accuracy reaches up to 96.9% with the increase of 1.2% when C and r is 4 and 16 respectively. This proves that it's feasible and effective to optimize SVM's parameters by cross validation and grid search method, which provide foundation for further research on vision system of tomato picking robots.
Read full abstract