Log in or register to post comments

Getting stretched image on phone device Vuforia AR Camera

December 4, 2018 - 7:43am #1

Hey i am getting correct image output in unity player , but if i install this in my android phone ( Samsung J7 pro) , i am getting a streached output image . Any advice what should i do?

Getting stretched image on phone device Vuforia AR Camera

December 12, 2018 - 12:00am #8

medabit wrote:

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.

 

medabit wrote:

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

December 11, 2018 - 2:21pm #7

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

Getting stretched image on phone device Vuforia AR Camera

December 11, 2018 - 1:55pm #6

Hello,

Thanks for the report. We have not yet received similar reports and will investigate further.

Thanks,

Vuforia Engine Support

Getting stretched image on phone device Vuforia AR Camera

December 11, 2018 - 5:51am #5

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

December 5, 2018 - 11:52am #4

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

December 5, 2018 - 5:02am #3

Hey i am sorry but ..Mode_speed and Mode_quality are not working in changing the resolution

Getting stretched image on phone device Vuforia AR Camera

December 4, 2018 - 5:23pm #2

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.

https://library.vuforia.com/content/vuforia-library/en/reference/java/classcom_1_1vuforia_1_1CameraDevice.html

https://library.vuforia.com/content/vuforia-library/en/reference/unity/classVuforia_1_1CameraDevice.html#af6c196d8948b774c4d147cf9eab1a900

Thanks,

Vuforia Engine Support

Log in or register to post comments