"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

Bug in Image after trying to take camera image in unity

Vuforia SDK Version: 4_2_3 - Description with steps to reproduce:

The bug is occure after i was trying to take image from Ar camera in unity and use that image as texture for 3d object

I was using Frame target not image target to show some 3d models , and I wanted to take image from AR camer and use it as texture for the models. I followed the tutorial you provided in the following link

https://developer.vuforia.com/library/articles/Solution/How-To-Access-the-Camera-Image-in-Unity

but the problem is when i Tyro to use pixels which is byte array from vuiforia Image class 

Image image = cam.GetCameraImage(m_PixelFormat);

 

And try to make texture2d and Use LoadImage method , the texture is always be big red question mark.

I even try to convert the Pixels value to Color32 and use it to make texture it didn't work .

also i tried to make Color array from Pixels byte array but it didn't also work it always gives me out of array exception.

also i tried was to save Pixels value that taken from Vuforia Image class and save it to SD storage, and take that file and make windows application that read any binary file that contains image byte array and save it as image to my harddrive. But it also didn't work i was always get invalidInput exception.

my last try was to use CopyToTexture method but unfortunatlly it also didn't work it throws exception

what makes me think that it's a bug that my windows application that read and write images to Byte array and save it to binary file , that when i saved image that i have to byte array and save it as binary file, then I tried to read that binary file from unity Android game and use it as texture it works fine .But when i tried to take array of bytes that i get from Vuforia image, and use my windows application to read the binary file and save it as imge . I was allways get InvalidInput exception.

I tried to Decompile your assmblies and check how CopyToTexture is trying to copy byte array from Image Class to unity Texture2d, But i didn't manage to finde any issue with it.

 

Please guys check it . I need this feature in my app very soon.

 

Best Regards.

- Development OS (Mac OS X, Windows, Linux): Windows - Mobile OS and Version: Android 4.1.2 - Mobile Device Manufacturer and Model name: Samsung Galaxy note 10.1 GT-n8000 - Do the Vuforia Sample Applications show the same behavior?: there is no any sample to demonstrate that