2.2 Analytics, Tracking, Analysis

Overview: Analytics, Tracking, Analysis

Old motion detection asked one question. Did enough pixels change? Headlights, rain, flags, and a spider on the lens all change pixels. AI analytics asks a different question. Is that a person or a vehicle? That is the biggest real improvement in this trade in years. This lesson covers which analytic rules you can trust, the mounting rules that decide whether they work, and how search really works.

Lesson 2.2: Introduction

By the end of this lesson, you will be able to do the following.

  • Explain how AI analytics differ from motion detection, and which analytic rules work best.
  • Apply the mounting and size rules that decide whether an analytic can detect anything.
  • Explain how appearance search works and what limits it.
Why it matters

Most analytics problems are mounting problems

Most "the analytics do not work" calls trace back to where and how the camera was mounted, not the AI itself. A few rules, checked when you drill the hole, prevent them.

The call

An apartment manager says the camera never alerts on people near the mailboxes, right below it.

The cause

The camera is 20 feet up and the mailboxes are 6 feet out. People there are in the dead zone, where the camera cannot analyze them.

The fix

Move or add a camera so that area is farther out than half the mounting height. The rules in this lesson show you how.

What Object Classification Fixes, and What It Does Not

Pixel change versus object class. They ask two different questions and give two very different alarm lists.

Three surveillance cameras on a pole against a blue sky
Photo by Karan Suthar on Unsplash

Conventional video motion detection compares this frame to the last one, counts how many pixels changed by more than a threshold somebody typed in, and fires if the count is high enough in the right region. It has no idea what a person is. It knows that pixels in region seven changed.

That is why your customers have spent fifteen years complaining about the same list. It is headlights sweeping a wall, rain, blowing trees, cloud shadows, sprinklers, flags, and bugs on the dome. Every one of those is motion. The rule cannot tell them from a man climbing a fence, because nobody ever gave it the idea of a man.

A deep-learning classifier answers a different question. It was trained on an enormous number of labeled images, and it outputs a class and a confidence number, such as person, 0.87. Now you can throw away everything that is not a person or a vehicle, regardless of how dramatically it moved. The rain still moves. Nobody gets a phone call about it.

Two different questions about the same sceneVideo motion detection asks whether enough pixels changed, so rain, headlights, flags, shadows and a person all trigger it. Deep-learning classification asks whether the object is a person or a vehicle and outputs a class with a confidence such as person 0.87, so only the person is kept.Video motion detection"Did enough pixels change?"RainALARMHeadlights on a wallALARMBlowing treesALARMFlag, cloud shadowALARMPerson at the fenceALARMObject classification"Is it a person or a vehicle?"RainignoredHeadlights on a wallignoredBlowing treesignoredFlag, cloud shadowignoredPerson at the fenceperson 0.87

What modern products classify

Modern products classify person and vehicle with subtypes (car, bus, truck, motorcycle, bicycle) and, increasingly, face, license plate, and animal. Many also report attributes, such as upper and lower clothing color, vehicle color, bag, mask, glasses, and estimated age and gender.

The class filter

Person and vehicle only; ignore everything else, no matter how much it moved.

The confidence threshold

How sure the camera has to be before it reports. These two knobs do most of the work in the field.

What improved, and what did not
Fewer nuisance alarms is not the same thing as accuracy.
Filtering out rain does not mean the camera sees a man crawling along a fence line. It means it stopped calling you about rain. Those are two different achievements, and only one of them is finished.

Which Analytic Rules Work in the Field

Every platform ships a menu of rules. They are not equally trustworthy.

Tall perimeter fence topped with barbed wire
Photo by Margo Evardson on Unsplash

This ranking comes from what the vendors themselves document as limitations, not from what the brochure claims.

RuleHow well it worksThe real constraint
Intrusion / object in areaMature. Trust it.The object's detection point (a person's feet, a vehicle's center) has to fall inside your zone. Draw zones on the ground, not on walls.
Line crossingMature. Trust it.It will not trigger on something that is standing still. The object has to be moving for roughly two seconds before it is even detected.
Direction / wrong wayMature.Degrades on objects moving straight at the camera or straight away from it, because there is very little side-to-side movement to measure.
Loitering / time in areaGood.Needs an unbroken track. Anything that hides the person for a moment (a parked truck, a column, a bush) breaks the timer and starts it over.
People counting / crossline countingGood, if it is mounted right.One major camera manufacturer refuses to publish an accuracy figure, stating that any single number "would be correct only in a laboratory test setup". That is an unusually candid statement for a vendor to publish, and it is worth quoting to a customer.
OccupancyGood.Counts objects that are moving and objects that are sitting still, so errors accumulate over a shift unless there is reset logic at a known-empty time.
TailgatingFair.Typically a fixed window, often zero to twenty seconds between two crossings. Set it by watching the actual door, not by guessing.
Crowd density / heat mapFair.People blocking each other is the hard ceiling. Mounting straight down helps with crowding but kills classification, because you lose the human silhouette the model needs.
Object left behind / object removedWeak to fair.The highest nuisance-alarm rule in the catalog. It fires on lighting changes and on people who stand still. Sell it carefully or not at all.
PPE detection (hard hat, vest)Emerging. Shipping as beta in at least one major product line.Treat as a pilot, not a deliverable.

A practical rule for quoting. The top four rows are things you can put in a contract. The bottom three are things you pilot on the customer's site, with their agreement, before anybody signs a service level around them.

Six Camera Mounting Rules for Analytics

For anyone who mounts cameras, these pay off on the very next job. They cost nothing but knowing them at the moment you drill the hole.

Industrial building exterior with loading docks and a wall-mounted camera
Photo by Theo Marjoram on Unsplash
01

The camera must look downward.

The center of the image has to be below the horizon. A camera pointed level or up has no ground plane to work with.

02

Minimum detection distance is greater than mounting height divided by two.

At twenty feet of mounting height, nothing closer than ten feet is reliably analyzed. That dead zone under the camera is real, and it is bigger than people expect.

03

Roll angle has to be zero.

The image must be level with the horizon. A camera you eyeballed onto a crooked parapet is a camera whose perspective model is wrong, and that wrecks size estimation across the whole frame.

04

Do not mount directly overhead if you need classification.

The model needs to see the human shape (head, shoulders, legs). From straight above, a person is a circle. Top-down is for counting, not for telling a person from a cart.

05

The field of view has to stay put.

PTZ tours and analytics do not mix, unless the analytic is tied to specific presets. A camera that moves has a scene the model has never calibrated to.

06

Vibration is a first-order cause of failure.

Pole mounts, parapets, rooftop units, and loading-dock walls all move. Turn on electronic image stabilization. Turn on barrel distortion correction and forensic wide dynamic range where the camera has them.

Rule two, drawn out

The dead zone under an analytics cameraSide view of a camera mounted 20 feet high and looking downward. Minimum detection distance must be greater than mounting height divided by two, so nothing closer than 10 feet from the base of the pole is reliably analyzed. Beyond 10 feet is the usable detection zone.Height 20 ftDead zone, under 10 ftReliable detection starts beyond height ÷ 2Minimum distance > mounting height ÷ 2Camera aimed below the horizon, roll at zero

Two different design problems

Everything you learned about general surveillance pushes you the wrong direction here.

Design choiceGeneral surveillanceAnalytics
Mounting heightHigher is better (vandal resistance, wide coverage)Lower is usually better. You need the silhouette, not the top of a head.
Down angleSteep is fineShallow. Respect minimum distance greater than height over two; overhead defeats classification.
MegapixelsMore is betterOnly up to the chip's analytic limit. On-camera plate recognition is typically capped around 2 MP.
Field of viewWide is efficientNarrower. Pixel density on the target at the far edge of the zone governs everything.
Design targetWhat a human can see (IEC 62676-4 categories)What the software needs, which is a different set of numbers.

Analytics mounting and surveillance mounting are two different design problems.

For sales and management

More cameras covering smaller areas

An analytics design normally needs more cameras covering smaller areas than a coverage design at the same site. Narrower fields of view, lower mounts, more of them.

A sales engineer who prices an analytics job off a coverage layout underbids it, wins it, and then the install team gets blamed for analytics that were never going to work at that camera count.

Price an analytics job from an analytics layout, not a coverage layout.

Minimum Object Size in the Image

The minimum size an object has to be in the image, expressed as a percentage of the image height.

Chain-link fence in front of an open field
Photo by T on Unsplash
4% / 8%People, minimum / recommended
3% / 6%Vehicles, minimum / recommended
2 sMoving at least this long before it triggers

Translate that into pixels, because that is what you can actually check. On a 1080p image, which is 1,080 pixels tall, a person must be at least 43 pixels tall to be detected at all, and about 86 pixels tall to be detected reliably.

Minimum person size in a 1080p imageA 1080-pixel-tall frame. A person must be at least 4 percent of image height, about 43 pixels, to be detected at all, and 8 percent, about 86 pixels, to be detected reliably. Vehicles need 3 percent minimum and 6 percent recommended. The object must also move for at least two seconds.1080p frame, 1,080 px tall43 px86 pxPeople4% minimumabout 43 px at 1080p8% recommendedabout 86 px at 1080pVehicles3% minimum6% recommendedAnd moving for at least two secondsField check. A person at the far end of the zoneshould be about 1/12 of the screen height.

Set minimum object size and check pixels on target

This ninety-second check prevents most "the analytics don't work at the fence" callbacks.

Pull up the live view

Do this during commissioning, while the crew is still on site.

Send somebody to the far end of the detection zone

Not the middle of the zone. The far end.

Compare their height to the full image height

If they are not roughly a twelfth of the screen height, the software is not going to see them, and no setting in the menu will fix it.

Fix it physically, then write it down

You need a narrower lens, a lower mount, or a closer camera. Record what you saw at the far end of every zone before you leave the site.

Do that check at the far end of every zone and write down the result. It is the most useful check in this lesson.

Perspective Calibration for Scenes with Depth

Any scene with real depth, such as a long driveway, a parking lot, or a warehouse aisle, needs perspective calibration.

Long straight path lined with trees, showing scene depth
Photo by Nick Fewings on Unsplash

Without perspective calibration, the camera has no way to know whether a small shape is a small object close by or a big object far away.

That is not a theoretical problem. It is the classic failure where a cat walking ten feet from the camera triggers the vehicle rule, because at that distance a cat is the same number of pixels as a car at the back of the lot.

The procedure is simple. In the camera's setup, you place vertical bars representing a known height, usually a six-foot person, at several distances in the scene. The important detail is that the bars must not overlap in height. If they do, you have not given the camera enough spread to build the model from. Typical product limits run to about five exclude areas per scenario and polygons up to ten corners.

Two more zone-drawing points that cause silent failures

Detection point inside the zone

For a person that is the feet; for a vehicle, the center. A zone drawn up on a wall or across the top of the frame will never trigger, even though you can plainly see people walking through it.

Filters cut both ways

Filters for short-lived, swaying, and small objects exist on motion-based scenarios, not object-based ones. The vendor's own warning is that filters apply to all detected motion and require careful calibration to avoid missing legitimate events. A filter you set to kill nuisance alarms will also kill a slow, small, or brief intruder. Every filter has that cost.

The confidence threshold is a one-for-one trade

Customers will ask you for both. Tell them plainly that no setting improves both.

Raise the threshold

  • Fewer false alarms
  • More misses

Lower the threshold

  • Fewer misses
  • More false alarms

Set the schedule before you tune sensitivity. Most nuisance alarms are ordinary daytime activity in a zone that only matters after hours. Before you start tuning sensitivity, ask when the customer actually cares.

How Appearance Search Works, and Its Three Limits

Searching for "a man in a red shirt" across three days of video is one of the most popular uses of AI today.

Empty parking lot at night under a single pole light
Photo by Steven Cordes on Unsplash

A large 2025 industry survey found that among end users adopting AI, the number-one use is search and incident investigation at 55 percent, ahead of automatic event filtering at 48 percent, transcription and report generation at 46 percent, automated event triggering at 46 percent, threat forecasting at 34 percent, repetitive task automation at 30 percent, and dispatch automation at 27 percent.

Deployed AI use cases among adopting end usersIndustry survey results. Search and incident investigation 55 percent, automatic event filtering 48, transcription and report generation 46, automated event triggering 46, threat forecasting 34, repetitive task automation 30, dispatch automation 27.Deployed AI use cases among end users adopting AISearch and incident investigation55%Automatic event filtering48%Transcription and report generation46%Automated event triggering46%Threat forecasting34%Repetitive task automation30%Dispatch automation27%

It searches the index, not the video

Mechanically, appearance search does not search video. It searches the metadata index the cameras produced while recording. Three consequences fall straight out of that, and all three are yours to explain before handover, not after.

01

You can only search attributes the camera was generating at the time it recorded.

Switching on clothing-color analytics today does nothing for last month's video. There is no going back and indexing old footage. If the customer might ever want to search it, it has to be on now.

02

Attribute extraction needs far more pixels on target than event triggering does.

A camera with enough resolution to fire an intrusion alarm on a person may have nowhere near enough to tell you what color their jacket was. Two different pixel budgets in the same scene.

03

Color search dies at night.

Infrared illumination produces monochrome video. There is no color in it to search. Clothing-color and vehicle-color filters simply stop working when the IR cuts in, and the same happens under sodium or heavily colored lighting. Set that expectation at the sales stage, not at handover.

Be ready for the percentage question

One well-known appearance search product's datasheet contains no measured claims at all. It gives no time-saved figure, no precision, no recall, and no benchmark. Its language is carefully hedged, with phrases like "can improve incident response time" and "help operators compile".

So when a salesperson quotes you "reduces investigation time by 80 percent," that number came from one customer's anecdote, not a measurement.

The professional move is to say "in customer deployments we've seen" and then offer a pilot with a measured before and after. That is both more honest and more persuasive, because it is checkable.

Commissioning Checks You Can Measure

Two measured checks, both cheap, both defensible in a dispute.

Two security cameras on a pole under a light covered in cobwebs
Photo by Anton Kotov on Unsplash

For counting

Manually count 200 people through the counting line and compare against what the system reported. Do it, write it down, and hand it to the customer with the as-builts. Now you have a documented baseline, and if the count drifts in six months you can prove it was right on day one.

For detection

The far-zone walk test from earlier in this lesson, documented. Write down who walked, where they stood, how tall they were on screen, and whether the event fired.

The counting error formula

Error % = (system IN count − 200) ÷ 2

The degradation list

This comes straight from the vendor's own limitations documentation, and it belongs on a laminated card in the truck.

CategoryWhat degrades detection
Weather and opticsFog. Direct sun into the lens. Not enough light. Heavy rain, especially combined with vehicle headlights.
The scene itselfCrowds where objects overlap constantly. Partial blockage that hides the features the model uses, such as foliage covering legs or wheels. Objects the same color as the background behind them.
Nuisance triggersInsects on the lens, especially near the IR emitters. Animals about the size of a person. Hard shadows that read as silhouettes. Small vehicles that look person-shaped from certain angles.
Will not reliably detectStationary objects in a line-crossing rule. Objects whose detection point is hidden. People who are not upright (crawling, crouched, on the ground). Objects walking straight at the camera, which are slower to register.

How bad is weather, in numbers?

A 2025 peer-reviewed robustness study measured detector performance under added noise and blur (Gholinavaz et al., 2025).

Detector A −10%

Mean average precision dropped from 0.712 to 0.639, about a 10 percent relative loss. By individual condition it still reached 0.86 in rain and an F1 of 0.77 in fog.

Noise and blur

Detector B −8.6%

Mean average precision dropped from 0.681 to 0.622, about an 8.6 percent relative loss.

Noise and blur

Take the general pattern, not the decimals. Real-world degradation is measurable and generally in the 5 to 15 percent range for common conditions. Not catastrophic. But if your design has no margin, weather will eat it, and a marginal install becomes a non-working install on the first foggy morning.

Scenario

What to tell the customer

A warehouse owner is reviewing the analytics settings with you at handover.

Warehouse owner"Set it so it never misses anybody and never sends a false alarm."
You"I wish I could. Every alert setting is a trade. If I make it more sensitive, it catches more people and sends more false alerts. If I make it stricter, the alerts are more trustworthy but it can miss someone. The tools that help both are the ones we already used, a good mounting spot, tight zones on the ground, and a schedule so it only alerts after hours. Tell me which matters more to you overnight, catching everything or fewer false alerts, and I will set it that way and write it down."
It is honest about the trade.
It names the real fixes.
It lets the customer choose, and documents it.

Key Terms

Click any term to reveal its definition.

Video motion detection (VMD)+

Pixel-change detection. Compares frames and counts changed pixels against a threshold a human typed in. Has no concept of what an object is.

Object classification+

A trained model outputting an object class and a confidence score, such as person at 0.87. Allows everything that is not a person or vehicle to be discarded regardless of how much it moved.

Class filter+

The setting that limits alarms to selected object classes, typically person and vehicle.

Confidence threshold+

How sure the model must be before reporting. Raising it reduces false alarms and increases misses; lowering it does the reverse. The trade is one-for-one.

Detection point+

The specific point on an object the analytic uses to decide whether it is inside a zone, such as the feet of a person or the center of a vehicle. Zones must be drawn where the detection point will fall.

Minimum object size+

The 4 percent minimum and 8 percent recommended image height for people, and 3 percent and 6 percent for vehicles. At 1080p, roughly 43 pixels to detect and 86 pixels to detect reliably.

Perspective calibration+

Setting vertical reference bars of known height at several distances so the analytic can distinguish a small nearby object from a large distant one. Required in any scene with significant depth.

Electronic image stabilization (EIS)+

Camera processing that compensates for vibration. Essential on pole, parapet, and rooftop mounts, because vibration is a first-order cause of analytics failure.

Appearance search+

Forensic search across the metadata index for objects matching described attributes. Searches the index, not the video, so only attributes generated at record time are findable.

Occupancy analytic+

Counts objects present, both moving and stationary. Accumulates drift over time without reset logic at a known-empty point.

Tailgating analytic+

Detects a second object crossing within a set window after a first, typically zero to twenty seconds.

Mean average precision (mAP)+

A standard detection benchmark metric combining precision and recall across confidence thresholds. Used in the weather-degradation research to quantify loss.

References

  1. Axis Communications. (2022). License plate capture: Key factors for successful license plate recognition [White paper]. https://www.axis.com/dam/public/f4/76/27/license-plate-capture-en-US-335780.pdf
  2. Axis Communications. (2025a). AXIS Object Analytics user manual (Version 2411). https://help.axis.com/download/um_object_analytics_t10144039_2411.pdf
  3. Axis Communications. (2025b, June). Axis counting solutions [White paper]. https://whitepapers.axis.com/en-us/axis-counting-solutions
  4. Axis Communications. (2026b, April). Pixel density based on IEC 62676-4:2025 [White paper]. https://whitepapers.axis.com/en-us/pixel-density-based-on-iec-62676-4-2025
  5. Genetec. (2025). State of physical security 2026. https://www.genetec.com/binaries/content/assets/genetec/reports/report_en_state-of-physical-security-2026_web.pdf
  6. Gholinavaz, S., Saeedi, N., & Samadi Gharehveran, S. (2025). Robustness analysis of YOLO and Faster R-CNN for object detection in realistic weather scenarios with noise augmentation. Scientific Reports, 15. https://doi.org/10.1038/s41598-025-28737-5
  7. Hanwha Vision. (2025, April 2). Powering the next generation: A look at Hanwha Vision's new Wisenet 9 SoC. https://www.hanwhavision.com/global/news-events/article/1609559
  8. Motorola Solutions. (n.d.). Avigilon Appearance Search technology [Datasheet]. https://www.motorolasolutions.com/content/dam/msi/docs/Appearence_Search_AVO.pdf
  9. Redmon, J., Divvala, S., Girshick, R., & Farhadi, A. (2016). You only look once: Unified, real-time object detection. 2016 IEEE Conference on Computer Vision and Pattern Recognition, 779-788. https://doi.org/10.1109/CVPR.2016.91

Explore & Complete

Complete the Knowledge Check below. Navigate through each slide and answer every question. You have unlimited attempts to answer each question correctly.

Next Steps

After you have earned a perfect score on the Explore & Complete activity, click the Mark Complete button to complete this lesson. You can then move to the next lesson.