"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Camera Issue - Stretched

Hello,

I am working on Vuforia SDK 2.0.6 for Android.

The Camera resolution is not good on GALAXY S3 and the view is stretched.

For example, I have tested the samples VideoPlayBack/Framemarker but the images scanned looked stretched on the Galaxy S3, The marker which is normally a squarre looked like a rectangle.

I digged out and I think the problem is the camera calibration.

 

[Camera Device Mode Setting is MODE_OPTIMIZE_QUALITY] and I got 800x480 on Landscape.

The problem is that the screen resolution of the Galasy s3  is 1280,720 on Landscape.

 

I have set the focus mode to FOCUS_MODE_TRIGGERAUTO but it does not fix the issue.

 

Has anybody encountered this issue ? 

Any help please,  

 

Thanks

 

AlessandroB

Wed, 02/20/2013 - 16:25

Hi, all the samples contain a function called configureVideoBackground() (see native code in FrameMarkers.cpp for instance);

Hi, videoMode.mWidth and videoMode.mHeight represent the resolution of the Camera image (i.e. the video frames captured by the camera); this has no relationship with your device screen resolution, which can be much higher of course (e.g. 1280 x 720).

Hello,

Thanks for your input , it is appreciated.

I have tested several times the FrameMarker sample app (v2.0.6) without any modification on my Galaxy S3 and it look stretched; it is very noticeable when you turn the phone in Portrait.

Hello,

Thanks for your input, it is really appreciated.

Here are my device information. It is a Galaxy S3.

Model number : SGH-T999V

Android Version : 4.1.1

Baseband version : T999VVLDLL1

Build Number : JR003L.T999VVDLL1

 

Hi, meanwhile, as a workaround, you could retrieve the actual width and height used by your camera via this code (and use these values in the configureVideoBackground() instead of the videoMode.mWidth and videoMode.mHeight which are incorrect):

Hello,

Thank you for the input, it is appreciated.

Although this workaround does not work. 

In the startCamera method:

 

Hello,

I uninstalled the app, then installed it again.

Everything's fine. It is not streched anymore. 

Thanks for the feedback; it is really really appreciated.

 

Thanks again