Autonomous-Driving Camera Perception Pipeline
Design an on-vehicle pipeline that turns synchronized camera frames into timely, version-consistent perception snapshots for downstream planning.
Problem statement
For this exercise, assume an on-vehicle platform captures synchronized frames from eight cameras, preprocesses and batches them, runs a versioned perception model, fuses detections, and publishes one timestamped perception snapshot to downstream planning.
Each frame carries camera identity, capture time, sequence, calibration version, and integrity status. Each snapshot identifies its exact input frame set and model version and includes detected objects, lane geometry, confidence, camera coverage, and freshness.
A snapshot must never mix incompatible calibration or model versions, and incomplete inputs must be marked degraded or stale rather than silently presented as complete.
Camera capture, online perception, bounded diagnostic telemetry, and short replay buffers are in scope; model training, path planning, actuator control, detailed camera hardware, and non-camera sensor fusion are out of scope.
What to build
- Accept camera frames with identity and integrity metadata, validate their ordering and calibration, and assemble time-aligned frame sets for perception.
- Preprocess each frame set, execute a compatible perception model, fuse detections, and publish a timestamped snapshot with objects, lane geometry, confidence, and exact lineage.
- Continue with an explicit degraded or stale result when policy permits, while identifying missing, late, or corrupted inputs and never claiming incomplete coverage is complete.
- Retain bounded telemetry and a short replay window that can reconstruct the inputs, versions, decisions, and drop reasons for recent snapshots without delaying the live path.
At scale
- Eight cameras each produce 30 frames per second, for 240 camera frames per second in aggregate.
- Raw camera capture peaks near 5 GB per second, so copying and buffering decisions materially affect the data path.
- A complete or explicitly degraded perception snapshot must reach downstream planning within 100 milliseconds at the 99th percentile.
- Queues and replay storage must be bounded; expired work is less valuable than a newer frame set and must not create an ever-growing latency backlog.