Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #! /usr/bin/python
  2. # Team 09
  3. # Imran Vohra and Ekaterina Dvoretskaya
  4.  
  5.  
  6. from time import sleep
  7. from picamera import PiCamera
  8.  
  9. camera = PiCamera(resolution=(1280, 720), framerate=30)
  10. # Set ISO to the desired value
  11. camera.iso = 100
  12. # Wait for the automatic gain control to settle
  13. sleep(2)
  14. # Now fix the values
  15. camera.shutter_speed = camera.exposure_speed
  16. camera.exposure_mode = 'off'
  17. g = camera.awb_gains
  18. camera.awb_mode = 'off'
  19. camera.awb_gains = g
  20. # Finally, take several photos with the fixed settings
  21. camera.capture_sequence(['image%02d.jpg' % i for i in range(10)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement