Line crossing detection A line across the gate that tells you when it is crossed

Line crossing detection in GoKavach is a line you draw on the picture from a camera you already have, across a gate, a fence gap or a doorway. While the location is armed, GoKavach checks the camera every few seconds and alerts the people on your list when the line is crossed.

Free forever for 1 camera · no card · uses your cameras

Free: app and email alerts. WhatsApp from Starter (₹999 a month in India), phone calls from Pro. See plans

How it works Line crossing detection, step by step

  1. 1

    You draw the line

    Open the camera and draw a line across the gap that should not be passed after hours: the gateway, the break in the fence, the top of the stairs.

  2. 2

    The location arms at closing

    Line crossing alerts are raised only while the location is armed, which follows the opening hours and closed dates you entered.

  3. 3

    The camera is checked every few seconds

    GoKavach reads a picture every few seconds, and once a second while there is motion, which is when a crossing happens.

  4. 4

    A crossing becomes an alert

    When the feet of a person, or the bottom edge of a vehicle, pass from one side of the line to the other, the first person on your list gets the picture, and the alert moves down the list until someone marks it Seen, Resolved or False alarm.

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.

  1. Open the camera and, under the rules it watches for while armed, switch on Line crossing.
  2. Draw a new zone, pick the Line shape and drag from one end of the gap to the other.
  3. Name it after the place, such as Back gate, because the name is in the alert: "Person crossed line 'Back gate' on camera 'Yard'".
  4. Choose what it watches. People are ticked to start with; cars, motorcycles, trucks, buses, bicycles, dogs, cats, cows, horses and sheep can be added.
  5. 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.

Line crossing detection: key facts

What you draw
A line on the camera's picture, from one side of a gap to the other
Alerts while
The location is armed, and inside the line's own hours if it has them
Checks
As often as every 5 seconds, and once a second during motion
Counts a crossing when
The bottom of an object's outline passes from one side to the other
Watches
People by default; vehicles and animals can be chosen per line
Direction
Either way counts; each object alerts once per line

What GoKavach is, and isn't

GoKavach is AI monitoring for the CCTV cameras you already have. It watches Hikvision, Dahua, CP Plus and almost any other brand around the clock and, when someone is where they shouldn't be, alerts you within seconds: in the app and by email on every plan, by WhatsApp and SMS on paid plans, and by phone call on the larger ones.

  • It alerts only while the location is armed; it is not a daytime visitor counter. Daytime numbers come from people counting in reports.
  • It does not tell direction: someone going out across the line raises the same alert as someone coming in.
  • It cannot see a crossing the camera does not show, such as someone climbing a wall outside the picture.
  • It tells your people that the line was crossed; it does not close the gate, sound an alarm panel or send a patrol.

Line crossing detection FAQ Questions, answered

What owners ask before they connect their first camera.

Is line crossing detection the same as a tripwire on a CCTV camera?

Yes, they are two names for the same idea. Camera makers often call it a tripwire or a virtual tripwire, and software tends to call it line crossing. In both cases you draw a line on the picture and are told when it is crossed. Nothing physical is installed at the boundary.

Do my cameras need built-in line crossing detection for this to work?

No. The line is drawn and checked in GoKavach, on the picture your recorder already sends, so a plain camera with no smart features of its own is enough. If your camera does have its own tripwire setting, you can leave it on or off; GoKavach does not depend on it.

Will line crossing detection alert when staff walk through the gate in the daytime?

No. Line crossing alerts are raised only while the location is armed, and the location disarms itself for its opening hours. Staff who come and go during those hours raise nothing. Someone who crosses the line after closing, staff or not, raises an alert that can be marked Seen or False alarm.

Should I use a line or an area to protect a fence with CCTV?

For a long fence seen along its length, an area drawn on the ground just inside it is usually easier to get right. For a gate or a gap seen from the side, a line is better. You can put both on one camera and each will raise its own kind of alert.

Can a line crossing alert be limited to vehicles at a gate?

Yes. Each line has its own list of what it watches. Untick people and tick cars, trucks and motorcycles, and a person on foot can walk over the line without an alert while a vehicle driving through raises one. A second line on the same camera can watch people at the side gate.

How do I move a line crossing line I drew in the wrong place?

Remove it and draw it again. A line's name, the things it watches and its hours can be changed where it is, but its two ends cannot be dragged once it is saved. Redrawing takes a few seconds on the camera's page, in the same editor used to draw it the first time.

Still have questions? connect@gokavach.com

GoKavach pricing Start free. Move up a plan as you add cameras.

Every plan watches every camera around the clock, with intruder alerts in the hours you set. Bigger plans add cameras, people, phone-call alerts and longer storage of alert clips.

Free

Try it on one camera, for as long as you like.

$0

The same in every country

Free forever

  • 1 camera
  • 1 team member
  • Checks every 10 seconds, and every second while something moves
  • Email and app alerts
  • Alert pictures and clips kept 30 days
Start free

Starter

For one shop or home.

$19 /month

₹999/month in India

Renews until you cancel

  • 2 cameras
  • 2 team members
  • Checks every 5 seconds, and every second while something moves
  • WhatsApp, SMS, email and app alerts
  • Alert pictures and clips kept 60 days
  • 1 AI check in your own words
Choose Starter

Business

For many locations and larger teams.

$129 /month

₹6,999/month in India

Renews until you cancel

  • 16 cameras
  • 10 team members
  • Checks every 5 seconds, and every second while something moves
  • Phone calls, WhatsApp, SMS, email and app alerts
  • Alert pictures and clips kept 180 days
  • 10 AI checks in your own words
Choose Business

Enterprise

For more than 16 cameras, chains and guard companies.

Let's talk
  • More than 16 cameras and as many team members as you need
  • Checks every camera as often as every 5 seconds
  • Help setting up at each location
  • A named contact and agreed response times

Every plan includes

  • Areas, lines and hours you choose
  • A picture and clip with every alert
  • Live view on phone and computer
  • Camera offline and DVR disk alerts
  • Arming by your shop hours
  • Counter-left-empty alerts
  • Daily and weekly summaries
  • Reports on alerts and busy hours
  • A panic button for owners, admins and operators

Paid plans start the day you upgrade. Switch or cancel any time from Settings; after cancelling, your plan runs to the end of the paid period, then moves to Free. Prices exclude taxes.

Book a free demo Prefer we set it up with you?

In a free 15-minute call we connect one of your cameras and send a live test alert to your phone. Or start free on your own.

  • Works with the DVR or NVR you already have
  • We help with the connection, public IP or not
  • A live WhatsApp and phone-call alert to your phone
  • Free forever for 1 camera, no card needed

Book your free demo

Leave your number and we'll call to pick a time.

We reply within a day. No spam, no card. By submitting you agree to be contacted on WhatsApp/phone and to our privacy policy.