Intel Realsense d405 no RGB driver shown after SDK installation
I want to use my intel realsense as a webcam in a python project.
Camera works in RealSense Viewer but can not be reached as video source (neither as cam in windows cam app it gives error). Checked the device manager under the Cameras I can see the "Intel Realsense Depth Camera 405 Depth" but no "RGB". Tried on multiple computers but the result is same.
What am I missing? Do I have to install RGB driver seperately(can not find the link)?
Hi Guvensenturk Your Device Manager is correct for the D405 camera model. D405 does not have an RGB sensor, as it instead obtains its RGB from the depth sensor. This enables the D405 to be compact in size but also means that the camera cannot be accessed as an ordinary RGB webcam by non-RealSense programs, unfortunately.
Hi Marty thank you for the answer I do not understand development page have python examples:
Does D405 can not work with these?
Python programs written in the RealSense SDK's pyrealsense2 wrapper can access RGB from the D405. By 'non-Realsense' programs, I mean ones that were not created in the RealSense SDK, such as the Windows Camera app.
Whilst the Python examples on that link can work with D405, the Align & Background Removal example ('align_depth2color.py') requires its code to be edited to remove a check for the RGB sensor when using it with D405. A RealSense user at the link below provides an edited version of the example that removes the check and allows the script to work with D405.
opencv_viewer_example.py should meet your needs.
align_depth2color.py meanwhile produces an output like the image below.
align_depth2color.py needs to be edited to remove the check for the presence of an RGB sensor, which D405 does not have.
opencv_viewer_example.py has not previously been tested with D405 as far as I am aware (the Python examples were created years before the D405 model was launched). It should similarly have the RGB sensor check commented out, which can be done by referring to the code in the above link. Though you should be able to avoid the program exiting simply by commenting out the exit(0) instruction on line 29, though 'The demo requires Depth camera with Color sensor' message will still be printed unless you comment out line 28 too.
Please sign in to leave a comment.