Example

Detection Pipeline

Run only the classes you care about and shed the rest of the load.

YOLO11Filters

Steps

  1. Read the current filters from `/api/detection/filters`.
  2. Disable classes you do not need; the change persists and applies live.
  3. Disabled classes are dropped at the detector, freeing tracking, Re-ID and analytics.

Command

shell
curl -X POST http://127.0.0.1:8787/api/detection/filters \
  -H "content-type: application/json" \
  -d '{"vehicle":false,"animal":false}'

Result

Output

A lighter pipeline that only detects and tracks the enabled classes.

← All examples · API reference