摘要
鸭蛋新鲜度的检测是鸭蛋生产、销售、加工过程中的重要环节之一。禽蛋气室及蛋黄的形态特征与其新鲜度密切相关。本文运用机器视觉技术,采集鸭蛋彩色图像,并对其进行图像预处理去除背景。采用梯度法跟踪边缘,先判断出气室的位置,后利用Hough变换检测直线提取出鸭蛋气室分界线,获得气室区域大小,从而求得气室面积与整蛋面积比。同时提取鸭蛋心区域面积与整蛋面积比,分别计算R,G,I分量灰度均值,以这5个指标为特征参数,将样本按2∶1的比例分为训练集和预测集,采用最小二乘支持向量机方法建立判别模型,对鸭蛋新鲜度进行分级。试验结果显示,训练集的正确率为96.92%,预测集的正确率为93.85%。用此种视觉方法对鸭蛋新鲜度进行无损检测与分级是可行的。
Duck eggs' freshness detection is one of the most important steps in the process of producing, selling and processing. The morphological characteristics of egg's air chamber and yolk are closely related to its freshness. In this paper, duck eggs' color images were collected by machine vision technology. Then, pretreatments were conducted on images to remove background. Gradient method was employed to track edge. The position of air chamber was judged firstly. Then, the boundary of duck egg's air chamber was extracted by using Hough transformation to detect straight line. Thus, the air chamber area was obtained, and the air chamber area to the whole area ratio was calculated. At the same time, the ratio of egg yolk area to the whole area and the mean value of images' R, G, I components were calculated. This five values were used as parameters. All of the samples were divided into training set and prediction set according to the ratio of two to one. The least squares support vector machine was chose to establish model for duck eggs' freshness classification. The results showed that the accuracy rate of training set and prediction set were 96.92%and 93.85% respectively. This showed that this machine vision method was feasible to the non-destructive detection and classification of duck eggs' freshness.
作者
王巧华
王彩云
马美湖
Wang Qiaohua Wang Caiyun Ma Meihu(College of Engineering, Huazhong Agricultural University, Wuhan 430070 National Research and Development Center for Egg Processing, Huazhong Agricultural University, Wuhan 430070)
出处
《中国食品学报》
EI
CAS
CSCD
北大核心
2017年第8期268-274,共7页
Journal of Chinese Institute Of Food Science and Technology
基金
国家自然科学基金项目(31371771)
公益性行业(农业)科研专项(201303084)
国家科技支撑计划项目(2015BAD19B05)
关键词
鸭蛋
新鲜度
机器视觉
气室
最小二乘支持向量机
duck egg
freshness
machine vision
air chamber
least squares support vector machine