3 Replies Latest reply on Jun 7, 2018 3:06 AM by Lab

    Select Camera by S/N - Python3.5 and Pyrealsense2


      I've 2 Intel realsense D415. I'm Using a NUC with Xubuntu 16.04 and python 3.5.2. I can find only this documentation and examples: https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python

      My problem is that I need to select the camera to use by serial number to be sure to select everytime the same camera.

      import pyrealsense2 as rs  
      = rs.pipeline()
      = rs.config()
      = config.resolve(pipeline) 

      This code print this: < pyrealsense2.device: Intel RealSense D415 (S/N: 805212060066) >

      I need to check the S/N and in case it's not the right one, I would need to pass to the second camera, then the third....