Skip to content

Latest commit

 

History

History
88 lines (60 loc) · 2.57 KB

README.md

File metadata and controls

88 lines (60 loc) · 2.57 KB

rerun.io

Computer Vision & Robotics Integration: rerun_sdk - Towards Real-Time Data Analytics


Alt text

Objective: Utilizes Rerun.io for precise 3D visualizations in Computer Vision, including animations of Sine Wave Surface, Bessel Wave, and Spheres. Point logging feature of Rerun.io for mapping and displaying 3D coordinates.


DNA Abacus animation
Figure: DNA Abacus. To run, execute: python src/dna_abacus.py


1. Setup

conda create -n rerun python=3.8
conda activate rerun
pip install rerun-sdk matplotlib scipy

Official Docs: rerun.io


2. Usage

Example 1. Spheres Visualization (spheres_row.py):

python src/demo_rerunio_graphics/spheres_row.py
  • Initialize rerun: init_rerun(data_name).
  • Create positions and colors for spheres: create_positions(num_positions, start, end) and create_colors(num_colors, start, end).
  • Log points of spheres: log_points(name, positions, colors, radii).

Example 2. Bessel Wave Animation (3d_bessel.py):

python src/demo_rerunio_graphics/3d_bessel.py
  • Initialize rerun: init_rerun(data_name).
  • Create Bessel wave positions and log points: create_bessel_wave(x, y, t, frequency, amplitude, phase_shift) and log_points(name, x, y, z, radii).
  • Equation: $z = \text{Bessel function}(\text{frequency} \cdot r + t) \cdot \cos(frequency \cdot \theta + \text{phase shift})$.

Wave Creature animation
Figure: Wave Creature. To run, execute: python src/demo_rerunio_graphics/wave_creature.py


Example 3. Sine Wave Animation (wave_creature.py):

python src/demo_rerunio_graphics/wave_creature.py
  • Initialize rerun: init_rerun(data_name).
  • Generate positions and colors: create_positions(x, y, z) and create_colors(z, colormap).
  • Animate waving flag background: animate_WaterMesh(t, bg_x, bg_y).
  • Animate sine wave surface: animate_surface(t, total_duration, x, y, colormap).
  • Equation: $z = \sin(\sqrt{x^2 + y^2} - t) + \text{components}$.

License & Acknowledgments