-
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
Exporting ply file when multiple cameras are connected #11638
Comments
Hi @Ankush1909IIT It is possible to export data to file from multiple cameras by creating a separate pipeline and configuration for each camera, like the Python script at #1735 (comment) Whilst that script is for exporting depth and color as jpg image files, you may be able to adapt the script for .ply export instead. |
Hi @Ankush1909IIT Do you require further assistance with this case, please? Thanks! |
Hi @MartyG-RealSense , I am working on it, by trying to modify the code that you shared. I will update here if i can get it working. |
Thanks very much @Ankush1909IIT for the update. Good luck! |
Hi @Ankush1909IIT Do you have an update about this case that you can provide, please? Thanks! |
Hi @Ankush1909IIT Do you require further assistance with this case, please? Thanks! |
Unfortunately no. I will close this meanwhile. Thanks |
Thanks very much for the update, @Ankush1909IIT |
Issue Description
Hi,
I have used this code to export_to_ply for one camera connected.
`import numpy as np
import pyrealsense2 as rs
import numpy as np
print("Environment Ready")
pc = rs.pointcloud()
pipe = rs.pipeline()
#Create a config and configure the pipeline to stream
config = rs.config()
config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.rgb8, 30)
Start streaming
profile = pipe.start(config)
align_to = rs.stream.color
align = rs.align(align_to)
for x in range(10):
pipe.wait_for_frames()
frames = []
for x in range(2):
frames = pipe.wait_for_frames()
aligned_frames = align.process(frames)
print("Done")
`
I was just wondering if we have a code to perform the same task, when multiple cameras are connected. If I have four cameras, it should return 4 ply files, one for each camera.
The text was updated successfully, but these errors were encountered: