Skip to content

Object Counting

Object Counting is a query that counts the number of objects in a video. The query can be configured to count specific object types and filter results based on various parameters.

Prerequisites


Setup

  1. Select one or more videos from your workspace Click +Set up New Query.

  2. Select Object counting from the list of query types.

1. Query Name

Give your query a name to better identify it; a unique identifier is generated by default. A description can also be added (optional).

2. Object Detection Filter

Video ids

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

Object types

Select one or multiple object types you want to search for - Person is selected by default. Select a category, then click the dropdown menu to see the list of available object types for the selected object category.

Object types

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, continuously.
  • 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.

3. Time-based Segmentation

The query separates detection counts into time windows, configured here. By default, detections are displayed in 5-second intervals.

  • Length (in milliseconds, 5000 by default): The length of one time window.

4. Kafka Output

Sets the Kafka topic where the results will be sent - filled in by default.

5. External Integrations (optional)

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

Currently, alarm integration with Milestone XProtect or Webhook is only available for live videos.

Webhook

The query can be configured to send detections to a Webhook URL.

  • URL: The URL of the Webhook.
  • Custom header key: The key of the custom header.
  • Custom header value: The value of the custom header.