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

Visualize ZED Depths, Get Camera Intrinsics, Baseline #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ashwin-balakrishna96
Copy link

@ashwin-balakrishna96 ashwin-balakrishna96 commented Mar 25, 2024

Add support for extracting camera intrinsics and baselines + visualizing ZED depths for all camera views for a randomly selected timestep of a DROID trajectory.

@ashwin-balakrishna96 ashwin-balakrishna96 marked this pull request as ready for review March 26, 2024 02:15
QazyBi

This comment was marked as resolved.

# self.serial_number + '_right': self._right_depth.get_data().copy()}
if self.depth:
self._cam.retrieve_measure(self._left_depth, sl.MEASURE.DEPTH, resolution=self.zed_resolution)
self._cam.retrieve_measure(self._right_depth, sl.MEASURE.DEPTH_RIGHT, resolution=self.zed_resolution)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect you need additional line in __init__ to be able to retrieve depth from right camera:

        init_parameters = sl.InitParameters()
        init_parameters.camera_image_flip = sl.FLIP_MODE.OFF
        init_parameters.enable_right_side_measure = True  # Activate right side measure
        init_parameters.set_from_svo_file(filepath)

@maximelianos
Copy link

droid/scripts/visualizations/visualize_zed_depth.py, line 51: memory usage spikes, program crashes. What can be the reason?

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

Successfully merging this pull request may close these issues.

3 participants