By Pixsaoul
on Tue, 07/21/2015 - 09:13
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
Could you show how you access Grayscale image, none of the formats seem to work for me at all.
Access Video in Android Project
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
Access Video in Android Project
Access Video in Android Project
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
Good for you, I don't even get that :/