Examples
Each example is a pipeline in Watching mode on a model trained on COCO, such as RF-DETR or YOLO (see Models), and a rule made with New rule in Event rules. Check each one with Check and tune before you rely on it.
People who wait longer than 2 minutes
Section titled “People who wait longer than 2 minutes”- Build Camera > Detect objects (
person) > Track > Area (the counter) > Dwell > Event, the Event namedLong wait. - Set Longer than of Dwell to
120s. - Save the pipeline.
- Rule: When
Long wait, Then Send email with{count} people wait at the counter.
Leave Inside by of the Area on Bottom centre, so a person counts where they stand.
People per hour over MQTT
Section titled “People per hour over MQTT”- Build Camera > Detect objects (
person) > Track > Line > Count > Event, the Event namedGate hourly. - Add a Timer with Every Hour. Link it to Send now of the Event and to Reset of the Count. The report carries the hour’s values, then the count starts again.
- Save the pipeline.
- Rule: When
Gate hourly: report, Then Publish MQTT message to your broker’s recipient, with a message such asIn {in}, Out {out}.
Draw the line across the whole path. In is the side its arrow points to.
Alarm when the lobby is full during opening hours
Section titled “Alarm when the lobby is full during opening hours”- Build Camera > Detect objects (
person) > Area (the lobby) > Count > Compare (At least20) > Event, the Event namedLobby fullwith At least30s. - Add a Time window, Monday to Friday, 08:00 to 18:00, and link it to Only while of the Event.
- Save the pipeline.
- Rule: When
Lobby full, Then Set output with Follow the rule for a lamp, or Send email with{count} people in the lobby.
No Track node: Count on objects counts the people in the area now. At least keeps a group that walks through from setting off the alarm.
A vehicle stopped too long
Section titled “A vehicle stopped too long”- Build Camera > Detect objects (
car,truck,bus) > Track > Area (the fire lane) > Stationary > Event, the Event namedVehicle stopped. - Set Still for of Stationary to
300s. Raise Movement allowed (default 3 %) if a parked vehicle never counts as still. - Save the pipeline.
- Rule: When
Vehicle stopped: object entered, Then Send email withA {class} stands in the fire lane.
For a rule on each new object, set the rule’s Dead time to 0: it counts per camera and would skip the next object.