I wanted to see how my robot will fare when I turn out the lights on him, so I set up a long exposure capture method. I ran my test and captured a long exposure image just fine, but the camera.close() hung, which requires a reboot to clear. (Even got a python Segmentation Fault after killing the first run and rerunning it.)
There is a workaround:
# bug in picamera https://github.com/waveform80/picamera/issues/528 camera.framerate = 1 # workaround sleep(2) # workaround camera.close()
Now Carl can see in the dark with 6 second exposures.
(I’m going to get a little night light for him too, so he won’t be afraid of the dark anymore.)