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
