Lab 14 Department of Computer Science and Information Engineering National Taiwan University Lab14 – Camera 2014/12/30 1 /14.

Slides:



Advertisements
Similar presentations
Computer System Laboratory
Advertisements

Digital Camera Design. Agenda Digital video formats Image sensor technology Sensor interface with CoolRunner-II LCD CoolRunner-II system design.
Lab 4 Department of Computer Science and Information Engineering National Taiwan University Lab4 - Bootloader 2014/10/14/ 13 1.
DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.
Digital Cameras CCD (Monochrome) RGB Color Filter Array.
ECE Department: University of Massachusetts, Amherst ECE 354 Spring 2006 Lab 2: Capturing and Displaying Digital Image.
Computer System Laboratory
1D or 2D array of photosensors can record optical images projected onto it by lens system. Individual photosensor in an imaging array is called pixel.
Digital Images The nature and acquisition of a digital image.
Computer System Laboratory
Photography Workshop 1. Putting photos onto the PC with a digital camera 2. Downloading pictures 3. Saving Pictures – in a file or online 4. Picture .
COMPUTER SYSTEM LABORATORY Lab8 - Debugging II. Lab 8 Experimental Goal Learn how to debug Linux in source-level by Domingo and diagnose target boards.
COMPUTER SYSTEM LABORATORY Lab4 - Bootloader. Lab 4 Experimental Goal Learn how to build U-Boot bootloader for PXA /10/8/ 142.
TERMS TO KNOW. Programming Language A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks. Each language has.
Digital Photography Multimedia Communication Department.
Lab 2: Capturing and Displaying Digital Image
Lab 3 Department of Computer Science and Information Engineering National Taiwan University Lab3 - Cross Tools 2014/10/7/ 20 1.
Introduction to electrical and computer engineering Jan P. Allebach School of Electrical and Computer Engineering
1 Bitmap Graphics It is represented by a dot pattern in which each dot is called a pixel. Each pixel can be in any one of the colors available and the.
COMPUTER SYSTEM LABORATORY Lab10 - Sensor II. Lab 10 Experimental Goal Learn how to write programs on the PTK development board (STM32F207). 2013/11/19/
DIGITAL GRAPHICS & ANIMATION Complete LESSON 2 Importing and Exporting Graphics.
By Meidika Wardana Kristi, NRP  Digital cameras used to take picture of an object requires three sensors to store the red, blue and green color.
Computer System Laboratory
How A Camera Works Image Sensor Shutter Mirror Lens.
Lab 11 Department of Computer Science and Information Engineering National Taiwan University Lab11 - Porting 2014/12/9/ 26 1.
NATIONAL INSTITUTE OF SCIENCE & TECHNOLOGY Presented by: Santosh kumar Swain Technical Seminar Presentation by SANTOSH KUMAR SWAIN Roll # CS
Follow the Data Data (and information) move from place to place in computer systems and networks. As it moves it changes form frequently. This story describes.
Lab 1 Department of Computer Science and Information Engineering National Taiwan University Lab1 - Sensor 2014/9/23/ 13 1.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
JRN 440 Adv. Online Journalism Resizing and resampling Monday, 2/6/12.
Conventions Department of Computer Science and Information Engineering National Taiwan University Conventions 2014/9/16/ 3 1.
Digital Cameras And Digital Information. How a Camera works Light passes through the lens Shutter opens for an instant Film is exposed to light Film is.
Lab 10 Department of Computer Science and Information Engineering National Taiwan University Lab10 – Debugging II 2014/12/2 1 /16.
XP Practical PC, 3e Chapter 15 1 Creating Desktop Video and Animation.
COMPUTER SYSTEM LABORATORY Lab6 - Root Filesystem.
Agenda Last class: Memory, Digitizing Numbers Today: Digitizing: Text
Resolution = the number of photosites (pixels) in the array of your sensor or the total number of buckets Bit Depth / Pixel Depth.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Computer Science 111 Fundamentals of Programming I Introduction to Digital Image Processing.
Implementation of Embedded OS Lab3 Linux Kernel Modules.
Lab 13 Department of Computer Science and Information Engineering National Taiwan University Lab13 – Interrupt + Timer 2014/12/23 1 /16.
Computer Vision Introduction to Digital Images.
Introduction to Image Processing Our first look at image processing will be through the use of Paint Shop Pro, a bitmap editing program available as shareware.
PYP002 Intro.to Computer Science Microsoft Word1 Lab 04 - a Microsoft Windows Applications Common Features.
Implementation of Embedded OS Lab4 Cortex-M3 Programming.
Digital Imaging. Introduction Digital Imaging is used every day in life. Has become less expensive and easier to use than film.
Lab 12 Department of Computer Science and Information Engineering National Taiwan University Lab12 – Driver 2014/12/16 1 /21.
Implementation of Embedded OS Lab3 Porting μC/OS-II.
Inside the Digital Camera. Digital Camera Cross Section The digital camera is a complex device The only part that is the same as film cameras is the lens.
Lab 5 Department of Computer Science and Information Engineering National Taiwan University Lab5 – Bootloader + OS Kernel 2015/10/27/ 25 1.
Lab 8 Department of Computer Science and Information Engineering National Taiwan University Lab8 - Root Filesystem 2015/11/10/ 22 1.
Lab 9 Department of Computer Science and Information Engineering National Taiwan University Lab9 - Debugging I 2014/11/4/ 28 1.
Scanner Scanner Introduction: Scanner is an input device. It reads the graphical images or line art or text from the source and converts.
Implementation of Embedded OS
Lab 7 Department of Computer Science and Information Engineering National Taiwan University Lab7 – uCOS Application 2015/11/10/ 10 1.
Lab 5 Department of Computer Science and Information Engineering National Taiwan University Lab5 - OS Kernel 2014/10/21/ 16 1.
An Introduction to Digital Image Processing Dr.Amnach Khawne Department of Computer Engineering, KMITL.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Exciting Applications of Polynomials Why Learning Polynomials?
Implementation of Real Time Image Processing System with FPGA and DSP Presented by M V Ganeswara Rao Co- author Dr. P Rajesh Kumar Co- author Dr. A Mallikarjuna.
Implementation of Embedded OS
Computer System Laboratory
Implementation of Embedded OS
Creating Desktop Video and Animation
Follow the Data Data (and information) move from place to place in computer systems and networks. As it moves it changes form frequently. This story.
Computer System Laboratory
Computer System Laboratory
Basic Concepts of Digital Imaging
Computer System Laboratory
WJEC GCSE Computer Science
Presentation transcript:

Lab 14 Department of Computer Science and Information Engineering National Taiwan University Lab14 – Camera 2014/12/30 1 /14

Lab 14 Department of Computer Science and Information Engineering National Taiwan University  Learn how to use DSP and CMOS sensor to take pictures on PXA270 by using the miniGUI from GPRS driver. 2014/12/30 2 /14 TIDSP-5502 CMOS Sensor

Lab 14 Department of Computer Science and Information Engineering National Taiwan University  Host System  Windows XP  Build System  VirtualBox + Ubuntu 8.04  Target System  Creator XScale PXA270  Software  LCD, GPRS and DSP Drivers  JPEG library and GPRS program  You can download all software from RSWiki CSL Course SoftwareRSWiki CSL Course Software 2014/12/30 3 /14

Lab 14 Department of Computer Science and Information Engineering National Taiwan University  PXA270  TIDSP-5502  CMOS Sensor 2014/12/30/14 4 CMOS TIDSP-5502

Lab 14 Department of Computer Science and Information Engineering National Taiwan University  A digital signal processor (DSP) is a specialized microprocessor with an architecture optimized for the operational needs of digital signal processing.  Digital signal processing algorithms typically require a large number of mathematical operations to be performed quickly and repeatedly on a series of data samples. 2014/12/30/14 5 Reference: wiki info: DSP, en.wikipedia.org/wiki/Digital_signal_processoren.wikipedia.org/wiki/Digital_signal_processor

Lab 14 Department of Computer Science and Information Engineering National Taiwan University  An active-pixel sensor (APS) is an image sensor consisting of an integrated circuit containing an array of pixel sensors, each pixel containing a photodetector and an active amplifier.  There are many types of active pixel sensors including the CMOS APS used most commonly in cell phone cameras, web cameras, etc.  Such an image sensor is produced by a CMOS process (and is hence also known as a CMOS sensor), and has emerged as an alternative to charge- coupled device (CCD) image sensors. 2014/12/30/14 6 Reference: wiki info: APS, en.wikipedia.org/wiki/Active_pixel_sensoren.wikipedia.org/wiki/Active_pixel_sensor

Lab 14 Department of Computer Science and Information Engineering National Taiwan University  Step 1: Download drivers2.tar.bz2 and refer to Lab12 to add the following drivers to the kernel.drivers2.tar.bz2  Creator-pxa270 DSP5502  Creator-pxa270 LCD  Creator-pxa270 GPRS  You can build them as modules.  Step 2: Create related device files if they does not exist.  % mknod /dev/lcd c  % mknod /dev/gprs c  % mknod /dev/mtdsp c /12/30/14 7

Lab 14 Department of Computer Science and Information Engineering National Taiwan University  Step 3: Download gprs-remote-ctrl.tar.bz2.gprs-remote-ctrl.tar.bz2  Step 4: Modify configuration files and Makefile.  In gprs-ctrl-build/jpeg-6b/microtime_configure,  Delete “.$HOME/bin/microtime ”.  Modify “ --enable-shared ” to “ --enable-static ”.  Add the following to the front of the file.  MICROTIME_USR_LOCAL_DIR=  mkdir -p $MICROTIME_USR_LOCAL_DIR  mkdir -p $MICROTIME_USR_LOCAL_DIR/bin  mkdir -p $MICROTIME_USR_LOCAL_DIR/include  mkdir -p $MICROTIME_USR_LOCAL_DIR/lib  mkdir -p $MICROTIME_USR_LOCAL_DIR/man  mkdir -p $MICROTIME_USR_LOCAL_DIR/man/man1 2014/12/30/14 8

Lab 14 Department of Computer Science and Information Engineering National Taiwan University  In gprs-ctrl-build/creator-pxa270-gprs-1.0/microtime_configure,  Delete “.$HOME/bin/microtime ”.  Delete “ export LINUXDIR=$MICROTIME_LINUX_DIR ”.  Add the following to the front of the file.  export MICROTIME_USR_LOCAL_DIR=  export MICROTIME_BUILD_PACKAGE_DIR=  export LINUXDIR=  In gprs-ctrl-build/creator-pxa270-gprs-1.0/Makefile,  Add a new flag “ -static ” at the end of “ CFLAGS ”.  In gprs-ctrl-build/creator-pxa270-gprs-1.0/creator-pxa270- gprs.c,  Delete the code of initializing UART about 5 lines at line /12/30/14 9

Lab 14 Department of Computer Science and Information Engineering National Taiwan University  Step 5: Compile the JPEG library.  Execute “ gprs-ctrl-build/jpeg-6b/microtime_configure ”.  Modify the generated Makefile, where “ AR= arm-unknown-linux-gnu-ar rc ”, but not “ AR= ar rc ”.  % make libjpeg.a  % cp libjpeg.a /lib  Step 6: Compile the GPRS program.  Execute “ gprs-ctrl-build/creator-pxa270-gprs-1.0/microtime_configure ”.  Copy “ cmosr.out.bin ” and “ creator-pxa270-gprs ” to PXA270.  Step 7: Connect the DSP module and CMOS to PXA270 and execute.  $./creator-pxa270-gprs  If you use drivers as modules, don’t forget to insmod modules before executing.  By pressing keypad 7, the CMOS sensor will take a picture, and store it as “ dsp_data.jpg ” in PXA /12/30/14 10

Lab 14 Department of Computer Science and Information Engineering National Taiwan University  Step 8: Display images on the LCD at the same time.  On PXA270, there is an LCD device which can display not only messages but also a 128*128 image with 4 gray levels.  We take a colored picture by CMOS and save the image in JPEG format. 2014/12/30/14 11

Lab 14 Department of Computer Science and Information Engineering National Taiwan University  The LCD driver has already provided an ioctl command to display an image on an LCD.  You can implement a new function in creator_lib.c, and use this command in GPRS program.  You can refer to the example source code, i.e., lcd.c, to see how to set the data to an LCD image buffer.lcd.c  Since the captured image is colored, i.e., each pixel consists of three components: red(R), green(G) and blue(B), if you want to display on the LCD, please convert it to 4 gray levels.  Any reasonable conversion is acceptable.  E.g., convert RGB color space to YUV color space, then quantize the luminance Y to 4 gray levels or apply edge detection filter, then convert the edges to black and white, etc. 2014/12/30/14 12

Lab 14 Department of Computer Science and Information Engineering National Taiwan University  For more information, please refer to the following sites:  Grayscale,  RGB,  YUV,  Edge detection,  Note that the resolution of the image (320*240) is different from the LCD (128*128), so you can scale the resolution before you display.  Any reasonable scaling method is acceptable.  E.g., nearest neighbor, image-scaling/ or bilinear, scaling/ image-scaling/ scaling/ 2014/12/30/14 13

Lab 14 Department of Computer Science and Information Engineering National Taiwan University  Take pictures by the CMOS.  Please modify the DSP driver ( creator-pxa270-dsp5502.c ) and the GPRS program ( dsp.c ) to take 320*240 pictures.  The default resolution is 160*120.  Display the image on PC and on the LCD.  You can use tftp to upload your image file.  $ tftp -p -l 2014/12/30/14 14