Log in or register to post comments

Camera image appeared flipped on the Nexus 6 back camera

May 18, 2016 - 4:49am #1

Vuforia SDK Version: 5.5.9 -

Description with steps to reproduce: Camera image appeared flipped on the Nexus 6 back camera. (Vuforia SDK 5.5.9, Unity 5.3.4.1f)

CameraDevice.Instance.SetFrameFormat(Image.PIXEL_FORMAT.RGB888, true);
CameraDevice cam = CameraDevice.Instance;
Image image = cam.GetCameraImage(Image.PIXEL_FORMAT.RGB888);

Texture2D texture = new Texture2D(image.Width, image.height);
image.CopyToTexture(texture);
var bytes = texture.EncodeToJPG();

String path = "C:\image.jpg";
var file = File.Open(path, FileMode.OpenOrCreate);
var binary = new BinaryWriter(file);
binary.Write(bytes);
file.Close();

Saved image is flipped.
-

Development OS (Mac OS X, Windows, Linux): Windows -

Mobile OS and Version: Android -

Mobile Device Manufacturer and Model name: Nexus 6 -

Do the Vuforia Sample Applications show the same behavior?: There are no any samples about image capturing.

Log in or register to post comments