camera Module

»All camera related functionality

–Availabe hardware information

•cameras_available()

•image_modes()

•flash_modes()

–take_photo()

•take_photo(mode,size,flash,zoom,exposure,white_balance, position)

 

 

Examples:

 

Take a picture:

from camera import *
pic=take_photo()

 

Showing the picture on the display:

old_body=app.body
from appuifw import *
app.body=canvas=Canvas()
canvas.blit(pic)

 

Resizing the picture to fit in the screen:

canvas.blit(pic,scale=1)

 

Taking another picture using the "flash" mode
And showing it on the screen:

pic1=take_photo(flash=’forced’)
canvas.blit(pic1,scale=1)
#Back to the old screen
app.body=old_body

Department of Electronic Systems | Aalborg University | Niels Jernes Vej 12 | DK-9220 Aalborg | Denmark
Phone: (+45) 9635 8695 | Fax (+45) 9815 1583 | E-mail ies(at)ies.aau.dk
Copyright © 2006 Department of Electronic Systems

Last update:01-10-2006