What it means
Line crossing is one of the most useful video analytics rules. In the camera or VMS setup screen, you draw a virtual line across the image: along a fence, across a driveway, at the edge of a loading dock. When a tracked object crosses that line, the system raises an event. That event can trigger a recording, a notification, a light or speaker, or an alarm to a monitoring centre.
Most systems let you add filters:
- Direction: only A to B, only B to A, or both. Entering a yard after hours matters; leaving it may not.
- Object class: only people, only vehicles, or both, using object classification.
- Schedule: active only when the site is closed or a partition is armed.
- Size: ignore objects too small or too large to be the target.
Why it matters
Basic motion detection triggers on anything that changes in the image: tree branches, shadows, rain, headlights. Line crossing with classification triggers only when a person or vehicle actually crosses a defined boundary, which cuts false alarms dramatically and makes alerts worth acting on.
Drawing good lines
- Draw the line where the target is large enough in the image to be classified reliably, not at the far edge of the view.
- Keep lines away from swaying trees, flags and reflective surfaces.
- Draw the line across the path of travel, not parallel to it. Objects walking along a line may be counted erratically.
- Use two lines in sequence, or combine with an intrusion zone, for higher confidence at sensitive perimeters.
- Test with a person walking the route in daylight and at night, and review false alarms for the first few weeks.
Guides that cover this
Intrusion zones and line crossing: designing a perimeter
How to lay out zones, tripwires and schedules so an empty yard at night tells you only what matters.
AI CamerasReducing false alarms from video analytics
The usual causes of nuisance alerts, and a practical order of fixes that gets them under control.
AI CamerasTuning and testing analytics: a commissioning method
A repeatable walk test and soak period that proves each rule works, with records you can hand to the owner.