Fpga Image Accquigision
Fpga Image Accquigision
Indian Journal of Science and Technology, Vol 10(9), DOI: 10.17485/ijst/2017/v10i9/109060, March 2017 ISSN (Online) : 0974-5645
Abstract
Background/Objective: This article presents an image acquisition system which consists of two important elements,
namely a CMOS sensor and an FPGA. Method: In this article, the domain under observation is incessantly supervised by
capturing the video of the area. This is successfully completed with the help of the CMOS sensor, through which the image
frames are captured. Pixel data interface and CMOS senor are connected to the FPGA through the I2C bus. VGA Controller
module in the FPGA will read the pixel data from one of the ports of DDR SDRAM and it can display the video on LCD
monitor. FPGA used in the present work is Cyclone II, which is manufactured by ALTERA. Quartus II 13.0 suite is used for
software development. FPGA will be programmed with the help of Verilog HDL. Findings: The mode register of the CMOS
sensor is programmed with I2C protocol, so that CMOS settings like resolution, exposure are configured with this protocol.
ALTERA DE2 board consists of SDRAM, which can store the captured image frames. This system consists of the black and
white converter module so that the black and white images only stored in the data. VGA Controller module in the FPGA
always reads the pixel data from one of the ports of DDR SDRAM and it generates the required signals to display the video
on the monitor.
distinctive architecture of the FPGA has permitted the used to program the EP2C35F672C6 which is basically a
technology to be used in number of applications like close Cyclone II FPGA.
observation of a person or group (usually by the police)
by capturing video and medical imaging etc. FPGA 2.2 I2C protocol
belongs to a VLSI circuit which can be re-programmed
Inter Integrated Circuit bus can be written in a short form
in a number of times12,13. The word “field programmable”
as I2C. This can also be represented as IIC and I2C, which
concerns the ability to change the performance of the
is a consecutive and co-occurrent bus protocol. How the
device. The word gate array pertains to the basic inter-
data is processed through the I2C bus is clearly charac-
nal structure which allows re-programming14. In general,
terized by the fabricator of the I2C chips. Generally I2C
image processing algorithms are enforced with the help
system can have one master and few slaves, but the mas-
of DSPs and ASICs15. The diligent use of FPGAs in the
ter can produce the clock pulse. The master also specifies
field of image processing and video processing has a great
at what time communication likely to take place. For
regard. This is because of the collimated and superior
bus timing, it is significant that the obtuse slave should,
computational compactness of FPGA as likened to a
however, be capable of following the master’s clock.
general-purpose microprocessor16. Images and videos are
Alternatively, one can say that, the bus is as quick as the
captured by CMOS sensor and it can commute them into
lazy slave.
digital format, procedures and produces gumption of the
information that it accepts in a period of time17. The block
diagram of the FPGA-based image acquisition system is 3. Hardware Specifications
shown in Figure1.
2 Vol 10 (9) | March 2017 | www.indjst.org Indian Journal of Science and Technology
Naga Raju Boya, Vijay Kumar Jinde, Bala Venkateswarlu Avvaru, Sreelekha Kande and Ramanjappa Thogata
Vol 10 (9) | March 2017 | www.indjst.org Indian Journal of Science and Technology 3
Design and Development of FPGA Based Image Acquisition System
has TV decoder for NTSC/PAL/Multi-format systems, the CMOS sensor is programmed with I2C protocol, so
24-bit CD-quality audio CODEC. It will support two that CMOS settings like resolution, exposure are con-
programming modes namely JTAG and AS. DE2 board figured with this protocol. The serial data is assigned to
also consists VGA DAC with VGA-out connector which the CMOS sensor which is obtained from the available
can support up to 1600x1200 at 100 Hz rate, Ethernet parallel data. The data is ceaselessly captured by the pro-
100/10Mbps, SRAM, 8MB SDRAM, 4MB Flash memory, grammed sensor. CMOS sensor’s I2C interface and Pixel
SD card connector, RS232, 16x2 LCD panel, 4 pushbut- Data interface are connected to the FPGA through GPIO
ton switches, 18 toggle switches etc. The DE2 board also interface of the DE2 Board. FPGA will have I2C Slave
has software endorse for standard input/output ports and controller module that will write the CMOS sensor con-
a control panel feature for accessing several elements. In figurable register values. In order to restrain the stream of
order to supply utmost tractability for the user, all the con- data coming from the sensor which is programmed to the
nections are established through the Cyclone II FPGA23.
memory, the IDFC (Image Data Flow Controller) is used.
The photograph of the Alter DE2 board with CMOS cam-
This IDFC influences the stream of data to the memory.
era is shown in Figure 5.
Whenever the START signal is triggered then only the
data is stored in the memory. It happens continuously
until STOP signal is found. This system consists of the
black and white converter module so that the data is laid-
in in the pattern of black and white images only. ALTERA
DE2 board consists of SDRAM, which can store the cap-
tured image frames. Two frames can lay in the memory
at a time. Therefore, it is split into two and the data is
read from or written into the memory. SDRAM control-
ler is used to supervising these performances. The read
& write signals are rendered by SDRAM controller and it
Figure 5. Altera DE2 board with CMOS camera. can also track which frame is being read or written. The
video can be monitored on a visual display unit such as
3.5 VGA (Video Graphics Array) an LCD monitor. For this purpose, the VGA controller is
used.VGA Controller module in the FPGA always reads
VGA is denoted as an “array” rather than “adapter” since
the pixel data from one of the ports of DDR SDRAM and
it was enforced from the start as a single chip, substitut-
it generates the required signals to display the video on
ing the Motorola 6845 and lots of distinct logic ICs that
the screen.Figure 6 shows real-time video capturing and
occupied the full-length ISA boards of the MDA, CGA,
displaying on the monitor through CMOS camera con-
and EGA. Its single-chip execution also permitted
nected with ALTERA DE2 board.
the VGA to be located instantly on a computer’s CPU
board with a minimum of difficulty (it need only three
things, they are timing crystals, video memory, and an
external RAMDAC).
4 Vol 10 (9) | March 2017 | www.indjst.org Indian Journal of Science and Technology
Naga Raju Boya, Vijay Kumar Jinde, Bala Venkateswarlu Avvaru, Sreelekha Kande and Ramanjappa Thogata
Vol 10 (9) | March 2017 | www.indjst.org Indian Journal of Science and Technology 5
Design and Development of FPGA Based Image Acquisition System
21. ALTERA. Five ways to build flexibility into industrial appli- board. International Journal of Engineering and Advanced
cations with FPGAs. Altera Corporation; 2011. Technology (IJEAT). 2012 Dec; 2(2).
22. Jagdale VB, Vaidya RJ. High definition surveillance system 23. Altera. DE2-70 development and education board user
using motion detection method based on FPGA DE-II 70 manual version 1.08. Terasic Technologies; 2009.
6 Vol 10 (9) | March 2017 | www.indjst.org Indian Journal of Science and Technology