|
123456789101112131415161718 |
- """from time import sleep
- from picamera import PiCamera
-
- camera = PiCamera()
- camera.resolution = (1024, 768)
- camera.start_preview()
- # Camera warm-up time
- sleep(2)
- camera.capture('foo.jpg')
-
- """
- import picamera
-
- camera = picamera.PiCamera()
- camera.resolution = (640, 480)
- camera.start_recording('my_video.h264')
- camera.wait_recording(60)
- camera.stop_recording()
|