EN ONNX Lane and BSD Detection - ajouatom/openpilot GitHub Wiki

ONNX Lane and BSD Detection

Menu: Driving > Steering > ONNX Lane & BSD


ONNX Lane and BSD Detection

ShareData

Enable on-device solid/dashed lane and camera blindspot detection. BSD checks only the requested lane-change side at 30–120 km/h with a target lane at least 3 m wide. Turning this off stops the vision service and preserves vehicle BSD. mici shows lane types, processing time, and BSD status. When enabled, the service starts after onroad initialization and model/CAN/Panda readiness have settled for 0.5 seconds. Engaging cruise is not required. It stops offroad and waits again at the next onroad start.

  • Type: Toggle
  • Default: 0
  • Range: 0 ~ 1
  • Menu: Driving > Steering > ONNX Lane & BSD

Behavior

When enabled, the comma device classifies camera lane markings and checks blind spots. Disabling it stops the vision service while preserving vehicle BSD.

  • Lane classification runs continuously while camera frames are available.
  • Camera BSD alternates across configured sides whose model-estimated lane width is at least 2 m. Speed and lane-change direction do not gate detection.

When enabled, the service waits for onroad initialization and model/CAN/Panda readiness to settle for 0.5 seconds. Engaging cruise is not required; it stops offroad and waits again at the next onroad start.

Usage

Use this switch in Carrot Web. Existing saved values are preserved. Once startup conditions are met, the setting and mici display update within a few seconds.

The mici VISION card shows left/right lane types, the latest processing time, and BSD status. Hiding the camera view still leaves the card and BSD warnings visible. BSD walls are amber for OEM-only detection, blue for vision-only detection, and light red when both detect. Each side displays its own sources.

Reference

The update includes OpenCV, installed into a local writable directory during normal device startup. No separate pip installation is needed.

BSD standby means that side is not currently being evaluated. No detection does not guarantee the entire blind spot is clear; after disabling the service, its last results disappear when they expire.