Skip to content

Crowd Detection

Crowd Detection is used to identify a crowd of configurable size in a designated area, being able to detect up to 50 people. This can be particularly useful for safety and security purposes, such as detecting overcrowding in public spaces or monitoring restricted areas.

Prerequisites


Setup

  1. Select a video from your workspace Click +Set up New Query.

  2. Select Crowd Detection from the list of query types.

1. Query Name

Give your query a name to better identify it. A description can also be added (optional).

2. Object Detection Filter

Videos

The thumbnail image of the previously chosen video is displayed here.

Time interval

Time interval

Select a time frame for the analytics to run, depending on the type of video selected:

  • Earliest: Run the query from the time shown (set during video registration as the beginning timestamp of the video).
  • Latest: Run the query until the time shown (set during video registration as the end timestamp of the video).
  • Given Date: You can select a custom start and end date and time to run the query on. Type the desired date and time or select them by clicking the calendar icon.
  • Live: Analysis is run live, continously.
  • Interval: You can select a custom start and end date and time to run the query on. Type the desired date and time or select them by clicking the calendar icon.
  • Set interval to: Choose from the presets below to run the query on a given time interval.
  • Minimum confidence (0.5 by default): The minimum confidence level required for an object to be detected. The higher the confidence level, the more certain the system is that the object is of the selected type. Confidence level ranges from 0 to 1, with 1 being the highest confidence level.

ROI (Region of Interest)

ROI

Drawing ROI is only supported on videos with a fixed camera angle (i.e. not on moving cameras). PTZ cameras are supported only in fixed position.

Draw a region of interest (ROI) on the video frame to define the area where the objects will be detected. Left-click again on the video frame to keep adding points to the polygon; double-click to finish drawing.

Note that currently only one ROI can be drawn.

3. Crowd Detection

  • Threshold (number of people): Set the minimum number of people required to be present in the designated area to trigger an alert.

4. Cooldown Filter

  • Cooldown (in seconds, 30 by default): Set a cooldown period to prevent multiple alerts from being triggered in quick succession. Once an alert is triggered, the system will wait for the specified cooldown period before allowing another alert to be triggered.

4. Alarm Integration (optional)

The query can optionally be integrated with third-party systems, such as Milestone XProtect or a webhook to trigger alarms.

Results

All done - Clicking Save & Run will immediately start the analysis and opens the Result screen of this query. Alternatively, clicking Save & Exit saves the query without running it.