IntelRealSense / librealsense

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

How to read multi D435i RGB image with python #13375

Closed HorizonRy closed 4 days ago

HorizonRy commented 2 weeks ago

Is it possible to read RGB images in real time from two USB3.0 connected 2 D435i cameras via pipeline() in the pyrealsense2 library. If it possible how can I distinguish between two different cameras

Required Info
Camera Model D435i
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version Ubuntu 20.04 LTS
Kernel Version (Linux Only) (e.g. 4.14.13)
Platform PC
SDK Version { legacy / 2.<?>.<?> }
Language Python
Segment Robot
MartyG-RealSense commented 2 weeks ago

Hi @HorizonRy Multiple RealSense cameras can be distinguished by their serial number, which can be accessed by a program. A program can either automatically build a list of all attached cameras or use the serial number to access one specific camera.

There is an example of a RealSense Python multiple camera program at the link below.

https://github.com/ivomarvan/samples_and_experiments/tree/master/Multiple_realsense_cameras

Alternatively, a pyrealsense2 script at https://github.com/IntelRealSense/librealsense/issues/1735#issuecomment-1264583048 takes the approach of creating a separate configuration for each of two cameras.

MartyG-RealSense commented 6 days ago

Hi @HorizonRy Do you require further assistance with this case, please? Thanks!

HorizonRy commented 4 days ago

Hi @HorizonRy Do you require further assistance with this case, please? Thanks!

It's helpful, Thanks!

MartyG-RealSense commented 3 days ago

You are very welcome, @HorizonRy - thanks very much for the update!