I've made a Camera App.
I want to add the functionality of anti-shake.
But I could not find the setting for anti-shake(image Stabilizer).
Plz Help me!!
Usually Image Stabilizer is a built-in camera feature, while OIS (Optical-Image-Stabilization) is a built-in hardware feature; by now really few devices support them.
If device hasn't a built-in feature, i think you cannot do anything.
Android doesn't provide a direct API to manage image stabilization, but you may try:
android.hardware.Camera.getParameters().getSupportedSceneModes();
contains steadyphoto
keyword (see here), your device supports a kind of stabilization (usually it shots when accelerometer data indicates a "stable" situation)android.hardware.Camera.getParameters().flatten();
for a "OIS" or "image-stabilizer" keyword/values or similar to use in Parameters.set(key, value);
. For the Samsung Galaxy Camera you should use parameters.set("image-stabilizer", "ois");//can be "ois" or "off"
Good luck.
If you want to develop software image stabilizer, OpenCV is helpful library for you. Following is the one of the way to stabilize the image using Feature.
You can develop all this process using OpenCV and I already developed it in mobile devices. See this repository
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With