摘要
印花丝巾布匹的裁剪是丝巾生产一个重要的环节,随着图案印制等其它工序逐渐走向自动化,为了进一步提高整体生产效率,研制一款针对印花丝巾的裁剪机是相当必要的。
本论文对裁剪机控制系统进行了研究和设计。单片机和DSP构成系统的上下位机,其中,上位单片机完成系统的管理及下位机的协调,两个并行的下位DSP实现数字信号处理,二者将灵活的控制和强大的处理结合在一起,充分发挥了两种处理器的优势。设计的控制系统使操作者可通过控制面板决定裁剪机的工作状态,上位单片机将此状态信息下传给DSP,DSP接收并识别状态信息,以执行相应的操作。下位DSP大部分时间工作在裁剪状态,通过对印花丝巾图像采集和处理,确定丝巾的裁剪位置,最终控制裁刀定位以完成裁剪动作的过程。
本论文主要解决三个方面的问题:
(1)图像采集存储:由软硬件结合的方式驱动线阵CCD实现图像的采集,扩展大容量SDRAM实现图像数据的存储;
(2)图像信息的处理:利用Canny边缘算法处理第一幅图案信息作为模板,结合Canny算法和最大归—互相关法搜索新图案在模板图案中位置,以此信息跟踪印花丝巾布匹上不断变化的裁剪边。
(3)工作状态的管理和控制:设计控制面板,实现系统的易操控化;上位机通过串口发送指令对两个下位机进行控制,下位机将图案模板上传,以便上位机统筹管理。
本文主要完成了印花丝巾裁剪机的硬件软件设计以及调试,并实现了图像处理算法在PC的Visual C++环境中的模拟测试以及在DSP的CCS环境中的实际调试。论文分章节介绍了系统的整体设计思想、各功能模块的硬件软件设计,从理论的角度提出了针对性较强的控制算法。控制系统通过了实物测试,在工业领域中有着广泛的应用前景。
Cutting is an important link in the production of printed scarf. With the logo printed and other processes come to robotization, the overall production efficiency needs to be further enhanced. The research of a cutting machine for printed scarf is in a ungent.
Paper made a detail of how to design the control system of the cutting machine. The system was composed of a Microcontroller and a DSP. The Microcontroller completed the management and coordination of the crew, which included two parallel DSPs who handle the digital signal processing. There will be a combination of flexible control and a powerful processing. The system fully played the advantages of the two kinds of processors. The operators can control panel to decide the working status. The top MCU passed this status information onto DSP. DSP received the information and corresponded the status to the implementation of the operation. At most of the time, under-bit DSP was working in cutting operation. The image on the printed scarf was obtained and processed.The outcome of the porcess determined the cutters' position to complete cutting .
Paper resovled three problems:
(1) The acquisition and storage of the image: By the combination of hardware and software-driven, linear CCD output the voltage corresponding with the image's brightness. The capacity of image data was expansion by a SDRAM memory;
(2) The processing of image information: The first image on the scarf was desl with Canny edge algorithm as a template. With the Canny algorithm and the normalization inter-related algorithm, DSP search the new image in the template and traced the cutting edge of the new image to achieve the accurate cutting.
(3) The management and control of the working state: The control panel was designed. And manipulation of the system came to an easy way. MCU sent the command to DSP module through the serial port to control them.The DSPs will upload the template to MCU.
In this paper, the cutting machine's hardware design and software debugging are completed. The image processing algorithms were simulative debugged in the Visual C++ environment and tested in the CCS with the actual DSP environment. Paper introduced system's overall design concept, the functional modules of the hardware and software design in five chapers. The research achived the cutting control algorithms both in theory and practice. It will be applied in a wide range of the industrial field.
引文
[1]郝凯,尚会英,虢精明.我国纺织服装产业的国际竞争力提升分析[J].商场现代化,2007,(1):15-16.
[2]韩丙辰,陈树越.基于数字CCD相机的高速图像采集系统[J].电脑开发与应用,2005,18(5):40-42.
[3]王庆有,何在新,张以谟,付维乔.CCD应用技术发展动向[J].光电子技术与信息,1994,(2):2-6.
[4]孙家广.计算机图形学[M],北京:清华大学出版社,1998.
[5]汪春梅.孙洪波,任治刚.TMS320C5000系列DSP系统设计与开发实例[M].北京:电子工业出版社,2004.
[6]陈人哲.纺织机械设计原理[M].北京:中国纺织出版社,1981.
[7]贾永红.计算机图像处理与分析[M].武汉:武汉大学出版社,2001年.
[8]章毓晋.图像工程--图像处理和分析[M].北京:清华大学出版社,2002.
[9]杨枝灵,王开.数字图像获取处理及实践应用[M].北京:人民邮电出版社,2003年.
[10]张强,那彦,李建军.基于边缘几何特征和频域相关技术的图像匹配方法[J].应用光学,2006,27(4):285-288.
[11]王娜,李霞.一种新的改进Canny边缘检测算法[J].深圳大学学报理工版,2005,22(2):149-152.
[12]董安国.图像匹配最大互相关快速算法[J].浙江万里学院学报,2005,18(4):13-15.
[13]韩先锋,李俊山.巡航导弹景象匹配算法适应性研究[J].微电子学与计算机,2005,22(7):53-61.
[14]李俊山,沈绪榜.图象匹配技术研究[J].微电子学与计算机,2000,18(2):10-14.
[15]TMS320VC5509 Fixed-Point Digital Signal Processor[Z].TEXAS INSTRUMENTS.1998.
[16]Am29LV800B[Z].AMD.2000.
[17]陈永峰.线阵CCD图像传感器驱动电路的DSP设计[J].电子元器件应用,2005,10:66-68.
[18]TCD 1208AP[Z].TOSHIBA Corp.1997.
[19]黄红星,卢凌,肖李,杨福宝.基于DSP的CCD驱动电路的设计[J].武汉理工大学学报,2002,26:811-814.
[20]袁泉,夏应清,周兆丰,向常州.新型键盘显示驱动芯片MAX6954及其应用[J].电子元器件应用,2006,6:106-109.
[21]周波,赵鹏,苏娟.TMS320VC5402 DSP与51单片机的接口设计技术[J].现代电子技术,2005,24:88-90.
[22]李月景.图像识别技术及应用[M].北京:机械工业出版社,1999.
[23]林奕芳.纤维帘布裁断机自控系统简述[J].橡塑技术与装备,2001,27:40-42.
[24]刘钟燕,王延年,张团善,黄朝丽.印花质量自动检测系统的新技术应用[J].2006,(5):78-79.
[25]李学佳.图像处理技术应用于纺织工业的最新动态[J].毛纺科技,2005,(7):58-61.
[26]刘曙光,屈萍鸽,费佩燕.机器视觉在纺织检测中的应用[J].纺织学报,2003,24(6):88-90.
[27]丁学文,李鹏飞,丁远翔.基于DSP的平网印花机现场总线控制系统[J].纺织电气,2006,(6):32-34.
[28]何祥宇.基于DSP的CCD图像处理系统在点钞机中的应用[J].电子科技,2006,8:66-69.
[29]高峰,李晋惠,龚箭.基于DSP的线阵CCD数据采集系统设计[J].国外电子元器件2006,9:37-40.
[30]江川贵,廖启征,魏世民.基于单片机的线阵CCD实时检测系统的开发[J].电子技术应用,2004,5:16-18.
[31]胡煜.线阵CCD摄像器件TCDl42D及其应用[J].自动化与仪器仪表,2001,5:27-30.
[32]张志辉,田地,杨义先.CCD驱动电路设计的几种方法[J].仪表技术与传感器,2004,6.
[33]t1v1572[Z].TEXAS INSTRUMENTS.1998.
[34]邹彦,唐冬,宁志刚.DSP原理及应用[J].北京:电子工业出版社,2006.
[35]t1v1562 to dsp[Z].TEXAS INSTRUMENTS.1999.
[36]薛霏,王万清,高明明.基于TMS320VC5409型DSP的指纹识别系统[J].国外电子元器,2006,(4):45-48.
[37]刘政,叶汉民.DSP与单片机通信的多种方案设计[J].单片机与嵌入式系统应用,2006,(3):32-35.
[38]陈向伟,王龙山,刘庆民,崔治.基于CCD图像的圆度误差测量的研究[J].半导体光电,2004,25:313-316.
[39]徐晓秋,秦玉芳,黄劼.线阵CCD图像特点及识别算法适应性研究[J].半导体光电,2006,27:196-199.
[40]刘景琳,高万荣,陶纯堪.归一化算法实现畸变不变图像识别研究[J].光电工程,2006,33(12):75-78.
[41]赵慧民,朱立.基于DSPCCS2.2实现指纹识别预处理系统[J].电子技术应用,2005,7:65-66.
[42]屈景怡,史浩山.特征结合和相关反馈技术在医学图像检索中的应用[J].电路与系统学报,2006,11(5):80-83.
[43]朱旭娟,李晓华.一种自适应提取最优特征维的相关反馈算法[J].电路与系统学报,9(1):36-40.
[44]薛利军,李自田,李英才.一种基于图像分层的快速相关匹配算法[J].计算机工程与科学,2006,28(7):65-111.
[45]张建宏.基于模糊神经网络的车牌图像识别方[J].菏泽学院学报,2006,28(2):38-40.
[46]黄晓菁,雷国伟,林秋宝,舒强.实现小波变换图像识别的光电混合实验系统[J].应用激光,2005,25(3):186-188.
[47]李鹏飞,张蕾,李鹏,林成荫.平网印花机对花检测系统图像处理算法的研究[J].西安工程科技学院学报,2006,20(5):607-610.
[48]王耀南,李树涛.计算机图像处理与识别技术[M].北京:高等教育出版社,2001.
[49]佟鑫,陈言秋,王君.皮革裁切加工算法[J].计算机辅助设计与图形学学报,2005,17(7):1642-1645.
[50]柴林樑,曾光宇,韩焱.一种微型零件图像边缘提取的方法[J].测试技术学报,2002,16(4):267-269.
[51]桂志国,薄瑞峰,韩焱.基于投影特征的图像匹配的快速算法[J].测试技术学报,2001,(1):18-20.
[52]胡光永,和卫星.印刷电路板图像边缘检测算法的研究及软件实现[J].南京工业职业技术学院学报,2004,4(4):11-14.
[53]章毓晋.图象分割[M].北京:科学出版社,2001.
[54]柯行斌,王汝传.白细胞图像分割的研究及实现[J].南京邮电学院学报,2003,(3):53-56.
[55]李辉.数字图像处理技术在玻璃瓶裂纹检测系统中的研究和应用[D].天津:天津工业大学学位论文,2003.
[56]张红娜,王祈.图像测量技术及应用[J].电测与仪表,2003,40(451):19-22.
[57]Dennis A Montera.Object Tracking Through Adaptive Correlation[J].Optical Engineering,1994,33(1):294-301
[58]Mikhail J Atallah.Faster Image Template Matching in theSum of Absolute Value of Differences Measure[J].IEEE Trans on Image Processing,2001,10(4):659-662
[59]Mohammad Gharavi-Alkhansari.A Fast Globally OptimalAlgorithm for Template Matching Using Low-ResolutionPruning[J].IEEE Trans on Image Processing,2001,10(4):526-533
[60]Burt P J,Adelson E H.The Laplacian pyramid as a compact image code[J].IEEE Trans.On Communications.1983.31(4):532-540.
[61]Li H.Zhou Y T,Chellappa R.SAR / IR sensor image fusion and realtime implementation[A].Proc.of Int.Conf,on Signals,Systems and Computers[e].New Jersey:IEEE Press,1996.1121-1125.
[62]Burt P J,Fast filter transforms for image processing[M].Comput.Gr.Image Process,1981.16.
[63]JOHN Canny.A Computational approach to edge detection IEEE transactions on pattern analysis and machine intelligence[J].IEEE,1986,PAMI-8(6):679-698.
[64]XIE Hong-jie.Automatic image registration based on FFT algorithm and IDL/ENVI[C].International Conference on Remote Sensing and GIS/GPSICORG,2001.
[65]REDDY B Srinivasa,CHATTERJI B N.An FFT-based teehnique for translation,rotation,and scale-invariant image registration[J].IEEE Transactions on Image Processing.1996, 5(8):1266-1271.
[66]Fing D,Zhao H,Xia S.Amplitude-modulated JTC for improving correlation discrimination [J].Opt.Commun,1991,86(3/4):260-264.
[67]Alam M S,Karim M A.Multiple target detection using a modified fringe aajusted Joint transform correlatot[J].Opt.Engng.1994.33(5):522-527.