Camera ISO setting/ shutter speed

2020-02-25 23:31发布

问题:

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.

回答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);


回答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?



回答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.