用户名: 密码: 验证码:
基于DSP图像处理的鸡蛋鲜度实时无损检测研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
本文以TI公司的数字信号处理器TMS320DM642为核心,在硬件上,充分利用了DM642高速处理数据的能力以及实时处理特点,软件上,在CCS开发环境中,运用C语言设计图像处理及特征参数提取算法对鸡蛋透射光图像进行有效分析,分离蛋黄和气室特征,较精确的提取蛋黄与整蛋面积比值,气室面积与整蛋面积比值,气室高度与长轴比值,气室直径与短轴比值,以该四组参数分别作为无损检测参数,来寻找单一最优特征参数判别新鲜度。图像采集、图像处理算法、图像显示、优化、调试和识别过程均在DSP上实现,检测系统具有实时性。
     (1)对DSP硬件平台进行了学习和应用。结合CCS软件,研究各种图像处理算法。通过视频采集、编码、处理、解码和显示一系列处理流程,开发了对鸡蛋鲜度实时无损检测系统。
     (2)获得蛋黄特征图像处理方法:通过获取鸡蛋透射光图像的G分量、灰度均衡化、中值滤波、反色、腐蚀、“与”运算、自动阈值分割等一系列图像处理方法使蛋黄特征显现,从而获得蛋黄面积与整蛋面积比,为无损检测参数提供依据。
     (3)获得气室特征的图像处理方法:从鸡蛋透射光的Ⅰ分量图上可以较明显的显示气室区域,经由中值滤波、背景替换,直方图显示后,由大量实验研究得到最佳阂值分割点,进行阂值分割。再经形态学去噪,获得区域形态,对照两组形态特征分两种算法获得气室分割线的基点,进行分割,该方法分割准确,速度快。获得气室特征后,提取气室面积比、气室高度比、气室直径比。此种算法必须使气室形态均匀分布在鸡蛋大头,因此,在实际流通中检测受到限制。
     (4)搭建DSP硬件平台,图像采集装置进行试验研究,选取30枚鸡蛋,每天同一时间利用软件算法提取以上四组特征参数数据,求当天各参数的平均值作为参数指标。另每天取3只同批同环境下鸡蛋测得哈夫值,求其平均值作为当天的鸡蛋哈夫值,直到对照组鸡蛋出现散黄为止,共做了29天鸡蛋鲜度跟踪试验。
     (5)利用SPSS软件建立该四组特征值与新鲜度(哈夫值)关系模型,模型相关系数高,经检验通过该四组特征模型识别鸡蛋鲜度等级的准确率分别为91%、92%、92%、91%。
     (6)将试验获取的蛋黄面积比、气室面积比、气室高度比、气室直径比四组参数分别逐一作为训练集输入样本,对应的哈夫值等级作为训练集输出样本,建立BP神经网络,最后利用验证集数据验证网络的可靠性和分级准确率,识别新鲜度等级的准确率依次为90%,89%,90%,89%。
     (7)基于Visual C++6.0开发软件设计了一个鸡蛋鲜度实时检测系统界面,将DSP处理的结果显示在PC机上,该系统实现了PC机与DSP直接通信,启动DSP后,可以实时获取经DSP处理得来的数据;实时检测每个鸡蛋的哈夫值;新鲜度等级。
     考虑到当鸡蛋在运输和储存时,鸡蛋放置不正时,气室形态可能有偏移,由此呈现的气室图像不太规则,本文气室研究算法只适用于气室图像均匀分布在大头,而蛋黄面积比获得方法则不受位置限制,因此综合因素考虑,本文最终确定蛋黄面积比为图像实时无损检测参数,来鉴别鸡蛋的新鲜度,本文采用的图像处理方法可以用于鸡蛋品质在线无损检测。
     通过对试验结果的分析可以得出:本文采用的对鸡蛋无损检测参数研究具有实际参考意义,并对系统的实时性进行了评价,结果表明该系统在处理速度和精度上基本满足实时性检测要求。
In this paper,take the TMS320DM642 digital signal processor of TI as the core, On hardware,the full advantage of the DM642 high-speed data processing capabilities and real-time processing features.By software,In CCS development environment.use the C language to design image processing and feature extraction algorithms.after then,to analysis the egg image under the transmitted light effectively.Separating the characteristics of egg yolk and air chamber.Extracting the ratio of yolk' area and the whole egg's area,the ratio of air chamber'area and the whole egg' area,the ratio of air chamber'height and the egg's long axis,the ratio of air chamber'diameter and the egg's short axis.Take the four parameters as the Non-destructive testing parameters one by one.To find a single optimal characteristic parameters to identify freshness.All processing such as image acquisition,image processing algorithms,image display,program optimization,debugging and recognition process are implemented on the DSP.Detection system with real-time function.
     (1) DSP hardware platform for learning and application. Combination of CCS software, to study various image processing algorithms.Via video capture, encoding, processing, decoding and display a series of processes, develope an non-destructive egg freshness of real-time detection system.
     (2) Image processing methods to obtain egg yolk Features:by acquisiting the egg's G component, Grayscale equalization, median filtering, anti-color, corrosion, "and" operation,automatic thresholding and a series of image processing methods to make egg yolk appear.and then,it can gain the ratio of yolk' area and the whole egg's area,that used for non-destructive testing.
     (3) Image processing methods to obtain air chamber Features:from egg's I component image can be more obviously display the air chamber area.Through the median filter,background replacement,histogram displayed,by the large number of experimental studies to be the optimal threshold segmentation points for thresholding. after morphological denoising, access to regional patterns,according to two regional patterns,dividing into two kind's of algorithms to obtain air chamber partition line basis points to split.This method can cut exactly and speedly.After obtained the air chamber,to extract the ratio of air chamber's area,height,diameter. But this algorithms is restricted in the circulation of actual detection.,the air chamber evenly distributed in the egg big side.
     (4) Building DSP hardware platform,and Image capture device for testing.Select 30 eggs, At the same time each day over the use of software algorithms to extract the characteristic parameters of four groups of data, Seeking the same day the average of each parameter as a parameter indicator. the other hand,take three eggs,which in the same environment and of the same batch,measured haugh value.obtain the average value as the day's eggs'haugh. until the egg appears yolk rupture.Done a total of 29 days to do tests to track the freshness of eggs.
     (5) Take the use of SPSS software to establish the four characteristics of value and freshness(Hough value) relational model.Model has a very high correlation coefficient. Upon examination,through the four feature model,the accuracy of the egg s'freshness grades recognition were 91%.92%,92%,91%.
     (6) With the egg yolk area ratio,air chamber area ratio,air chamber height ratio,air chamber diameter ratio accessed from tests,take them as the input training set samples one by one.other hand,take the corresponding haugh grade as the output samples,building the BP neural network.At last,use the set of validation data to test the reliability and classification accuracy of the network,,the accuracy of the egg s'freshness grades recognition were 90%,89%,90%,89%.
     (7)Designed an egg freshness interface of real-time detection system based on Visual C++6.0. The results by DSP processing are showed on PC, The PC to communicate directly with the DSP by the system. After starting the DSP,It can get the data by DSP real-timely; also the eggs'haugh value and freshness grades.
     When the eggs in the transport and storage,Eggs placed not straight,the air chamber shape may be offset,Then the image of air chamber also do not rule.But algorithm in this paper,assuming the air chamber is distributed evenly. And no position restrictions on accessing yolk area ratio.Therefore,a combination of factors to consider, Finally,Chosed yolk area ratio for dynamic images non-destructive testing parameters to identify the eggs'freshness grades.this method can be used online inspection.
     Through the analysis of test results can be drawn:In this paper, the parameters of non-destructive testing of the eggs has practical reference value, and the system was evaluated by real-time results show that the system in the processing speed and accuracy can basically meet the requirements of real-time detection.
引文
1.岑益科.基于机器视觉的鸡蛋品质检测方法研究.[硕士学位论文].浙江:浙江大学,2006
    2.丁国盛,李涛.SPSS统计教程——从研究设计导数据分析.北京:机械工业出版社,2005
    3.黄飞,于慧敏,杨少林.基于DM642的红外图像实时处理系统的设计.电路与系统学报.2008,13(3):116-120
    4.方如明,向忠平,李国文.鸡蛋内部品质光特性无损检测.农业工程学报,1993,9(3):102-107
    5.付忠良.图像阈值选取方法—Otsu方法的推广.计算机应用,2000,20(5):37-39
    6.管庆.基于DM642的图像检测和跟踪系统的设计与实现.[硕士学位论文].成都:电子科技大学,2007
    7.耿拓宇(译).禽蛋的贮存机理[J].中国禽业导刊,1998,14(1):13—15.
    8.高真.蛋制品工艺学.北京:中国商业出版社,1993
    9.冈萨雷斯.数字图像处理.北京:电子工业出版社,2003.17-277
    10.侯卓成,杨宁,李俊英,徐桂云.鸡蛋鲜度保存时间的变化规律.动物生产.2008,44(13),42-45
    11.黄德双.神经网络模式识别系统理论.北京:电子工业出版社,1996.
    12.季娜.基于DSP的雾天监控视频图像清晰化处理方法研究.[硕士学位论文].大连:大连海事大学,2009
    13.季昱,林俊超,余本喜.DSP嵌入式应用系统开发典型实例.北京:中国电力出版版社,2005
    14.刘金刚.基于DSP的鸡蛋破损检测系统的研究.[硕士学位论文].武汉:华中农业大学,2005
    15.刘泽伟.基于DSP的嵌入式车牌识别系统设计与实现.[硕士学位论文].成都:电子科技大学,2009
    16.李鹏飞,李鹏,张蕾,王磊.基于DM642图像处理芯片的平网印花机系统.印染.2006,NO.18:34-36
    17.李天长.基于DM642的嵌入式实时图像处理的研究.[硕士学位论文].重庆:重庆大学,2008
    18.刘媛,邴志刚,张健,王娟.DM642在机器视觉中的应用研究.DSP开发与应用.2007,23(3-2):180-182
    19.马姝.大豆等农产品在线检测技术.[硕士学位论文].重庆:重庆大学,2006
    20.马严明.基于DSP的鸡蛋电特性检测系统的研究.[硕士学位论文].西安:西北农林科技大学,2008
    21.彭启琮,张诗雅,常冉等编译.TI DSP(CCS)集成开发环境使用手册.北京:清华大学出版社,2005
    22.任克强,朱志敏.基于DM642的图像边缘检测算法的研究.计算机与信息技术.2008,44-46
    23.苏臣,吴安翔.鸡蛋六种品质的数字图像特征[J].中国家禽,1995,(5):18-20
    24.田茂胜.鸡蛋破损自动检测分级系统的研究.[硕士学位论文].武汉:华中农业大学,2006
    25.田元,叶秀清,顾伟康.实时图像处理系统中的DSP优化编程.电子技术.2000,10,43-46
    26.施连敏,王洪元,程起才,周越.基于DM642的图像分割算法的设计与实现.控制工程.2008,15(4):443-446
    27.孙兴.DSP在机器人视觉系统中的应用与研究.[硕士学位论文].贵阳:贵州大学,2006
    28.王念旭.DSP基础与应用设计.北京:北京航空航天大学出版社,2001
    29.王巧华.基于BP神经网络的鸡蛋鲜度识别方法的研究.[硕士学位论文].武汉:华中农业大学,2004
    30.王巧华,周平,熊利荣,丁幼春,文友先.鸡蛋光反射特性及其与新鲜度的关系.华中农业大学学报.2008,27(1):140-143
    31.王巧华,文友先,林雪冬等.鸡蛋透射光图像形态特征与其新鲜度的相关关系[J].农业工程学报,2008,24(3):179—183
    32.王中华.基于DSP的实时图像处理的研究.[硕士学位论文].武汉:武汉理工大学,2006
    33.吴瑞梅,乔振先,严霖元.鸡蛋鲜度光特性分级系统的研究.农机化研究,2005,5:68-70
    34.吴金平.Visual C++6.0编程与实践.北京:中国水利水电出版社,2004
    35.徐凤.基于DSP的焊缝图像处理系统研究.[硕士学位论文].北京:北京化工大学,2006
    36.夏良正.数字图像处理.南京:东南大学出版社,1999.8
    37.杨影.基于DSP的薄膜疵点在线检测系统设计与实现.[硕士学位论文].上海:东华大学.2009
    38.于浩,王昊,张天天.基于DM642的实时图像处理系统的研究.长春理工大学学报(自然科学版).2007,30(3):26-29
    39.尹勇,欧光军,关荣锋.DSP集成开发环境CCS指南.北京:北京航空航天出版社,2003
    40.赵丹培.基于DSP的实时图像处理的研究.[硕士学位论文].长春:长春理工大学,2002
    41.周长发.精通VisualC++图像处理编程.北京:电子工业出版社,2006
    42.周平,刘俭英等.鸡蛋图像检测方法与质量预测模型.农业机械学报,2007,38(11):80-83
    43.周平.基于机器视觉即声脉冲相映特性的禽蛋感官品质检测算法研究.[博士学位论文].武汉:华中农业大学,2008
    44.赵红霞、张守勤、周丰昆、姜轶群.鸡蛋超弱发光与其新鲜程度的相关分析.农业工程学报,2004,20(2):177-180
    45.朱雷.基于DSP的动态图像处理研究.[硕士学位论文].重庆:重庆大学,2003
    46.朱谦.基于DSP和新神经网络模型的车牌识别系统.[硕士学位论文].青岛:青岛大学,2008
    47.朱曜.禽蛋研究[M].北京:科学出版社,1985
    48.张海涛,蔡文寰,董有尔.基于DM642的视频采集处理系统设计及实现.科技创新导报.2008,NO.06:16-18
    49.张晓芳.鸡蛋外观品质识别方法及实验研究.[硕士学位论文].内蒙古:内蒙古农业大学,2006
    50.张永亮.基于DSP的人脸检测和定位算法研究.[硕士学位论文].太原:太原科技大学,2008
    51.章毓晋.图像分割[M].北京:科学出版社,2001
    52.祝志慧.基于VFW的鸡蛋品质无损检测方法的研究.[硕士学位论文].武汉:华中农业大学,2005
    53. SEED-VPM642用户指南.北京:合众达电子.2005
    54. Angela Ribeiro, Maria C.Garcia-Alegre, Domingo Guinea. Automatic Rules Generation by G.A.for Eggshell Detect Classification. European Congress on Computtational Methods in Applied Sciences and Engineering.2000. Barcelona
    55. Goodrum J. W and Elster R T. Machine vision for crack detection eggs. Trans of the ASAE,1992,35(4):1323-1328
    56. Garcia-Alegre M C, Ribeiro A, Guinea D. etal. Eggshell defects detection based on color processing[A]. SPIE2000 Electronic Imaging Conf[C], CA, Jan,2000.
    57. Junhong Hu,Tianxu Zhang and Haoyang jiang.New multi-DSP parallel computing architecture for real-time image processing.Journal of systems Engineering and Electronic,2006,17(4):883-889
    58. Kemps B, Bamelis F, De Ketelaere B, etal. The influence of line and laying period on the relationshio between different eggshell and membrane strength parameters. Poultry Scinence,2006,85(7):1309-1317
    59. Liu Yande, Ying Yibin, Mao Xuedong. Opitical non-destractive insection of chicken-egg freshness[J]. Transaction of the CSAE,2003,19(5):152-155
    60. Nakano K, Mizutani J and Ohtuka Y. Studies on non-destructive detection of abnormal eggs(Partl) detection of blood spots in eggs useing image processing. The Jour of Soci of Adri Stru, Japan,1998,29(3):17-23
    61. Nakano K, Sasaoka K and Ohtuka Y. A study on non-destructive detection of abnormal eggs by using image processing. Asian Federation for Info Tech in Agri, 2000:345-352
    62. Nakano K, Usui Y, Motonaga Y and Mizutani J. Development of non-destructive detector for abnormal eggs. Workshop ConAppli in Post-Harvest and ProTech,2001: 71-76
    63. Patel V C, McClendon R W, Goodrum J W. Development and evaluation of an expert system for egg sorting[J]. Computers and Electronics in Agriculture,1998,20(2): 97-116
    64. Texas Instruments,TMS320C6000 Code Composer Studio Getting Started Guide, Spru509D, August 2003.
    65. Texas Instruments, Code Composer Studio User's Guide, SPRU328B,Febuary 2000.
    66. Texas Instruments,Code Composer Studio White Paper,SPRA520,May 1999
    67. Texas Instruments Incorporated. TMS320DM642 Video/Imaging Fixed-Point Digital Signal Processor.2003

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700