What is line crossing detection on CCTV?
Line crossing detection is a rule that alerts when someone passes a line drawn on a camera's picture. It is often called a virtual tripwire, because it does the job of a wire stretched across a path without anything being fitted on site.
It is one of the rules in the family known as video analytics. In GoKavach the line is drawn on the picture from the camera you already have, and the alert goes to your phone instead of to a recorder's log that nobody reads.
How is line crossing different from intrusion detection?
A line watches a boundary; an area watches a space. Intrusion detection asks whether someone is standing inside a shape. Line crossing asks whether someone has passed from one side of a line to the other.
Use a line where the boundary is narrow and clear and the ground beyond it is busy or hard to outline: a gateway onto a road, a gap in a hedge, the mouth of a corridor. Use an area where the whole space must be empty, such as a stock room or a fenced compound. Many locations use both on the same camera, a line at the gate and an area around the building door.
How does GoKavach decide the line has been crossed?
It follows each person or vehicle from one check to the next and tests where its feet are. The camera is read as often as every 5 seconds on paid plans, and once a second on every plan while there is motion in view. When the bottom of an object's outline is on one side of your line in one check and on the other side in the next, the line has been crossed.
Three details follow from that. The line has two ends, and someone who walks around the end of it has not crossed it, so draw it from post to post. The object has to be seen at least once on each side; a person who only appears after they are through, standing beside the door, has crossed nothing GoKavach saw. And a crossing that happens between two checks still counts, because the step from the last position to the next one passes over the line.
Each line has its own choice of people, vehicles and animals, so a gate line can be set for vehicles only. A crossing in either direction counts, and the same person or vehicle alerts once per line, not every time it wanders back and forth.
Arming is what keeps the line quiet during the day. The location arms and disarms itself from its opening hours, so the same gateway that staff and deliveries use all afternoon only matters once you are closed. If the location is still disarmed 30 minutes after closing time, the admins are reminded.
How do you add a line to a camera?
Lines are drawn on the camera's own page in the dashboard, in the same editor as areas. A new camera watches for intruders only, so the line rule has to be switched on first.
- Open the camera and, under the rules it watches for while armed, switch on Line crossing.
- Draw a new zone, pick the Line shape and drag from one end of the gap to the other.
- Name it after the place, such as Back gate, because the name is in the alert: "Person crossed line 'Back gate' on camera 'Yard'".
- Choose what it watches. People are ticked to start with; cars, motorcycles, trucks, buses, bicycles, dogs, cats, cows, horses and sheep can be added.
- Leave it watched whenever the location is armed, or give it its own hours and days, such as 22:00 to 07:00 on weeknights.
Where should you draw the line?
Draw it on the ground where feet or wheels actually pass, a little inside your boundary. A few habits make a line reliable:
- Keep it away from the edge of the picture, so the camera sees a person on both sides of it.
- Avoid drawing it along a public pavement, where everyone walking by is close to it all day and night.
- Draw it where the camera looks across the path, not straight down it. A crossing seen from the side is clearer.
- Keep it clear of things that move by themselves, such as a gate that swings in the wind or a hanging chain.
What does one line crossing alert look like at a site gate?
Take a building site that closes at 18:00, with a line across the vehicle gate set for cars, trucks and motorcycles, and two people on the contact list on the Pro plan.
- 18:00 The location arms itself. The last lorry left at 17:40 and raised nothing, because the site was still open.
- 02:40 A motorcycle is seen on the road side of the gate, then on the site side at the next check. The alert "Motorcycle crossed line 'Main gate' on camera 'Gate'" is raised with the picture.
- 02:40 The site manager gets the app notification and a WhatsApp message, then an automated phone call a minute later.
- 02:43 Nobody has answered, so the second person on the list, the owner, is told.
- 02:44 The owner watches the clip, rings the security company and marks the alert Resolved. The sequence stops for everyone.
Which plans send line crossing alerts to WhatsApp or a phone call?
A line crossing alert reaches the app, the browser and email on every plan. WhatsApp and SMS are included from Starter, and the automated phone call from Pro and Business. If the first person does not respond, alert escalation moves to the next person on the list.
The picture and clip of the alert are kept 30 to 180 days, depending on the plan. After one line crossing alert, the same camera waits 1 minute by default before it can raise another, so a group walking through together is one alert, not five.
Where is line crossing detection used?
At boundaries with one obvious way in. A construction site draws a line across the vehicle gate and across each gap in the hoarding. A factory draws one across the dock door that is left rolled up for air. A school draws one inside the perimeter gate, to know when the grounds are entered at night or in the holidays.