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:

  1. if android.hardware.camera.getparameters().getsupportedscenemodes(); contains steadyphoto keyword (see here), device supports kind of stabilization (usually shots when accelerometer data indicates "stable" situation)
  2. check android.hardware.camera.getparameters().flatten(); "ois" or "image-stabilizer" keyword/values or similar use in parameters.set(key, value);. samsung galaxy camera should use parameters.set("image-stabilizer", "ois");//can "ois" or "off"
  3. if boring may try reading accelerometer data , decide shot when device looks steady.

good luck.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -