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

Add blueprint to Live Camera Edge Detection example #5613

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion examples/python/live_camera_edge_detection/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import cv2
import rerun as rr # pip install rerun-sdk
import rerun.blueprint as rrb


def run_canny(num_frames: int | None) -> None:
Expand Down Expand Up @@ -62,7 +63,18 @@ def main() -> None:
rr.script_add_args(parser)
args = parser.parse_args()

rr.script_setup(args, "rerun_example_live_camera_edge_detection")
rr.script_setup(
args,
"rerun_example_live_camera_edge_detection",
blueprint=rrb.Vertical(
rrb.Horizontal(
rrb.Spatial2DView(origin="/image/rgb", name="Video"),
rrb.Spatial2DView(origin="/image/gray", name="Video (Grayscale)"),
),
rrb.Spatial2DView(origin="/image/canny", name="Canny Edge Detector"),
row_shares=[1, 2],
),
)

run_canny(args.num_frames)

Expand Down
Loading