-
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
How to get the intrinsic parameters with the Python wrapper? #869
Comments
Hi @felix-tracxpoint cfg = pipeline.start() # Start pipeline and get the configuration it found
profile = cfg.get_stream(rs.stream.depth) # Fetch stream profile for depth stream
intr = profile.as_video_stream_profile().get_intrinsics() # Downcast to video_stream_profile and fetch intrinsics
print intr.ppx We are trying to keep the SDK open to non-video extensions in the future, that's why a downcast (to |
Thanks, this is very helpful! |
Has this been improved since this issue was created? Or do we still need to start a pipeline to retrieve the intrinsics from the camera? |
you no longer need to create a pipeline. You can query devices from a context object and then query it's sensors, or just query all available sensors directly from the context object. From here you can grab a list of all supported stream profiles, and use the same logic as above to get the intrinsics for each |
I presume it's something obvious I had overlooked.
The text was updated successfully, but these errors were encountered: