AI Vision & Smart Security

Twelve 1080P cameras on one GPU server: how we built an in-store person-tracking system

No cloud, and video never leaves the site. How iNxusTrack analyses 12 live 1080P streams on one RTX 4060 Ti server, with measured numbers and on-site lessons.

·4 min read

Stores and campuses often have a dozen or more cameras, yet nobody really watches them until something has already gone wrong. The usual way to make cameras “watch themselves” is to stream the video to the cloud for analysis. That means sending footage off-site around the clock, which costs bandwidth and money, raises privacy concerns, and is something many store owners simply don’t want.

Our in-house iNxusTrack person-tracking system takes a different route: every bit of analysis runs on one server on site, and raw video never leaves the premises. Here is how it works, and what we measured.

Three things it has to do

  1. Know who it is. When a face is visible, face matching confirms identity; you can keep a people database and search by photo.
  2. Keep track. When the same person walks past different cameras, the clips must be stitched into one continuous path — even when they face away and no face is visible.
  3. React fast. Watch-list matches, strangers and loitering should raise an alert instantly, on the dashboard and on the phone at the same time.

What happens to each frame

Every camera stream goes through these steps on the server:

  1. Decode — the GPU’s built-in hardware decoder (NVDEC) unpacks the 1080P stream without touching the CPU.
  2. Pre-process — resizing, colour conversion and normalisation are fused into a single GPU kernel: about 0.15 ms per frame.
  3. Person detection — frames are sent in batches of six; about 1.41 ms per batch.
  4. Appearance features (ReID) — each person’s look becomes a feature vector used for cross-camera matching; about 3.32 ms per batch.
  5. Face — detection, alignment and ArcFace embedding in one pass; about 3.92 ms for a full batch.
  6. Association and alerts — features are matched against the face database and recently seen people to decide “who is this, and where were they just now”; when a rule fires, an alert goes out with an event clip.

All models are compiled for the GPU with TensorRT, and end-to-end P95 latency stays under 500 ms.

How one GPU handles twelve streams

Batch — but don’t keep anyone waiting

Feeding the GPU one frame at a time wastes it. We gather frames from all streams and send a batch as soon as six are ready, or after 15 ms, whichever comes first. Detection throughput rises by about 47% compared with single frames, and a quiet camera never delays an alert.

Use the face when you have it, appearance when you don’t

Faces are the most accurate: TAR ≥95% at a false-accept rate (FAR) of ≤0.1%. But in a store, cameras mostly see people from the side or behind. That is where appearance features take over — clothing and build, encoded as vectors, link the same person’s clips across cameras.

No general-purpose vector database for recent sightings

The “recently seen” set is constantly growing and constantly expiring. General-purpose vector databases struggle with that churn, so we use a ring buffer plus matrix multiplication: new features are written in and old ones are simply overwritten. A single search across 500,000 features takes 2.31 ms at P95. The face database uses Faiss: about 1.22 ms P95 per query across 200,000 people.

Measured: twelve streams at full load

On a test machine set up like a store (RTX 4060 Ti, 8 GB), running in real time at 25 frames per second with every model and both indexes loaded:

Metric Threshold Measured
Frames processed per stream ≥12.5 fps 23.8–24.9 fps (every frame)
Peak GPU memory ≤7 GB about 3.5 GB
Hardware decoder load ≤60% about 43%
Dropped frames — 0

In other words, every frame of all twelve 1080P streams is processed, with nearly 2× headroom; the “analyse every other frame” fallback we prepared hasn’t been needed.

The channel count isn’t fixed, though: in very crowded venues we recommend fewer cameras per server. At installation the system detects the GPU model, applies measured values for models we have tested, and estimates conservatively from GPU memory for the rest.

Things you only learn on site

Lab numbers look great; real stores bring plenty of details:

  • Existing cameras — ONVIF auto-discovery means most IP cameras already in the store can stay.
  • Reflections and ghosts — glass and shiny floors can look like people. The dashboard lets you draw “ignore zones”, and the system counts what gets filtered every minute so you can check nobody real is being masked.
  • Upgrades without downtime — new versions roll out blue-green, only signed and verified packages are installed, and the service heals itself when something goes wrong. Store staff don’t need to be technical.

Privacy

Video is analysed and stored only on the in-store server and never sent to the cloud. The dashboard and phone app show alerts, paths and authorised clips. That is a big part of why store owners are willing to install it.

Where it fits

Retail stores, multi-store chains, campuses and factories, showrooms and venues. There is a web dashboard plus iOS, Android and Windows apps.

For more features and screens, see AI Vision & Smart Security.