Skip to content

Commit b5c6c94

Browse files
authored
1 parent 9b26a69 commit b5c6c94

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

RasPi_Low_Light_Camera/lowlight.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from picamera import PiCamera
2+
import time
3+
from fractions import Fraction
4+
import datetime
5+
6+
cur_time = datetime.datetime.now()
7+
stub = cur_time.strftime("%Y%m%d%H%M_low")
8+
9+
camera = PiCamera(framerate=Fraction(1,6))
10+
11+
# You can change these as needed. Six seconds (6000000)
12+
# is the max for shutter speed and 800 is the max for ISO.
13+
camera.shutter_speed = 1750000
14+
camera.iso = 800
15+
16+
time.sleep(30)
17+
camera.exposure_mode = 'off'
18+
19+
outfile = "%s.jpg" % (stub)
20+
camera.capture(outfile)
21+
22+
camera.close()

0 commit comments

Comments
 (0)