Skip to main content

People counting in/out (In/Out Face Counting)

The people counting in/out feature uses face recognition to count the number of unique people passing through the entrance and exit at each location. The system matches faces between the exit and entrance cameras to accurately determine how many people actually entered/exited.

How it works
  1. The system detects faces at the entrance and exit cameras.
  2. It extracts a recognition feature for each face.
  3. It compares similarity (cosine similarity) between a person at the exit and the list of people at the entrance.
  4. When similarity exceeds the configured threshold, the system records them as the same person.

Prerequisites

Hardware

  • Cameras placed at the exit and entrance of each location.
  • Cameras must capture faces clearly (a suitable angle, sufficient lighting). A 2MP+ camera is recommended, with a front-facing or slightly angled view.

Required configuration

  1. An ROI has been drawn for each camera — see Configuring ROI zones.
  2. A gate type (in/out) has been assigned to each camera in the zone configuration.
Missing either of the above

If the ROI or gate type is missing, count results will be significantly inaccurate: the system picks up people walking past in the hallway, and the in/out person-matching algorithm can't run.

Configuration

  1. For each entrance/exit camera, open Zone Configuration (see Managing cameras).
  2. Draw the ROI following Configuring ROI zones.
  3. Assign a gate-type label to the camera: Entrance camera or Exit camera.
  4. Save the configuration.

Confirm: check that both cameras (entrance and exit) at the location have an ROI and the correct gate-type label before activating the task.

Viewing people-counting reports

Once the task is running and has data, view it in Generating and exporting reports — the Customer Traffic (aggregate) and Customer Presence (per-customer detail) reports both use data from this feature.

Troubleshooting

Counts are significantly off

CauseFix
No ROI configuredDraw an ROI for the camera (required) — see Configuring ROI zones
Wrong gate type (in/out)Recheck the gate-type label in the camera configuration
Camera facing into backlightReposition the camera or add lighting
ROI too wide (picking up hallway traffic)Narrow the ROI to cover only the doorway

No people are counted

CauseFix
Camera not workingCheck the stream connection — see Camera diagnostics
Face quality too lowCheck lighting and camera angle

Exits don't match entrances

  • Check the face-matching threshold (the system's default value).
  • Make sure both the entrance and exit cameras capture faces clearly.
  • Check that both cameras have an ROI and are active.
Face recognition limitations
  • People wearing a full face covering may not be recognized.
  • Low light or backlighting reduces recognition quality.
  • Cameras must be positioned to capture faces clearly (not too high, not too far away).

Next steps