Android Camera API ISO Setting?

前端 未结 5 1844
一个人的身影
一个人的身影 2020-12-05 09:12

Would anyone know where to control the ISO setting for the camera from in the Android SDK ? It should be possible as the native camera application on the HTC Desire has ISO

5条回答
  •  情话喂你
    2020-12-05 09:33

    szias answer is correct.

    Only

    String supportedIsoValues = camParams.get("iso-values"); 
    

    returns null on some devices.

    Nevertheless you can set the iso by

    Camera cam = Camera.open();
    Camera.Parameters camParams = cam.getParameters();
    camParams.set("iso", "400"); // values can be "auto", "100", "200", "400", "800", "1600"
    cam.setParameters(camParams);
    

    I do not know whether "800" or "1600" is supported on all devices

    you can check what you did by

    String newVAlue = camParams.get("iso");
    

提交回复
热议问题