Visual Quickstart
Visual Quickstart: Color Detection
Section titled “Visual Quickstart: Color Detection”Start here if you want to see Retriever do something immediately. The first run is deterministic and hardware-free; the second run uses a real webcam and Rerun when available.
This is a source-checkout demo. The PyPI distribution target is retriever-core, while examples, Rerun, graph rendering, and tutorial assets live in the repository environment.
pixi run demo-webcam-detection-mockpixi run demo-webcam-detectionStep 0: Install the Source Environment
Section titled “Step 0: Install the Source Environment”If you only need the library API after release, install the package:
Step 1: Run the Deterministic Smoke
Section titled “Step 1: Run the Deterministic Smoke”Typical output:
What happened:
- a camera Flow emitted synthetic image frames,
- a detector Flow sampled the latest frame when triggered,
- a display Flow printed detections,
- the graph ran without camera permission, GUI windows, or backend setup.
Step 2: Switch to Webcam and Rerun
Section titled “Step 2: Switch to Webcam and Rerun”This uses the same tutorial pipeline with real camera input. On a machine with a working viewer, Rerun shows image frames and detections over time. If Rerun is unavailable, the command still emits stdout events so you can separate runtime correctness from viewer setup.
Step 3: Pick the Right Variant
Section titled “Step 3: Pick the Right Variant”| Need | Command |
|---|---|
| Reliable first smoke, no hardware | pixi run demo-webcam-detection-mock |
| Live webcam with automatic Rerun/stdout fallback | pixi run demo-webcam-detection |
| Live webcam with multiprocessing and forced Rerun | pixi run demo-webcam-detection-mp-rerun |
| Mock frames with forced Rerun | pixi run python -m examples.tutorial.b_ir_and_execution.06_dora_perception --backend in-process --camera-mode mock --visualize rerun --duration 10 |
| Portable recording for replay/debugging | pixi run demo-webcam-record |
Why This Is First
Section titled “Why This Is First”The color-detection path is small but representative: it has sensor input, typed Flow outputs, asynchronous timing, visualization, and an immediate debugging story. The mock run proves the graph without hardware; the webcam run proves the live visual path. After this works, the same graph can be stepped, inspected, recorded, replayed, and moved to another backend.
