Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

[Android - Native Camera] Setting ISO (and other camera parameters)

Hi,

My question is: is it possible to set camera parameters, such as the ISO, when using Android OpenCV's Native Camera?

When using the regular Android Camera, I can set the ISO using something like this:

mCamera = Camera.open();
String[] supportedISOs = mCamera.getParameters().get("iso-values").split(",");

Then later

Parameters params = mCamera.getParameters();
params.set("iso", supportedISOs[choice]);  // Where "choice" reflects the user's choice (ie. menu selection)
mCamera.setParameters(params);

Though it is a bit of a hack - the ISO isn't exposed in the Android API like for example the WB, but it is still in the camera parameters on most phones. However, when using OpenCV's Native Camera, I don't know of a way to do something similar.

Is it possible? Are there plans to give access to the ISO and other parameters in the Native Camera (like the exposure time / shutter speed)? Thanks!

Michal

[Android - Native Camera] Setting ISO (and other camera parameters)

Hi,

My question is: is it possible to set camera parameters, such as the ISO, when using Android OpenCV's Native Camera?

When using the regular Android Camera, I can set the ISO using something like this:

mCamera = Camera.open();
String[] supportedISOs = mCamera.getParameters().get("iso-values").split(",");

Then later

Parameters params = mCamera.getParameters();
params.set("iso", supportedISOs[choice]);  // Where "choice" reflects the user's choice (ie. menu selection)
mCamera.setParameters(params);

Though it is a bit of a hack - the ISO isn't exposed in the Android API like for example the WB, but it is still in the camera parameters on most phones. However, when using OpenCV's Native Camera, I don't know of a way to do something similar.

Is it possible? Are there plans to give access to the ISO and other parameters in the Native Camera (like the exposure time / shutter speed)? Thanks!

Michal

click to hide/show revision 3
No.3 Revision

[Android - Native Camera] Setting ISO (and other camera parameters)

Hi,

My question is: is Is it possible to set camera parameters, such as the ISO, when using Android OpenCV's Native Camera?

When using the regular Android Camera, I can set the ISO using something like this:

mCamera = Camera.open();
String[] supportedISOs = mCamera.getParameters().get("iso-values").split(",");

Then later

Parameters params = mCamera.getParameters();
params.set("iso", supportedISOs[choice]);  // Where "choice" reflects the user's choice (ie. menu selection)
mCamera.setParameters(params);

Though it is a bit of a hack - the ISO isn't exposed in the Android API like for example the WB, but it is still in the camera parameters on most phones. However, when using OpenCV's Native Camera, I don't know of a way to do something similar.

Is it possible? Are there plans to give access to the ISO and other parameters in the Native Camera (like the exposure time / shutter speed)? Thanks!

Michalspeed)?

click to hide/show revision 4
No.4 Revision

[Android - Native Camera] Setting ISO (and other camera parameters)

Is it possible to set camera parameters, such as the ISO, when using Android OpenCV's Native Camera?

When using the regular Android Camera, I can set the ISO using something like this:

mCamera = Camera.open();
String[] supportedISOs = mCamera.getParameters().get("iso-values").split(",");

Then later

Parameters params = mCamera.getParameters();
params.set("iso", supportedISOs[choice]);  // Where "choice" reflects the user's choice (ie. menu selection)
params.set("iso", supportedISOs[choice]);  
mCamera.setParameters(params);

Though it is a bit of a hack - the ISO isn't exposed in the Android API like for example the WB, but it is still in the camera parameters on most phones. However, when using OpenCV's Native Camera, I don't know of a way to do something similar.

Is it possible? Are there plans to give access to the ISO and other parameters in the Native Camera (like the exposure time / shutter speed)?