Simple Digital Camera with Image Editor Group 3 Jun Zhao, Kwan Yin - - PowerPoint PPT Presentation

simple digital camera with image editor
SMART_READER_LITE
LIVE PREVIEW

Simple Digital Camera with Image Editor Group 3 Jun Zhao, Kwan Yin - - PowerPoint PPT Presentation

Simple Digital Camera with Image Editor Group 3 Jun Zhao, Kwan Yin Lau, and Xiang Gao Functionality A simple digital camera implementation Colour/grayscale image Switch, button user control VGA screen display Image


slide-1
SLIDE 1

Simple Digital Camera with Image Editor

Group 3 Jun Zhao, Kwan Yin Lau, and Xiang Gao

slide-2
SLIDE 2

Functionality

  • A simple digital camera implementation

○ Colour/grayscale image ○ Switch, button user control ○ VGA screen display

  • Image processing operations

○ Colour filters ○ Adjust brightness ○ Edge detection ○ Image rotation/reflection

slide-3
SLIDE 3

Functionality

  • Web based editor mode

○ Server on DE2 board ○ Client on web browser ○ Transfer image via Ethernet ○ Better user interface ○ More detailed editor options

slide-4
SLIDE 4

Motivation

  • Image quality of smartphones not

comparable to high-end cameras

  • Limited editing options
  • Exploit the hardware capability
slide-5
SLIDE 5

Hardware Design

Camera LCD VGA screen SDRAM Button Client Flash SRAM FPGA Clock source Ribbon cable GPIO Switch Ethernet DE2 board

slide-6
SLIDE 6

FPGA Components

  • On-board/off-board hardware controllers
  • Memory controllers
  • Image operation hardware accelerators in

FPGA

○ Colour filters and brightness adjustment ○ Colour to grayscale conversion and edge detection ○ Image rotation/reflection

slide-7
SLIDE 7

Software Design

Image controller/ Mode Selector Image process operations Rotation Reflection Colour to grayscale Image Camera Controller On-board editor VGA screen Button (PIO) Negate colour Adjust brightness Switches (PIO) User Interface Web editor server Web editor client

slide-8
SLIDE 8

Challenges

  • Interfacing serial UART camera
  • Displaying graphics on VGA monitor
  • Manipulating of pixel information of different

image formats

  • Increasing processing speed, image transfer

speed

slide-9
SLIDE 9

Test Plan

  • Unit Testing

○ Verify UART connection ○ Transfer images taken from camera to DE2 board ○ Test image operation algorithm ○ Display images to VGA monitor ○ Interface between web server and client

  • Integration Testing

○ Display modified images to VGA monitor ○ Display modified images to website

slide-10
SLIDE 10

Code Example and App Note

int sw = OSQPend(SWQ, 0, &err); if (sw == SW_WRITE) { alt_up_rs232_disable_read_interrupt(rs232_dev); if (enter == 0) { data_W8 = 'A'; enter = 1; } else if (enter == 1) { data_W8 = '\n'; enter = 0; } write_FIFO_space = alt_up_rs232_get_available_space_in_write_FIFO( rs232_dev); if (write_FIFO_space >= WRITE_FIFO_EMPTY) { alt_up_rs232_write_data(rs232_dev, data_W8); alt_printf("write %c to RS232 UART\n", data_W8); } OSTimeDlyHMSM(0, 0, 1, 0); alt_up_rs232_enable_read_interrupt(rs232_dev);

slide-11
SLIDE 11

Optional Features to Add

  • More editor functions

○ Noise deduction ○ More interesting filters

  • Choose resolution and output format of

camera

  • On-board editor GUI
slide-12
SLIDE 12

Question?