Camera ISO setting/ shutter speed

隐身守侯 提交于 2019-11-30 07:07:11
Nicholas Ng

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

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?

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!