Cucumber fruit appearance quality is an important basis of growth status.In order to improve the quality detection accuracy and processing efficiency of cucumber color image under complicated background,an improved Gr...Cucumber fruit appearance quality is an important basis of growth status.In order to improve the quality detection accuracy and processing efficiency of cucumber color image under complicated background,an improved GrabCut algorithm was proposed to extract the cucumber boundary.Firstly,including pixel size normalization,rectangular box set and scale image resolution,pretreatments of cucumber image were adopted to reduce the iteration times and operation time of GrabCut algorithm.Then,the Gaussian mixture model was chosen to find out the possible prospect of target region and background region in the preprocessed rectangular frame on the preliminary modeling.Meanwhile,by the optimization of K-means cluster to the initial GMM model,the effective target area was extracted.Finally,the whole image noise and serrated boundary was removed by morphological operations to segment the outline of the complete target prospects with appropriate structure size.And then the cucumber appearance quality detection instrument was designed to extract the texture and shape features exactly,so that it could obtain cucumber appearance quality and evaluate its growth effectively.With the segmentation experiments by almost 300 cucumber original images from greenhouse in Shandong Province,the results showed that the improved GrabCut algorithm could effectively extract the complete and smooth boundary of cucumber.With relatively high segmentation evaluation index,the precision was 93.88%,the recall rate was 99.35%,the F-Measure reached 96.53%,and the misclassification error was controlled at minimum 5.84%.The average running time was shortened to 1.4023 s.The comparison results showed that the improved GrabCut algorithm was the best,followed by the SLIC and traditional GrabCut method.Cucumber appearance quality detection instrument could also extract more accurate feature parameters.And it could meet the basic growth condition assessment by automatic image processing.展开更多
基金This study was financially supported by the National Science and Technology Support Project(2014BAD04B05)Transformation and popularization project of agricultural scientific and technological achievements in Tianjin-“Integrated application of core information technology for early warning,diagnosis and prevention of greenhouse vegetable diseases”(201704070).
文摘Cucumber fruit appearance quality is an important basis of growth status.In order to improve the quality detection accuracy and processing efficiency of cucumber color image under complicated background,an improved GrabCut algorithm was proposed to extract the cucumber boundary.Firstly,including pixel size normalization,rectangular box set and scale image resolution,pretreatments of cucumber image were adopted to reduce the iteration times and operation time of GrabCut algorithm.Then,the Gaussian mixture model was chosen to find out the possible prospect of target region and background region in the preprocessed rectangular frame on the preliminary modeling.Meanwhile,by the optimization of K-means cluster to the initial GMM model,the effective target area was extracted.Finally,the whole image noise and serrated boundary was removed by morphological operations to segment the outline of the complete target prospects with appropriate structure size.And then the cucumber appearance quality detection instrument was designed to extract the texture and shape features exactly,so that it could obtain cucumber appearance quality and evaluate its growth effectively.With the segmentation experiments by almost 300 cucumber original images from greenhouse in Shandong Province,the results showed that the improved GrabCut algorithm could effectively extract the complete and smooth boundary of cucumber.With relatively high segmentation evaluation index,the precision was 93.88%,the recall rate was 99.35%,the F-Measure reached 96.53%,and the misclassification error was controlled at minimum 5.84%.The average running time was shortened to 1.4023 s.The comparison results showed that the improved GrabCut algorithm was the best,followed by the SLIC and traditional GrabCut method.Cucumber appearance quality detection instrument could also extract more accurate feature parameters.And it could meet the basic growth condition assessment by automatic image processing.