How the Qb2 counts people

The Qb2 counts people with its security features: object tracking follows every person, security zones turn the persons who pass them into events, and occupancy zones report whether an area is occupied.

People counting with these features is currently experimental and has not been validated on a device. Verify the results against an independent count before relying on them.

Applications

Count the people who pass an entrance

An event when a person crosses the zone in the direction of its arrow.

Count entries and exits

The same, once for each direction.

See who is in an area

An event when the first person enters, and the persons tracked inside.

Know whether an area is occupied

Occupied or free, and an event on each change, also for persons who stand still and dense crowds.

Pass the counts on

The events and the states of the zones, in your own system. The event history of the Viewer does not total the events.

The processing behind the counts

People counting runs the security processing: motion detection separates the moving foreground from the static background, object tracking follows the foreground objects, and the zones evaluate them in every frame.

One processing per sensor

A sensor runs one processing at a time. On a Qb2, its enabled zones decide which:

  1. While a volume zone is enabled, the sensor measures volume. Security zones are not evaluated. The health warns about it only for a point-based security zone, not for the zones with the strategy Object or Direction.

  2. While a traffic lane zone is enabled, the sensor runs the traffic processing. It evaluates traffic lane and exclusion zones only. Security and occupancy zones are not evaluated, and no warning is shown.

  3. Otherwise the sensor runs the security processing, which evaluates security, occupancy and exclusion zones and counts people.

Plan one sensor for counting people and another for vehicles on traffic lanes.

Object tracking detects and follows people

Detection clusters points closer than 0.2 m, plus 0.025 m per metre of distance from the sensor, into one object. Tracking follows each object with a unique ID and adds a point to its path about every 1 m. Classification gives it a size class from the larger vertical side of its bounding box: a single person standing free is Medium, a group of people usually one Large object.

Animated plan view of a zone in which a small animal is ignored and a person is detected
Figure 1. Only objects of the selected sizes count
  • The bounding box only encloses the measured points. Seen steeply from above, mainly head and shoulders, so the person can fall into a smaller class. A partly hidden person, a child, or a person with luggage or a pram can also fall into another class. Check the classes on site.

  • With dynamic motion detection, a person who stands still long enough becomes background and is no longer tracked. Object Awareness in the detection settings delays this, see Dynamic. With static motion detection, for fixed indoor scenes, the person stays in the foreground.

Count crossings with a directional zone

A security zone with the strategy Direction reacts to every tracked object of a selected size whose path crosses the middle plane of the box in the direction of its arrow, within the width and height of the box.

  • The zone evaluates each track in segments of about 1 m. A person must be tracked for roughly 1 m before the line and is counted once they have moved up to about 1 m past it. Crossing back against the arrow direction removes the person from the zone count.

  • The alarm state is set when the first person crosses, and stays set while any person who crossed is still tracked and seen, then for the Hold duration.

  • Each time the alarm is triggered, the event history logs a «Zone» intruded event, along with its end time once the alarm clears.

  • The state of the zone lists the track ID of every person who crossed and is still tracked.

How people pass Events State of the zone

One person at a time

One event per person who crosses after the previous one has left the view and the hold duration has passed.

One ID per person.

Two persons in quick succession

The alarm is still set from the first, so no second event.

Two IDs, as long as the tracking keeps them apart.

Two persons side by side

Closer together than the clustering distance, they are one object and cross once. If that object is Large and the zone counts Medium objects only, nothing is counted.

One ID, or none if the object is not of a selected size.

Counting new IDs in the zone state is more accurate than counting events.

See who is in an area with an object zone

A security zone with the strategy Object reacts to every tracked object of a selected size whose centre is inside its box. Conditions such as a minimum lifetime or track length delay the alarm.

  • The alarm is set while at least one person is inside. Its events count how often the area was entered after being empty, not how many persons entered.

  • The state lists in every frame the tracked objects of the selected sizes inside the box.

The Objects service of the API delivers every tracked object with its size class, position and object-based zones, for counting in any area.

Know whether an area is occupied with an occupancy zone

An occupancy zone counts the points inside its box, moving or not, reduced to one point per 5 cm cube, and is occupied from its Minimum points on. It needs neither motion detection nor tracking, so persons who stand still and dense crowds are covered.

  • It reports occupied or free, not a number of persons. Fixed objects inside the box count as well.

  • Invert state reports occupied while it holds fewer points, for example for an empty platform.

  • Generate events lists each change in the event history as «Zone» occupied, with its duration.

  • A security zone linked under Link occupancy zones is switched off while the occupancy zone is occupied.

Limits

  • A count of events is exact only while people pass one at a time, with the previous person out of view.

  • Persons closer together than the clustering distance, about 0.2 m to 0.3 m, are one object. In a dense crowd, neither a directional nor an object zone can count them, and a second sensor does not separate them. An occupancy zone still reports occupancy.

  • The data sheet gives an application range from 1 m. Keep the heads of the tallest persons at least 1 m from the sensor.

  • No forecasts, queues or waiting times. The sensor reports crossings, persons in an area and occupancy as they happen.

  • Object-based and directional zones over several sensors need a swarm. Otherwise the health reports that these zones with multiple devices are only supported in swarm mode.

  • The LiDAR shows the shape of a person, not the face or other identifying details. With a camera in the sensor setup, the event history also stores the camera video around each event, which can show people.