Skip to main content
ados-vision is the agent’s vision engine. It owns the camera-frame fast path that extensions are too small and too sandboxed to own. For every camera it handles, it captures or taps frames, downscales them, and publishes them into a per-camera shared-memory ring that consumers map and read. It keeps the registry of inference models, serialises inference on the shared accelerator, and fans detections back out. It runs on the drone and visor profiles. The supervisor starts it when vision.enabled is true and a camera source exists, or when the top-level cameras list declares a captured camera, since the engine is the only owner of those.

Inference backends

vision.backend picks where models run: The NPU sidecars are separate units because the vendor runtimes are separate. The engine talks to them over IPC and holds a lease so one model runs on the accelerator at a time. Extensions never talk to the engine directly. They call the plugin host, which checks the extension’s vision capability and forwards the call to the engine over /run/ados/vision.sock.

Detection on demand

With vision.detection_demand: on_demand (the default), the detector runs on a camera only while some consumer holds a lease on it. An operator surface takes, renews or releases a lease with:
vision.detection_demand: always runs the detector on every camera all the time.

Click-to-follow

POST /api/vision/designate locks a camera’s tracker onto the box an operator clicked, overriding the auto-lock.
bbox is in pixels of the frame’s own resolution, origin top-left. class_label and confidence are optional. A request the engine rejects is 400; an engine that is off or not running is 503, so a designate is never dropped silently.

Live detections

WS /api/vision/detections/ws streams each detection batch as JSON:
A browser authenticates with a ticket for scope vision.detections from POST /api/_ws/ticket; a native client passes X-ADOS-Key. A client that connects after a detection receives the last batch at once if it is under a second old. GET /api/vision/detections/latest returns the last batch over HTTP.

Engine state

Both answer 503 when the engine is not running, never an empty result.

Models

Models live in vision.models_dir (default /opt/ados/models/vision), with the cache capped at vision.models_cache_max_mb.

Select the detector

PUT /api/vision/detector writes the vision.detector block (model_id, model_path, enabled: true) into /etc/ados/config.yaml, keeping every other key, then restarts ados-vision. Without model_path the agent resolves the id against the installed files: <id>.<ext> for an upload, <id>-<board>.<ext> for a registry download. An id with no installed file is refused with 409.

Upload a custom model

POST /api/vision/models/upload is a multipart request with two parts:
  • a file part: the model (.rknn, .onnx or .tflite);
  • a metadata part: JSON {id, name, classes, head, input_w, input_h, runtime, board_match}.
The file is stored as <id> plus the suffix for runtime (rknn → .rknn, tflite → .tflite, otherwise .onnx); the uploaded file name is not used. The id must match [A-Za-z0-9._-] with no ... Re-using an id replaces the earlier upload. A missing id, an empty file or a *.engine file is 400.

Configuration

Multi-camera

The cameras the engine reads.

Follow Me

An extension that flies from the engine’s tracks.
Last modified on November 28, 2026