Topic has a solution and is locked
Log in or register to post comments

Dark camera feed on Android 6.0 and above

November 16, 2016 - 1:24pm #1
Topic solved

Hey Guys,

So after googling, searching the forums and playing about with the Camera API I have found absolutely no solution and could do with a helping hand on resolving this issue.

The issue that I faced, that many on this forum seem to have faced, is the AR Camera rendering dark when using the front/back camera. The AR camera was rendering perfectly on any Android version below 6.0, until some of our users upgraded their devices (mainly Samsung) to 6.0 and 7.0 (Nexus 6P) and this is where the dark camera appears. To me it seems as though the auto-focus just isn't working and therefore not adjusting correctly to the lighting conditions.

I have provided a video link on the next line comparing our app running on Android 5.0 (device on the left hand side of the video) and Android 6.0 (device on the right hand side of the video):

https://drive.google.com/file/d/0B8pn30A47lDEbzJNNHJWVVhtbFk/view?usp=sharing

I've already tried these attempts at a solution to no avail:

1) Changing the target sdk version to 22 from 23

2) Looking into the Camera API and adjusting different settings such as the exposure lighting and ISO values

3) Downgrading the Android version from 6.0 to 5.0 (as stated above this worked successfully but when upgrading to 6.0 the dark camera appeared again)

If you have any ideas on how to resolve this issue I'd be extremely grateful. I'm currently using Unity as the development package and building to Android.

Kind regards,

Adit

P.s The error also appears when you download the latest Vuforia sample from the website into Unity and then porting over onto onto an Android device. The AR camera uses 'CAMERA_FRONT' as the 'Camera Direction'. 

AttachmentSize
Image icon Screen Shot 2016-11-16 at 21.20.25.png775.59 KB

Dark camera feed on Android 6.0 and above

February 17, 2017 - 10:29am #8

Hello,

A fix for this issue was included in our Android 6.2.10 patch release: https://developer.vuforia.com/downloads/sdk

Thanks


Dark camera feed on Android 6.0 and above

February 7, 2017 - 6:54am #7

Fantastic :), when do you think a patch release will be out?

Dark camera feed on Android 6.0 and above

February 6, 2017 - 9:56am #6

Hello,

We believe that we've identified the issue and are working to provide an SDK patch release in the near future to resolve.

Apologies for any inconvenience.

Thanks


Dark camera feed on Android 6.0 and above

November 23, 2016 - 2:03am #5

Hi,

The issue is that something has changed between the way Vuforia access the native camera app from Android 5.0 to Android 6.0 and above. If you downgrade the device to Android 5.0, the camera runs beautifully with no dark feed. However, when upgraded back to 6.0 or above, the camera is extremely dark.

What has been changed from Vuforia's end to cause this issue?

I mean the error also occurs on the Vuforia samples project so I think this should be a top priority to look into and potentially solve as most devices are now running 6.0 and above. This means that Vuforia simply won't work for any of your clients who have customers on Android 6.0 and above (which is a majority of Android customers).

I look forward to hearing back from you or anyone who has managed to resolve this issue.

Dark camera feed on Android 6.0 and above

November 17, 2016 - 11:25am #4

Hello,

Vuforia relies upon what is exposed by the native OS. And since Vuforia controls the camera while running, we expose a limited number APIs for camera control (like autofocus), which result in calls to the native OS. Thus, if a device supports autofocus, Vuforia does as well. However, the opposite is also true: if a device does not support autofocus, or if that device's native implementation of autofocus is poor, then Vuforia's autofocus performance will reflect the same.

My only thought here is that perhaps the native camera app on this device has implemented the autofocus feature at the app level. This is something that Vuforia's current product offering does not support.

At this time I do not have any suggestions for you about the dark camera preview. We are continuing to investigate and if I have any further suggestions I will update this thread.

Thanks.

 


Dark camera feed on Android 6.0 and above

November 17, 2016 - 2:13am #3

Hey,

Autofocus works in Android 5.0 for the front camera, it doesn't work in 6.0 for the same front camera in our app, but in the native camera app there is autofocus. So why in 6.0 does Vuforia's camera not support autofocus for the front camera? 

Autofocus does work on the back camera for certain cameras but when we use the API for autofocus modes, only autofocus infinity mode is supported whereas the other focus modes aren't supported.

Furthermore, I've also viewed the thread you posted and if you saw, no one had actually posted any solutions for the dark camera mode (only suggestions which didn't work for them). Some of the things people had suggested, I had tried and it didn't work.

The things suggested were:

1) Setting the Graphics API to OPENGLES2

2) Reducing the target SDK version from 23 to 22.

Would you happen to suggest anything else? I'd be happy to attach screenshots of anything you think may help to find a solution to the problem.

Kind regards,

Adit

Dark camera feed on Android 6.0 and above

November 16, 2016 - 2:29pm #2

Hello,

Please review the following forum thread: https://developer.vuforia.com/forum/android/upgrate-android-601-and-dark-camera

Note that Vuforia 6 has introduced the Advanced Camera API which allows for additional access to Android camera settings, such as Auto Exposure. Perhaps this can be experimented with on this platform to find a setting that is most suitable.

Thanks


Log in or register to post comments