Page 1 of 1

Video: Time Integration

Posted: Fri Apr 19, 2019 5:38 pm
by sarahb
I am taking a video of blinking lights (with very accurate blinking frequencies). It seems as though my camera (Camera Module v2) is integrating in time, i.e. though it is recording at 90 fps, the frames (taken at every ~11 ms) seem to be an average in time of the image between the current and previous frames. As a result, the frames rarely show lights that are off because the camera seems to be integrating the brightness during ~11 ms periods. Is there a way to disable this feature or is this something inherent to the camera?

Re: Video: Time Integration

Posted: Fri Apr 19, 2019 6:27 pm
by HermannSW
You can use "--shutter" option of raspivid: ... /
-ss, --shutter : Set shutter speed in microseconds
I have successfully taken v2 camera videos with "--shutter 200" when the scene was lit very bright (5000lm led).

Lately I did captures with a modified v1 camera with 13.42µs exposure time and very bright light successfully (the shutter time was much longer, but I made everything dark after 13.42µs, nothing to integrate anymore):

Re: Video: Time Integration

Posted: Sat Apr 20, 2019 3:22 pm
by 6by9
The sensor will integrate over the exposure period, which may be up to 11ms if you are running at 90fps. It will not integrate over more than that. You can request a shorter exposure period as Hermann has said.

The other issue you may not be aware of is that the sensor does not integrate all lines at the same time. It is what is known as a rolling shutter sensor.
See or for more details of how this affects the image capture.

Re: Video: Time Integration

Posted: Sun May 19, 2019 11:54 pm
by HermannSW
Just today I replaced Arducam ov5647 camera with a real v1 camera (clone) for taking global shutter images.

For adjustment I took some images of rotating propeller (20000rpm) showing strange rolling shutter effect with raspistill and a 1000lm only unfocused Ikea lamp. From left to right, top to bottom with 25/50/100/200/400/800µs shutter time. For 25/50 I had to increase brightness from 50 to 75 (-br 75) in order to see something:

Then I used focused 5000lm bright light and as you can see 25µs shutter time is good enough to get a clear picture (of eg. the non-moving motor):

Shutter time is always a multiple of line_time_ns (which is 21165ns for v1 mode 7). Because of integer division therefore real shutter time for the image taken is not 25µs but 21.165µs.