Items with no label
3335 Discussions

R200 camera initialization problem with Vuforia

CYang49
Beginner
2,020 Views

Hi everyone,

There are some problem confusing in development of R200 application with Vuforia:

Scenario :

1. I want to use Vuforia to develop AR application with R200 camera.

2. The RGB camera of R200 is used to capture real scene by Vuforia, and the Depth Stream is used to build depth mask for occlusion.

Problem :

 

When Vuforia opens R200 RGB camera first(only RGB camera is open), i can not enable depth stream and initialize camera in an another normal operation. The system will return "item_unavailable".

( I am sure that the camera and the script are functional normally, and SR300 can work normally in this situation.)

Regards,

Kyle Yang

0 Kudos
5 Replies
MartyG
Honored Contributor III
418 Views

In some applications, the R200 freezes up or crashes if it is running at a speed of 60 frames per second (FPS). A workaround for this - if it is indeed the cause of your depth camera problem - that has been listed in the RealSense SDK's release notes is to reduce the camera's speed to 30 FPS.

I could not find an option in Vuforia to set a maximum FPS. My research suggested that if you set the frame rate in the scripting of whatever platform you are using with Vuforia (e.g Unity) then the camera FPS in Vuforia changes. In Unity, for example, the setTargetFrameRate instruction is used.

https://www.youtube.com/watch?v=IAy8kRHDULA Unity Tips and Tricks: Setting the Target Framerate - YouTube

CYang49
Beginner
418 Views

Hi MartyG:

Thank you for the reply and suggest.

I tried your suggest then it still can not be initialize too.

I think the setTargetFrame is not the stream setting of the input camera (R200). It is about the frame rate of the output application.

0 Kudos
MartyG
Honored Contributor III
418 Views

It was the belief of the Vuforia users that provided that information that changing the frame rate of the output application would cause the RealSense camera's FPS to reduce.

It looks as though 'item_unavailable' is an error generated by Vuforia, as other people have got that error when using Vuforia with various applications. This makes it difficult to diagnose, since there is not widespread experience of Vuforia on this forum.

I did find on here a post from a couple of months ago where another user wanted to use Vuforia with Unity. This might be of use to you if you have not seen it already.

0 Kudos
CYang49
Beginner
418 Views

Thanks your reply, but I wonder that why SR300 streams can be initialized individually in such situation.

Is there something different about DCM working principle between SR300 and R200 ?

0 Kudos
MartyG
Honored Contributor III
418 Views

The R200 and SR300 are not the same type of IR hardware. This page explains the difference well.

https://github.com/IntelRealSense/librealsense/blob/master/doc/camera_specs.md librealsense/camera_specs.md at master · IntelRealSense/librealsense · GitHub .

0 Kudos
Reply