Skip to content
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

Need help in using multi cameras #6181

Closed
Tom127 opened this issue Apr 2, 2020 · 2 comments
Closed

Need help in using multi cameras #6181

Tom127 opened this issue Apr 2, 2020 · 2 comments

Comments

@Tom127
Copy link

Tom127 commented Apr 2, 2020

Required Info
Camera Model { D435 }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version {Linux (Ubuntu 16)
Kernel Version (Linux Only) (e.g. 4.14.13)
Platform PC
SDK Version pyrealsense2
Language python
Segment {Robot }

Issue Description

@MartyG-RealSense @dorodnic
Hi, I'm using two D435 cameras in my PC, I have two situations now:

  1. using number1.py read image from camera1, number2.py read image from camera2.
  2. code1 read images from camera1, and code2 read images from camera2 in one .py file.
    I don't know how to bind .py file with camera, so that number1.py won't turn on camera2, or code1 won't turn on camera2. How should I do?

ps. I can already read one camera with my computer by align-depth2color.py

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Apr 2, 2020

It sounds as though what you need to do is access cameras by their specific serial number in your '1' and '2' scripts, to make sure that each script only talks to a specific camera. The link below has an example of Pyrealsense2 code for such a setup.

#1735 (comment)

@Tom127
Copy link
Author

Tom127 commented Apr 3, 2020

It sounds as though what you need to do is access cameras by their specific serial number in your '1' and '2' scripts, to make sure that each script only talks to a specific camera. The link below has an example of Pyrealsense2 code for such a setup.

#1735 (comment)

@MartyG-RealSense

That's exactly what I want. Thank you so much!

@Tom127 Tom127 closed this as completed Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants