节点文献
基于SOPC的工业内窥镜图像采集处理系统的设计与实现
【作者】 赵毅;
【导师】 徐志良;
【作者基本信息】 南京理工大学 , 控制工程, 2013, 硕士
【摘要】 在烟草工业中,机器视觉应用的基本原理是先用工业相机采集图像,然后用计算机对图像进行分析处理以达到检测的功能。卷烟包装机组通过采集烟支端头的图像进行检测,判断烟支是否有缺陷,以确保质量安全。本文提出了一种适合烟支成像检测与剔除装置的图像采集处理解决方案,详细阐述了如何利用SOPC技术完成图像采集处理系统功能的设计过程。硬件电路上,采用工业内窥镜采集烟支的图像,基于TVP5158设计了视频解码电路,将模拟信号转换为数字信号。逻辑硬件上,以Nios Ⅱ嵌入式处理器为核心控制部件,顶层处理器设计提供Nios Ⅱ内核以及各类外设的Avalon总线接口;以处理器为核心,添加相应的IP核和FPGA配置建立系统的硬件平台。系统功能的软件实现上,以IP核为基础设计相应的驱动和应用程序。本文定制了图像处理IP核,实现了图像提取、图像解交织、颜色空间转换及时钟域转换等模块;成功移植了I2C总线控制器IP核,设计了I2C总线控制器的设备驱动程序,系统可通过I2C总线对TVP5158进行配置;实现了DMA控制器的设备驱动,有效的对图像数据进行搬运存储。采用以太网作为传输媒介,设计网卡驱动程序,并搭建网络通信平台,为软件系统提供完整的网络体系。利用C++语言设计了图像监控软件。在FPGA/SOPC设计中,利用ModelSim时序仿真平台和SingalTap Ⅱ在线逻辑分析仪进行仿真与调试。利用Ethereal网络抓包软件测试网络平台的通信效果。实验结果表明,本系统已达到预期目标。
【Abstract】 The principle of machine vision in tobacco industry is to achieve the detection function by using industrial camera to capture image and then using the computer to do image processing. By acquiring cigarettes’image to detect, cigarette packing unit judges whether there is a defect to ensure the quality and safety.This paper puts forward a solution of image acquisition and processing for the cigarette imaging detection and elimination device, elaborated on how to use the SOPC technology to design image acquisition and processing system.The industrial endoscope is used to collect data for hardware circuit and based on TVP5158the video decoding circuit is designed, through which the analog signal is converted to digital signal. Logic hardware uses Nios Ⅱ embedded processor as core control unit, the top processor is designed to provide the kernel of Nios Ⅱ and Avalon bus interfaces of various peripherals; using processor as the core, the system hardware platform is designed by adding the corresponding IP cores and FPGA configurations.The system function software design is based on IP core to provide the corresponding driver and application program. The image processing IP core is customized and the function modules of effective image extraction, image format conversion, color space conversion and clock domain transformation are realized by Verilog HDL. The I2C IP core is transplanted successfully and customized. The TVP5158is configured by the I2C bus. The driver of the DMA controller is realized and then the data can be handled and stored effectively by the DMA controller. The Ethernet is implemented as the transmission medium. The driver of the network card is also programmed and the network communication platform is established to provide a complete network system for the software system. Besides, the video monitoring program is achieved by C++.What’s more, ModelSim and SingalTap Ⅱ are used in the FPGA/SOPC design, which are timing simulation platform and online logic analyzer. The network data grasping software Ethereal is also used to test the communication efficiency of the proposed network platform. The result of research show that this system has achieved the desired goal.
【Key words】 Machine Vision; Endoscope; Video Decoding; SOPC; Image Acquisition andProcessing; Simulation and Debugging;
- 【网络出版投稿人】 南京理工大学 【网络出版年期】2013年 06期
- 【分类号】TP391.41;TP274.2
- 【被引频次】2
- 【下载频次】372