Camera ISO setting/ shutter speed

21,446

Solution 1

Sorry it's late but might be helpful for others

To set aperture:

Camera.Parameters params = camera.getParameters(); 
params.set("mode", "m");
params.set("aperture", "28"); //can be 28 32 35 40 45 50 56 63 71 80 on default zoom
params.set("shutter-speed", 9); // depends on camera, eg. 1 means longest
params.set("iso", 200);

Solution 2

You can use mCamera.getParameters().flatten() to see all the settings your camera support.

In my situation, the key of the ISO parameter is "iso-speed-values".

You can use String isoSpeedValues = mCamera.getParameters().get("iso-speed-values") to get all the support values.

And use mCamera.getParameters().set("iso-speed", value) to set a specify value.

But I can't find any parameter to set a Shutter Speed(Exposure Time). Any idea?

Solution 3

Try Camera.Parameter's exposure compensation calls.

EDIT (5/2015) Android 5.0 added APIs for this in android.hardware.camera2. See PkmX's lcamera for an example.

Share:
21,446
Will
Author by

Will

Updated on July 09, 2022

Comments

  • Will
    Will almost 2 years

    I am looking for a way to change the light sensitivity of my Evo 4G camerea. I know it is not the camera's shutter speed because it is a digital camera. The next most relevant aspect is the ISO setting, but the Android SDK does not have a way to manipulate it. Does any one know an alternative? i.e scene mode, exposure or effects

    **parameter.set("iso", int) sets the iso.

    Does anyone have the run down on what scene mode values represents?


    Thanks for the input. I have looked over those pages numerous times. I was looking for a function similar to parameter.set("iso", int) because this function was successful in changing the iso setting. The camera does not have aperture as a setting. Maybe I can manipulate some firmware files.

  • codezjx
    codezjx about 9 years
    In a sense, this parameter can change the Exposure Time, but not directly change.
  • Zach Mcgregor
    Zach Mcgregor about 9 years
    True, it's an indirect effect. This has changed in Android 5.0, though - I'll update my answer.
  • Manuel Schmitzberger
    Manuel Schmitzberger over 7 years
    This could be very helpful for the Camera 2 API: Current state of manual camera controls