计算机应用 ›› 2011, Vol. 31 ›› Issue (02): 426-427.

• 模式识别 • 上一篇    下一篇

基于机器视觉的开心果闭壳与开壳识别

郭晓伟   

  1. 罗定职业技术学院
  • 收稿日期:2010-08-05 修回日期:2010-09-16 发布日期:2011-02-01 出版日期:2011-02-01
  • 通讯作者: 郭晓伟

Discrimination between closed and open shell pistachio nuts using machine vision

  • Received:2010-08-05 Revised:2010-09-16 Online:2011-02-01 Published:2011-02-01

摘要: 为从开心果中选出开壳果和去除闭壳果以提高开心果的品质。采用以单排等间距方式在传送带上输送开心果,输送过程中用摄像头拍摄每个开心果的图像,传输至电脑,经图像处理算法识别出开心果壳是否裂开,最后在传送带末端利用气嘴吹走闭壳果实以实现开心果自动分级。开心果图像缩小至原来的0.2倍,然后寻找出二值化图像中开心果的质心,再在开心果的质心、上半部分二分之一和下半部分二分之一处各取横向像素线,分别求取3条像素线上所有像素点灰度值变化之和,最后每个开心果综合3条像素线特征判断开心果是否开壳。实验证明开心果开壳果正确识别率为93%,闭壳果正确识别率达100%。

关键词: 开心果, 机器视觉, 分级

Abstract: To improve the quality of pistachio nuts, it is necessary to remove the closed shell pistachio nuts. A single row equally spacing method was taken to carry the pistachio nuts on the conveyor belt, and every pistachio nut image was captured by camera during the transmission. Then the image processing algorithm was used to detect whether its shell was open or not. Finally, gas nozzle, which was at the end of the conveyor belt, was used to blow away the closed shell pistachio nuts. Pistachio image was reduced to 0.2 times, and then the centroid of binary pistachio image was searched. After that, three horizontal pixel lines were described from the binary pistachio image, which was positioned in the centroid of pistachio, the middle of the upper part of pistachio and the middle of the lower part of pistachio. The gray value changes of all pixels of three lines were calculated respectively, and the features of those three pixel lines were integrated to judge whether the pistachio shell was open or not. Experiment results prove that the correct discrimination rates of the open shell pistachio nuts and the closed shell pistachio nuts are 93% and 100% respectively.

Key words: pistachio nut, machine vision, sorting