Design of Color Recgnition System Based on MT9M111
- Author
- XueFei
- Advisor
- NingZuo
- School
- Shaanxi University of Science and Technology
- Major
- Pattern Recognition and Intelligent Systems
- Classification
- TP391.41 Image recognition device
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 130
- Citations
- 0
Abstract
With high-speed and automated development of modern industrialproduction, the color recognition task in which the human eye hasplayed a dominant role in the past, will be implemented by the more andmore appropriate color sensors. For the traditional color sensor, theindependent photoelectric diode is covered by a revision of the red,green, blue filter, and then the output signal is processed to identify thecolor signal. While, machine vision technology becomes so mature thatit has insteaded the complex and backward way of color recognition.Machine vision technology is widely used in the field of productteseting and quality control. In the view of the high precision, higherefficiency and digitization demand to the color measurement in ourleather industry, this paper presents a design of color recognitionsystem based on MT9M111.With the CMOS digital image sensor–MT9M111as the frontimage capture sensor, this scheme chooses the low cost and highperformance Cyclone Ⅱ seies FPGA–EP2C8Q208C8as the core ofimage capture and transmission platform, and uses the EZ-USB FX2LPseries chip–CY7C68013A for the collected single frame of imagedata’s transmission to PC. While, the image color recognitionpeocessing software is developed on the LabVIEW platform, which isconvenient to measure the target’s color features.This paper does not only expound how the FPGA chip as the corecontroller complete the image capture and transmission, but alsointroduces a self-develped color recognition system software based onLabVIEW. On the hardware design, it mainly contains the followingthree parts: the section of EP2C8Q208C8core control, the part ofMT9M111’s image capture, the EZ-USB FX2LP communication and transmission part. For firmware design, becase of the MT9M111’s workmode is configurated through the I2C bus, so the CMOS image capturemodule is designed according to the MT9M111’s collection timing.With the help of this module, the collected signle frame of image data iscached in the SRAM. While the image transmission part, according toCY7C68013A’s Slave FIFO synchronous transmission principle andtiming relationship, the Slave_FIFO module is designed, which ensuresthat the collected single frame of image data transmit to the PC rapidlyand stably, makes the subsequent operation of image color recognitionmore conveniently. In the software part, the design of EZ-USBcommunication is developed base on Visual C++6.0; and in order toshorten the whole development cycle, the design of image colorrecognition is developed based on LabVIEW.Experimental results show that the scheme proposed in this paperis reliable and feasible. The Color recognition software based onLabVIEW tests out the sample image’s RGB histogram, and calculatesthe similarity between the standard samples. In this way, enough anddirect reference datas are provided for the subsequent further colorrecognition.
Table of contents
Summary 5-7
ABSTRACT 7-12
1 Introduction 12-16
1.1 subject background and significance 12 <br / > 1.2 dynamic and the level of domestic and foreign 12-14
1.3 content and objectives of this study 14
1.4 papers structural arrangements 14-16 <br / > 2 system design 16-22
2.1 system Requirements Analysis 16-17
2.2 overall system architecture 17
2.3 system workflow 17-19
2.4 system design process 19-21
2.4.1 hardware design 19-20
2.4.2 firmware design 20
2.4.3 software design 20-21
2.5 Summary 21-22
3 color recognition system hardware design 22-39
3.1 MT9M111 circuit design 22-26
3.1.1 MT9M111 chip Introduction 22
3.1.2 I2C bus 22-23
3.1. 3 MT9M111 function register configuration 23-26
3.2 FPGA core control circuit design 26-31
3.2.1 power circuit 27-28
3.2 .2 clock and reset circuit 28-30
3.2.3 configuration circuit 30-31
3.3 SRAM interface circuit design 31-34
3.4 USB transfer circuit design 34-37
3.4.1 CY7C68013A chip Introduction 34-35
3.4.2 USB data transfer types 35-37
3.5 -ray room design 37-38
3.6 Summary 38-39
firmware 4 color recognition system design 39-56
4.1 system reset module design 39
4.1.1 module features 39
4.1.2 module 39
4.2 MT9M111 configuration module design 39 - 41
4.2.1 module features 39
4.2.2 register Configuration timing analysis 39-40
4.2.3 module 40-41
4.3 image acquisition module design 41-42
4.3.1 module features 41
4.3.2 MT9M111 acquisition timing 41-42
4.3.3 module 42
4.4 image conversion module design 42-44
4.4.1 module features 42-43
4.4.2 algorithm analysis 43
4.4.3 module 43-44
4.5 image cache module design 44-47
4.5.1 module features 44
4.5.2 cache module timing analysis /> realize 4.5.3 cache Module 44-45 <br 45-47
4.6 Slave FIFO transmission module design 47-49
4.6.1 module features 47-48
4.6.2 Slave FIFO timing analysis 48
4.6.3 module 48-49
4.7 EZ-USB FX2LP firmware design 49-55
4.7.1 Cypress firmware framework 49-50
4.7.2 EZ-USB FX2LP firmware programming 50-51
4.7.3 EZ-USB FX2LP firmware emulation debugging 51-55
4.8 EZ-USB driver design 55 <br / > 4.9 Summary 55-56
5 based on Visual C USB2.0 communication and image transmission portion of the design nbsp 6.0 ; 56-66
5.1 software design flow 56
5.2 communications applications designed 56-61
5.2.1 USB control function 56-59
5.2.2 communication program design and implementation 59-61
5.3 image data display program designed 61-63
5.4 image data stored program design 63-65
5.4.1 BMP file structure 63-64
5.4.2 BMP images saving 64-65
5.5 Summary 65-66
6 color -based image recognition part of the LabVIEW design 66-83
6.1 color histogram 66-67
6.2 color recognition process design 67-78
6.2.1 LabVIEW image processing introduction 67
6.2.2 the front panel design after 67-70
6.2.3 panel design 70-76
6.2.4 color recognition software evaluation 76-78
6.3 color recognition test results 78-81
6.4 summary 81-83
7 summary and Outlook 83 - 84
7.1 summarizes 83
7.2 Prospects 83-84
Thanks 84-85
References 85-90
Appendix A: FPGA top-level module code 90-94
Appendix B: EZ-USB firmware programming 94-97
Appendix C: EZ-USB communication applications part of the code 97-101
study published during the academic degree 101
studying for a degree involved in the project during 101
pursue a degree during the patent application 101-102
Related dissertations
- Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
- Design and Realize of a Type of Automatic Target-scoring System
- Research of Data Acquistion System Based on FPGA
- Research and Implementation of Fast Fourier Transform by Using Custom Instruction Based NiosⅡ Processor
- Design and Implementation of an Array Signal Synchronization Acquisition System
- The Method and Implementation of Array Calibration on Circular Antenna Array
- Design of Home Environment Monitoring System Based on ZigBee Technology
- Design of Environment Monitoring System for Power Supply in Mobile Communication Base Station of Hunan Telecom
- Research and Application on the Remote Intelligent Monitoring System of Grain Depot
- The LabVIEW-based Design of Filling Stations Monitoring System
- Smart Home Monitoring System Based on Ni Wireless Sensor Network
- Optical Fiber Perimeter Alarm System Based on DSP and FPGA
- Design and Implementation of the Engineering Machinery Color Monitor System Based on FPGA+MCU
- The Design of Monitoring System for the Photovoltaic Plant Based on DSP
- Design of Circuit Testing System of Vehicle Fuse Box Based on LabVIEW
- Study on the System of Greenhouse Environment Measurement Based on Zigbee Technology
- Research of Permeability Testing System for Clay
- Digital Electrical Impedance Tomography Hardware System Design Based on FPGA
- Study on Magnetic Flux Leakage Testing System of Rail Based on FPGA
- Digital Cross Section Data Acquisition System Based on Industrial Standard System Bus