how can i set the camera function that anti-shake(image Stabilizer) at android -
i've made camera app.
i want add function anti-shake.
but never find how setting anti-shake(image stabilizer).
plz me!!
usually image stabilizer built-in camera feature, while ois (optical-image-stabilization) built-in hardware feature; few devices support them.
if device hasn't built-in feature, think cannot anything.
android doesn't provide direct api manage image stabilization, may try:
- if
android.hardware.camera.getparameters().getsupportedscenemodes();
containssteadyphoto
keyword (see here), device supports kind of stabilization (usually shots when accelerometer data indicates "stable" situation) - check
android.hardware.camera.getparameters().flatten();
"ois" or "image-stabilizer" keyword/values or similar use inparameters.set(key, value);
. samsung galaxy camera should useparameters.set("image-stabilizer", "ois");//can "ois" or "off"
- if boring may try reading accelerometer data , decide shot when device looks steady.
good luck.
Comments
Post a Comment