Log in or register to post comments

Camera focus

July 29, 2015 - 4:31pm #1

Vuforia SDK Version: 5.0.5 -

Description with steps to reproduce:


CameraDevice.Instance.SetFocusMode (CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO);     –  not working in 5.0.5

(in 4.2.3 all woks fine)


Development OS (Mac OS X, Windows, Linux): Windows 8 -

Mobile OS and Version: Android 4.1 - 4.2 -

Mobile Device Manufacturer and Model name: Samsung Galaxy Alpha -

Do the Vuforia Sample Applications show the same behavior?:

Camera focus

August 26, 2015 - 6:58am #13
Yes, the problem is reproduced with (non-Unity) Android VuforiaSamples on Samsung Alpha.
- But I noticed that the focus is activated when touched.
Also I tested VuforiaSamples for Android on other phone models - and there autofocus works fine.

Camera focus

August 20, 2015 - 9:42pm #12

Are you able to reproduce the auto-focus issue using the (non-Unity) Android VuforiaSamples 5.0.5 app?

Camera focus

August 18, 2015 - 11:24am #11

SM-G850F with ISOCELL Sensor


Dimensions show - 1280 / 720 @ 30 fps



Camera focus

August 12, 2015 - 8:56pm #10

What is the model number of your Samsung Galaxy Alpha?


Also, could you try the steps in this post and report what dimensions the Galaxy Alpha shows?



Camera focus

August 8, 2015 - 5:57pm #9

Asus Padfone - works fine

Motorola Nexus 6 - works fine

OnePlus One - works fine

NVidia Shield - works fine

Samsung Galaxy Note 4 - works fine

Now there is a problem only with Galaxy Alpha.

Camera focus

August 8, 2015 - 4:07pm #8

Back Camera:

focus-mode = auto

focus-mode-values = auto,infinity,macro,continuous-video,continuous-picture


Front Camera:

focus-mode = fixed

focus-mode-values = fixed,infinity


And as I wrote earlier - autofocus worked fine with the previous version of Vuforia. (4.2.3)

Camera focus

August 6, 2015 - 6:50pm #7

Can you try the following code (using Camera.Parameters) in a new Android Studio or Eclipse project to verify that your Samsung Galaxy Alpha supports continuous autofocus?

In the onResume():

Camera cam = Camera.open(0);
Camera.Parameters params = cam.getParameters();
List<String> focusModes = params.getSupportedFocusModes();

Add permission and features in AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />

See also this post:



Camera focus

August 5, 2015 - 5:23pm #6

Are you able to reproduce this same behavior on any other Android devices?

Camera focus

July 31, 2015 - 8:18am #4

Can you specify what distance (roughly) you refer to with 'long range to medium' and with 'middle distance to nearest' ?

also, what is the size of the Target you are using ?

did you observe the same behaviour with the Image Targets sample ?

Camera focus

July 31, 2015 - 7:22am #3
Nop. The result is the same.
But I saw that the focus is activated from long-range to medium.
And it is not works from middle distance to the nearest.

Camera focus

July 31, 2015 - 4:55am #2

1. Check the Image Targets sample or the AR-VR sample 5.0.5; those implement continuous autofocus

2. Make sure you enable continuous autofocus after Vuforia starts; this is an example:

    void Start () 

    private void OnVuforiaStarted()

    private void OnPaused(bool paused)
        if (!paused) // resumed
            // Set again autofocus mode when app is resumed


Log in or register to post comments