Calls and email answered 24/7/365 · An HSM Company contact@hsmservices.ca 1 800 716 8955

AI Cameras guide

How AI video analytics work: object classification vs pixel motion

What the camera is actually doing when it says "person detected", and why it beats old motion detection.

  • Beginner
  • 5 min read
  • Includes diagram

Key points

  • Pixel motion detection reacts to any change in the image. AI analytics react to recognized objects, such as people and vehicles.
  • A modern analytic runs four stages: detect, classify, track, then apply your rules.
  • Every detection carries a confidence score. The threshold you set trades missed events against false ones.
  • The analytic can only classify what it can see clearly, so camera placement still decides the result.

Most building owners have lived with old-style motion alerts: a phone that buzzes all night because of rain, headlights, spiders and swaying branches. After a week, everyone turns the alerts off. AI video analytics were built to fix that problem. This guide explains, in plain terms, what is happening inside the camera or server, and why it behaves so differently.

Pixel motion detection: the old way

Classic video motion detection (often called VMD) compares each frame with the one before it, or with a slowly updated background image. If enough pixels in a region change by more than a set amount, it raises an alarm. That is the whole method.

It is simple and cheap, and it is still useful for one job: triggering recording on a quiet indoor camera. The problem is that it has no idea what changed. A person walking, a shadow moving across a wall, snow falling in front of an IR light and a car's headlights sweeping a fence all look the same to it: a block of changed pixels.

Object classification: the AI way

An AI analytic uses a trained neural network that has learned what people, cars, trucks, bicycles and similar objects look like from very large sets of labelled images. Instead of asking "did pixels change?", it asks "is there a person or vehicle in this frame, and where?"

Inside an AI analytic Sensor frames 1. Detect find objects 2. Classify person 0.92 3. Track same object, ID 14 4. Rules zone, line, time Event + metadata to VMS, alarm, app Attributes stored for search Runs many times a second on every frame analysed
Diagram Detection finds objects, classification labels them with a confidence score, tracking follows them over time, and only then do your rules decide whether anyone is told.

1. Detection

The network scans each analysed frame and draws a bounding box around anything that looks like an object it knows. Many cameras analyse a reduced-resolution copy of the stream, which is one reason small, distant targets get missed.

2. Classification and confidence

Each box gets a label and a confidence score between 0 and 1, for example "person, 0.92". The system compares that score with a threshold. Set the threshold high and you get fewer false alerts but may miss a person crouching in poor light. Set it low and you catch more, along with more mistakes.

3. Tracking

Tracking links detections across frames so the system knows the person in frame 200 is the same one from frame 180. That is what makes direction, speed, dwell time and line crossing possible. A one-frame blip that never becomes a stable track is usually discarded, which removes much of the noise on its own.

4. Rules

Finally, the object and its path are checked against the rules you set: is it a person, inside this zone, between 10 pm and 6 am, for more than 5 seconds? Only if every condition is met does it become an event. The design of these rules matters as much as the AI itself, which we cover in intrusion zones and line crossing.

What the difference looks like on a real camera

Same scene, two methods Pixel motion 4 alerts: tree, shadow, headlights, person Object classification 1 alert: person 0.91 Red boxes: changed pixels flagged. Green box: classified object that matched a rule.
Diagram Pixel motion flags every change in the scene. Classification ignores the tree, shadow and headlights and reports only the person.

Where AI analytics still get it wrong

Classification is a big improvement, not magic. The common failure points are predictable:

  • Targets too small. A person 6 pixels tall cannot be classified reliably. See placing cameras for analytics for pixel targets.
  • Look-alikes. Large dogs, deer, mannequins, posters of people and statues can be labelled as people, especially at low confidence thresholds.
  • Poor light. Heavy noise, glare from IR bouncing off rain or snow, and backlit doorways reduce confidence scores.
  • Occlusion. Someone half-hidden behind a parked car or crawling low may not be detected until fully visible.
  • Spider webs and insects on the lens. Classification ignores most of these, but they still cause glare and blur that hurt detection.
Rule of thumb

If a person standing at the far edge of your zone is not clearly recognizable as a person to you on the live view at night, the analytic will struggle too. Fix the camera before you blame the software.

What "deep learning" and "trained on site" claims mean

Almost every current analytics product uses deep learning. The meaningful differences are in which object classes it supports, how well it handles your conditions (night, snow, wide scenes), whether it runs on the camera or a server, and how it lets you tune it. A few systems also learn the normal activity of a scene over days and flag unusual movement. That can help on busy sites, but it needs a settling period and a clear plan for who reviews what it flags.

When comparing products, ask for a demonstration on footage from a camera like yours, in conditions like yours. A daytime demo in a car park tells you little about a snowy loading yard at 3 am. Our guide on choosing an AI camera platform has a full checklist, and the next guide explains where the processing should run.

Watch out

Turning on every analytic the camera offers does not make a site safer. Each rule needs an owner, a schedule and a response. Unwatched alerts train people to ignore the system.

Want a professional to handle it?

Our technicians install and certify ai cameras for businesses of every size. Send us the details and we will come back with a plan.