Topic locked

CameraDevice.GetCameraImage() is gone??

July 18, 2014 - 5:43am #1

Hi,

At twnkls we have a cool idea for a large project, for which we need access to the pixel data of the tracked image.

In the past it was possible to register a desired image format, for example for a grayscale image, using CameraDevice.GetCameraImage(Image.PIXEL_FORMAT). The function is also still mentioned in the on-line reference here: https://developer.vuforia.com/resources/api/cameradevice-class-reference-0

But now this function seems to have been removed, is that correct? I can't find it in the headers anymore. Or is there still a way to get access to an array of RGB values in an efficient way? (Having to copy it out of an OpenGL texture (GPU -> CPU) does not sound very efficient)

There is another version of the reference here, in which the method is indeed gone: https://developer.vuforia.com/resources/api/qcarcameradevice-class-reference-0

We would need this for both native iOS and native Android...

Thanks in advance,
Lex

CameraDevice.GetCameraImage() is gone??

July 22, 2014 - 2:20am #4

You're welcome.

CameraDevice.GetCameraImage() is gone??

July 22, 2014 - 1:53am #3

It's so good to hear that it's still possible!

Thank you very much for the info and the fast response,

Lex

CameraDevice.GetCameraImage() is gone??

July 21, 2014 - 7:35am #2

The API is still there, but with Unity API you need to use the .Instance property of the CameraDevice class (as this is a singleton), i.e.:

CameraDevice.Instance.GetCameraImage()

If you use the native API, the classes to use are different (you need to use the State class).

See these 2 articles:

https://developer.vuforia.com/resources/dev-guide/unity-camera-image-access

https://developer.vuforia.com/forum/faq/android-how-can-i-access-camera-image

 

Topic locked