Items with no label
3338 Discussions

The depth stream of my Camera displays a green screen with directShow

troui
Beginner
2,575 Views

I try to get the video stream of my camera intel RealSense SR300 with DirectShow, the goal is to have the rgb stream, and the depth stream in greyscale.

So first, I used GraphEdit, from DirectShow, before coding, to see if it works well, and it’s not the case because the depth stream displays a green screen

 

graph.PNGgreenscreen.PNG So I made few researches and I found that the problem is possibly coming from the pixel format which directshow seems to not recognize

I tried to change the properties of the video stream with graphEdit, and the actual format is YUY2, and there are others like INVZ, INZI, INZC, etc … but I can’t use them because apparently there are not available

graphproperties2.PNG

The error text is :"this format is not currently available"

 

Or Maybe the problem is that I didn’t put enough filters in my graph to access correctly to the depth stream, I’m new with directshow...

Thanks in advance for your help !

0 Kudos
6 Replies
MartyG
Honored Contributor III
2,148 Views

I carefully researched your problem but was not able to find a solution for DirectShow, unfortunately. If you are only using DirectShow for the purposes of turning the color and depth streams greyscale, it would be much easier to do it with the current RealSense SDK 2.0 software, which is compatible with SR300. The SDK contains a piece of easy to use streaming software called the RealSense Viewer. Using this with your SR300 will make it easy to play the color and depth streams and select a greyscale setting for them.

 

You can download the RealSense Viewer software from the link below.

 

https://github.com/IntelRealSense/librealsense/releases/

 

You can get greyscale RGB with 'Y16' mode and greyscale depth by setting the "Color scheme" setting to 'Black to White' (which is likely representing depth distances by shades from black to white rather than a true B&W image).

 

Please left-click on the image below to view it in full size.

 

1.png

 

 If you prefer to use DirectShow, I would recommend seeing if the RGB mode supports Y16 and can access it.

 

*****

 

Also, please note that the RealSense forum has moved to a new site, so please post future questions there. Thanks!

 

https://support.intelrealsense.com/hc/en-us/community/topics

 

0 Kudos
troui
Beginner
2,148 Views

Thanks for your help,

But I'd rather create a program myself to make image processing without the intel realsense viewer

And my problem is not with the rgb camera but with the depth one and it doesn't seem to support Y16 format

0 Kudos
MartyG
Honored Contributor III
2,148 Views

If you cannot get greyscale depth easily with RealSense SDK 2,0, another option for creating a program would be to use the older '2016 R3' SDK with your SR300.

 

1.png

The '2016 R3' SDK can be downloaded from the link below. If you just want to capture streams, you only need to install the core 'Essentials' module and not the additional optional modules.

 

https://software.intel.com/en-us/realsense-sdk-windows-eol

 

2.png

0 Kudos
troui
Beginner
2,148 Views

I already used the sdk and it worked well,

But I need to create a virtual camera driver, to make the integration of my program(which get the video stream of the depth camera and do video processing with it) in another application easier, that is why I wanted to use directshow

Do you know if it's possible in another way ?

Anyway, thanks for your help

0 Kudos
MartyG
Honored Contributor III
2,148 Views

I would recommend posting your question on the new RealSense forum to get the input of Intel support staff, as they have access to resources that I do not and can ask questions to the RealSense engineers (I do not work for Intel). Intel's support team are no longer assisting on this old forum since the move.

 

https://support.intelrealsense.com/hc/en-us/community/topics

0 Kudos
troui
Beginner
2,148 Views

I will check there ,

Thanks

0 Kudos
Reply