Camera from Rokid glasses

0 votes
asked Aug 31, 2022 by smolvik13 (120 points)
We are building a project with Unity where we have a mobile android phone and connected Rokid Air Pro glasses to this phone. We are using 4.5.0 SDK. We need to get a video from glasses camera and make image tracking with it.  
We used "ImageTracking_Targets" sample, it can see the glasses camera and it can switch to it but it doesn't render any picture from camera and shows a black screen. Tried to change camera settings but it didn't help.

Then we used "Camera_CustomCamera" sample. It shows picture only from main camera of mobile phone. We tried to open plugin and change camera id in this plugin, but it didn't help.

Then we tried to use "Eyewear_DeviceHasNoTracking" sample. We used this old documentation https://help.easyar.com/EasyAR%20Sense%20Unity%20Plugin/latest/Samples/DeviceSupport/Eyewear_DeviceHasNoTracking.html
We enabled invision.sidplay_mode-vr for Android Platform. Then we changed DeviceModel in scriptable objects in "Resources/Parameters..." folders to match our device Models. In the end, we only have a pink screen, cannot see anything, even objects and any UI on the scene.

Is it possibple to somehow show a video from eyewear camera and make image tracking with it? Would appreciate any help very much!

1 Answer

0 votes
answered Dec 26, 2022 by kenn (18,790 points)
You are not looking deep enough. Try read AR Foundation or Nreal frame source, what you need is something like that. Though it may not be that simple if you do not understand what is EasyAR Sense and its data flow. I am not 100% sure that you can make it work because what we know for sure is that EasyAR is ready for eyewear support but maybe the opposite is not.

It would be better to wait for official support from Rokid.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...