We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b26a69 + b5c6c94 commit d0cdfecCopy full SHA for d0cdfec
1 file changed
RasPi_Low_Light_Camera/lowlight.py
@@ -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