Log in or register to post comments

Lenovo YOGA Tablet 2 - Stretched Camera No. 2

June 30, 2015 - 5:54am #1

Hi all

We've been experiencing a streched camera in our AR app (Unity-Android) on a Yoga Tablet 2, very similar to this locked topic: https://developer.vuforia.com/forum/android/lenovo-yoga-tablet-2-pro-stretched-camera-feed

The app was build with Unity 4.6.1 & Vuforia 4, but also rebuilding it with Unity 5.1.1 and Vuforia 4.2 didn't resolve the issue. Neither did multiple re-installs / force-quit-restarts.

Maybe Vuforia could look into this issue, since it's apparently not exactly the same hardware model as the one in the other topic?

  • Android Version: 4.4.2
  • Model Number: YOGA Tablet 2-1050F
  • Software Version: YOGA Tablet 2-1050F_150105
  • Hardware Version: LenovoPad YOGA Tablet 2-1050F

Any suggestion on how to resolve the issue is highly appreciated.

Lenovo YOGA Tablet 2 - Stretched Camera No. 2

September 30, 2015 - 12:38am #8

Hi

I use YOGA Tablet 2-1050F as well. (Unity 5.2.0f3 and vuforia5.0.5)

Device camera view vertical stretched about 1.1- 1.2 times the size of horizont.
Previous suggested solution which uninstall app and reinstall app doesn't give any change.

 

This problem is solved to apply this script.

screenSize.cs
--------------------------------------

using UnityEngine;
using System.Collections;
 
public class screenSize : MonoBehaviour {
 
// Use this for initialization
void Start ()
{
Screen.SetResolution(1920, 1200, true);
}
}
}
----------------------------------------
 
 
 
It seems just need to determine screen size as 1920x1200 which is Yoga tablet screen resolution.
 
 

Lenovo YOGA Tablet 2 - Stretched Camera No. 2

July 21, 2015 - 11:00am #7

The 880x720 dimensions are correct for the Yoga tablet and is the same for a different model of the Yoga tablet that we have tested with. You might see minor zoomed appearance, but this is deemed acceptable for that device.

Lenovo YOGA Tablet 2 - Stretched Camera No. 2

July 16, 2015 - 4:01am #6

Done - App now shows a different behaviour. Camera-Info says 880x720@30FPS.

With the app in portrait mode, the image seems almost correct, although it's still a tiny bit stretched horizontally. In landscape mode, the image is stretched vertically quite a bit. I've attached 2 screenshots to illustrate this.

Lenovo YOGA Tablet 2 - Stretched Camera No. 2

July 15, 2015 - 3:35pm #5

Could you re-install the sample app with the script from below on your device? Quit and restart the app a few times and let me know if the reported dimensions change.

Lenovo YOGA Tablet 2 - Stretched Camera No. 2

July 14, 2015 - 5:25pm #4

Thanks for providing the video background dimensions. We are looking into it.

Lenovo YOGA Tablet 2 - Stretched Camera No. 2

July 14, 2015 - 6:51am #3

Hey dm3d,

The code displays 1280x720 @ 30FPS.

Lenovo YOGA Tablet 2 - Stretched Camera No. 2

July 2, 2015 - 1:53pm #2

Could you find out what the video background dimensions are on your YOGA Tablet 2 - 1050F? If you add a Canvas and Text element in Screen Space and name the Text element "VideoModeUIText", you can use some code like this to display the VideoModeData to the screen:

using UnityEngine;
using System.Collections;

using Vuforia;
using UnityEngine.UI;

public class ShowVideoModeData : MonoBehaviour
{

void Awake()
{
    VuforiaBehaviour vb = GameObject.FindObjectOfType<VuforiaBehaviour>();
    vb.RegisterVuforiaInitializedCallback(SetCamMode);
    vb.RegisterVuforiaStartedCallback(DisplayCamMode);
}

public void SetCamMode() // callback
{
    CameraDevice.Instance.SelectVideoMode(CameraDevice.CameraDeviceMode.MODE_OPTIMIZE_QUALITY);
}

public void DisplayCamMode() // callback
{
    CameraDevice.VideoModeData vmd = CameraDevice.Instance.GetVideoMode();
    // Find Text element in scene and update it with VMD values    
    Text t = GameObject.Find("VideoModeUIText").GetComponent<Text>();
    t.text = "" + vmd.width + "x" + vmd.height + " @ " + vmd.frameRate + "fps";
}

} // end of class

 

Log in or register to post comments