I want to capture in low-light and have NoIR picamera.
I change the exposure_mode to off and set shutter_speed and iso.
import picamera
with picamera.PiCamera() as camera:
camera.resolution = (1280,960)
camera.exposure_mode = 'off'
camera.framerate =1
camera.shutter_speed = 6000000
camera.iso = 1600
camera.capture('dark.jpg')
The image I get is a decent one. I can see everything.
Now I do the same shutter_speed, framerate, iso, resolution settings to record a .h264 video. The video that I get is a black screen nothing else. Why is the video black but the image clear? Should I try the raspivid commands to record video?
Also what is the relationship between framerate and shutter_speed? I need fairly hight framerate about 30 fps thus 1/30th a second is the maximum shutter_speed possible ? Or can I increase shutter_speed ? How can I achieve good recording while having a large framerate at low light?
time.sleep(10)?. Why should it be done before I setexposure_modeasoff? I do this stillcamera.digital_gainis 0 – Coderaemon May 20 '15 at 08:27digital_gainandanalog_gainvalues, They are Fraction(0, 1), Fraction(1, 1) respectively. So even whendigital_gainis 0 still the image is coming fine? What is happening? – Coderaemon May 20 '15 at 08:48time.sleep(10)is fine for introducing a delay. The reason it needs to be done before settingexposure_modetooffis that during the delay, the AGC algorithm will be adjusting the gains to match the scene. As soon as you setexposure_modetooffyou disable AGC and fix the gains at their value at that moment. If that is does before they reach suitable values you get a black picture. – Dave Jones May 20 '15 at 12:23digital_gaincan be zero is interesting - I've not seen that before (not that I've played with it much). I do knowanalog_gainis applied first, and it's the gain applied to the sensor. Ifanalog_gainis zero you always get a black picture. In my brief plays with gain,digital_gainalways sat at 1; I assumed this meant it was getting sufficient gain from the analog side of things and it would only bumpdigital_gainwhenanalog_gainhit 8 (the limit), but I never managed to get it to that point. – Dave Jones May 20 '15 at 12:25