Skip to main content

Create your first pipelines

A pipeline is a flow that takes input, processes it, and produces an output. In first-use terms, it is how a camera image becomes an event, notification, stored image, or Home Assistant action.

In Toposync, mapped camera pipelines can produce Spatial Events: events that carry camera, area, position, object state, lifecycle, and image context instead of only a generic detection message.

This page is only a first pass. The full pipeline reference lives in Pipelines.

Start from the camera

The easiest first pipeline usually starts from a camera. Camera screens may offer presets or helpers that generate a pipeline for common cases.

Use those helpers when available. They keep the first graph simpler and reduce configuration mistakes.

Camera presets

Camera presets are the safest starting point for camera event pipelines. They also encode the current product contract: downstream storage, throttling, and notifications should use payload.subject.id, not a raw tracker id.

PresetMappingUse when
Simple people detectionNot requiredYou want a first smoke test or an unmapped camera pipeline.
Spatial Events for individual peopleRequiredYou want one event per tracked person, with camera, area, and position context.
Grouped Spatial Events for presenceRequiredYou want fewer notifications during one continuous activity session.
Presence by areaRequiredYou want mapped people or pets grouped by proximity in the camera area.
Vehicle stoppedRequiredYou want vehicle detection plus speed/stopped logic.

Choose the simple preset first when the camera is not calibrated yet. Choose a mapped preset when you need areas, world coordinates, quieter grouped presence, or speed-based rules.

A simple first graph

A useful first pipeline can be:

  1. Read a camera image or stream frame.
  2. Detect motion or objects.
  3. Restrict the result to one or more areas.
  4. Store a useful image or crop.
  5. Send a notification or expose a result.

Do not start with many branches, many cameras, or custom models. Validate one simple result first.

Use areas to reduce noise

Areas are one of the best ways to make pipelines useful.

Examples:

  • person in Sidewalk may be normal;
  • person in Backyard may be important;
  • vehicle in Driveway may matter only if it stopped;
  • motion near Pool may need a different rule.

If your pipeline is noisy, improve areas before adding more logic.

Keep outputs modest

For the first test, choose one output:

  • store an image;
  • send a notification;
  • show an event;
  • update a Home Assistant entity or automation later.

Avoid storing too many images or running many high-frequency flows until you understand storage and CPU usage.

When to use a processing server

Use the main Toposync instance for the first simple flow. Consider a processing server later when:

  • CPU usage is high;
  • you run multiple cameras;
  • you add vision models;
  • the Home Assistant add-on runs on low-power hardware;
  • you want a stronger machine to handle camera or AI work.

See Processing server on Linux and macOS when you are ready.

Next: Next steps.