Log in or register to post comments

Native SDK Front Camera black screen

August 14, 2018 - 1:23am #1

I am using Vuforia samples. So I am trying to start using front camera. 

I am changing

vuforiaAppSession.startAR(CameraDevice.CAMERA_DIRECTION.CAMERA_DIRECTION_DEFAULT); to Front camera

at ImageTargets.java inside Vuforia sample app. The result I am getting with front camera is just black screen.

Here is the error code:

VuforiaSamples E/ImageTargets: Unable to open camera device: 2

    com.vuforia.samples.SampleApplication.SampleApplicationException: Unable to open camera device: 2

        at com.vuforia.samples.SampleApplication.SampleApplicationSession.startCameraAndTrackers(SampleApplicationSession.java:153)

        at com.vuforia.samples.SampleApplication.SampleApplicationSession.access$900(SampleApplicationSession.java:31)

        at com.vuforia.samples.SampleApplication.SampleApplicationSession$StartVuforiaTask.doInBackground(SampleApplicationSession.java:623)

        at com.vuforia.samples.SampleApplication.SampleApplicationSession$StartVuforiaTask.doInBackground(SampleApplicationSession.java:604)

        at android.os.AsyncTask$2.call(AsyncTask.java:333)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)

        at java.lang.Thread.run(Thread.java:764)


Not able to find some more specific information.

Log in or register to post comments