IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.56k stars 4.82k forks source link

The demo requires Depth camera with Color sensor #11517

Open rongyaoxiaohuihui opened 1 year ago

rongyaoxiaohuihui commented 1 year ago

Required Info
Camera Model { R200 / F200 / SR300 / ZR300 / D400 }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version {Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS
Kernel Version (Linux Only) (e.g. 4.14.13)
Platform PC/Raspberry Pi/ NVIDIA Jetson / etc..
SDK Version { legacy / 2.<?>.<?> }
Language {C/C#/labview/nodejs/opencv/pcl/python/unity }
Segment {Robot/Smartphone/VR/AR/others }

Issue Description

<Describe your issue / question / feature request / etc..>

rongyaoxiaohuihui commented 1 year ago

The demo requires Depth camera with Color sensor

MartyG-RealSense commented 1 year ago

Hi @rongyaoxiaohuihui Which demo program are you referring to, please?

If it is the align_depth2color.py one that has an RGB sensor check, this program will not work with camera models that do not have an RGB sensor. With the D405 camera model, it has RGB but does not have a separate RGB sensor as RGB comes from the depth sensor. align_depth2color.py can work with the D405 model if the RGB sensor check is commented out of the script. A RealSense user at https://github.com/IntelRealSense/librealsense/issues/11329 provides a version of the script that has this disabling of the check.