-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connecting multiple devices with pyrealsense2 #1735
Comments
pyrealsense2 is a direct port of the C++ API. Hope this helps! |
Thank you! It helped. I could finally implement two cameras. Let me share my code below. Again, I started from the opencv_viewer_example.py. The added functions are that there are two cameras working at the same time, and that you can save the images by pressing 's'.
|
[Realsense Customer Engineering Team Comment] |
Does anybody know how to retrieve only the serial number? I am trying to load multiple cameras using a for loop Thanks |
you could try something like: realsense_ctx = rs.context() config = rs.config() profile = pipeline.start(config) |
I wrote an example of connecting multiple Realsense cameras in Python: |
Thank you so much for figuring this out- I've been looking online for hours for how to do exactly this |
To get the serial device numbers for two samples this is what worked for me:
|
Hi,
I am trying to connect two camera devices (D415) and get their images at the same time, using pyrealsense2.
There is a description how to do exactly that here: https://github.com/IntelRealSense/librealsense/tree/master/examples/multicam
But unfortunately it doesnt help me much because it is not written with pyrealsense2.
I started from the provided example file opencv_viewer_example.py trying to modify it.
I could identify my two cameras with the code below;
But how do I move on to create separate streams for them? In the pipeline, confi`guration....? I tried everything.
I would be grateful for some sample code!
Thanks,
M
Camera Model: D415
Operating System: Linux Ubuntu
The text was updated successfully, but these errors were encountered: