Smart-Home am Beispiel der Präsenzerkennung im Raum Projektarbeit Lennart Heimbs, Johannes Krug, Sebastian Dohle und Kevin Holzschuh bei Prof. Oliver Hofmann SS2019
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

new_camera.py 360B

123456789101112131415161718
  1. """from time import sleep
  2. from picamera import PiCamera
  3. camera = PiCamera()
  4. camera.resolution = (1024, 768)
  5. camera.start_preview()
  6. # Camera warm-up time
  7. sleep(2)
  8. camera.capture('foo.jpg')
  9. """
  10. import picamera
  11. camera = picamera.PiCamera()
  12. camera.resolution = (640, 480)
  13. camera.start_recording('my_video.h264')
  14. camera.wait_recording(60)
  15. camera.stop_recording()