Log in or register to post comments

Access Video in Android Project

July 21, 2015 - 2:13am #1

I am currently working on an Android project where I need to access the video stream from the camera.

Unlike the non Eyewear SDK, the video stream I get is in Grayscale so I needed to change format. I tried to use setFrameFormat() as it is used in the SampleApplicationSession.java (in the startAR() method). After a few tests, the setFrameFormat() does not seems to work in the Eyewear version, crashing when I try to get RGB565, or just doing nothing when I try another format.

how can setFrameFormat() be used in the Eyewear SDK ? or is there any other way to get a RGB (565 or 888) version of the video stream with the Eyewear SDK ?

Thanks.

Access Video in Android Project

July 21, 2015 - 8:20am #6

Good for you, I don't even get that :/

Access Video in Android Project

July 21, 2015 - 7:50am #5

RGB565, RGB888 or YUV would be fine, but at that time I only have 4 Grayscale images in each frame.

Access Video in Android Project

July 21, 2015 - 7:46am #4
Which format are you using exactly? RGB565?
 
Does anyone know where I should insert Vuforia.setFrameFormat(PIXEL_FORMAT.RGB565, true); in Unity code?

Access Video in Android Project

July 21, 2015 - 6:42am #3

I am not using Unity for this project, just native Android with Android Studio, so I used this: https://developer.vuforia.com/library//articles/Solution/How-To-Access-the-Camera-Image-the-Native-APIs

I have not tested the article you are refering too so I cannot give you an appropriate answer sorry.

 

Access Video in Android Project

July 21, 2015 - 6:06am #2

Could you show how you access Grayscale image, none of the formats seem to work for me at all. 

This article (https://developer.vuforia.com/library/articles/Solution/How-To-Access-the-Camera-Image-in-Unity) also talks about how to access OpenGL texture, but I can not find the methods which existed before rebranding the package into Vuforia. Is the article outdated?

Log in or register to post comments