CSEE 4840 Embedded systems Design Anusha Dachepally (ad2657) Raghu - - PowerPoint PPT Presentation

csee 4840 embedded systems design
SMART_READER_LITE
LIVE PREVIEW

CSEE 4840 Embedded systems Design Anusha Dachepally (ad2657) Raghu - - PowerPoint PPT Presentation

CSEE 4840 Embedded systems Design Anusha Dachepally (ad2657) Raghu Binnamangalam (rsb2145) Devesh Dedhia (ddd2121) Roopa Kakarlapudi (rk2489) Overview Motivation Goals Real Time Video Display Color detection Light saber


slide-1
SLIDE 1

Anusha Dachepally (ad2657) Raghu Binnamangalam (rsb2145) Devesh Dedhia (ddd2121) Roopa Kakarlapudi (rk2489)

CSEE 4840 Embedded systems Design

slide-2
SLIDE 2

Overview

 Motivation  Goals

 Real Time Video Display  Color detection  Light saber generation

 Real time video processing

 Processing at 60 fps

slide-3
SLIDE 3

Motivation

 To learn integration of

hardware and software

 Real time video processing

  • n the FPGA board

 Inspired by

 Luke Skywalker (Star wars!!)

slide-4
SLIDE 4

Objectives

 To capture video in real time of a person holding a

sword

 Do real time video processing at 60 fps  Replace the sword with a light saber on the VGA

display

slide-5
SLIDE 5

System Architecture

ITU A D V 7 1 8 1 RAM AVALON BUS YCbCr to RGB VGA Controller NIOS

422 To 444

Initiation Delay timer Locked Detector I2C_AV Config

TD_HS TD_VS I2C_SCLK I2C_SDAT

XY Detection Avalon Communicator C a m e r a ADV 7123 VGA Display

slide-6
SLIDE 6

Timing diagrams

slide-7
SLIDE 7

Timing diagram 1

TD_VS 16 ms ( 60 fps) VGA_VS

slide-8
SLIDE 8

Timing Diagram 2

Fill up 1 line buffer Read 1 line buffer VGA_HS TD_HS

slide-9
SLIDE 9

Timing diagram 3 (Software)

1. Generation of light saber 2. Filling up a RAM for communication with hardware

Read blue/green data

TD_VS TD_HS

slide-10
SLIDE 10

Real time Video Display

 60 fps display  To emulate real time video  No frame storage  SRAM not dual ported  SDRAM is a time deterrent  Real item display on the fly  Usage of 2 line buffers  Swap between the 2 line buffers  Avoids loss of information  No interlacing  replicating even/odd frame

slide-11
SLIDE 11

Color detection

 Conventional approach

 Euclidean distance  Intense computations hence delay

 Our approaches

 RGB vs YCrCb

 RGB has varying threshold with varying intensity of light  YCrCb has greater tolerance

slide-12
SLIDE 12

Light saber generation

 Find centre of mass for ends of sword

slide-13
SLIDE 13

Light saber generation

 Calculate the slope of the line

θ

slide-14
SLIDE 14

Light saber generation

 Use a predefined sword width and halo width

slide-15
SLIDE 15

Light saber generation

 Filling the coordinate table

x1 x2

slide-16
SLIDE 16

Software Design

 Centre of mass calculation  Using theta calculations find the four edge points of

the light saber for a predefined width.

 Use a table to store the X1 and X2 for each line

displayed by the VGA.

slide-17
SLIDE 17

Design challenges

 For real time video display

 Horizontal sync and Vertical sync w.r.t incoming video

from ADV 7181

 Achieving 60 fps  Making the system work without frame buffers  Deal with multiple clock domains

slide-18
SLIDE 18

Design challenges(contd..)

 Floating point calculations  Line drawing algorithms  Synchronization with the VGA module in hardware  Hardware signals are sampled more than once

slide-19
SLIDE 19

Lessons learnt

 Start early  DE2 Terasic real time video code is all junk  Design timing diagrams before implementation  Conventional measuring techniques like CRO are

Life savers

 More time for debugging

slide-20
SLIDE 20

May the force be with you!!!

slide-21
SLIDE 21

Thank You