hkcam icon indicating copy to clipboard operation
hkcam copied to clipboard

Low Light Quality. Low frame rate when adding 'exposure_dynamic_framerate=1'

Open RefineryX opened this issue 4 years ago • 4 comments

I’m currently using the official NoIR camera module with a Raspberry Pi Zero. It works great so far, I'm getting the full 30fps but the camera is not good in low light conditions.

When I add exposure_dynamic_framerate=1 within /etc/sv/hkcam/run/ (see code extract below) - the lighting greatly improves but the frame rate drops to 5fps.

Anyone know how I can improve the lighting but still get close to the 30fps?

/etc/sv/hkcam/run/ file:

v4l2-ctl -c sharpness=30,exposure_dynamic_framerate=1,video_bitrate_mode=1,video_bitrate=30000000,auto_exposure=1,scene_mode=8,compression_quality=100
exec hkcam --min_video_bitrate=800 --data_dir=/var/lib/hkcam/data --verbose=true```

RefineryX avatar Jan 02 '20 19:01 RefineryX

Simply, you can't without an external light source (infrared in your case). NoIR doesn't mean night vision by itself, just no infrared filter.

AndreaCCIE avatar Jan 03 '20 08:01 AndreaCCIE

Thanks @AndreaCCIE

I get that and I will have an IR light attached to give full night vision.

I guess I am asking about contains where in person it looks light enough to see (I.e. rooms where there is one lamp). The default out of the box profiles does not work and pick up any of room. Note the room is not in total darkness.

But when adding exposure_dynamic_framerate=1 it brightens everything up from the frame rate greatly suffers - dropping from 30fps to 3fps

RefineryX avatar Jan 03 '20 10:01 RefineryX

No camera has the same eye sensitivity to light, so even if you can clearly see something doesn't mean the sensor can capture it. dynamic frame rate will drop the fps to increase the exposure time, so dropping to less than 10 fps is the expected behaviour on cheap sensors.

AndreaCCIE avatar Jan 03 '20 10:01 AndreaCCIE

Is there anything hkcam can do to resolve this issue?

brutella avatar Mar 07 '22 08:03 brutella