Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #! /usr/bin/python
  2. # Team 09
  3. # Imran Vohra and Ekaterina Dvoretskaya
  4.  
  5.  
  6. from picamera import PiCamera
  7. from time import sleep
  8. from fractions import Fraction
  9.  
  10. # Set a framerate of 1/6fps, then set shutter
  11. # speed to 6s and ISO to 800
  12. camera = PiCamera(resolution=(1280, 720), framerate=Fraction(1, 6))
  13. camera.shutter_speed = 6000000
  14. camera.iso = 800
  15. # Give the camera a good long time to set gains and
  16. # measure AWB (you may wish to use fixed AWB instead)
  17. sleep(30)
  18. camera.exposure_mode = 'off'
  19. # Finally, capture an image with a 6s exposure. Due
  20. # to mode switching on the still port, this will take
  21. # longer than 6 seconds
  22. camera.capture('dark.jpg')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement