- Sort Posts
- 12 replies
- Last post
Getting stretched image on phone device Vuforia AR Camera
Hello @bfisker,
We were able to replicate the issue after upgrading a Samsung Galaxy J5 Pro from Android 7 to Android 8. Images captured using Camera 2 on Android 7 look fine - images captured using Camera 2 after upgrade to Android 8 show stretching.
We've traced this down to an issue with the camera frames being delivered by the OS from Camera 2. We've reached out to Samsung about the issue but we don't have much influence over them.
Thanks,
Vuforia Engine Support
Getting stretched image on phone device Vuforia AR Camera
Getting stretched image on phone device Vuforia AR Camera
Hello,
Thanks for the report. We have not yet received similar reports and will investigate further.
Thanks,
Vuforia Engine Support
Thanks for looking into this. Please let me know if i can supply you with any helpful information.
Hello @bfisker,
Is your app set to handle auto-rotation, or locked to landscape or portrait?
Normally, Vuforia doesn't do anything when the screen is getting rotated - we only do something *after* the screen has been rotated.
Thanks,
Vuforia Engine Support
In the demo-project i made, the rotation is locked to portrait mode only. This makes it easier to see the warping. However the issue appears in both portrait, landscape and auto rotation mode
I think the issue could be that the camera background view is not scaled to the correct aspect ratio of the camera feed. We have had similar issue on native android (no Vuforia) on another app that we have made. The issue was specific for a few select samsung devices and i think the solution was to calculate the aspect ratio of the camera view using another method. It was however 3 years ago, so my memory is quite vague on the details.
Getting stretched image on phone device Vuforia AR Camera
Getting stretched image on phone device Vuforia AR Camera
Getting stretched image on phone device Vuforia AR Camera
Hi
We are receiving bug reports on a simular device (Galaxy j5) where the camera seems warped and the marker tracking is very bad.
As far as i know, the bug appeared after updating the device to Android 8.1
I have made a small video to explain what 'stretched image' and 'warped camera' means. The video is made with a clean install of Vuforia 7.5.26 and build using Unity 2018.2.19f1
https://www.youtube.com/watch?v=Coro6tR63rY
MODE_QUALITY / MODE_SPEED does not result in any different behaviour.
Please let me know if anyone has any workaround
Getting stretched image on phone device Vuforia AR Camera
Hello,
Understood, but not necessarily unexpected. The mode-mapping is dynamic and can vary from device-to-device, although I'm a bit surprised that you're not seeing any differences as the system should support more than one.
I suggest you try a different device.
Thanks,
Vuforia Engine Support
Getting stretched image on phone device Vuforia AR Camera
Hello,
This could be an issue with the camera capture resolution selected by Vuforia performance sets. Try setting to MODE_SPEED or MODE_QUALITY to see if that selects a different resolution that eliminates the stretching effect.
Thanks,
Vuforia Engine Support
Hello,
After further investigation, and similar to the J5 Pro, there seems to be an issue with the Samsung J7 Pro delivering stretched frames when using Camera2 APIs after upgrade to Android 9.0.
Thanks,
Vuforia Engine Support