Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to reduce the variability in Android camera shutter lag?
    primarykey
    data
    text
    <p>Given a known periodic motion (e.g., walking), I'd like to take a full resolution snapshot at the same point in the motion (i.e., the same time offset within different periods). However on the Nexus S (currently running OS 4.1.1 but the same was true of previous OS versions), I'm seeing so much variability in the shutter lag that I cannot accurately plan the timing of the snapshot. Here is a histogram of the shutter lags of 50 photographs. (I measured the shutter lag with one System.nanoTime() just before Camera.takePicture() and another System.nanoTime() at the beginning of the shutter callback. The camera lens was consistently covered to remove any variability due to lighting.)</p> <p><img src="https://i.stack.imgur.com/bIzLe.png" alt="enter image description here"></p> <p>Is there anything I can do in the application to reduce this shutter lag variability? (In this application, the mean lag can be any duration but the standard deviation must be small ... much smaller than the 0.5 s standard deviation of the shutter lags shown in the above histogram.) I'm hoping someone has a clever suggestion. If I don't get any suggestions, I'll post a feature request in the Android bug tracker.</p> <p>UPDATE: I turned off auto-focus (by setting focus to infinity) following RichardC's suggestion at <a href="https://groups.google.com/forum/?hl=en&amp;fromgroups#!topic/android-developers/WaHhTicKRA0" rel="nofollow noreferrer">https://groups.google.com/forum/?hl=en&amp;fromgroups#!topic/android-developers/WaHhTicKRA0</a> It helped, as shown in the following histogram. Any ideas to reduce the shutter lag variability even more?</p> <p><img src="https://i.stack.imgur.com/bKk1y.png" alt="enter image description here"></p> <p>UPDATE 2: I disabled the remaining auto parameters: white balance, scene mode, flash. The following histogram of shutter lag time variability seems to be about as good as it gets for a Nexus S running OS 4.1.1. It would be nice to have much less variability in the shutter lag time, perhaps by specifying an optional minimum shutter lag time in Camera.takePicture() which would delay the shutter if it were ready before the specified minimum. I've posted a feature request to the Android issue tracker. If you are also interested in getting the feature, "star" it at <a href="http://code.google.com/p/android/issues/detail?id=35785" rel="nofollow noreferrer">http://code.google.com/p/android/issues/detail?id=35785</a></p> <p><img src="https://i.stack.imgur.com/mWIZC.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload